Pages: 1, 2
White Scorpion
Hi all,

I have just finished writing a basic backdoor for Windows NT/2000/XP.
the backdoor listens to port 31337 and spawns a commandshell when connected.
the backdoor makes itself automatically startup with Windows regardless of where you put it or how you might rename it.

it is open source and it is available at my site here (source is included in the zipfile).


**I'm not responsible for what you do with this program, i have written this program for people who are responsible and ethical, not for some crazy kiddie who thinks it is fun to take over (and destroy) someone's computer without the owners knowledge! **

for the rest,
have fun with it wink.gif

regards,


White Scorpion
ash^
Works great, well done cool.gif if you could set a default password that would be alot more usefull for everyone i think to keep control over remote computers ( computers at work/home/friends/etc ) but still very nice.
vnet576
White Scorpion, its a good post, just belongs in the windows section..not general security.
White Scorpion
QUOTE
White Scorpion, its a good post, just belongs in the windows section..not general security.

sorry about that wink.gif

as for the default password, i had it in there at first, but i decided it would be better to let the user decide for himself, buf if you want i will attach a version WITH password.

password is Access Granted

have fun with it wink.gif
Pro21
Why do not use the windows service library to start the backdoor ?
Put the backdoor in the registery run key is not very good tongue.gif but it s a new asm code smile.gif tongue.gif
White Scorpion
can you tell me more about the service library?

i don't think i ever heared of it before. all i can think for starting up are several registry keys, the autoexec.bat and the startup folder which each user has...
B3T4
nice work man, and already got it into ASM...thumbs up !

btw, when i download the file i get an AV warning by NOd32 (see attachment) but when i scan the zipfile it cant find anything...
White Scorpion
QUOTE(B3T4 @ Feb 9 2005, 06:37 AM)
nice work man, and already got it into ASM...thumbs up !

btw, when i download the file i get an AV warning by NOd32 (see attachment) but when i scan the zipfile it cant find anything...
*




can you try the download from my site here? it contains the same program but then without the password option.

I hope it was just a mistake and that my program still isn't discovered by AV since that would be a real bummer (just got it online since 12 hours ago)!.
B3T4
im sorry to say its also picked up there ph34r.gif
but when i scan backdoor.exe it is undetected !
White Scorpion
that really S*CKS!
glad i still have a personal version which i do not make public ;-)

perhaps it is time to pack the program so that it can be used again wink.gif

gimme 10 minutes and i will re-upload the non-password version with a simple encryption routine, try again then please biggrin.gif

[edit] will take a bit longer.... have a mysterious problem with the encryption... after encrypted program starts, put registry settings, spawns shell but then closes itself..... must have done something wrong... also i'm at work so haven't really got the time to figure it out sad.gif...

bjoernfun
My Av didnt find your tool. (McAfee 8.0 +W2k Sp4

The Version without Password works fine, i only reorgnised, that the backdoor uses many cpu time, when you connect to it.

The Password Version crashed, when i try to enter the password. Take a look a the picture.
By the way, reassembling works without any problem.


ScuD
thx mate gonna check it out smile.gif

and mod it a bit when i'm not glad with it tongue.gif

grtz
White Scorpion
QUOTE
The Password Version crashed, when i try to enter the password. Take a look a the picture.
By the way, reassembling works without any problem.
it doesn't crash.. if you enter the correct password you can continue, otherwise connection is closed... it was intended that way wink.gif

what did you mean by reorganizing, what did you change?
jead99
First of all i want to thank you for sharing the source, however i do have a question.

QUOTE
gimme 10 minutes and i will re-upload the non-password version with a simple encryption routine, try again then please


Just curious about what you're going to encrypt and why ?
White Scorpion
the code itself (pack it), and because it then won't be found by AV anymore.

IDESpinner has wrote a nice video tutorial about manual packing, read it if your interested ...
JonJon
very nice smile.gif liked your site also...

just to let you know.. there are a lot of AV guys hanging out around here that can get your backdoor detected in a couple of mins smile.gif
and when he said the service library i believe he meant Windows Services...
nolimit
QUOTE(White Scorpion @ Feb 9 2005, 11:31 AM)
can you tell me more about the service library?

i don't think i ever heared of it before. all i can think for starting up are several registry keys, the autoexec.bat and the startup folder which each user has...
*




The Windows Service Manager is the best way to run dedicated applications as it can run without a user logged in, and it attempts to keep the exe running even if it crashes etc.
I run all my applications using it, however because your code is in asm it might be a bit difficult to modify your application to accept Server Control Events. Anyways, Just start reading here and have a ball
http://msdn.microsoft.com/library/en-us/dl...e_functions.asp
bjoernfun
QUOTE(White Scorpion @ Feb 9 2005, 03:57 PM)
QUOTE
The Password Version crashed, when i try to enter the password. Take a look a the picture.
By the way, reassembling works without any problem.
it doesn't crash.. if you enter the correct password you can continue, otherwise connection is closed... it was intended that way wink.gif


I got no change to enter the pass correct smile.gif Afte i enter "A" the connection closed ...(see the picture)




White Scorpion
QUOTE
I got no change to enter the pass correct smile.gif Afte i enter "A" the connection closed ...(see the picture)
which OS are you running? i've tested the version that i have uploaded on windows 2000, XP and 2003 sever, works fine... please provide me with more details since then i might be able to solve your problem smile.gif

As for the service library, well i know i can start some App's as a service, but i am planning to add code to hook the API listing the registry keys. to make a long story short, i am working on code that can hide the registry key from being seen by regedit etc. this is why i choose for the registry.
SkitZZ
hey white scorpion nice work tongue.gif

just for the record tested the passworded backdoor on win 2000 sp4 and xp sp2 works just fine.


SkitZZ
White Scorpion
thanks for the info SkitZZ, i think he might be using Windows 98... and this can be a problem...
nolimit
QUOTE(White Scorpion @ Feb 10 2005, 06:41 AM)

As for the service library, well i know i can start some App's as a service, but i am planning to add code to hook the API listing the registry keys. to make a long story short, i am working on code that can hide the registry key from being seen by regedit etc. this is why i choose for the registry.
*



Why hook the registry key when it only starts when a user is logged in to the computer. this backdoor on server farms or any other environment in which the user isn't logged in is useless.

All you need to do really to make a service app work is get the function address of a function that handles the events, then pass it in the functions. It's actually probably not that hard even for asm.

Cheers
Pro21
Thx nolimit what can I add on service way ? nothing smile.gif
Hm With the service library you can set up directly the permissions on the service. So I think is the best way to start a backdoor but why do not add a function who start a new backdoor session when an user is logged on the system, like you can have the same rights that the user but it s little bit more difficult smile.gif

Good luck smile.gif
White Scorpion
those ideas are nice and perhaps a good idea for future backdoors (read more advanced), but i wanted to make this backdoor as simple as possible wink.gif

maybe soon i will release another which has more options and more power smile.gif

fulvioo
Looks great and simple. Perfect for people who wants to learn ASM from some code.

I changed some options I wanted here and it compiled just fine with masm32.

Since IDEspinner left some holes on his video tutorial (he did it for ppl don't get lazy and search for what is missing), and the code is pretty small as he used, we could make another manual packing tutorial example. What you think?
bjoernfun
QUOTE(White Scorpion @ Feb 10 2005, 06:41 AM)
QUOTE
I got no change to enter the pass correct smile.gif Afte i enter "A" the connection closed ...(see the picture)
which OS are you running? i've tested the version that i have uploaded on windows 2000, XP and 2003 sever, works fine... please provide me with more details since then i might be able to solve your problem smile.gif


windows 2000 Sp4 + current Patchlevel (08.02.05) + McAfee Enterprise Edition 8.0i
White Scorpion
QUOTE
Since IDEspinner left some holes on his video tutorial (he did it for ppl don't get lazy and search for what is missing), and the code is pretty small as he used, we could make another manual packing tutorial example. What you think?
i was already thinking about that, but i do not want the tutorial to look like the one from IDESpinner since he deserves credit for that tutorial, no one else wink.gif


Bjoernfun, can you try it while disabling mcAffee? i have no experience with mcAffee but i've heared several times that it can be a pain in the ass for some programs....

nicolas9510
well it looks good compiles fine but i get this error:
DNS fwd/rev mismatch: localhost != nicolas
localhost [127.0.0.1] 9510 (?): connection refused
sent 0, rcvd 0: NOTSOCK

didnt see anything about that in source any help?
searched forum didnt see anything
btw nice stuff white scorpion
setthesun
It's Great !

what do ou think about putting some comments for asm beginners ?
White Scorpion
QUOTE
well it looks good compiles fine but i get this error:
DNS fwd/rev mismatch: localhost != nicolas
localhost [127.0.0.1] 9510 (?): connection refused
sent 0, rcvd 0: NOTSOCK

didnt see anything about that in source any help?
searched forum didnt see anything
btw nice stuff white scorpion

my guess is you have a firewall which is a pain in the *ss. try disabling it. if that still doesn't work then i'd like to know more about your computers configuration smile.gif


i've almost finished a more powerful (more options) backdoor. this one does have a lot of comment in it. i will post it on the site when i've finished it smile.gif
nicolas9510
yup i think it was that
works like a charm smile.gif
nice work
realloader
Detected by Kaspersky!
untouchable
thanks a lot for the tool but F-secure detect him.... sad.gif

i've got a question...how can me connect locally to the backdoor ? with netcat?

nicolas9510
not detected by nod32
White Scorpion
well, appearently AV's are starting to recognize my tool. try packing it to stay undetected.

you can connect to it via netcat or telnet and if you want to connect to your own computer type:

C:\>telnet 127.0.0.1 31337

or

C:\>nc 127.0.0.1 31337

Bilby
QUOTE(bjoernfun @ Feb 10 2005, 05:42 AM)
QUOTE(White Scorpion @ Feb 9 2005, 03:57 PM)
QUOTE
The Password Version crashed, when i try to enter the password. Take a look a the picture.
By the way, reassembling works without any problem.
it doesn't crash.. if you enter the correct password you can continue, otherwise connection is closed... it was intended that way wink.gif


I got no change to enter the pass correct smile.gif Afte i enter "A" the connection closed ...(see the picture)
*




I get the exact same problem as soon as I type A it closes the connection. I'm running XP SP2 but I see that its been tested on that platform with SP2 so its got me beat...
SkitZZ
had to turn off kaspersky but it still works dont know why its not working for you unsure.gif

CODE
D:\>nc -v -n 127.0.0.1 31337
(UNKNOWN) [127.0.0.1] 31337 (?) open
Enter Password: Access Granted
Basic Backdoor - Written by White Scorpion (C) 2005
 *******  http://www.white-scorpion.nl  ********

Close CommandPrompt with 'exit' <enter>.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>exit

D:\>


SkitZZ
White Scorpion
i figured out what the problem is.
use netcat (nc) instead of telnet, this will solve it. telnet sends data one character at the time, while netcat waits until you press enter.

try nc and you will see you can login fine wink.gif

Bilby
QUOTE(White Scorpion @ Feb 16 2005, 06:43 AM)
i figured out what the problem is.
use netcat (nc) instead of telnet, this will solve it. telnet sends data one character at the time, while netcat waits until you press enter.

try nc and you will see you can login fine wink.gif
*




Thanks for the reply mate will start using nc to connect
cSb
Have you thought about using cryptcat?
I just wrote a loader program to ask for a password and then it loaded cmd.exe using netcat's "-e" command. It works fine with netcat, but cryptcat was giving me a lot of problems.
White Scorpion
QUOTE
Have you thought about using cryptcat?
I just wrote a loader program to ask for a password and then it loaded cmd.exe using netcat's "-e" command. It works fine with netcat, but cryptcat was giving me a lot of problems.
not directly, but i have thought about using encrypted traffic. but i'm still working on it.

TedOb1
real nice work White Scorpion.
fulsik
Works fine but it's abit buggy, e.g type dir c:\ lags abit but other than that it's ok, anyway to improve the lag would be nice. also an option to set port because my firewalls usually blockout most ports and i don't want to open
White Scorpion
i saw it had a problem with large directories... i've fixed that in the new version, but i don't think i will be releasing it soon...

here's the result of this backdoor: here.
although it is nice to see a part of my nick in there, i don't want my new backdoor to be detected like this.

i think the new one will be packed before i release it. btw, you can change the port very easily by reassembling it with masm32.

dw-chow
AVG will find it and pick it up as:

BackDoor.Small.6.BT

tried google to find that string, had 0 hits.
White Scorpion
i saw it, i did exactly the same ;-)

i've tried uploading it to http://virusscan.jotti.org/
but AVG already gave a complaint while trying to upload it...

but if you manage to upload it, AVG won't recognize it on that site....



illwill
invoke GetModuleFileNameA, 0, addr Dirbuff, 255
invoke GetShortPathNameA, addr Dirbuff, addr Dirbuff, 255
White Scorpion
QUOTE(illwill @ Feb 20 2005, 10:09 AM)
invoke GetModuleFileNameA, 0, addr Dirbuff, 255
    invoke GetShortPathNameA, addr Dirbuff, addr Dirbuff, 255
*



i don't get it, what do you want to say with it?

i used
CODE

.DATA?
CommandLine LPSTR ?

.CODE

invoke GetCommandLine
mov CommandLine,eax



gives exactly the same result....

i really don't get it blink.gif

CODE

.586
.model flat,stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc

includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib

.DATA

AppName     db "White Scorpion",0

.DATA?
CommandLine LPSTR ?
Dirbuff     db 255 dup (?)


.CODE

start:

invoke GetModuleFileNameA, 0, addr Dirbuff, 255
invoke MessageBox,NULL,addr Dirbuff,addr AppName,MB_OK

invoke GetShortPathNameA, addr Dirbuff, addr Dirbuff, 255
invoke MessageBox,NULL,addr Dirbuff,addr AppName,MB_OK

invoke GetCommandLine
mov CommandLine,eax
invoke MessageBox,NULL,CommandLine,addr AppName,MB_OK

invoke ExitProcess,0

end start
DumpZ
Well if i were you i would upload it to online virus scanners just install local an few AVs because i don't really trust those online things and i would be a shame to let and AV mess up your nice backdoor
illwill
if you notice the dir name is DOS 8.3 compatible , i thought thats what you needed , the dirs with no spaces
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.