<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hak5 - Technolust since 2005 &#187; Darren Kitchen</title>
	<atom:link href="http://Hak5.org/author/administrator-2/feed" rel="self" type="application/rss+xml" />
	<link>http://Hak5.org</link>
	<description>Trust Your Technolust</description>
	<lastBuildDate>Thu, 17 May 2012 20:49:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Hak 1113 &#8211; Persistent SSH tunnels for Windows and Linux, Local vs Remote forwards and more</title>
		<link>http://Hak5.org/episodes/hak5-1113</link>
		<comments>http://Hak5.org/episodes/hak5-1113#comments</comments>
		<pubDate>Thu, 17 May 2012 20:49:56 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[Season 11]]></category>
		<category><![CDATA[apache over ssh]]></category>
		<category><![CDATA[autossh]]></category>
		<category><![CDATA[clientalivemaxcount]]></category>
		<category><![CDATA[keepalive]]></category>
		<category><![CDATA[key authentication]]></category>
		<category><![CDATA[key pair]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[local forward]]></category>
		<category><![CDATA[myentunnel]]></category>
		<category><![CDATA[persistent ssh]]></category>
		<category><![CDATA[persistent tunnel]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[public key crypto]]></category>
		<category><![CDATA[public key cryptography]]></category>
		<category><![CDATA[remote forward]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socks5]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh key pair]]></category>
		<category><![CDATA[tunne]]></category>
		<category><![CDATA[vnc over ssh]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=4793</guid>
		<description><![CDATA[<iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PLD226EA9BF23748D1&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=transparent" frameborder="0" allowfullscreen></iframe>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1113"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1113&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
This time on the show, Local and Remote forwarding with SSH, Persistent connections in Linux with AutoSSH, Windows tunnels that don't quit with a GUI front-end for Plink and a whole lot of technolust. All that and more, this time on Hak5!
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1113/hak5--1113--persistent-ssh-tunnels-for-windows-and-linux--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1113/hak5--1113--persistent-ssh-tunnels-for-windows-and-linux--large.h264.mp4">Download MP4</a><br />
<span id="more-4793"></span> </p>
<div align="center"><iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PLD226EA9BF23748D1&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=Opaque" frameborder="0" allowfullscreen></iframe></div>
<p><b>SSH Remote Forwarding: Relay local apache server through tunnel</b></p>
<blockquote><pre>
# install apache server
darren@dk10$ sudo apt-get install apache2
# browse to http://localhost
# Relay port 8080 on remote host to 80 on local host
darren@dk10$ ssh -R 8080:localhost:80 aardwolf@relay.wifipineapple.com
# browse to http://relay.wifipineapple.com:8080
</pre>
</blockquote>
<p><b>SSH Local Forward: Relay remote VNC server through tunnel</b></p>
<blockquote><pre>
# install vnc client
darren@dk10$ sudo apt-get install vncviewer
# vnc to server without SSH (bad idea)
darren@dk10$ vncviewer rrs5204q6n.hak5.org:1
# setup SSH local forward
darren@dk10$ ssh -L 5901:localhost:5901 aardwolf@rrs5204q6n.hak5.org
# vnc to server through ssh tunnel
darren@dk10$ vncviewer localhost:1
</pre>
</blockquote>
<p><b>Maintaining Persistent SSH tunnels in Linux</b></p>
<p>AutoSSH is a simple and effective utility for monitoring and maintaining persistent SSH connections, restarting the session as necessary. It can be downloaded from  <a href="http://www.harding.motd.ca/autossh/" target="_blank">http://www.harding.motd.ca/autossh/</a> and is available for most *nix platforms. On Ubuntu:</p>
<blockquote><pre>
# Install autossh
darren@dk10$ sudo apt-get install -y autossh
# The autossh -M option specifies which port to monitor the connection from
# The -N option is a regular openssh parameter which is passed from autossh to ssh, specifying that there is no remote command to execute.
# The & tells the shell, bash in our example, to run the command in the background.
darren@dk10$ autossh -M 20000 -N aardwolf@relay.wifipineapple.com &
# To find the process ID where autossh is running
darren@dk10$ pidof autossh
# And finally to stop autossh
darren@dk10$ kill `pidof autossh`
</pre>
</blockquote>
<p><b>Maintaining Persistent SSH tunnels in Linux</b></p>
<ul>
<li>First of all we need to cover Plink. Short for Putty Link, the plink utility is the command-line equivalent to Putty on Windows. We'll be using this today along with another to in order to keep an SSH tunnel persistent.
<li>Here's an example of a plink SSH tunnel. We start by launching pageant and entering our passphrase. Now that our private key is in memory we can use plink to start an SSH tunnel from the command line.
<li>So open up CMD, navigate to where your plink utility is. For me that's by running "cd putty"
<li>Now run plink.exe -- you'll be greeted by a whole list of options for this command line utility.
<li>To start a simple Dynamic SOCKS proxy I'll enter:
<li>plink -D 8080 snubsie@peanut.hak5.org -agent
<li>The -D says make it a Dynamic SOCKS proxy on my local port 8080 and the -agent says to use pageant for the private key file.
<li>And there we go, a command to start our SOCKS proxy for all our tunneling enjoyment. Of course if the SSH connection is dropped we'll be all sad pants -- especially if we're using the tunnel to watch the BBC or something.
<li>And while autossh *is* available for Windows, sort of, it isn't exactly the easiest to setup. AutoSSH, the Linux program, can be run in Windows using Cygwin -- a Linux environment for Windows. If that suits your fancy, have at it. There's a decent <a href="http://www.matthanger.net/2008/04/creating-persistent-ssh-tunnels-in.html" target="_blank">tutorial for setting that up</a>.
<li>That said I'm more interested in using native Windows programs. Thankfully a similar setup to autossh can be achieved using plink with the help of a little utility called MyEnTunnel.
<li>Short for My Encrypted Tunnel, MyEnTunnel is a windows utility that lives in the system tray, or can be run as an NT service in the background, that quietly watches Plink sessions and restarts them as necessary.
<li>MyEnTunnel is available from http://nemesis2.qx.net/pages/MyEnTunnel as freeware.
</ul>

]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/hak5-1113/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hak5 1110 &#8211; SSH Public Key Fingerprints, Windows SSH Servers and Linux Key Pair Exchange</title>
		<link>http://Hak5.org/episodes/hak5-1110</link>
		<comments>http://Hak5.org/episodes/hak5-1110#comments</comments>
		<pubDate>Thu, 26 Apr 2012 22:09:10 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[Season 11]]></category>
		<category><![CDATA[asymmetric key cryptography]]></category>
		<category><![CDATA[authorized_keys]]></category>
		<category><![CDATA[authorized_keys2]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[key authentication]]></category>
		<category><![CDATA[key based authentication]]></category>
		<category><![CDATA[key fingerprint]]></category>
		<category><![CDATA[key pair]]></category>
		<category><![CDATA[known_hosts]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[pageant]]></category>
		<category><![CDATA[pgp]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[protocol layer]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[public key crypto]]></category>
		<category><![CDATA[public key cryptography]]></category>
		<category><![CDATA[putty key]]></category>
		<category><![CDATA[puttygen]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socks5]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh key pair]]></category>
		<category><![CDATA[ssh protocol]]></category>
		<category><![CDATA[sshd_config]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=4760</guid>
		<description><![CDATA[<iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PL89CFD14144F45625&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=transparent" frameborder="0" allowfullscreen></iframe>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1110"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1110&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
Continuing with Proxies, SOCKS5 and SSH, Darren and Shannon cover SSH Public Key Fingerprints, then build a free Windows SSH Server and configure Key Pairs for a Linux client.
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1110/hak5--1110--how-to-do-the-win-ssh-dance--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1110/hak5--1110--how-to-do-the-win-ssh-dance--large.h264.mp4">Download MP4</a><br />
<span id="more-4760"></span> </p>
<div align="center"><iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PL89CFD14144F45625&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=Opaque" frameborder="0" allowfullscreen></iframe></div>
<p><b>SSH Public Key Fingerprints and known_hosts</b></p>
<p>Typical SSH Servers user 128-bit MD5 hashes as <a href="http://en.wikipedia.org/wiki/Public_key_fingerprint" target="_blank">Public Key Fingerprints</a>. These are used to verify the authenticity of a server. These key fingerprints are short sequences of bytes used to authenticate a much longer public key. Like we discussed last week regarding key pairs for user authentication, SSH servers have key pairs for server authentication. </p>
<p>On a Linux OpenSSH server for example these key pairs will be found in /etc/ssh/*key*. The public keys will be world readable while the private keys can only be read by a superuser. </p>
<p>On a Linux client for example the key fingerprints of remembered servers are stored in ~/.ssh/known_hosts. Since SSH version 4 the username and hostnames associated with these servers are hashed.</p>
<p>To remotely verify the key fingerprint of an SSH server</p>
<blockquote><pre>
ssh-keyscan -t rsa,dsa REMOTEHOSTNAME > /tmp/ssh_host_rsa_dsa_key.pub
ssh-keygen -l -f /tmp/ssh_host_rsa_dsa_key.pub
</pre>
</blockquote>
<p>Alternatively, on the remote server the key fingerprints can be found by:</p>
<blockquote><pre>
cd /etc/ssh
ls *key*
cat ssh_host_key # this is the private key
# permission will be denied if not superuser
cat ssh_host_key.pub # this is the public key
ssh-keygen -lf ssh_host_rsa_key.pub
# field 1 = bit length of key
# field 2 = fingerprint of key
# field 3 = name of key
</pre>
</blockquote>
<p><b>Setting up a Windows SSH Server with Bitvise (+ A few other software recommendations)</b></p>
<p>Setting up the SSH Server Windows Using BitVise WinSSHd</p>
<ul>
<li>Download BitVise</p>
<li>Creating a server on laptop or pc at home...
<li>Auto config router (UPnP) - BAD!! No Universal Plug-n-Play
<li>Open Port to Any Computer
<li>Uncheck 'Allow Any Logon', Click add.
<li>Enter Username - Run 'whoami' from CMD to find out your username.
<li>Want to add account for a friend? Do a virtual account.</ul>
<p><b>SSH Servers for Windows</b></p>
<p>FreeSSHd - http://www.freesshd.com/</p>
<ul>
<li>Nice but lacks advanced security controls. The server starts<br />
sessions with security in the context of the service itself, meaning<br />
since it needs to be run as administrator or system those are the<br />
privileges available to the users.</p>
<li>Not open source so it can't be vetted, improved upon by the community
<li>Hasn't been updated since 2009
<li>Difficult to get working on Windows 7
<li>Free and easy to setup</ul>
<p>Bitvise WinSSHD - http://www.bitvise.com/winsshd</p>
<ul>
<li>Free for non-commercial / personal use</p>
<li>License costs $100, unlocks Active Directory feature for enterprises
<li>Easy to install and update, nice GUI
<li>Supports Active Directory, Kerberos or it's own user database
<li>Works fine in Windows 7
<li>Supports AES 128 and 256 bit encryption
<li>Not open source so it can't be vetted, improved upon by the community
<li>Can be configured to use Power Shell instead of CMD as the default<br />
shell for users</p>
<li>Supports OpenSSH public key files
<li>Configure account and group permissions per IP and DNS
<li>Automation API, logging</ul>
<p>OpenSSH for Windows - SSHWindows.sf.net</p>
<ul>
<li>Free, open source implementation of OpenSSH with Cygwin</p>
<li>Hasn't been updated since 2004
<li>Enough said</ul>
<p>Copssh - https://www.itefix.no/i2/copssh</p>
<ul>
<li>Package of portable OpenSSH for Cygwin</p>
<li>GUI for administartion</ul>
<p>KpyM SSH Server - http://www.kpym.com/2/kpym/index.htm</p>
<ul>
<li>Free, open source</p>
<li>Uses Windows identification (Windows user accounts)
<li>Automated install and setup
<li>Nag screen. Single license is $35</ul>
<p><b>Setting up Key Pair Authentication in Linux with OpenSSH</b></p>
<p>On the remote host:</p>
<blockquote><pre>
mkdir .ssh
chmod 700 .ssh
cd .ssh
</pre>
</blockquote>
<p>On the local host:</p>
<blockquote><pre>
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub user@host:.ssh/authorized_keys2
</pre>
</blockquote>
<p>Back on the remote host:</p>
<blockquote><pre>
ls -la authorized_keys2
chmod 600 authorized_keys2
exit
</pre>
</blockquote>
<p>On the local host:</p>
<blockquote><pre>
ssh user@host
</pre>
</blockquote>
<p><b>Bonus: Transfer SSH public keys from one machine to another</b></p>
<p>Now that we've done it the long way, let's take a moment to appreciate a convenient shortcut -- ssh-copy-id.</p>
<pre>
<blockquote>
ssh-keygen; ssh-copy-id user@host; ssh user@host
</pre>
</blockquote>

]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/hak5-1110/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hak5 1109 &#8211;  Proxies, Linux SSH Servers, Windows Clients &amp; Public Keys</title>
		<link>http://Hak5.org/episodes/hak5-1109</link>
		<comments>http://Hak5.org/episodes/hak5-1109#comments</comments>
		<pubDate>Sat, 21 Apr 2012 20:29:00 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[Season 11]]></category>
		<category><![CDATA[asymmetric key cryptography]]></category>
		<category><![CDATA[authorized_keys]]></category>
		<category><![CDATA[authorized_keys2]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[key authentication]]></category>
		<category><![CDATA[key based authentication]]></category>
		<category><![CDATA[key pair]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[pageant]]></category>
		<category><![CDATA[pgp]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[protocol layer]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[public key crypto]]></category>
		<category><![CDATA[public key cryptography]]></category>
		<category><![CDATA[putty key]]></category>
		<category><![CDATA[puttygen]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socks5]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh key pair]]></category>
		<category><![CDATA[ssh protocol]]></category>
		<category><![CDATA[sshd_config]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=4745</guid>
		<description><![CDATA[<iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PL75E623B81DFC9AFB&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=transparent" frameborder="0" allowfullscreen></iframe>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1109"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1109&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
Building on top of last week's episode on Proxies, SOCKS5 and SSH we're covering Authentication via Public Key Cryptography, setting up an SSH server in Linux and properly configuring a client in Windows.
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1109/hak5--1109--public-keys-proxies-ssh-servers--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1109/hak5--1109--public-keys-proxies-ssh-servers--large.h264.mp4">Download MP4</a><br />
<span id="more-4745"></span> </p>
<div align="center"><iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PL75E623B81DFC9AFB&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=Opaque" frameborder="0" allowfullscreen></iframe></div>
<b>Breaking down SSH-2 Protocol Layers</b></p>
<p>Before getting into public key crypto we should first take a moment to gather a basic understanding of the SSH-2 protocol layers. In a nutshell the three layers of SSH-2 are:</p>
<p>The first is the Transport Layer. This layer is responsible for handling key exchanges, the servers authenticity (server authentication), compression, encryption and re-keying (typically after 1 GB of traffic or 1 Hour have elapsed). We'll get into more detail on this next week when we focus on key fingerprints.</p>
<p>Second is the User Authentication Layer, which handles client authentication, or authentication of the user trying to log-in. This process is client driven, meaning that the connecting client chooses which method they would like to authenticate with. Accepted methods vary by server but typically these include: </p>
<ul>
<li>Password Authentication - we used this last week by interactively typing in our password at the prompt when logging in</p>
<li>Public Key - this is the method we'll be using today and going forward
<li>Keyboard Interactive - a process that can be used for one-time-passwords.
<li>GSSAPI (Generic Security Services Application Programming Interface) - this is actually a library used by commercial vendors, usually to implement single-sign-on services in enterprises and integrating with existing security services such as NTLM or Kerberos.
</ul>
<p>Finally there is the Connection Layer. This layer defines the channels, or asymmetric communications supported by SSH, including:</p>
<ul>
<li>Shell Channel for Shells, SFTP, SCP</li>
<li>Direct-TCP/IP Channel for Client-to-Server forwards
<li>Forwarded-TCP/IP Channel for Server-to-Client forwards
</ul>
<p><b>Understanding Public Key Cryptography</b></p>
<p>Authentication via Asymmetric Key Cryptography (aka Public Key Crypto) is the method for generating a key pair -- both public and private (aka secret) -- and publishing one or the other in order to initiate secure communication. In our example we'll be protecting our private key on the client while publishing the public key on the SSH server. With this setup anything encrypted with the public key can be decrypted with our own private key. The oversimplification of this is that the key pairs are linked mathmatically allowing for encryption with the public key and decryption with the private key. The idea is that it's impractical to figure out the private key based on only knowledge of the public key. This is the basis for SSL, PGP, GPG, Bitcoin and many other protocols.</p>
<p>SSH-2 supports at least two methods for Public Key authentication</p>
<ul>
<li>RSA Key Pairs, which are named after creators Rivest, Shamir and Adleman and published in 1978 is an algorithm based on the difficulty of factoring large integers. Again the oversimplification is that the public key is based on the product of two large primes (along with an aux value) and the private key is derived from prime factors used to create the public key.</p>
<li>DSA Key Pairs, or Digital Signature Algorithm, have been a Federal Information Processing Standard since 1993. Originally pantented by former NSA employee David Kravitz this technology is now freely available for anyone to use worldwide.
</ul>
<p><b>Setting up a Linux OpenSSH Server</b><br />
On a Debian based Linux machine setting up ssh can be as simple as issuing "sudo apt-get install ssh". In this segment Darren goes over some of the configuration lines you would find useful to modify in /etc/ssh/sshd_config.</p>
<blockquote><pre>
AllowTcpForwarding yes
GatewayPorts       yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      %h/.ssh/authorized_keys
AllowUsers bob alice
PermitRootLogin no
Protocol 2
Port 222
LoginGraceTime 1m
ListenAddress
ClientAliveInterval 60
ClientAliveCountMax 0
</pre>
</blockquote>
<p>Be sure to restart the SSH deamon after editing the configuration. stop ssh;start ssh;service ssh restart;/etc/init.d/ssh restart #one of these should do it! :)</p>
<p><b>SSH Key Authentication On Windows with Putty for a Linux Server</b></p>
<p>This'll create key pair- an authorization to log on to server for authentication. Begin by downloading the Putty KeyGen tool. Click Generate and move mouse to generate key pair, and save both. Now open the server via Putty. </p>
<p>On the server go ahead and create a user if you haven't already done so. Typically this is achieved using the "adduser username" then "passwd username" commands.</p>
<p>Now, while logged in as your user, make a directory called .ssh in the your home. For example "mkdir ~/.ssh"</p>
<p>You'll want to change the mode to 700 so that only you have access to it. In the world of Unix there are 3 levels of permissions for files and directories. The Owner, Groups and World (everyone). The first 10 characters are the file's attributes. The first character represents what type of file it is. If it's a dash (-) it's a regular file. A (d) represents a directory, and there are a few others for special stuff like symbolic links. The next 9 characters specify the Read (r), Write (w) and Execute (x) permissions for the file's Owner, Groups and World (everyone). Change the mode of the directory with "chmod 700 .ssh/" The "chmod" command stands for Change Mode and allows you to easily modify a file or directory's permissions. Chmod will accept an octal representation of the modes. We're not going to get into them all but in this case 700 changes the file to be Readable, Writeable and Executable by the file's Owner, and nothing else for any Groups and the World.</p>
<p>Next change to the newly created directory with "cd .ssh" and create a file called authorized_keys2 with the public key on one line saved in file. Add ""ssh-rsa "" to the beginning.</p>
<p>Finally you'll want to again change the mode of the file so that only you can read and write to it. In this case the command would be "chmod 600 authorized_key2".</p>
<p>Now back on the Windows machine ppen pageant.exe and select 'add key'. Add the private key created in the initial setup. Pageant works as a passphrase keeper. With Pageant in memory and your private key loaded go ahead and test your connection. Just as before login with putty being sure to include "username@" before the hostname in the connection dialog.</p>
<p>You should now login without a password needed! Hooray!
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/hak5-1109/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SF Bay Area Party &#8211; Celebrate Season 11 Episode 11!!!!1111</title>
		<link>http://Hak5.org/blog/backstage/1111</link>
		<comments>http://Hak5.org/blog/backstage/1111#comments</comments>
		<pubDate>Tue, 17 Apr 2012 01:15:42 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Backstage]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[1111]]></category>
		<category><![CDATA[party]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=4732</guid>
		<description><![CDATA[Join us for our Season 11 episode 11 party at the Baltic Pub in Point Richmond, CA! There won't be another binary episode number of Hak5 until Season 100 in 2057!! All ages welcome. Special nerdcore performance by Dale Chase!

The Baltic Pub, <a href="http://g.co/maps/hzruh">135 Park Pl Richmond, CA 94801</a>.

<a href="http://www.facebook.com/events/255194534555485/">RSVP on Facebook</a> or <a href="http://goo.gl/z8SZg">Add to Google Calendar</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fblog%2Fbackstage%2F1111"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fblog%2Fbackstage%2F1111&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><b>Thursday, May 3rd at 8:00 PM</b></p>
<p>Join us for our Season 11 episode 11 party at the Baltic Pub in Point Richmond, CA! There won&#8217;t be another binary episode number of Hak5 until Season 100 in 2057!!</p>
<p>All ages welcome. Special nerdcore performance by Dale Chase!</p>
<p>The Baltic Pub, <a href="http://g.co/maps/hzruh">135 Park Pl Richmond, CA 94801</a>.</p>
<p><a href="http://www.facebook.com/events/255194534555485/">RSVP on Facebook</a> or <a href="http://goo.gl/z8SZg">Add to Google Calendar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/blog/backstage/1111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hak5 1101 &#8211; Source Code, Ponies and Cyborgs!</title>
		<link>http://Hak5.org/episodes/hak5-1101</link>
		<comments>http://Hak5.org/episodes/hak5-1101#comments</comments>
		<pubDate>Mon, 27 Feb 2012 19:04:01 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[Season 11]]></category>
		<category><![CDATA[aliases]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[chorder]]></category>
		<category><![CDATA[cyborg]]></category>
		<category><![CDATA[Greg Priest-Dorman]]></category>
		<category><![CDATA[hammer]]></category>
		<category><![CDATA[Pelican Case]]></category>
		<category><![CDATA[Pineapple]]></category>
		<category><![CDATA[ponies]]></category>
		<category><![CDATA[ponykart]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[the baltic restaurant]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[wearable computing]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=4569</guid>
		<description><![CDATA[<iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PLD9250765654EC4CD&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&#038;wmode=Opaque" frameborder="0" allowfullscreen></iframe>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1101"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-1101&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
Is wearable computing a practical reality? Darren speaks with Greg Priest-Dorman, a fellow geek who's been building and wearing the tech for 12 years. Plus open source gaming that involves Ponies!
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1101/hak5--1101--cyborgponies--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/1101/hak5--1101--cyborgponies--large.h264.mp4">Download MP4</a><br />
<span id="more-4569"></span> </p>
<div align="center"><iframe width="640" height="360" src="http://www.youtube-nocookie.com/embed/videoseries?list=PLD9250765654EC4CD&#038;hl=en_US&#038;hd=1&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0&amp;wmode=Opaque" frameborder="0" allowfullscreen></iframe></div>
This time on the show, CYBORGS! Is wearable computing a practical reality? Darren speaks with Greg Priest-Dorman, a fellow geek who's been building and wearing the tech for 12 years. Plus open source gaming that involves Ponies! OMG Ponies. Oh, and Subversion too. Source code, ponies and cyborgs! All that and more this time on Hak5!</p>
<p>If you're into Hak5 you'll love our new show by hosts Darren Kitchen and Shannon Morse. Check out <a href="http://www.revision3.com/haktip">HakTip</a>!</p>
<p>Whether you're a beginner or a pro, <a href="http://www.revision3.com/haktip">HakTip</a> is essential viewing for current and aspiring hackers, computer enthusiasts, and IT professionals. With a how-to approach to all things Information Technology, HakTip breaks down the core concepts, tools, and techniques of Linux, Wireless Networks, Systems Administration, and more</p>
<p>And let's not forget to mention that you can follow us on <a href="http://www.twitter.com/hak5/" target="_blank">Twitter</a> and <a href="http://www.facebook.com/technolust/" target="_blank">Facebook</a>, <a href="http://revision3.com/hak5/subscribe" target="_blank">Subscribe</a> to the show and get all your Hak5 goodies, including the infamous <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> over at <a href="http://hakshop.com/" target="_blank">HakShop.com</a>. If you have any questions or suggestions please feel free to contact us at <a href="mailto:feedback@hak5.org">feedback@hak5.org</a>.
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/hak5-1101/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hak5 920 &#8211; Ubertooth One Primer, Multiboot USBs, Airodump Tips and Network Scanning</title>
		<link>http://Hak5.org/episodes/hak5-920</link>
		<comments>http://Hak5.org/episodes/hak5-920#comments</comments>
		<pubDate>Thu, 07 Jul 2011 01:23:37 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[Season 9]]></category>
		<category><![CDATA[airodump-ng]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mike ossmann]]></category>
		<category><![CDATA[monitor mode]]></category>
		<category><![CDATA[multiboot]]></category>
		<category><![CDATA[nibble]]></category>
		<category><![CDATA[packet sniffing]]></category>
		<category><![CDATA[pause]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sardu]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[spectrum analyzer]]></category>
		<category><![CDATA[syslinux]]></category>
		<category><![CDATA[ubertooth]]></category>
		<category><![CDATA[Ubertooth One]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[xboot]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3817</guid>
		<description><![CDATA[<object width="640" height="360"><param name="movie" value="http://www.youtube.com/p/47FBE9849901B938?version=3&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://www.youtube.com/p/47FBE9849901B938?version=3&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-920"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhak5-920&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This time on the show, an <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a> Primer &#8211; Setup with BackTrack 5. Booting multiple ISOs from a single USB drive, we&#8217;ve got plenty of options. And answers to your questions on A+ certs, programming languages, network scanning and more.</p>
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--large.h264.mp4">Download MP4</a> <a class="wmv" href="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--large.wmv9.wmv">Download WMV</a></p>
<p><span id="more-3817"></span></p>
<div align="center">
<object width="640" height="360"><param name="movie" value="http://www.youtube.com/p/47FBE9849901B938?version=3&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://www.youtube.com/p/47FBE9849901B938?version=3&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;autohide=1&#038;showinfo=0&#038;rel=0&#038;showsearch=0" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object>
</div>
<p><b>Ubertooth One Primer &#8211; Setup with BackTrack 5</b></p>
<p>We&#8217;ve been asked numerous times to do a segment on getting started with the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a>, and while it&#8217;s specific to this hardware in nature the techniques involved are similar to that of many other tools.</p>
<p>If you&#8217;re not familiar, the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a> is an open source bluetooth testing tool made by Mike Ossmann in response to the lack of good bluetooth testing devices, or the ridiculously high price tags in excess of $10,000 for commercial monitoring equipment.</p>
<p>So in the same sense that we have inexpensive WiFi adapters that can go into monitor or promiscuous mode, we now have the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a>.</p>
<p>Now props to HarvestGardener on the BackTrack Linux forums for putting a lot of this together. Most of the Ubertooth development was done on Mac OSX but getting it going in Linux isn&#8217;t too difficult, thankfully.</p>
<p>So today I aim to setup dependencies and compile Ubertooth Tools in Backtrack 5 linux host machine. Currently does not work in VM &#8212; Libusb issues.</p>
<p>The first dependency you&#8217;ll need is pyside. It&#8217;s a PySide adds Qt bindings to Python, letting it use the cross-platform UI framework for some graphical goodness. You can download it manually from PySide.org or simply install it with apt. Unfortunately it isn&#8217;t in the default BackTrack 5 repository so you&#8217;ll need to add a personal package archive or PPA.</p>
<blockquote><p>
apt-get install python-software-properties<br />
add-apt-repository ppa:pyside<br />
apt-get update<br />
apt-get install libnl-dev libusb-1.0-0-dev pyside-tools
</p></blockquote>
<p>Next we&#8217;ll need the PyUSB extension which provides USB access to Python.</p>
<blockquote><p>
wget http://downloads.sourceforge.net/project/pyusb/PyUSB%201.0/1.0.0-alpha-1/pyusb-1.0.0-a1.tar.gz<br />
tar xvf pyusb-1.0.0-a1.tar.gz<br />
cd pyusb-1.0.0-a1<br />
python setup.py install
</p></blockquote>
<p>We&#8217;ll also need bluetooth baseband libraries so we can process raw bluetooth data. Thankfully libbtbb does the trick:</p>
<blockquote><p>
wget http://downloads.sourceforge.net/project/libbtbb/libbtbb.0.5.tgz<br />
tar xvf libbtb.0.5.tgz<br />
cd libbtbb<br />
make<br />
make install
</p></blockquote>
<p>Ok so we&#8217;re finally to the part where we actually get to the Ubertooth code. As of recording the latest version of Ubertooth software is release 238.</p>
<blockquote><p>
wget http://downloads.sourceforge.net/project/ubertooth/ubertooth-r238.tar.gz<br />
tar xvf ubertooth-r238.tar.gz
</p></blockquote>
<p>This archive contains the latest firmware for both the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a> and Ubertooth Zero, the KiCad files if you&#8217;re so inclined to make your own Ubertooth, documentation and host software including a few bluetooth tools, kismet plugins and a fun little spectrum analyzer.</p>
<p>Since Bluetooth operates in the same 2.4 GHz ISM band as WiFi, we can actually use the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a> as a basic spectrum analyzer and see all of the WiFi signals for a given area. </p>
<blockquote><p>
python specan_ui.py
</p></blockquote>
<p>Alright, that&#8217;s a lot of info so we&#8217;re going to stop right here and pick up next time with compiling Kismet from source with the Ubertooth Plugin, capturing our first Bluetooth packets, installing the Wireshark plugin and finally analyzing the good stuff. If you haven&#8217;t already checked it out you can find the <a href="http://hakshop.com/products/ubertooth-one" target="_blank">Ubertooth One</a> at HakShop.com along with the documentation and source files if you&#8217;re crafty with the soldering iron and eager to build your own.</p>
<p><b>Boot multiple ISOs from one USB with these free tools</b></p>
<p>Having several tools on several USB&#8217;s or CD&#8217;s can be a pain in the butt, especially when you&#8217;re looking for a specific one but don&#8217;t remember which USB you put it on. To save us from this trouble, there are many applications available online that let you create one multibootable USB drive. Thus, you can store all your tools on one USB drive instead of ten. We&#8217;ve reviewed YUMI, UNetBootin, Darren&#8217;s done his MultiPass, and I&#8217;ve checked out Katana. This week, I&#8217;m checking out a couple of your user picks, <a href="https://sites.google.com/site/shamurxboot/home" target="_blank">XBoot</a>, and <a href="http://www.sarducd.it/" target="_blank">Sardu</a>.</p>
<p>The first one is <a href="https://sites.google.com/site/shamurxboot/home" target="_blank">XBoot</a>. Its a light weight utility for creating multiboot USB&#8217;s OR CD&#8217;s. To use it, download the zip file from their website. Open the application and plug in your USB flashdrive. Now, you&#8217;ll need to have some ISO&#8217;s already downloaded on to your computer or you can go to File&#8211;>Download and choose some of your favorite utilities and linux distros.<br />
Once they are done installing, drag the ISO&#8217;s into the box under the Create Multiboot USB/ISO tab. For mine, I chose Ophcrack, Clonezilla, and Puppy Linux. On the side, you can see the total size of the files added, you can remove files, look up the MD5 hash checksum in case you&#8217;re wondering if it&#8217;s the actual tool, and at the bottom you can choose to create your ISO Live CD or USB bootable flash drive. I&#8217;m choosing my FlashDrive. Double check the Selected USB drive to make sure it&#8217;s not your operating system drive. Then, this is cool, you can choose your Bootloader. I&#8217;ll stick with the recommended Syslinux, but you can also choose Grub4dos or not install one at all.<br />
Then, when you click next, it&#8217;ll start copying all your ISO&#8217;s to your thumbdrive and create the bootloader. This may take several minutes, so just kick back and relax.</p>
<p>Once the USB is created, you&#8217;ll have the option to run it on QEMU to test it. You can also edit the flashdrive, by clicking the tab that says Edit Multiboot USB. </p>
<p>The second one is <a href="http://www.sarducd.it/" target="_blank">Sardu</a>. Sardu is a program I found that was apparently made by Vikings using hieroglyphics. You simply plug in your flashdrive, click on your choices for Antivirus, Utilities, Linux Distros, and/or Windows CD&#8217;s, and choose make bootable USB. Clicking on the different utilities and linux distros will download them from their websites. You can also click ISO at the top and choose Make ISO, then click on an ISO folder to choose it for your flashdrive. I downloaded all of mine into my downloads folder, so I just navigate to the downloads folder and click OK. When done, click the cute little USB button and wait for it to finish creating the bootable USB. Once done, you can boot off your flashdrive using SuperGrubDisk. The tabs at the top enable you to check the Hash, create and defrag your USB.</p>
<p>Now I&#8217;m going to restart my computer and boot into Syslinux for XBoot and Grub for Sardu and try them out!<br />
Looks like it works, and works well. The three ISO&#8217;s that I chose boot properly, and I can add more if I want!&#8221;"</p>
<p>So of these two, I have to say Sardu for Vikings took a bit more time for me to figure out how to get my ISO&#8217;s onto the USB and make it bootable. Turns out, I was just thinking too hard when trying to add my ISO folders! Xboot was pretty natural to figure out and it was easier to use. Xboot was my definetly my favorite.</p>
<p>So after googling for other multiboot creators, I found all the ones I could, but are there other ones? Do you use a tool that could make my life easier? Email me at <a href="mailto:feedback@hak5.org">feedback@hak5.org</a></p>
<p><b>Bash and Airodump-ng tips</b></p>
<p>Whether you&#8217;re trying to copy a PID from TOP or a BSSID from airodump-ng, when your terminal is constantly refreshing the task is cumbersome at best. So calm that screen with the shortcut CTRL+s. To resume simply hit CTRL+q. And specific to airodump-ng not only can you pause the screen with &#8216;space bar&#8217;, but there are all sorts of handy keystrokes like &#8216;tab&#8217; &#8211; which lets you to scroll up and down the list of stations, &#8216;s&#8217; which changes the sorting column, and my favorite, &#8216;m&#8217; which marks connection groups with a colors. </p>
<p>Thanks to Sitwon and Bethany for sending these in and getting some complimentary hak5 swag. Submit your 4-bits at <a href="http://www.hak5.org/nibble" target="_blank">hak5.org/nibble</p>
<hr/>
<p>If you&#8217;re into Hak5 you&#8217;ll love our new show by hosts Darren Kitchen and Shannon Morse. Check out <a href="http://www.revision3.com/haktip">HakTip</a>!</p>
<p>Whether you&#8217;re a beginner or a pro, <a href="http://www.revision3.com/haktip">HakTip</a> is essential viewing for current and aspiring hackers, computer enthusiasts, and IT professionals. With a how-to approach to all things Information Technology, HakTip breaks down the core concepts, tools, and techniques of Linux, Wireless Networks, Systems Administration, and more</p>
<p>And let&#8217;s not forget to mention that you can follow us on <a href="http://www.twitter.com/hak5/" target="_blank">Twitter</a> and <a href="http://www.facebook.com/technolust/" target="_blank">Facebook</a>, <a href="http://revision3.com/hak5/subscribe" target="_blank">Subscribe</a> to the show and get all your Hak5 goodies, including the infamous <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> over at <a href="http://hakshop.com/" target="_blank">HakShop.com</a>. If you have any questions or suggestions please feel free to contact us at <a href="mailto:feedback@hak5.org">feedback@hak5.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/hak5-920/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
<enclosure url="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--hd720p30.h264.mp4" length="437502598" type="video/mp4" />
<enclosure url="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--large.h264.mp4" length="207986876" type="video/mp4" />
<enclosure url="http://videos.revision3.com/revision3/web/hak5/0920/hak5--0920--minsnubs--large.wmv9.wmv" length="379701661" type="video/asf" />
		</item>
		<item>
		<title>HakTip 3 &#8211; Packet Sniffing 101: Promiscuous Mode</title>
		<link>http://Hak5.org/episodes/haktip-3</link>
		<comments>http://Hak5.org/episodes/haktip-3#comments</comments>
		<pubDate>Tue, 31 May 2011 19:20:19 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[HakTip]]></category>
		<category><![CDATA[802.11]]></category>
		<category><![CDATA[aircrack-ng]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[crack]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monitor mode]]></category>
		<category><![CDATA[packet sniffing]]></category>
		<category><![CDATA[promiscuous mode]]></category>
		<category><![CDATA[wep]]></category>
		<category><![CDATA[wireless network]]></category>
		<category><![CDATA[WPA]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3602</guid>
		<description><![CDATA[<object width="555" height="342"><param name="movie" value="http://www.youtube.com/v/_Kz8C7g7XOY?version=3&#38;hl=en_US&#38;fs=1&#38;hd=1&#38;showinfo=0&#38;rel=0&#38;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="555" height="342" src="http://www.youtube.com/v/_Kz8C7g7XOY?version=3&#38;hl=en_US&#38;fs=1&#38;hd=1&#38;showinfo=0&#38;rel=0&#38;showsearch=0" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhaktip-3"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fepisodes%2Fhaktip-3&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We&#8217;re getting promiscuous, with wireless cards! As part of our foundation series of HakTips Darren covers the fundamentals of wireless packet sniffing with a practical approach in BackTrack Linux using the Aircrack-ng suite.</p>
<div style="clear:both;"></div>
<p><a class="mov" href="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--hd720p30.h264.mp4">Download HD</a> <a class="mov" href="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--large.h264.mp4">Download MP4</a> <a class="wmv" href="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--large.wmv9.wmv">Download WMV</a></p>
<p><span id="more-3602"></span></p>
<p><object width="555" height="342"><param name="movie" value="http://www.youtube.com/v/_Kz8C7g7XOY?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="555" height="342" src="http://www.youtube.com/v/_Kz8C7g7XOY?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Let&#8217;s think about network traffic as a cocktail party. Picture Alice and Bob on the love seat chatting it up while Charlie is deep in conversation with Dave at the bar. Meanwhile, Eve is nearby sipping a Hendrix Martini listening in on everyone&#8217;s conversations.</p>
<p>You see, in order for Alice to send a message to Bob she has to address it to him by his network interfaces MAC address &#8212; or Media Access Control Address. This address is unique every network interface on the planet. Bob&#8217;s is going to be different from Charlie&#8217;s, Dave&#8217;s or anyone else.</p>
<p>On a hub based network, Alice&#8217;s message is heard by all. But by default when Charlie or Dave hear a message addressed to a mac address other their own, their network interface will drop the frame completely.</p>
<p>This is where promiscuous mode comes into play. If Eve&#8217;s network interface is in promiscuous mode she doesn&#8217;t drop frames not addressed to her. This is great for packet sniffing, say if Eve was a network administrator attempting to debug a faulty network. Likewise, if Eve had malicious intent the same applies to eavesdropping.</p>
<p>Now promiscuous mode assumes a hub based network. Switches thwart this by only sending messages to their intended recipients instead of everyone.</p>
<p>Which brings us to Monitor mode. Monitor mode, or RFMON for Radio Frequency Monitor, is one of six modes that wireless network interfaces can assume. Similar to Promiscuous mode, Monitor mode allows the wireless network interface to &#8220;sniff packets&#8221; not intended for it. </p>
<p>Unline promiscuous mode however, an interface in monitor mode can sniff packets from access points it isn&#8217;t even associated with. Again this is great for, say, an administrator troubleshooting a network, or on the darker side for malicious purposes such as eavesdropping and cracking encrypted networks.</p>
<p>What program or command is giving you warm fuzzies? Hit me up &#8212; <a href="mailto:tips@hak5.org">tips@hak5.org</a></p>
<p>And be sure to check out our sister show, <a href="http://www.hak5.org" target="_blank">Hak5</a> for more great stuff just like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/episodes/haktip-3/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
<enclosure url="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--hd720p30.h264.mp4" length="126887847" type="video/mp4" />
<enclosure url="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--large.h264.mp4" length="57575306" type="video/mp4" />
<enclosure url="http://videos.revision3.com/revision3/web/hak5/haktip/0003/hak5--haktip--0003--promiscuous--large.wmv9.wmv" length="85722009" type="video/asf" />
		</item>
		<item>
		<title>WiFi Pineapple Flashing Guide &#8211; Building or Unbricking</title>
		<link>http://Hak5.org/hack/wifi-pineapple-flashing-guide</link>
		<comments>http://Hak5.org/hack/wifi-pineapple-flashing-guide#comments</comments>
		<pubDate>Sun, 08 May 2011 03:40:11 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[WiFi Pineapple]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3476</guid>
		<description><![CDATA[
			
				
			
		
WIFI PINEAPPLE VERSION 2 ONLY. THIS WILL NOT WORK WITH THE WIFI PINEAPPLE VERSION 3.
Whether your new to Jasager or you&#8217;ve made a configuration change you wish you hadn&#8217;t, doing a fresh WiFi Pineapple install ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fhack%2Fwifi-pineapple-flashing-guide"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fhack%2Fwifi-pineapple-flashing-guide&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>WIFI PINEAPPLE VERSION 2 ONLY. THIS WILL NOT WORK WITH THE WIFI PINEAPPLE VERSION 3.</strong></p>
<p>Whether your new to Jasager or you&#8217;ve made a configuration change you wish you hadn&#8217;t, doing a fresh <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> install is a breeze. This guide walks you through the steps required to flash compatible <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> hardware with the latest version of Robin Wood&#8217;s Jasager firmware as well as default configurations and and packages.<span id="more-3476"></span></p>
<h2>Requirements</h2>
<p>This guide is written for Windows users and should take about 15-20 minutes to complete. In addition to <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> hardware you&#8217;ll need a Telnet, SSH and SCP client (we recommend <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY </a>and <a href="http://winscp.net/eng/index.php">WinSCP</a>) as well as an Ethernet cable and the following download:</p>
<ul>
<li><a href="http://www.twitterphishr.com/build-pineapple.zip">build-pineapple.zip</a> MD5: C5D90DB48E511F8AEF4FDFBCA7E3CF38</li>
</ul>
<h2>Video Walkthrough</h2>
<p><object width="570" height="427"><param name="movie" value="http://www.youtube.com/v/TBSv4F0cnZ4?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="570" height="427" src="http://www.youtube.com/v/TBSv4F0cnZ4?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<h2>Preparing your computer</h2>
<p>Before getting to the actual flashing bit the computer&#8217;s network interfaces must be configured. Begin by setting the Ethernet adapter with a static IP address of 192.168.1.100 and a subnet mask of 255.255.255.0. This setting can be found in Windows 7 from the Control Panel under View network status and tasks, and Change adapter settings. Right-click on the Local Area Connection and choose Properties. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697540060/" title="1-static by Darren Kitchen, on Flickr"><img src="http://farm3.static.flickr.com/2144/5697540060_bb40367b2b.jpg" width="414" height="461" alt="1-static"></a></p>
<p>It is also a good idea to disable any other network adapters that may be present, like a wireless adapter. To do this right-click on the interface and click Disable.</p>
<h2>Flashing the Firmware</h2>
<p>Plug one side of an Ethernet cable into the Ethernet adapter you set with a static address in the previous step. Plug the other end of the cable into the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> hardware. Make sure the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> does not have power, but keep the power cable handy as we&#8217;ll need it in just a moment. Using battery power for the flashing process is not advised.</p>
<p>Open the Freifunk AP51 Easy Flash utility. Check the box labeled Use external file under Rootfs, click browse, and select the openwrt-atheros-root.squashfs file. Repeat this step for the section labeled Kernel choosing openwrt-atheros-vmlinux.lzma</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5696965273/" title="2-freifunk1 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5304/5696965273_85b0330423.jpg" width="492" height="500" alt="2-freifunk1"></a></p>
<p>Select the Ethernet adapter you had previously setup with a static IP address from the drop-down under Interface.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697540238/" title="2-freifunk2 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5148/5697540238_03336a9458.jpg" width="492" height="500" alt="2-freifunk2"></a></p>
<p>With the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> power cable handy click the Go button, wait one second and plug in the power cable. The <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> will light up and the EasyFlash utility will report &#8220;No packet&#8221; until the device is found. Once the utility is communicating with the device it will report both the computer and <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a>&#8216;s IP and MAC addresses then begin flashing. This process takes about 10 minutes. Once the flash is complete the EasyFlash utility will automatically close and the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> will reboot.</p>
<h2>Initial Setup</h2>
<p>With the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> rebooting, open a command prompt (Start, Run, CMD) and issue &#8220;ping 192.168.1.1 -t&#8221;. This command will continue pinging the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a>. Once replies are reported stop the ping with the CTRL+C keyboard combo. The device is now ready for initial login.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5696965619/" title="3-reboot-and-ping by Darren Kitchen, on Flickr"><img src="http://farm3.static.flickr.com/2362/5696965619_91d4b39c2f.jpg" width="500" height="274" alt="3-reboot-and-ping"></a></p>
<p>Open PuTTY or your Telnet client of choice and enter the host 192.168.1.1. If using PuTTY make sure Telnet is selected, as well as the default port 23. Click Open. </p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697622560/" title="3-telnet1 by Darren Kitchen, on Flickr"><img src="http://farm3.static.flickr.com/2343/5697622560_144cf64c82.jpg" width="466" height="448" alt="3-telnet1"></a></p>
<p>When greeted with an OpenWRT splash screen type the command &#8220;passwd&#8221; and press enter. Type a password and press enter twice. When &#8220;Password for root changed by root&#8221; is reported the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> is now ready for packages and configuration.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697622624/" title="3-telnet2 by Darren Kitchen, on Flickr"><img src="http://farm4.static.flickr.com/3024/5697622624_5d7e24909a.jpg" width="500" height="314" alt="3-telnet2"></a></p>
<h2>Wireless Configuration</h2>
<p>Once again open PuTTY or your SSH client of choice. Enter the host 192.168.1.1. If using PuTTY make sure SSH is selected, as well as the default port 22. Click Open. </p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697622392/" title="4-ssh by Darren Kitchen, on Flickr"><img src="http://farm3.static.flickr.com/2611/5697622392_72eeced054.jpg" width="466" height="448" alt="4-ssh"></a></p>
<p>When greeted with a security alert, click Yes. Enter &#8220;root&#8221; for &#8220;login as&#8221; and the password you had previously configured.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697622496/" title="4-ssh2 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5026/5697622496_7d8a772a01.jpg" width="427" height="379" alt="4-ssh2"></a></p>
<p>From the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> command line enter the following command to change the wireless configuration setting.</p>
<blockquote><pre>
echo "
config wifi-device  wifi0
option type    atheros
option channel  auto
config wifi-iface
option device wifi0
option network lan
option mode ap
option ssid Pineapple
option encryption none
" > /etc/config/wireless
</pre>
</blockquote>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697047867/" title="4-ssh4 by Darren Kitchen, on Flickr"><img src="http://farm4.static.flickr.com/3110/5697047867_bc7df87468.jpg" width="500" height="314" alt="4-ssh4"></a></p>
<p>Leave this SSH session window open as it will be used in the next step to install packages.</p>
<h2>Package Install</h2>
<p>Various packages can be installed on the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a>. See the openwrt repository at <a href="http://downloads.openwrt.org/kamikaze/8.09.2/atheros/packages/">downloads.openwrt.org/kamikaze/8.09.2/atheros/packages</a>. The default package on the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> is X-WRT, a web based management interface, and its dependency haserl.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697622976/" title="5-scp1 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5064/5697622976_dbc00ce874.jpg" width="500" height="353" alt="5-scp1"></a></p>
<p>Open WinSCP and enter the host name 192.168.1.1. Enter root as the user name and the password chosen. Select SCP from the File protocol drop-down and click Login. If presented with two group errors, click OK &#8212; they are safe to ignore.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697623178/" title="5-scp2 by Darren Kitchen, on Flickr"><img src="http://farm4.static.flickr.com/3091/5697623178_9b5463b68a.jpg" width="500" height="338" alt="5-scp2"></a></p>
<p>Select the haserl and webif package files from your hard disk on the left and drag them to the area on the right. The file transfer will begin.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697623034/" title="5-scp3 by Darren Kitchen, on Flickr"><img src="http://farm4.static.flickr.com/3191/5697623034_fe9297907b.jpg" width="421" height="234" alt="5-scp3"></a></p>
<p>Back in the SSH session enter the command &#8220;ls&#8221; followed by enter. The package files previously transferred should be reported. Now install both package files with the command &#8220;opkg install *.ipk&#8221;. This process will take just a minute. Once complete a &#8220;SUCCESS!&#8221; message will be reported. At this point the <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> has been configured and is ready to be rebooted. Either unplug and replug and power adapter or issue the command &#8220;reboot&#8221;.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5697048185/" title="6-opkg1 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5066/5697048185_322aec46ae.jpg" width="500" height="314" alt="6-opkg1"></a></p>
<p>The <a href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> has now been flashed and configured with factory default settings. This guide can be followed up with this article on <a href="http://hak5.org/hack/wifi-pineapple-first-connect">logging into the WiFi Pineapple for the first time</a>.</p>
<p><strong>WIFI PINEAPPLE VERSION 2 ONLY. THIS WILL NOT WORK WITH THE WIFI PINEAPPLE VERSION 3.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/hack/wifi-pineapple-flashing-guide/feed</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Session Hijacking with a WiFi Pineapple in Windows</title>
		<link>http://Hak5.org/hack/session-hijacking-with-a-wifi-pineapple-in-windows</link>
		<comments>http://Hak5.org/hack/session-hijacking-with-a-wifi-pineapple-in-windows#comments</comments>
		<pubDate>Wed, 04 May 2011 23:52:37 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[WiFi Pineapple]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3471</guid>
		<description><![CDATA[
			
				
			
		
In this segment Darren talks about Session Hijacking and demonstrates a tool from Errata Security called Hamster and Ferret that, in conjunction with a WiFi Pineapple, an ICS&#8217;d 3G connection and Tftpd32 we&#8217;re able to ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fhack%2Fsession-hijacking-with-a-wifi-pineapple-in-windows"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fhack%2Fsession-hijacking-with-a-wifi-pineapple-in-windows&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In this segment Darren talks about Session Hijacking and demonstrates a tool from <a href="http://www.erratasec.com/" target="_blank">Errata Security</a> called <a href="http://erratasec.blogspot.com/2007/08/sidejacking-with-hamster_05.html" target="_blank">Hamster and Ferret</a> that, in conjunction with a <a target="_blank" href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a>, an ICS&#8217;d 3G connection and <a href="http://tftpd32.jounin.net/" target="blank">Tftpd32</a> we&#8217;re able to &#8220;sidejack&#8221; with our little man-in-the-middle setup. Lesson learned? Be suspicious of <u>any</u> wifi. Check for signatures of trusted networks and <a href="http://hak5.org/episodes/episode-614" target="_blank">tunnel your traffic</a>.<span id="more-3471"></span></p>
<p><object width="555" height="312"><param name="movie" value="http://www.youtube.com/v/sIP7ZtDgIpI?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0&amp;start=725" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="555" height="312" src="http://www.youtube.com/v/sIP7ZtDgIpI?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0&amp;start=725" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>While the tethering WiFi Pineapple and laptop 3G technique in this segment is still quite valid, Darren now prefers to use <a href="http://www.hak5.org/forums/index.php?showtopic=15200">BackTrack Linux as documented here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/hack/session-hijacking-with-a-wifi-pineapple-in-windows/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WiFi Pineapple: your first connection</title>
		<link>http://Hak5.org/hack/wifi-pineapple-first-connect</link>
		<comments>http://Hak5.org/hack/wifi-pineapple-first-connect#comments</comments>
		<pubDate>Wed, 04 May 2011 22:48:45 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[WiFi Pineapple]]></category>
		<category><![CDATA[Jasager]]></category>
		<category><![CDATA[OpenWRT]]></category>
		<category><![CDATA[Pineapple]]></category>
		<category><![CDATA[Teathering]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[Wifi Pineapple]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3457</guid>
		<description><![CDATA[
			
				
			
		
So you&#8217;ve built, borrowed or bought a WiFi Pineapple and you&#8217;re new to OpenWRT and Jasager. Hopefully this guide will familiarize you with the many aspects of the the WiFi Pineapple. If you have specific ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fhack%2Fwifi-pineapple-first-connect"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fhack%2Fwifi-pineapple-first-connect&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So you&#8217;ve built, borrowed or bought a <a target="_blank" href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> and you&#8217;re new to OpenWRT and Jasager. Hopefully this guide will familiarize you with the many aspects of the the WiFi Pineapple. If you have specific questions please leave a comment or email feedback@hak5.org and we&#8217;ll try to keep this page updated.</p>
<p>This article will guide you through connecting to the <a target="_blank" href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> for the first time. For more in-depth how-to&#8217;s involving command line control, modules, using the white and black listing functions, sharing Internet access and more please consult the <a href="http://www.hak5.org/forums/index.php?showforum=49">Jasager board on the Hak5 forums</a> and keep an eye on the <a href="http://hak5.org/category/wifi-pineapple-hack">WiFi Pineapple category of the Hak5.org blog</a> for future articles on these topics.<span id="more-3457"></span></p>
<h2>First and foremost</h2>
<p>The <a target="_blank" href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a> is a customized version of OpenWRT running the latest Jasager software by Robin Wood. Since OpenWRT is a Linux based wireless networking operating system you&#8217;ll want to be familiar with basic Linux and <a href="http://www.tcpipguide.com/free/t_NetworkingFundamentals.htm">networking fundamentals</a>.</p>
<h2>Tools you&#8217;ll find handy</h2>
<p>Right out of the box most everything can be configured with just about any web browser, but you&#8217;ll likely also want a tool or two to get a shell and transfer files. If you&#8217;re using Linux or Mac you already have the ssh and scp commands at your disposal. If you&#8217;re on Windows we recommend using the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> and <a href="http://winscp.net/eng/index.php">WinSCP</a> GUI tools or the command-line equivelent <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">Plink</a>.</p>
<h2>Battery Powering the Pineapple</h2>
<p>The WiFi Pineapple requires 5V and 2A of DC power. If you&#8217;re looking to go mobile leave the wall-wart at home. Four AA rechargeable batteries work well at powering this puppy. It&#8217;s important to get AA batteries with a high mAh rating. We recommend <a href="http://www.amazon.com/s/ref=nb_sb_ss_c_1_21?url=search-alias%3Delectronics&amp;field-keywords=2500+mah+aa+batteries&amp;x=0&amp;y=0&amp;sprefix=2500+mah+aa+batteries">no less than 2400</a>, so pick up a few meant for digital cameras for best results. If your standard alkalines aren&#8217;t doing the trick it&#8217;s probably due to a low mAh rating. Check the packaging. Of course we recommend rechargeables over the landfill populating variety.</p>
<h2>Connecting for the first time</h2>
<p>There are many ways to connect to and configure a <a target="_blank" href="http://hakshop.com/collections/frontpage/products/wifi-pineapple">WiFi Pineapple</a>. Here are a few:</p>
<h3>Via Ethernet</h3>
<p>Power up and connect an Ethernet cable between your computer and the router&#8217;s. In its stock configuration the WiFi Pineapple is configured with the static IPv4 address of 192.168.1.1. It is also setup to hand out IP addresses in the 192.168.1.0/24 range via DHCP. If your machine is configured to obtain an IP address automatically you should get something like 192.168.1.100 from it momentarily.</p>
<h3>Configuring your interface to obtain an IP address from the WiFi Pineapple&#8217;s DHCP server</h3>
<p>In case your computer is not already setup to obtain an IP address on the Ethernet interface from a DHCP server, here are quick instructions for some common operating systems.</p>
<h3>Windows XP</h3>
<p>Open Network Connections from the Control Panel. Right-click on the Local Area Connection and choose Properties. From the dialog select Internet Protocol TCP/IP and click Properties. From the General tab choose Obtain an IP address automatically and Obtain DNS server address automatically. Click OK twice.</p>
<h3>Windows 7</h3>
<p>Click Choose Network Status and Tasks from the Control Panel. Click Change adapter settings. Right click the Local Area Connection and choose Properties. Select Internet Protocol Version 4 and click Properties. Select Obtain and IP address automatically and Obtain DNS server address automatically, then click OK twice.</p>
<h3>Linux / Mac</h3>
<p>Open a terminal and issue ifconfig eth0 where eth0 is the Ethernet interface connected to the WiFi Pineapple. Check the inet addr reported. If it is not a 192.168.1.x address you&#8217;ll want to manually ask for an address from the DHCP server on the pineapple. Depending on your distribution the command to do this may be &#8220;dhclient eth0&#8243; or &#8220;dhcpcd eth0&#8243;.</p>
<h3>Via Wireless</h3>
<p>By default the SSID of the WiFi Pineapple is either &#8220;Pineapple&#8221; or &#8220;OpenWRT&#8221; without encryption. Connect to it as you would to any ordinary wireless access point. The pineapple will assign you an IP address via DHCP. If for some reason your Wireless interface has not been configured to obtain an address automatically please consult the above instructions substituting your wireless interface for the Ethernet interface.</p>
<h3>Via Serial</h3>
<p>WiFi Pineapples bought or built on Fon 2100 or Accton MR3201A hardware sport shell access through a serial interface. For information on this access method please consult these fine documents:</p>
<ul>
<li><a href="http://www.digininja.org/projects/fon_serial_cable.php">Fon Serial Cable at digininja.org</a></li>
<li><a href="http://www.dd-wrt.com/wiki/index.php/LaFonera_Hardware_Serial-Cable-Port">LaFonera Hardware Serial-Cable-Port on dd-wrt.com</a></li>
</ul>
<p>&nbsp;</p>
<h2>Accessing the Jasager Interface</h2>
<p>Once connected via Ethernet or wireless you can point your web browser at the Jasager management interface. Here you can configure the interface, karma, mac address filtering, ssid white/black listing and execute commands on connected clients.</p>
<p>By default the Jasager interface can be found at http://192.168.1.1:1471. It&#8217;s important to note the :1471 bit as that specifies the non-standard port number of this http interface. Any modern web browser will work, be it Firefox, Chrome, Safari, Opera or Internet Explorer. I&#8217;ve even successfully used it with the text-only browser Lynx! You&#8217;ll need to login. By default the username is root and password is &#8220;pineapplesareyummy&#8221; (sans quotes).</p>
<h3>Status / Main Controls</h3>
<p>The options in this section allow you to control the wireless card and karma features. The SSID list is a list of SSIDs that the interface will either accept (whitelist mode) or ignore (blacklist mode). One thing to watch out for is that changing from blacklist to whitelist mode, and vise-versa does not reset the SSID list.</p>
<h3>Connected Clients</h3>
<p>The list of connected clients comes from a merger of wlanconfig output, information in the log file and the ARP cache. A blank IP address may mean the client hasn&#8217;t got an IP address or hasn&#8217;t used it for a while so it has slipped from the ARP table.<br />
The dropdown list of commands allows you to add the clients SSID to the watch list and kick the MAC address. Kicking is not blocking a MAC, just temporarily disconnecting it, most clients will attempt to reconnect within seconds of being kicked. Kicking can be useful if you blacklist a SSID and need to remove any currently associated clients. I have an idea that this list will grow with useful commands such as blocking MAC addresses and initiating things such as nmap scans. Watch out for new features in version 2.</p>
<h3>Log</h3>
<p>All activity is logged to /karma/log/status.log which gets dumped out to the log window.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/hack/wifi-pineapple-first-connect/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Phishing with a WiFi Pineapple</title>
		<link>http://Hak5.org/hack/pineapple-phishing</link>
		<comments>http://Hak5.org/hack/pineapple-phishing#comments</comments>
		<pubDate>Wed, 04 May 2011 18:14:43 +0000</pubDate>
		<dc:creator>Darren Kitchen</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[WiFi Pineapple]]></category>

		<guid isPermaLink="false">http://Hak5.org/?p=3435</guid>
		<description><![CDATA[
			
				
			
		
This guide builds on the Auto-Rickroll payload for the WiFi Pineapple. Following this guide you will be able to create a self-contained WiFi Pineapple or similar OpenWRT based wireless access point serving up faux websites ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2FHak5.org%2Fhack%2Fpineapple-phishing"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2FHak5.org%2Fhack%2Fpineapple-phishing&amp;source=Hak5&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This guide builds on the <a href="http://hak5.org/hack/auto-rickrolling-wifi-pineapple" target="_blank">Auto-Rickroll payload for the WiFi Pineapple</a>. Following this guide you will be able to create a self-contained <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> or similar OpenWRT based wireless access point serving up faux websites to capture login credentials. The purpose of this article is to point out the simplicity of a phishing attack using the dnsmasq technique of the <a href="http://hak5.org/hack/auto-rickrolling-wifi-pineapple" target="_blank">Auto-Rickroll payload</a>, and how you can protect yourself from similar attacks. See the mitigation section at the bottom of the article for defense advice.<span id="more-3435"></span></p>
<h2>Demonstration</h2>
<p><object width="555" height="312"><param name="movie" value="http://www.youtube.com/v/3uNdu9TM3HM?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0&amp;start=456" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="555" height="312" src="http://www.youtube.com/v/3uNdu9TM3HM?version=3&amp;hl=en_US&amp;fs=1&amp;hd=1&amp;showinfo=0&amp;rel=0&amp;showsearch=0&amp;start=456" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Before beginning please follow the instructions outlined in the <a href="http://hak5.org/hack/auto-rickrolling-wifi-pineapple" target="_blank">Auto-Rickrolling WiFi-Pineapple article</a>. Once complete we will:</p>
<ol>
<li>Install PHP and dependencies</li>
<li>Configure PHP and HTTPD</li>
<li>Testing the PHP installation</li>
<li>Write redirection and capture scripts</li>
<li>Modify a website to capture credentials</li>
</ol>
<h2>Install PHP and dependencies</h2>
<p>The installation of PHP on OpenWRT is pretty straight forward. Considering the size limitations and power of your typically embedded device such as the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> and what we&#8217;re trying to achieve I have opted for the 4x build of PHP, rather than the newer 5x. Feel free to deviate if your needs require the newer features of 5.</p>
<p>Begin by downloading and installing the following packages from <a href="http://downloads.openwrt.org/kamikaze/8.09.2/atheros/packages/" target="_blank">downloads.openwrt.org</a>: libopenssl_0.9.8i-3.2_mips.ipk, php4_4.4.7-1_mips.ipk, php4-cgi_4.4.7-1_mips.ipk and zlib_1.2.3-5_mips.ipk </p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298611/" title="packages by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5263/5687298611_3b63fd5c0e.jpg" width="500" height="137" alt="packages"></a></p>
<p>Alternatively, everything required for this hack can be <a href="http://Hak5.org/wp-content/uploads/2011/05/phish-pineapple.zip">downloaded in this archive</a>. </p>
<p>Copy the package files (*.ipk) to the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> in /root/ using the scp command in Linux or an SCP utility in Windows like <a href="http://winscp.net/eng/index.php" target="_blank">WinSCP</a> or <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Plink</a>.</p>
<p>Open a shell on the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> using your ssh client of choice (on Windows I recommend <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a>) and login as root. You should already be located in /root/ after logging in. Issue the &#8220;pwd&#8221; command to be sure, or change directory to /root/ with &#8220;cd /root/&#8221;. Verify that the packages have been copied by issuing the &#8220;ls&#8221; to list the contents of the directory. You should see the four package files listed. To install them all issue &#8220;opkg install *.ipk&#8221;</p>
<p>After a few moments each package should be installed. Now it is time to configure PHP and the HTTP server.</p>
<h2>Configure PHP and HTTPD</h2>
<p>Two changes need to be made in order for the HTTP server to recognize .php files and process them correctly. </p>
<p>First we&#8217;ll need to add a line to the httpd.conf file in /etc/ so either open it with your favorite text editor (vi is already installed) or simply issue the command &#8220;echo &#8220;*.php:/usr/bin/php&#8221; >> /etc/httpd.conf&#8221;. Verify that the line has been added with &#8220;cat /etc/httpd.conf&#8221;</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687866974/" title="httpd-conf by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5186/5687866974_0548c6a692.jpg" width="500" height="175" alt="httpd-conf"></a></p>
<p>Next we&#8217;ll need to add a line to the php.ini file in /etc/. Again open the file in an editor or add the line with &#8220;echo &#8220;cgi.force_redirect 0&#8243; >> /etc/php.ini&#8221; and verify with &#8220;grep cgi.force_redirect /etc/php.ini&#8221;</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298671/" title="php-ini by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5188/5687298671_60a25f32da.jpg" width="500" height="145" alt="php-ini"></a></p>
<p>Now restart the web server either by issuing &#8220;/etc/init.d/httpd restart&#8221; or simpy rebooting the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> with the &#8220;reboot&#8221; command. It&#8217;s also safe to simply unplug the power and plug it back in.</p>
<p>Once the HTTPD and PHP configuration files have been modified and the server has restarted we can move on to testing the PHP installation.</p>
<h2>Testing the PHP installation</h2>
<p>PHP has a handy little function for testing the its installation. If you rebooted your <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> you&#8217;ll need to log back into a shell as root. Once situated, change directory to /www/ with the &#8220;cd /www/&#8221; command. Now we&#8217;ll need to create a test.php file so issue &#8220;touch test.php&#8221;. Next issue &#8220;&lt;?php phpinfo(); ?&gt;&#8221; > test.php&#8221;. Verify that the string has written to the file with the command &#8220;cat test.php&#8221;.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298703/" title="phpinfo1 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5183/5687298703_e36aed2dbe.jpg" width="500" height="106" alt="phpinfo1"></a></p>
<p>With the file written we can test the php install by navigating to test.php on the web server. Remember, following the instructions from the Auto-Rickrolling <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> article we&#8217;re able to get to the web server from any URL requested. Based on the dnsmasq.conf, there is no difference between example.com and google.com. Pointing your browser to, say, http://example.com/test.php should yield the following results:</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867050/" title="phpinfo2 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5286/5687867050_b80374a9d6.jpg" width="500" height="323" alt="phpinfo2"></a></p>
<h2>Write redirection and capture scripts</h2>
<p>Given that the dnsmasq.conf file will send any URL requested to the root of the web server we will need to write a small PHP script to identify the requested URL and present the user with the corresponding page. Once the user logs into the faux page we&#8217;ll use an error.php script to capture the credentials and log them in a file.</p>
<p>Unfortunately at the time of writing I have been unable to convince the tiny web server to process php files as indexes. The cheap workaround for now is to write a simple meta redirect index.html file that points to our redirect.php script for the actual processing. Hopefully this step can be removed in the future, but for now you&#8217;ll need to open the index.html file in /www/ using your favorite editor and replace the contents with the following:</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298747/" title="index-html by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5261/5687298747_dacf9f80e2.jpg" width="500" height="152" alt="index-html"></a></p>
<blockquote><pre>

&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="REFRESH" content="0;url=redirect.php"&gt;
</pre>
</blockquote>
<p>Now for the fun page. Create a redirect.php file with the command &#8220;touch redirect.php&#8221; and open it with a text editor, for example &#8220;vi redirect.php&#8221;. </p>
<p>Note: If you&#8217;re new to vi here&#8217;s a bare-minimum introduction: There are two modes to vi, command mode and insert mode. By default you&#8217;ll be in command mode. Press &#8220;i&#8221; to enter insert mode allowing you to type into the file. Press ESC to get back to command mode. The command &#8220;:x&#8221; saves and quits. <a href="http://acms.ucsd.edu/info/vi_tutorial.shtml" target="_blank">Learn more about using vi</a>.</p>
<p>Here&#8217;s an example redirect.php script. Modify as you see necessary. We&#8217;ll break it down line by line.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867136/" title="redirect-php by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5065/5687867136_1ea03d6801.jpg" width="500" height="151" alt="redirect-php"></a></p>
<blockquote><pre>
&lt;?php
$ref = $_SERVER['HTTP_REFERER'];

if (strpos($ref, "facebook")) { header('Location: facebook.html'); }

require('peets.html');

?&gt;
</pre>
</blockquote>
<p>The first line tells PHP to start processing the following lines of code.</p>
<p>The second sets the value of the variable &#8220;ref&#8221; as the HTTP_REFERER. This variable is obtained from &#8220;_SERVER&#8221; and basically tells us what URL the client is coming from. Since dnsmasq.conf is set to send any website to the root of our web server this could be anything.</p>
<p>The third line uses the srtpos function to look inside the &#8220;ref&#8221; variable that we just set and see if the word &#8220;facebook&#8221; is somewhere inside. This means that both &#8220;http://facebook.com&#8221; and &#8220;http://www.facebook.com&#8221; would return true. Note: Same goes for facebooksucks.com or any variation that contains the string &#8220;facebook&#8221;.</p>
<p>If the word &#8220;facebook&#8221; is found in the variable &#8220;ref&#8221; the function header will set the location of the browser to facebook.html – a file we&#8217;ll create here in a minute.</p>
<p>To phish multiple domains you would create additional similar if statements customized to the urls desired.</p>
<p>The fourth line will only be processed if the statements above aren&#8217;t found to be true. In our example we&#8217;re only looking for facebook but the list could be more extensive. The require function tells php to load up the contents of the file—in our case peets.html. This could be anything from terms of service agreement, an in-flight Internet purchase page or the old index file from our beloved Auto-Rickroll.</p>
<p>The fifth line closes the PHP processing.</p>
<p>In order to capture the data posted from our faux pages we&#8217;ll need to craft an error.php file. Without going into a line-by-line explanation, basically this file looks for two variables posted to it – name and pass – and writes them to the file bitches.txt</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298819/" title="error-php by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5242/5687298819_99cedcbb1b.jpg" width="500" height="314" alt="error-php"></a></p>
<p>We&#8217;ll need to create the bitches.txt file in /www/ and change its permissions so issue both &#8220;touch /www/bitches.txt&#8221; and &#8220;chmod 777 /www/bitches.txt&#8221;</p>
<p>I have included a few lines to prevent tampering and add logging. The end of the file is basic html to display a faux &#8220;503 Service Unavailable&#8221; error. Again, this can be customized to your hearts content. For example, returning to the login page may convince an unwitting user that their password wasn&#8217;t accepted and give them the opportunity to try &#8220;their other password&#8221;. </p>
<h2>Modify a website to capture credentials</h2>
<p>The last step in this phishing attack is to actually rip and modify the pages of our faux sites. In our example so far we&#8217;ve been using facebook.com as the target, so follow this example. Using a web browser (or getting fancy with curl or wget) save the homepage of your target site. In chrome click the wrench and choose &#8220;Save page as&#8221;. Save the site as &#8220;Web page complete&#8221;. This will save not only the HTML but create a folder including the additional image and javascript components.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687298861/" title="facebook1 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5141/5687298861_bbafa04acd.jpg" width="500" height="301" alt="facebook1"></a></p>
<p>Open the html file in your favorite text editor and look for the following string: &#8220;form method=&#8221;post&#8221;". Set the action variable to equal &#8220;error.php&#8221;. </p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867224/" title="facebook2 by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5185/5687867224_75f4803497.jpg" width="500" height="216" alt="facebook2"></a></p>
<p>Now check for the string &#8220;input type=&#8221;text&#8221;" and find the username field. Change the name variable to equal &#8220;name&#8221; if it is not so already. </p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867240/" title="facebook3-name by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5022/5687867240_216426dc67.jpg" width="500" height="137" alt="facebook3-name"></a></p>
<p>Finally check for the string &#8220;input type=&#8221;password&#8221;" and change the name variable to &#8220;pass&#8221;.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867270/" title="facebook4-pass by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5142/5687867270_e5b4edf432.jpg" width="500" height="137" alt="facebook4-pass"></a></p>
<p>Your faux login page is now ready to be uploaded to the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a>. Using a tool such as WinSCP copy the facebook.html and accompanying facebook folder to /www/ on the device.</p>
<p>With these three modifications your error.php script will pickup the contents of the name and pass text fields. Test this by browsing to facebook.com while connected to your <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a>. You should see your faux login page. Entering fake credentials should bring you to the error.php displaying a fake 503 error, and checking facebook.com/bitches.txt should display the captured information.</p>
<h2>How not to fall victim to this attack</h2>
<p>Obviously disk limitations on the <a href="http://hakshop.com/products/wifi-pineapple" target="_blank">WiFi Pineapple</a> are going to prevent one from serving up face versions of every site on the Internet – so if you&#8217;re connected to one of these devious devices and can&#8217;t access an obscure URL, something is up. You&#8217;ll also notice that navigating to facebook.com in this example forwards you to facebook.com/facebook.html – which should be a sure sign of trouble. The most obvious part about this attack is that every domain you could possibly ping is going to report back a response from 192.168.1.1 – a huge red alert that you&#8217;re not in Kansas anymore.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/5687867296/" title="ping-facebook by Darren Kitchen, on Flickr"><img src="http://farm6.static.flickr.com/5146/5687867296_974d4b988b.jpg" width="500" height="191" alt="ping-facebook"></a></p>
<p>Finally keep in mind that having two or three passwords isn&#8217;t enough. Every site needs its own secure and unique password. Consider using a password manager such as <a href="http://lastpass.com/" target="_blank">LastPass</a>, <a href="http://agilewebsolutions.com/onepassword" target="_blank">1Password</a> or <a href="http://keepass.info/" target="_blank">KeePass</a>.</p>
<p>For further reading and advice on identifying phishing sites see <a href="http://www.antiphishing.org/resources.html#advice" target="_blank">antiphishing.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://Hak5.org/hack/pineapple-phishing/feed</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  hak5.org/author/administrator-2/feed ) in 1.52755 seconds, on May 21st, 2012 at 6:43 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 21st, 2012 at 7:43 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  hak5.org/author/administrator-2/feed ) in 0.00086 seconds, on May 21st, 2012 at 6:56 am UTC. -->
