Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 29 guests and 1 member online
 
Advertisement

You are here: Home arrow Columnsarrow Gatesarrow [Article]-Video: Client-Sides, Social Engineering and Metasploit, Oh My!
EH-Net
May 19, 2013, 02:38:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: [Article]-Video: Client-Sides, Social Engineering and Metasploit, Oh My!  (Read 25555 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4165


Editor-In-Chief


View Profile WWW
« on: February 02, 2009, 05:30:39 PM »

More hacking goodness from Mr. Gates!!

Permanent link: [Article]-Video: Client-Side, Social Engineering and Metasploit, Oh My!

Quote



By Chris Gates, CISSP, GCIH, C|EH, CPTS

It should be obvious to everyone that the bad guys are moving away from network level attacks and moving toward social engineering coupled with client-side attacks. In fact, this is the focus of the next ChicagoCon in May, where I will be presenting this exact topic live. Penetration testers need to be able to help an organization detect and respond to client-side attacks, and what better way to do that than to do a little client side exploitation during your pentests.

A new mixin has been added to the Metasploit Framework that allows the penetration tester to create and output the files that contain the exploit code instead of just serving up the exploit on a web page.  This increases the attack surface by allowing the pentester to perform their Open Source Intelligence (OSINT) gathering to collect email addresses for the target domain. We then take those addresses and actually send the exploit to the victim as an attachment in the email versus a link to a website.  Your mileage may very on the effectiveness of that technique, but in my experience people seem to be more apt to open attachments of "normal" or "non-malicious" type like .pdf and .html rather than clicking on links. Some example formats that can be used with the fileformat mixin are .pdf, .html, .cab, .m3u, .xpm,  as well as others.


**This isn't to say that some fileformat exploits can't be delivered via the web.  You can easily link to www.evil.com/evil.pdf, but some lend themselves to easier exploitation if you can get the file into a user's inbox. So let's take a quick look at how this can be accomplished.


Don
« Last Edit: February 04, 2009, 11:38:13 AM by don » Logged

CISSP, MCSE, CSTA, Security+ SME
apollo
Full Member
***
Offline Offline

Posts: 146


View Profile WWW
« Reply #1 on: February 02, 2009, 08:36:40 PM »

Great examples and video Smiley  I was playing with this stuff the other day with the office macros in Metasploit.  It seemed to be quite effective.  It's amazing what folks will click on with a good backstory.
Logged

CISSP, CSSLP, MCSE+Security, MCTS, CCSP, GPEN, GWAPT, GCWN, NOP, OSCP, Security+
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #2 on: February 03, 2009, 08:55:44 AM »

Nice work Chris, thanks Cheesy

(looks like the vimeo link has gone walkies though...)
Logged

xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #3 on: February 03, 2009, 02:23:29 PM »

Like your other videos as well as this one, I've got to say nice work. It's a good thing Metasploit has broadened its horizons and incorporated the use of fileformat exploits. I'd sure like your trunk by the way, 327 Exploits I only have 288 (I think...)
Logged

eCPPT, GCIH, OSCP, OSWP
LSOChris
Guest
« Reply #4 on: February 03, 2009, 02:55:09 PM »

thanks guys!

I'll be releasing a few more client-side/fileformat videos in March as part of my client-side talk at SOURCE Boston, I'll make sure i post on EH.net when i do.
Logged
mtgarden
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #5 on: February 11, 2009, 11:42:21 AM »

Is it possible for metasploit to tie this to a current PDF?  In other words, can I use a pdf I have and add this exploit onto it?  At least, where would I start looking for that information?
Logged
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #6 on: February 11, 2009, 11:59:41 AM »

You mean like binding the PDF with an existing PDF? I'm thinking that you can, but what would be the point, once the malicious pdf opens, doesn't it just freeze up anyway?
Logged

eCPPT, GCIH, OSCP, OSWP
mtgarden
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #7 on: February 11, 2009, 12:00:47 PM »

Not sure.  Was in the process of setting up a test environment to explore this threat vector.
Logged
LSOChris
Guest
« Reply #8 on: February 11, 2009, 02:10:46 PM »

Is it possible for metasploit to tie this to a current PDF?  In other words, can I use a pdf I have and add this exploit onto it?  At least, where would I start looking for that information?

not currently that i am aware of
« Last Edit: February 12, 2009, 09:43:05 AM by ChrisG » Logged
mtgarden
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #9 on: February 11, 2009, 02:47:02 PM »

Thanks. I was testing this for a presentation but Symantec actually catches it.  So, am trying the vbscript attack. 

Sadly, there is a quirk with either Metasploit or BT3.  Not sure which yet.  When I run the /msfcli multi/handler PAYLOAD=<payload> LHOST=<IP> etc..., it runs the exploit and binds to IP=0.0.0.0 which is less than helpful. 

Heh, I guess there was no reason to assume this would be that easy.   Grin
Logged
dean
Guest
« Reply #10 on: February 11, 2009, 03:08:45 PM »

make sure that the IP you're listening on is the one you add as LHOST and is actually active.

for example:

msf exploit(handler) > set LHOST 192.168.1.1
LHOST => 192.168.1.1
msf exploit(handler) > exploit

  • Handler binding to LHOST 192.168.1.1
  • [-] Bind failed on 192.168.1.1
  • Handler binding to LHOST 0.0.0.0
  • Started reverse handler
  • Starting the payload handler...
^C[-] Exploit failed:
  • Exploit completed, but no session was created.
msf exploit(handler) > set LHOST 10.10.10.15
LHOST => 10.10.10.15
msf exploit(handler) > exploit

  • Handler binding to LHOST 10.10.10.15
  • Started reverse handler
  • Starting the payload handler...

tested with 3.3-dev
Logged
mtgarden
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #11 on: February 11, 2009, 03:24:47 PM »

Well, my VM has an IP of 192.168.1.1.  So I added LHOST=192.168.1.1 to the exploit.

Then when running ./msfcli multi/handler PAYLOAD=windows/vncinject/reverse_tcp LHOST=192.168.1.1 DisableCourtesyShell=True E

It doesn't give me a "bind failed" error, it just binds to 0.0.0.0.

This happens in a BT3 VM and on a BT3 laptop install.  Would I look for the error/problem in BT3 or in Metasploit 3.2?
Logged
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #12 on: February 11, 2009, 03:55:57 PM »

Mine also binds to 0.0.0.0 as well but when testing this out. I created a malicious .exe using msfpayload. This was going to be a reverse meterpreter .exe that would shovel back a shell to a port on my box. So I set my LHOST similar to you when using exploit/multi/multi_handler and keyed exploit on my msfconsole, it said 0.0.0.0 however once i executed my .exe i recieved my reverse shell.
Logged

eCPPT, GCIH, OSCP, OSWP
mtgarden
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #13 on: February 12, 2009, 06:56:36 AM »

OK.  Then the problem lies in my malicious VB script.  Will have to figure out how to fix that one.

Thanks.
Logged
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4165


Editor-In-Chief


View Profile WWW
« Reply #14 on: February 17, 2009, 12:28:37 PM »

Submitted to digg. Click the link below and vote:

http://digg.com/security/Video_Client_Sides_Social_Engineering_Metasploit_Oh_My

Please help spread the word,
Don
Logged

CISSP, MCSE, CSTA, Security+ SME
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.061 seconds with 24 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.