Posts

Showing posts from July, 2016

Install and configure an Ubertooth One device on Ubuntu 16.04

Image
Well, to configure this open hardware we need to install a lot of tools. Let's go:
$ cd ~ $ git clone https://github.com/greatscottgadgets/ubertooth.git $ sudo apt-get install python-numpy python-pyside
If you try to run the spectral scanner, you might have this problem:
$ ~/ubertooth/host/python/specan_ui/ubertooth-specan-ui
Exception in thread Thread-1: Traceback (most recent call last):   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner     self.run()   File "./ubertooth-specan-ui", line 50, in run     for frequency_axis, rssi_values in frame_source:   File "/home/nboettcher/ubertooth/host/python/specan_ui/specan/Ubertooth.py", line 46, in specan     self.proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__     errread, errwrite)   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child     raise child_exception OSErro…

Install metasploit 4.12.15 on Ubuntu 16.04 with postgres compatibility

If you want install metasploit on your distro, follow these steps:
If you try Kali distribution, replace /opt by /usr/share and skip the git clone line

sudo su  
apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev locate libreadline6-dev libcurl4-openssl-dev git-core libssl-dev libyaml-dev openssl autoconf libtool ncurses-dev bison curl wget postgresql postgresql-contrib libpq-dev libapr1 libaprutil1 libsvn1 libpcap-dev libsqlite3-dev git-core postgresql curl ruby2.3 nmap gem  
gem install wirble sqlite3 bundler  
cd /opt  
git clone https://github.com/rapid7/metasploit-framework.git  
cd metasploit-framework  
bundle install 

If you run ./msfconsole maybe you won't connect to postgres

msf > db_status
[*] postgresql selected, no connection

To solve it, you need to create an user an a database for postgres. I my case I name all values as msf4:

sudo -s
su postgres
createuser msf4 -P
Enter password for new role: msf4
Enter it again: msf4
createdb --owner=msf4 msf…

Fix vsftpd to write data at chroot folder

If you try to install this ftp server, maybe you will get this follows problem at restart it:

service vsftpd status 
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2016-07-17 18:42:28 EDT; 2s ago
  Process: 2246 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
  Process: 2243 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 2246 (code=exited, status=2)

systemd[1]: Starting vsftpd FTP server...
systemd[1]: Started vsftpd FTP server.
systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: vsftpd.service: Unit entered failed state.
systemd[1]: vsftpd.service: Failed with result 'exit-code'.

to solve this, edit your /etc/vsftpd.conf file and comment the listen ipv6 line

#listen_ipv6=YES

Later, restart the service with: service vfftpd restart
If you can't connect …