X

Sorry :(

Our Image server is on a maintenance now,
You will not see the image correctly
please check back shortly. . .

Hacking Windows Using USB Stick + Social Engineering Toolkit

Hacking Windows Using USB Stick + Social Engineering Toolkit

Type : Tutorial

Level : Easy (especially if you've already read and practice this tutorial before)

If my previous tutorial about Adobe PDF escape EXE social engineering talking about sending malicious PDF via e-mail and then the victim execute the file, today we will learn about how if we attack the victim via USB?

As you know, USB was very famous and also very popular, maybe from 10 people 9 of them have USB stick for external storage or some people use it for transfer data from one to another computer. Maybe when you hear someone talk to another like this "Hey, can I copy the last picture we go together with class? here I give you my USB, please copy it inside" I think you should know what they doing :-)

Here in this tutorial we will not learn to copy and paste picture, but how to make someone open our malicious file inside our USB. Okay….let's start!

Requirements :

1. Metasploit Framework

2. Operating System Windows or Linux (In Backtrack 5, metasploit already included inside)

Step By Step :

1. Open your console/terminal (CTRL+ALT+T) and then change your working directory to /pentest/exploits/set.

cd /pentest/exploits/set

2. Run your Social Engineering Toolkit using ./set command.

Hacking Windows Using USB Stick + Social Engineering Toolkit

3. Choose number 3 Infectious Media Generator, and then for the next step you can choose File-Format Exploits because we won't use straight executables exploit.

Enter IP Address for Reverse Connection –> fill in with your IP Address(Attacker IP Address)

Hacking Windows Using USB Stick + Social Engineering Toolkit

4. Select the file format exploit you want :

Hacking Windows Using USB Stick + Social Engineering Toolkit

Actually you can choose what exploit you want to use, but in this case I'm using the default one number 11 "Adobe PDF EXE Social Engineering"

5. The next option is choose your PDF.

Hacking Windows Using USB Stick + Social Engineering Toolkit

If you have your own PDF it was better, maybe you can use something that interest another people curious to open it, in this case I'm using my PDF Algebra-Final-Exam.pdf because I think it was really interesting file name :-)

You also can leave this option blank to use blank PDF attack, but I think it's better to use your own PDF so you can measure your victim.

6. The next step you need to choose which payload you want to use. As usual I like to choose Meterpreter reverse TCP payload :-)

Hacking Windows Using USB Stick + Social Engineering Toolkit

7. Enter the port to conneck back on. In this step, I choose port 80 because port 80 was magic port that always allowed by firewall :-)

Hacking Windows Using USB Stick + Social Engineering Toolkit

There should be a question "Do you want to create a listener right now? [yes|no]" choose YES.

Open new console/terminal (CTRL+ALT+T) and check your file inside autorun folder(see picture below) :

Hacking Windows Using USB Stick + Social Engineering Toolkit

There's two file autorun.inf and template.pdf inside the folder. If you see the filename, it's not impossible the victim suspicious to that file because the name was really awful :-P .

8. Let's change a little bit the autorun.inf and template.pdf to make it more friendly :-)

Change your working directory to autorun folder

cd /pentest/exploits/set/autorun

9. Do the following command :

pico autorun.inf

10. Inside autorun.inf, change the template.pdf to your desired file name :

[autorun]
open=Algebra-Final-Exam.pdf
icon=autorun.ico

then press CTRL + O to save and CTRL + X to exit.

To rename the PDF into our desired filename, do the following command :

mv template.pdf Algebra-Final-Exam.pdf

It's finish now, and you should copy the content to your USB.

9. When the victim plug our malicious USB and the autorun working (view previous tutorial on step 5), we have their shell now :-)

Hacking Windows Using USB Stick + Social Engineering Toolkit

PWNED!

Countermeasure :

1. Use firewall to detect inbound or outbound traffic…(remember : antivirus is not enough)

2. If there's an error message, read it carefully.

3. Turn off your autorun/autoplay (see tutorial here how to do that).

Hope you enjoyed it! :-)

Vishnu Valentino

Computer Security, Blogger

Nothing Secure...

BANDUNG - INDONESIA

CHANGCHUN - CHINA


bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark
tabs-top

14 Comments »

  1. jouj Says:

    it's amazing tutorial  but is that will work on win 7 or vista ?i will try it now

    comment-bottom
  2. v4L Says:

    #jouj
    I’ve try in windows 7 sp1 it won’t work.maybe win 7 without sp 1 it works :-)
    If you want to try at win 7 sp1, maybe you can follow this tutorial hacking-windows-7-sp-1-using-java-signed-applet-social-engineering-code-execution

    comment-bottom
  3. Uncle Says:

    Say I want to  create a listener right now but use it later how would one go about doing so (because the victim isn't always online

    comment-bottom
  4. v4L Says:

    #Uncle
    You can create a backdoor then 5-steps-to-set-up-backdoor-after-successfully-compromising-target-using-backtrack-5 for future use.

    comment-bottom
  5. Uncle Says:

    Thanks I learned A LOT from your tutorials #Keep it up

    comment-bottom
  6. v4L Says:

    #Uncle
    You’re welcome :-)

    comment-bottom
  7. [...] Open Social Engineering Toolkit Console (Click here to view tutorial how to open SET step 1 and [...]

    comment-bottom
  8. bhushan Says:

    hii… how to use with dial up connection i get reply in local vmware os but cant being able to do outside my pc :(

    comment-bottom
  9. v4L Says:

    #bhushan
    yep of course it can’t because you didn’t have public ip…read the logic about attacking WAN here http://vishnuvalentino.com/computer/how-to-do-hacking-the-internet-wan-not-lan-using-metasploit-the-logic/

    comment-bottom
  10. bhushan Says:

    thanks dear for replying … i know about that :) but vpn and vos ares also not working anyways thanks i need a static ip i think :D

    comment-bottom
  11. v4L Says:

    #bhushan
    I don’t think so it’s not work, because on my vps mine work nice…maybe you should set up your payload to connect back to another port that allowed by victim firewall :-)

    comment-bottom
  12. versailles Says:

    what backtrack should i use ?
    backtrack 5 or backtrack 5 R1 ?
    which one is better ?
    thanks
    btw nice tutorial sir :D
     

    comment-bottom
  13. v4L Says:

    #versailles
    You can use both of them. :)

    comment-bottom
  14. [...] Sumber : vishnuvalentino.com [...]

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.