bash-4.1# iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 00:22:75:56:87:12 Channel:2 Frequency:2.417 GHz (Channel 2) Quality=62/70 Signal level=-48 dBm Encryption key:on ESSID:"Pimping Ain't Easy" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master Extra:tsf=00000750bdc57165 Extra: Last beacon: 701ms ago IE: Unknown: 001250696D70696E672041696E27742045617379 IE: Unknown: 010882848B961224486C IE: Unknown: 030102 IE: Unknown: 32040C183060 IE: Unknown: 33082001020304050607 IE: Unknown: 33082105060708090A0B IE: Unknown: DD270050F204104A000110104400010210470010775B6680BFDE11D38D2F002275568712103C000101 IE: Unknown: 050400010000 IE: Unknown: 2A0104 IE: Unknown: 2D1AEE1113FFFF0000010000000000000000000000000C0000000000 IE: Unknown: 3D1602000000000000000000000000000000000000000000 IE: Unknown: 7F0101 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: 0B05000059127A IE: Unknown: DD1E00904C33EE1113FFFF0000010000000000000000000000000C0000000000 IE: Unknown: DD1A00904C3402000000000000000000000000000000000000000000 IE: Unknown: DD07000C4307000000 Cell 02 - Address: 00:22:3F:A7:2A:79 Channel:4 Frequency:2.427 GHz (Channel 4) Quality=36/70 Signal level=-74 dBm Encryption key:on ESSID:"NETGEAR" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=00000013698fd7b5 Extra: Last beacon: 483ms ago IE: Unknown: 00074E455447454152 IE: Unknown: 010882848B960C121824 IE: Unknown: 030104 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: 2A0100 IE: Unknown: 32043048606C IE: Unknown: DD180050F2020101020003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C334E101BFF00000000000000000000000000000000000000000000 IE: Unknown: 2D1A4E101BFF00000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3404051B00000000000000000000000000000000000000 IE: Unknown: 3D1604051B00000000000000000000000000000000000000 IE: Unknown: DD0900037F01010000FF7F IE: Unknown: DD0A00037F04010000000000 IE: Unknown: DD820050F204104A000110104400010210570001001041000100103B00010310470010565AA94967C14C0EAA8FF349E6F593111021000D4E6574676561722C20496E632E10230007574E523130303010240007574E523130303010420004353637381054000800060050F204000110110007574E5231303030100800020084103C000103 Cell 03 - Address: 00:24:B2:4E:86:0E Channel:3 Frequency:2.422 GHz (Channel 3) Quality=35/70 Signal level=-75 dBm Encryption key:on ESSID:"Sassie" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s 11 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=00000011f87d7bb8 Extra: Last beacon: 479ms ago IE: Unknown: 0006536173736965 IE: Unknown: 010882848B0C12961824 IE: Unknown: 030103 IE: Unknown: 0706555320010B1B IE: Unknown: 200100 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: 2A0100 IE: Unknown: 32043048606C IE: Unknown: DD180050F2020101020003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C334C101BFFFF000000000000000000000000000000000000000000 IE: Unknown: 2D1A4C101BFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3403080800000000000000000000000000000000000000 IE: Unknown: 3D1603080800000000000000000000000000000000000000 IE: Unknown: DD0900037F01010000FF7F IE: Unknown: DD0A00037F04010000000000 IE: Unknown: DD820050F204104A000110104400010210570001001041000100103B00010310470010565AA94967C14C0EAA8FF349E6F593111021000D4E6574676561722C20496E632E10230007574E523230303010240007574E523230303010420004353637381054000800060050F204000110110007574E5232303030100800020084103C000103 Cell 04 - Address: 00:1F:33:2B:B4:C4 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=27/70 Signal level=-83 dBm Encryption key:on ESSID:"NETGE4R" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=000000c3b0d9c177 Extra: Last beacon: 422ms ago IE: Unknown: 00074E455447453452 IE: Unknown: 010882848B960C121824 IE: Unknown: 030106 IE: Unknown: 0406000200000000 IE: Unknown: 050400010000 IE: Unknown: 2A0100 IE: Unknown: 32043048606C IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 2D1A6E1803FFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1606050600000000000000000000000000000000000000 IE: Unknown: DD1E00904C336E1803FFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3406050600000000000000000000000000000000000000 IE: Unknown: DD06005043030000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00 IE: Unknown: DD0E0050F204104A0001101044000102 Cell 05 - Address: AC:81:12:05:EB:0E Channel:9 Frequency:2.452 GHz (Channel 9) Quality=70/70 Signal level=-33 dBm Encryption key:on ESSID:"WiFiRSU_4a" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master Extra:tsf=00000098b9dbb073 Extra: Last beacon: 180ms ago IE: Unknown: 000A576946695253555F3461 IE: Unknown: 010882848B961224486C IE: Unknown: 030109 IE: Unknown: 2A0100 IE: Unknown: 32040C183060 IE: Unknown: 2D1A6E1017FF00000001000000000000000000000000000000000000 IE: Unknown: 3D1609070600000000000000000000000000000000000000 IE: Unknown: 3E0100 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101030003A4000027A4000042435E0062322F00 IE: Unknown: 0B05010018127A IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD07000C4300000000 IE: Unknown: 0706313920010910 Cell 06 - Address: 00:24:7B:2A:CE:CE Channel:11 Frequency:2.462 GHz (Channel 11) Quality=24/70 Signal level=-86 dBm Encryption key:on ESSID:"jackies" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=000000261691f0ca Extra: Last beacon: 81ms ago IE: Unknown: 00076A61636B696573 IE: Unknown: 010482848B96 IE: Unknown: 03010B IE: Unknown: 2A0104 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 32080C1218243048606C IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK Cell 07 - Address: 00:15:70:3D:60:60 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=16/70 Signal level=-94 dBm Encryption key:on ESSID:"vpnator" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244bbd1a3 Extra: Last beacon: 65ms ago IE: Unknown: 000776706E61746F72 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0504060A0000 IE: Unknown: 0706555349010B1E IE: Unknown: AD0F00A0F8000007004900000047AEE54D Cell 08 - Address: 00:15:70:3D:4D:02 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=15/70 Signal level=-95 dBm Encryption key:on ESSID:"yrneh09" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244ec4196 Extra: Last beacon: 58ms ago IE: Unknown: 000779726E65683039 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0504030A0000 IE: Unknown: 0706555349010B1E IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: AD0F00A0F8000007004A00000046AEE54D Cell 09 - Address: 00:15:70:3D:60:62 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=18/70 Signal level=-92 dBm Encryption key:on ESSID:"yrneh09" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244bc7763 Extra: Last beacon: 74ms ago IE: Unknown: 000779726E65683039 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0706555349010B1E IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: AD0F00A0F8000006003F00000047AEE54D Cell 10 - Address: 00:15:70:3D:60:63 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=19/70 Signal level=-91 dBm Encryption key:on ESSID:"vendcust" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244bc1df3 Extra: Last beacon: 71ms ago IE: Unknown: 000876656E6463757374 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0706555349010B1E IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: AD0F00A0F8000006003F00000047AEE54D Cell 11 - Address: 00:22:75:70:B7:DE Channel:1 Frequency:2.412 GHz (Channel 1) Quality=25/70 Signal level=-85 dBm Encryption key:on ESSID:"Haven" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master Extra:tsf=00000400bccb9a2c Extra: Last beacon: 681ms ago IE: Unknown: 0005486176656E IE: Unknown: 010882848B961224486C IE: Unknown: 030101 IE: Unknown: 2A0104 IE: Unknown: 32040C183060 IE: Unknown: 2D1AEE1113FF000000010000000000000000000000000C0000000000 IE: Unknown: 3D1601050700000000000000000000000000000000000000 IE: Unknown: 3E0100 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: 7F0101 IE: Unknown: DD07000C4307000000 IE: Unknown: DD1E00904C33EE1113FF000000010000000000000000000000000C0000000000 IE: Unknown: DD1A00904C3401050700000000000000000000000000000000000000 IE: Unknown: DDB70050F204104A0001101044000101103B00010310470010775B6680BFDE11D38D2F00227570B7DE1021001442656C6B696E20496E7465726E6174696F6E616C10230018456E68616E63656420576972656C65737320526F757465721024000C463644343233302D342076311042000E32303932333432333031323833351054000800060050F20400011011001F42656C6B696E20456E68616E63656420576972656C65737320526F75746572100800020084103C000101 Cell 12 - Address: 00:24:7B:64:9E:92 Channel:1 Frequency:2.412 GHz (Channel 1) Quality=15/70 Signal level=-95 dBm Encryption key:on ESSID:"megatron" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=000006ee504f724a Extra: Last beacon: 712ms ago IE: Unknown: 00086D65676174726F6E IE: Unknown: 010482848B96 IE: Unknown: 030101 IE: Unknown: 050C000300000000000000000000 IE: Unknown: 2A0104 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 32080C1218243048606C IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101800003A4000027A400004243B40062326400 IE: Unknown: DD0E0050F204104A0001101044000102 Cell 13 - Address: 98:FC:11:89:F0:57 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=48/70 Signal level=-62 dBm Encryption key:off ESSID:"BlueGiraffe-guest" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=000001938ffd5eb8 Extra: Last beacon: 374ms ago IE: Unknown: 0011426C7565476972616666652D6775657374 IE: Unknown: 010882848B962430486C IE: Unknown: 030106 IE: Unknown: 2A0106 IE: Unknown: 2F0106 IE: Unknown: 32040C121860 IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1606001700000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD090010180201F0040000 IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C337C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3406001700000000000000000000000000000000000000 Cell 14 - Address: 98:FC:11:8C:63:24 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=61/70 Signal level=-49 dBm Encryption key:on ESSID:"No soup for you!" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=00000ac4ef359b6d Extra: Last beacon: 308ms ago IE: Unknown: 00104E6F20736F757020666F7220796F7521 IE: Unknown: 010882848B962430486C IE: Unknown: 030106 IE: Unknown: 2A0106 IE: Unknown: 2F0106 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: 32040C121860 IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1606001300000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD700050F204104A00011010440001021041000100103B000103104700109225A088D4BC767AD8D839C93666FEAE102100074C696E6B737973102300054531303030102400063132333435361042000234321054000800060050F2040001101100054531303030100800020084103C000101 IE: Unknown: DD090010180201F0040000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 Cell 15 - Address: 98:FC:11:89:F0:56 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=48/70 Signal level=-62 dBm Encryption key:on ESSID:"BlueGiraffe" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=000001938ffd4fc6 Extra: Last beacon: 377ms ago IE: Unknown: 000B426C756547697261666665 IE: Unknown: 010882848B962430486C IE: Unknown: 030106 IE: Unknown: 2A0106 IE: Unknown: 2F0106 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: 32040C121860 IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1606001700000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD6B0050F204104A00011010440001021041000100103B000103104700106BA02485604FE9A609F41C5E4AE002CC102100074C696E6B737973102300054531303030102400063132333435361042000234321054000800060050F2040001101100054531303030100800020084 IE: Unknown: DD090010180201F0040000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C337C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3406001700000000000000000000000000000000000000 Cell 16 - Address: 00:15:70:3D:4D:00 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=23/70 Signal level=-87 dBm Encryption key:on ESSID:"vpnator" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244eab194 Extra: Last beacon: 109ms ago IE: Unknown: 000776706E61746F72 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0504010A0000 IE: Unknown: 0706555349010B1E IE: Unknown: AD0F00A0F8000007004A00000046AEE54D Cell 17 - Address: E0:91:F5:EF:9A:B4 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=26/70 Signal level=-84 dBm Encryption key:on ESSID:"myracooley" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=0000096e6033419c Extra: Last beacon: 104ms ago IE: Unknown: 000A6D797261636F6F6C6579 IE: Unknown: 010882848B962430486C IE: Unknown: 03010B IE: Unknown: 050401020000 IE: Unknown: 2A0100 IE: Unknown: 2F0100 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 32040C121860 IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D160B081100000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: 7F0101 IE: Unknown: DD270050F204104A00011010440001021047001060D3296B96668C639F22427AC0F3ACA2103C000103 IE: Unknown: DD090010180200F0050000 IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C337C181BFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C340B081100000000000000000000000000000000000000 Cell 18 - Address: 00:22:2D:AF:9B:D4 Channel:10 Frequency:2.457 GHz (Channel 10) Quality=23/70 Signal level=-87 dBm Encryption key:on ESSID:"mrspeace" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master Extra:tsf=00000acb6208115e Extra: Last beacon: 84ms ago IE: Unknown: 00086D72737065616365 IE: Unknown: 010882848B961224486C IE: Unknown: 03010A IE: Unknown: 32040C183060 IE: Unknown: 0706555320010B14 IE: Unknown: 050400010000 IE: Unknown: 2A0104 IE: Unknown: 2D1A6C0117FF000000000000000000000000000000000C0000000000 IE: Unknown: 3D160A000000000000000000000000000000000000000000 IE: Unknown: 7F0101 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: 0B05000027127A IE: Unknown: DD1E00904C336C0117FF000000000000000000000000000000000C0000000000 IE: Unknown: DD1A00904C340A000000000000000000000000000000000000000000 IE: Unknown: DD07000C4307000000 Cell 19 - Address: 00:15:70:3D:60:61 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=20/70 Signal level=-90 dBm Encryption key:on ESSID:"nomad5" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s Mode:Master Extra:tsf=0000122244bccfc2 Extra: Last beacon: 76ms ago IE: Unknown: 00066E6F6D616435 IE: Unknown: 010482840B16 IE: Unknown: 03010B IE: Unknown: 0706555349010B1E IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK IE: Unknown: AD0F00A0F8000006003F00000047AEE54D IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK
Tuesday, May 31, 2011
iwlist scan output somewhere on earth
Slackware SlackBuilds download and install workflow
I'm using Slackware (13.37), and wrote this blog entry to help Slackware newbies like myself understand the workflow dealing with tar files downloaded from http://slackbuilds.org/.
In this example we work with installing the json-py package. The bash scripting is generalized, will work with any package install.
mkdir ~/sources cd ~/sources # [ in browser ] go to http://slackbuilds.org/repository/13.37/python/json-py/ # [ in browser ] to download Slackbuild json-py.tar.gz, save it to ~/sources filename=`basename *.tar.gz .tar.gz`; tar -xf *.tar.gz; rm *.tar.gz; cd $filename; # [ in browser ] to download Source download json-py-3_4.zip, save it to ~/sources installpkg `./$filename.SlackBuild | grep Slackware | awk '{ print $3 }'`;
The lines of script above give a sense of the workflow. A smarter workflow is provided in the shell script below.
~/sources/eternalDownload.sh
#!/usr/bin/env bash while true do echo "go to slackbuilds.org and download your SlackBuild tar.gz file, hit enter when done."; read; filename=`basename *.tar.gz .tar.gz`; tar -xf *.tar.gz; rm *.tar.gz; cd $filename; pwd; echo "go to slackbuilds.org and download your source code file, hit enter when done."; read; installpkg `./$filename.SlackBuild | grep Slackware | awk '{ print $3 }'`; cd ..; done
Sunday, May 22, 2011
Basic Tone Class and Instantiation
I'm in the process of relearning Java sound generation, and hope to write programs that output interesting soundscapes. This blog posting has very rudimentary code, and hope to continue enhancing it. I will post links here to the bigger and better code samples after they are written.
import javax.sound.sampled.*; import java.util.Random; /** * */ public class Tone { private int seconds = 1 ; private int sampleRate = 8000; private double frequency = 1000.0; private double rad = 0.5 * Math.PI; private double volume = 128.0; public Tone(int mySeconds, int mySampleRate, double myFrequency, double myRad, double myVolume ) { seconds = mySeconds; sampleRate = mySampleRate; frequency = myFrequency; rad = myRad; volume = myVolume; } public void setSeconds(int newValue) { seconds =newValue; } public int getSeconds() { return seconds; } public void setSampleRate(int newValue) { sampleRate = newValue; } public int getSampleRate() { return sampleRate; } public void setFrequency(double newValue) { frequency = newValue; } public double getFrequency() { return frequency; } public void setRad(double newValueA, double newValueB ) { rad = newValueA * newValueB; // e.g. 0.5 * Math.PI } public double getRad() { return rad; } public void setVolume(double newValue) { volume = newValue; } public double getVolume() { return volume; } public void playTone() { try { AudioFormat af = new AudioFormat( (float)sampleRate, 8, 1, true, true ); DataLine.Info info = new DataLine.Info ( SourceDataLine.class, af ); SourceDataLine source = (SourceDataLine) AudioSystem.getLine( info ); source.open( af ); source.start(); byte[] buf = new byte[sampleRate * seconds]; for ( int i=0; i<buf.length; i++ ) { buf[i] = (byte)( Math.sin( rad * frequency / sampleRate * i ) * volume ); } source.write( buf, 0, buf.length ); source.drain(); source.stop(); source.close(); } catch ( Exception e ) { System.out.println( e ); } } }
import javax.sound.sampled.*; public class TestTone { public static void main (String[] args) { double myRad = 0.5 * Math.PI; Tone lineOne = new Tone(1, 8000, 1000.0, myRad, 128.0 ); lineOne.playTone(); } }Below is a little more interesting than a single second tone:
import javax.sound.sampled.*; import java.util.Random; public class TestTone { public static void main (String[] args) { Random generator = new Random(); double myRad = 0.2 * Math.PI; double volume = 128.0; for (int i=0;i<10;i++) { if (i % 2 == 0) {volume=volume+16; myRad=myRad + 0.2;} else {volume = volume-8; myRad= myRad + Math.PI;} Tone lineOne = new Tone(generator.nextInt(2), 8000, 200.0, myRad, volume ); if (i % 3 == 0) {volume=volume-16; myRad=myRad - 0.2;} else {volume = volume+16; myRad= myRad * Math.PI;} Tone lineTwo = new Tone(generator.nextInt(2), 8000, 500.0, myRad, volume ); lineOne.playTone(); lineTwo.playTone(); } } }
The coding is awful in the source code below, but the sound output is way cool. I'm posting it so I don't lose it.
import javax.sound.sampled.*; import java.util.Random; /** * Generate a tone mathematically. * * @author this.is.lance.miller@gmail.com */ public class WildTone { /** * Generate a tone * * @param args not used */ Random generator = new Random(); public static void main ( String[] args ) { Random generator = new Random(); int seconds = 1; int sampleRate = 8000; double frequency = 4000.0; double frequencyb = 2000.0; double frequencyc = 500.0; double RAD = 0.1* Math.PI/1; double RADb = 0.1* Math.PI/1; // double RAD = generator.nextDouble()*Math.PI/generator.nextInt(8); int volume = 256; // generator.nextInt(512); int looplimit = 90; int extraInt = 1; int bufInt = 1; double extraDbl = 0.1; int loopValley = generator.nextInt(sampleRate); try { AudioFormat af = new AudioFormat( (float)sampleRate, 8, 1, true, true ); DataLine.Info info = new DataLine.Info ( SourceDataLine.class, af ); SourceDataLine source = (SourceDataLine) AudioSystem.getLine( info ); source.open( af ); source.start(); byte[] buf = new byte[sampleRate * seconds]; byte[] bufb = new byte[(sampleRate * seconds)]; for (int j=1;j<looplimit;j++) { for ( int i=0; i<buf.length; i++ ) { RAD= extraDbl*Math.PI/extraInt; RADb= (0.1*Math.PI/extraInt)*.2; loopValley = generator.nextInt(5); loopValley=loopValley+1000; if (i > loopValley) { if (i < loopValley+500) { if (i > loopValley+600) { if (i < loopValley+620) { RAD= generator.nextDouble()*Math.PI/2; } else {extraDbl=0.1;} } else {extraDbl=0.4;} } else { if (extraDbl > 0.3) {extraDbl = 0.1; frequency=4000.0;} else { extraDbl=extraDbl+0.1; frequency=500.0; } } } if (i % 2 == 0 || i % 3 == 1 ) {volume=0;} else { if (i < sampleRate*seconds/2 ) { volume=256;} else {volume=512; frequency=frequencyb;} } buf[i] = (byte)( Math.sin( RAD * frequency / sampleRate * i ) * volume ); if (i % 2 == 0) { bufb[i] = (byte)( Math.sin( RADb * (frequencyb) / sampleRate * i ) * (volume-256) ); } else { bufb[i] = (byte)( Math.sin( RADb * (frequencyc) / sampleRate * i ) * (volume-256) ); } } bufInt=generator.nextInt(2); if (bufInt > 0 ) { source.write( bufb, 0, bufb.length/bufInt );} else { source.write( buf, 0, buf.length ); if (bufInt == 2) { source.write( bufb, 0, bufb.length/3 );}} } // end for j source.drain(); source.stop(); source.close(); } catch ( Exception e ) { System.out.println( e ); } System.exit( 0 ); } }
Friday, May 20, 2011
Ubuntu Download Helper using apt-get and apt-cache search
#!/usr/bin/env bash clear; echo "+------------------------------------------------------------------------------------------------+"; echo "| please enter a search string for apt-cache search "; echo "+------------------------------------------------------------------------------------------------+"; read search; echo "here are all the matches to apt-cache $search"; sudo apt-cache search $search; echo "+------------------------------------------------------------------------------------------------+"; echo "| do you want to narrow this list with filter string? y/n "; echo "| << note: grep filter will parse only the package name, not the description >> "; echo "+------------------------------------------------------------------------------------------------+"; read yn if [[ $yn == "y" ]] then echo "enter your filter string:"; read filter; if [ "$filter" ] then echo "+------------------------------------------------------------------------------------------------+"; echo "| here are the results for apt-cache search $search | grep $filter "; echo "+------------------------------------------------------------------------------------------------+"; sudo apt-cache search $search | grep $filter echo "+------------------------------------------------------------------------------------------------+"; echo "| proceed to download these results? y/n "; echo "+------------------------------------------------------------------------------------------------+"; read yn if [[ $yn == y* ]] then for i in `sudo apt-cache search $search | awk '{ print $1 }' | grep $filter ` do echo "# $i" >> $0; sudo apt-get install -y $i; done else exit; fi fi else echo "+------------------------------------------------------------------------------------------------+"; echo "| you do not want a filter "; echo "| proceed to download all results of apt-cache search? y/n "; echo "+------------------------------------------------------------------------------------------------+"; read yn if [[ $yn == y* ]] then for i in `sudo apt-cache search $search | awk '{ print $1 }'` do echo "# $i" >> $0; sudo apt-get install -y $i; done else exit; fi fi
Wednesday, May 11, 2011
SED: enclose each line in quotes and comma at end of line
sed -e 's/^/" /g' -e 's/$/ ",/' myfile.txt