Jump to content
tomyk

How to Use db_autopwn in Metasploit using PostgreSQL

Recommended Posts

The first thing we do is try to start postgres:

/etc/init.d/postgresql-8.3 start

type in the following line replacing ‘my password’ with your password you have chosen:

ALTER USER postgres WITH PASSWORD 'my password';

Then issue the quit command: \q

Next issue the following 2 commands:

sudo passwd -d postgres
sudo su postgres -c passwd

Now we just need to start msfconsole and connect to our database:

cd /opt/metasploit3/msf3
./msfconsole
db_driver postgresql
db_connect postgres:"my password"@127.0.0.1/metasploitdb

No every time you start metasploit simply load the driver and connect to the database:

Edited by tomyk
Link to comment
Share on other sites

Scuze daca gresesc, dar chestia asta a fost si la sickness pe blog(cred).... Si nici macar nu mai este postgressql in Backtrack 5; trebuie sa il pui tu... si parca nici nu mai merge metasploti pentru postgresql(nu mai este in db_driver)... deci e useless tutorialul, si daca tot l-ai pus, macar puteai sa il pui frumos... nu sa dai copy-paste si sa il lasi asa in paragina... :|

Link to comment
Share on other sites

bai baiatule din cate stiu in metasploit este numai postgres asa ca daca nu stii ce vorbesti taci dracu din gura si nu inteleg ce paragina nu stii sa citesti sau ce?si nici macar nu am dat copy paste ca daca dadeam te bagam in ceata pentru ca era pentru alta problema fara driver in metasploit si ti-l stricai aiurea

Edited by tomyk
Link to comment
Share on other sites

Scuze de greseala facuta in postul meu anterior, driverul deprecat care credeam ca este postgresql este de fapt sqlite3 din cate vad... Acum postgresql este default driver, dar din cate vad, mysql este mai folosit si este mai eficient. Nu trebuie sa vorbesti urat(chiar daca iti este permis), am facut doar niste observatii, si serios, acum ca tot te bagi in seama, curata si tu un pic postul tau, ca e aiurea rau de tot...

Si uite si postul lui Sickness pe aceeasi tema... cel putin la el arata mai bine decat... "tutorialul" tau :)

Metasploit db_autopwn using PostgreSQL

Link to comment
Share on other sites

Poate e just in my head, dar cred ca esti cam frustrat din nu stiu ce motiv... Cel mai rau gand al meu asupra ta era sa iti cer sa postezi sursa de unde ai dat copy paste. M-am inselat in privinta acestui lucru, si rectific tot ce am spus si te-a facut sa te simti jignit. Acum serios vorbind, fa si tu mai frumos postul, pana la urma e un tutorial.... :)

Edit: e ca arata mai bine acum? :)

Edited by adonisslanic
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...