sebenernya kita bisa sih langsung connect pake database punya user postgres dengan memodifikasi file /opt/metasploit/config/database.yml pake detail user postgres yang ada di /opt/metasploit/properties.ini
tapi biar afdol aja metasploit kok connectnya ke database postgres kudunya msf3 dong
STEPS:
Code:
root@bt:~# cd /opt/metasploit/postgresql/bin/ root@bt:/opt/metasploit/postgresql/bin# ./createuser -PE msf3 Enter password for new role: (password msf3) Enter it again: (password msf3) Shall the new role be a superuser? (y/n) y Password: (password postgres) root@bt:/opt/metasploit/postgresql/bin# ./createdb --host=localhost --port=7337 --user=msf3 msf3dev Password: (password msf3)
*)Untuk password msf3 & password postgres bisa diliat di: /opt/metasploit/properties.ini
kalo pengen liat user sama database yang udah dibikin
Code:
root@bt:/opt/metasploit/postgresql/bin# su postgres psql
Password: (password postgres)
psql.bin (8.4.0)
Type "help" for help.
postgres=# \du
postgres=# \l
Tidak ada komentar:
Posting Komentar