tag:blogger.com,1999:blog-25010298.post115855205590314613..comments2009-05-05T19:27:20.326-07:00Comments on Metasploit: Metasploit 3.0 Automated Exploitationhdmhttp://www.blogger.com/profile/02163635320992069812noreply@blogger.comBlogger60125tag:blogger.com,1999:blog-25010298.post-48890871019504693722009-03-24T12:10:00.000-07:002009-03-24T12:10:00.000-07:00for the errors of postgres, you have to start the ...for the errors of postgres, you have to start the instance of postgres with other user (not root), then you can return to root; and when you load the db_postgres you have to use the command "db_create user:pass@host:port/db" and you have to put for user, the user that you use to start the instance of postgres and for the pass you can use anything, then the DB will work with no problemskikehttp://www.blogger.com/profile/05901193529979878192noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-54542507368171711822008-11-20T16:09:00.000-08:002008-11-20T16:09:00.000-08:00For people who use OS X: I had a lot of trouble g...For people who use OS X: I had a lot of trouble getting "gem install postgres" to work. If you're getting an error saying it can't find the libraries and whatnot, you have to install postgres-devel-82 (not exactly sure on the name, but its close). If you still get an error, set ARCHFLAGS and try again by doing a "sudo env ARCHFLAGS="-arch i386" gem install postgres". If that doesn't work, Google.<BR/><BR/>Got it working on a new MacBook Pro. Unfortunately, the XP VM I have loaded was completely patched, so no success with consoles.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-71974900592476788972008-10-18T18:25:00.000-07:002008-10-18T18:25:00.000-07:00Run 'sessions -l -v', it will show you what exploi...Run 'sessions -l -v', it will show you what exploit launched it.hdmhttp://www.blogger.com/profile/02163635320992069812noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-8830396885127062812008-10-18T17:52:00.000-07:002008-10-18T17:52:00.000-07:00every thing has been working great with the automa...every thing has been working great with the automated version of metasploit but i cant figure out which payload has worked out for me.<BR/>is thr any way i could find that outcallihttp://www.blogger.com/profile/00058151771887815635noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-77029904520983272792008-08-09T14:50:00.000-07:002008-08-09T14:50:00.000-07:00I usually get command shells except when I try to ...I usually get command shells except when I try to use them either:<BR/>1.) when I use the sessions -i 1 it automatically closes<BR/>2.) it's just a blank screen.<BR/><BR/>LOG:<BR/>msf exploit(ani_loadimage_chunksize) > sessions -l<BR/><BR/>Active sessions<BR/>===============<BR/><BR/> Id Description Tunnel <BR/> -- ----------- ------ <BR/> 2 Command shell 192.168.0.102:3690 -> 74.14.102.76:63294 <BR/> 3 Command shell 192.168.0.102:59389 -> 74.14.102.76:3690 <BR/> 4 Command shell 192.168.0.102:3690 -> 74.14.102.76:63296 <BR/> 5 Command shell 192.168.0.102:38573 -> 74.14.102.76:3690 <BR/><BR/>msf exploit(ani_loadimage_chunksize) > sessions -i 2<BR/>[*] Starting interaction with 2...<BR/><BR/>[*] Command shell session 2 closed.afallenhopehttp://www.blogger.com/profile/16234853162805525960noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-52868508011252489562007-12-18T08:23:00.000-08:002007-12-18T08:23:00.000-08:00I'am trying but it didn't work:db_create:Is the se...I'am trying but it didn't work:<BR/>db_create:<BR/>Is the server running locally and accepting<BR/> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?<BR/>psql: could not connect to server: No such file or directory<BR/> Is the server running locally and accepting<BR/> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?<BR/>[*] Database creation complete (check for errors)<BR/><BR/>Hope someone can help me..<BR/>best regardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-56250950132440819192007-12-11T01:46:00.000-08:002007-12-11T01:46:00.000-08:00I've been googling trying to find answers to the e...I've been googling trying to find answers to the error message I've been getting. I typed in the below commands on the console and it tells me that the metasploit3 database doesn't exist: <BR/><BR/><B><BR/>msf > load db_postgres<BR/>[*] Successfully loaded plugin: db_postgres<BR/>msf > db_create<BR/>FATAL: database "metasploit3" does not exist<BR/>psql: FATAL: database "metasploit3" does not exist<BR/>[*] Database creation complete (check for errors)<BR/></B>th3g33knoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-2581195550141967242007-10-25T12:53:00.000-07:002007-10-25T12:53:00.000-07:00seriously cool stuff this, many thanks to all you ...seriously cool stuff this, many thanks to all you involvedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-60230211701228464912007-10-14T14:44:00.000-07:002007-10-14T14:44:00.000-07:00Hi,when I executedb_nmap -p 445 192.168.2.0/24I ge...Hi,<BR/><BR/>when I execute<BR/>db_nmap -p 445 192.168.2.0/24<BR/><BR/>I get the following: <BR/><BR/>Error while running command db_nmap: FATAL C28000 Mno PostgreSQL user name specified in startup packet Fpostmaster.c L1528 RProcessStartupPacket<BR/>(nmap finishes fine, this message comes after)<BR/><BR/><BR/>db_create seems to work fine (tables are created)<BR/>I'm not quite sure about the ruby-postgres library as I get an error when I do this check :<BR/>ruby -e 'require "rubygems"; require_gem "postgres";'<BR/><BR/>Could you help if it's a database setting problem or something wrong with the ruby-postgres library installation ?<BR/><BR/>Thankstothakoshnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-20802352983105684642007-08-24T16:17:00.000-07:002007-08-24T16:17:00.000-07:00HD, I saw your "Tactical Exploitation" talk in Veg...HD, <BR/><BR/>I saw your "Tactical Exploitation" talk in Vegas earlier this month and attended the Q&A at Defcon 15. The demo of smb_relay was really eye opening. I really appreciate all the efforts of your team. The framework has really come a long way since I first started using it. <BR/><BR/>It was nice to see that you guys decided to bring it back the roots and educate some of the younger guys on the topic of "CREATIVITY". I'm certain that creativity alone is what differentiates script kiddies from security professionals.<BR/><BR/><B>Keep up the good work!</B>claudijdwww.jclaudius.netnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-68268875590858456222007-08-11T17:58:00.000-07:002007-08-11T17:58:00.000-07:00Is db_autopwn a Linux only feature? On the windows...Is db_autopwn a Linux only feature? On the windows app whenever it reaches the nmap step it says db_nmap is a unrecognized command. And I have nmap 4.20 already installed... answers would be greatly appreciatedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-72852942410768104182007-07-20T00:23:00.000-07:002007-07-20T00:23:00.000-07:00The postgres plugin loads successfully, however wh...The postgres plugin loads successfully, however when trying to db_create, it carries on running, please help <BR/><BR/><BR/>>> load db_postgres<BR/><BR/><BR/>[*] Successfully loaded plugin: db_postgres<BR/><BR/><BR/>>> db_create<BR/><BR/><BR/>[-] Error while running command db_create: No such file or directory - psql -q metasploit3<BR/><BR/>Call stack:<BR/>C:/Program Files/Metasploit/Framework3/framework/plugins/db_postgres.rb:119:in `popen'<BR/>C:/Program Files/Metasploit/Framework3/framework/plugins/db_postgres.rb:119:in `cmd_db_create'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/dispatcher_shell.rb:230:in `send'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/dispatcher_shell.rb:230:in `run_command'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'<BR/>C:/Program Files/Metasploit/Framework3/framework/lib/rex/ui/text/shell.rb:125:in `run'<BR/>./script/../config/../config/../../../lib/msf/ui/web/console.rb:63:in `initialize'<BR/>./script/../config/../config/../../../lib/msf/ui/web/console.rb:63:in `new'<BR/>./script/../config/../config/../../../lib/msf/ui/web/console.rb:63:in `initialize'<BR/>./script/../config/../config/../../../lib/msf/ui/web/driver.rb:62:in `new'<BR/>./script/../config/../config/../../../lib/msf/ui/web/driver.rb:62:in `create_console'<BR/>./script/../config/../app/controllers/console_controller.rb:15:in `index'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in `send'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in `perform_action_without_filters'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:632:in `call_filter'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/benchmark.rb:293:in `measure'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in `perform_action'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:430:in `send'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:430:in `process_without_filters'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:624:in `process_without_session_management_support'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/session_management.rb:114:in `process'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:330:in `process'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:41:in `dispatch'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:113:in `handle_dispatch'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:79:in `service'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:162:in `start'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:95:in `start'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:92:in `each'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:92:in `start'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:23:in `start'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/1.8/webrick/server.rb:82:in `start'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:63:in `dispatch'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/servers/webrick.rb:59<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:342:in `new_constants_in'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:39<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<BR/>C:/Program Files/Metasploit/Framework3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<BR/>./script/server:3<BR/>C:/Program Files/Metasploit/Framework3/framework/msfweb:82:in `load'<BR/>C:/Program Files/Metasploit/Framework3/framework/msfweb:82<BR/>(running)Amirhttp://www.blogger.com/profile/16733619495019813085noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-17815522550556471272007-07-19T11:10:00.000-07:002007-07-19T11:10:00.000-07:00>> db_import_nessus_nbe /scan[*] Could not read th...>> db_import_nessus_nbe /scan<BR/><BR/><BR/>[*] Could not read the NBE file<BR/>msf > <BR/><BR/>---------------------------------<BR/><BR/><BR/>Hello 2 all. Im having problems inporting a .nbe nesuss file, it reports it as unreadable??.<BR/><BR/>When i try and use the db_nmap this is what i get...<BR/><BR/><BR/>[*] Successfully loaded plugin: db_sqlite3<BR/><BR/><BR/>>> db_create<BR/><BR/><BR/>[*] Creating a new database instance...<BR/><BR/><BR/>>> db_nmap -135 192.168.1.2<BR/><BR/><BR/>help<BR/><BR/><BR/>[-] Unknown command: >>.<BR/>[-] Unknown command: [*].<BR/>[-] Unknown command: >>.<BR/>[-] Unknown command: [*].<BR/>[-] Unknown command: >>.<BR/><BR/>does anyone know how to solve this problem, or tell me where im going wrong. :(Amirhttp://www.blogger.com/profile/16733619495019813085noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-65458497481076899082007-07-04T00:23:00.000-07:002007-07-04T00:23:00.000-07:00I can't seem to get the postgres gem anywhere, whe...I can't seem to get the postgres gem anywhere, when i try to do gem install postgres i get the error Error fetching remote gem cache. Any other way I can get this gem installed? anyone have the actual .gem file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-71129068687104470002007-05-29T03:53:00.000-07:002007-05-29T03:53:00.000-07:00Ok...I have got to db_create and the errors appear...Ok...I have got to db_create and the errors appear like you said, but when I run the command db_hosts (or any other command) it returns "can't convert string into integer" with a bunch of garbage following. What could the problem be?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-6776869215137695822007-05-25T03:48:00.000-07:002007-05-25T03:48:00.000-07:00Grrr, once I get to the autopwn command I get"Erro...Grrr, once I get to the autopwn command I get<BR/>"Error while running command db_autopwn: no such file to load -- sqlite3"<BR/><BR/>What am I missing?Danielhttp://www.blogger.com/profile/02212941143490978289noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-46832726991074683702007-05-25T03:47:00.000-07:002007-05-25T03:47:00.000-07:00Grrrr, I keep getting a"Error while running comman...Grrrr, I keep getting a<BR/>"Error while running command db_autopwn: no such file to load -- sqlite3"<BR/><BR/>What am I missing?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-11744021861575157492007-04-12T19:03:00.000-07:002007-04-12T19:03:00.000-07:00Really very sorry man, been up all night, got the ...Really very sorry man, been up all night, got the flu and my back is out. Seriously like the last 15 things I've tried to get running on my system has given me nothing but greif, and my head just decided to blow up. I appreciate all the work you've done on here and will take a fresh look at it when I am feeling better. Again, sorry for being such a clueless asshole.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-17859836371922732992007-04-12T15:44:00.000-07:002007-04-12T15:44:00.000-07:00If you are looking for a ready-to-pwn version of M...If you are looking for a ready-to-pwn version of Metasploit 3 on Linux, try the <A HREF="http://remote-exploit.org/backtrack.html" REL="nofollow">BackTrack 2.0 Live CD</A>. The package system for Linux varies by distribution and no single installer from us would solve these problems for every Linux user.hdmhttp://www.blogger.com/profile/02163635320992069812noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-6103797736460694402007-04-12T15:36:00.000-07:002007-04-12T15:36:00.000-07:00First of all I'm REALLY starting to hate linux. I ...First of all I'm REALLY starting to hate linux. I love all the packages that are absolutely required for something to work, but they are not included as dependencies. I tried for about 3 facking hours to get posasql or whatever it's called running and never did, only to see someone say just use the ruby version of it. Great. Then, your highly detailed instructions just cease after the database part and you say read help. Wow, I went thru all this BS only to have you fizzle out on me and make me figure out what the hell is going on on my own. Come on people. Seriously, the linux package system sucks, if a program requires the dev package, why the FACK doesn't it install it automatically? You tell us to set up the database, then you say to create it from the mfs command line... Come on man, put the crack pipe down and follow through with your instructions thanks for your hard work and all, but it seems to be pretty damn pointless and a huge waste of my time to go against your own instructions like that. Thanks for telling me how to do only half of this and leaving me hanging, just FACKING perfect. Every single step was a pain in the FACKING ass and did not work without intense research and looking for random crazy packages that obviously you didn't know needed to be installed. I am so facking angry right now I am about to put my fist thru the monitor. Thanks for the god damn headacheAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-87480645667749087562007-03-29T17:10:00.000-07:002007-03-29T17:10:00.000-07:00...msf > db_hosts [-] Error while running command ......msf > db_hosts <BR/>[-] Error while running command db_hosts: FATAL C28000 Mno PostgreSQL user name specified in startup packet ...<BR/><BR/>Try to use "user:pass@host:port/db to" to command db (create, connect ...)<BR/>byeclozanoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-1894332596253549952007-02-28T13:40:00.000-08:002007-02-28T13:40:00.000-08:00good stuff in here, what i cannot understand is th...good stuff in here, what i cannot understand is that why the msf has a lot of exploits for win 2000 and xp sp1, and for sp2 a few, i am dissapointed, if someone know how to create new exploits please email me at ghost_jedi_mind@yahoo.com.thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-1169131632091745412007-01-18T06:47:00.000-08:002007-01-18T06:47:00.000-08:00I already setting up automated exploitation using ...I already setting up automated exploitation using Metasploit 3-beta with SQLite3 database backend on Cygwin environment.<BR/><BR/>Check out <A HREF="http://pushebp.blogspot.com/2007/01/using-metasploit-automated-exploit.html" REL="nofollow">Automated exploit using Metasploit with SQLite3 and Cygwin</A>.Lersakhttp://www.blogger.com/profile/15993359030768871997noreply@blogger.comtag:blogger.com,1999:blog-25010298.post-1168292613240984852007-01-08T13:43:00.000-08:002007-01-08T13:43:00.000-08:00I am also getting the following error as bamed sai...I am also getting the following error as bamed said.<BR/>Has anyone any idea about that???<BR/><BR/>msf > db_hosts <BR/>[-] Error while running command db_hosts: FATAL C28000 Mno PostgreSQL user name specified in startup packet Fpostmaster.c L1520 RProcessStartupPacketAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25010298.post-1168136997903165652007-01-06T18:29:00.000-08:002007-01-06T18:29:00.000-08:00In response to a previous post, mentioning a probl...In response to a previous post, mentioning a problem with the /tmp/.s.PGSQL.5432 file, I've seen the problem as well. From what I can tell, if you try to configure metasploit with postgresql under ubuntu, you will undoubtedly arrive at this error. The problem is not that there is no instance of postgresql running, but that the Ubuntu package stores the file at /var/run/postgresql/.s.PGSQL.5432. I haven't researched it further, but I should assume the solution would be to have postgresql store the file in /tmp. I cannot say whether this is a "bug" in postgresql, metasploit, or the ubuntu package. Probably just an oddity of the ubuntu package conflicting with where metasploit is searching for the file... but I could be way off. If anyone has the solution, me and the other guy are searching for answers. :P<BR/><BR/>Until then, I'll be running backtrack under vmware-player.Anonymousnoreply@blogger.com