1, ~ ~ ~ Burning System This is very simple: System: HTTPS://IMAGES.OFFENSIVE-SECURITY.COM/ARM-IMAGES/KALI-2.1.2-RPI2.IMG.XZ
2. The Raspberry Pi default does not fully extend all memory to the SD card. Extended partition Required
#df-HL View the system partition, see 32G memory card only 6.7G, and probably 23G of memory is not recognized ·
How to get Raspberry Pi to identify all of the memory:
#sudo
fdisk
/dev/mmcblk0
Press P
Copy the seen partition down to the start value of/DEV/MMCBLKOP2, 125001. The following will be used
Execute command: D (delete partition 2, select 2)
Execute command: P (by this time it should be less a partition)
Execute command: N (plus partition)
Execute command: P (primary partition)
Select 2
At the start position, enter the value of start, such as 125001, to see
The value that follows defaults to
Execute command: P
Execute command: w
After success such as:
And then we re-start the Raspberry Pi.
sudo reboot
After restarting Login putty execute the following command:
sudo resize2fs/dev/mmcblk0p2
For repairing partitions
After successful execution, again DF view
~~~~~~~~~
=========================================
#安装curlwgetHttps//curl.haxx.se/download/curl-7.50.3.tar.gzTar-XZVF curl-7.50.3.Tar. gz./Configure Make Make Install
#先更新系统
Apt-get Update
Apt-get Upgrade
Apt-get Install Curl
3, Installation Metasploit
Curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/ Metasploit-framework-wrappers/msfupdate.erb > Msfinstallchmod 755 msfinstall &&/msfinstall
4. Installing PostgreSQL Database
When the database is installed, the system user Postgres is created automatically, database user Postgres, database postgres
Apt-get install PostgreSQL # Installing PostgreSQL database sudo passwd postgres # Modify Postgres password Su-postgres # Switch to Postgres user psql # login PostgreSQL database, first login without password \password postgres # Modify the password of the database user Postgres
PostgreSQL configuration See ~ ~ ~
Reference: http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html
Http://www.jianshu.com/p/b09d0b29faa9
5. Metasploit Connection PostgreSQL
Start Metasploit Execute command: Db_status view Connection Database status ~
6, running/etc/init.d/postgresql start database, in order to boot, it is recommended to write into the/etc/rc.local file:
# su [email protected]:/root$ psqlpostgres=# Create user "MSF" with password ' MSF ' nocreatedb;postgres=# CREATE DATABASE " Msfdb "with Owner=" MSF ";
To modify a database configuration file:
~ ~ ~ Install VIM ~~~~~~sudo Apt-get installed vim prior to trial VI
Edit database.ml:
Still not connected, rebuild the cache.
Db_connect Msf3:[email Protected]:5432/msfdb # MSF3 is the database user name, S1R1U5 is the database password, 5432 is the database port, and Msfdb is the database name ~
~~
19th Day Raspberry Pi 3b Installation kali linux~2016 September 29 13:37:29