一、笔记本电脑配置

一台很老的联想笔记本,闲来无线,配置下,用于无线抓包。


a. Celeron双核,32位, 估计很多同学没见过此型号;其它配置更low,就不放了。

b. 无线网络是MTK的 RT5572,虽然但老,但很经验,可以用来抓包。

c. 系统ubuntu 14.04 , 虽然很老,但很经典


整体就是一个字:经典。

root@wangxinyu-ubuntu:/home/wangxinyu# lscpu 
Architecture: i686
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 15
Stepping: 13
CPU MHz: 1728.932
BogoMIPS: 3457.86
L1d cache: 32K
L1i cache: 32K
L2 cache: 512K
root@wangxinyu-ubuntu:/home/wangxinyu#

root@wangxinyu-ubuntu:/home/wangxinyu# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.6 LTS
Release: 14.04
Codename: trusty
root@wangxinyu-ubuntu:/home/wangxinyu#
root@wangxinyu-ubuntu:/home/wangxinyu# lsusb
Bus 002 Device 011: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 007: ID 17ef:608d Lenovo
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 17ef:6018 Lenovo
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@wangxinyu-ubuntu:/home/wangxinyu#

二、安装环境


sudo apt-get install aircrack-ng

sudo apt-get install wireshark


安装aircrack ,我们用于正经的抓包,不做其它用途。

三、配置方法

1、注意无线网卡接上去后,看下网卡名称

wlan1     Link encap:Ethernet  HWaddr cc:d2:9b:35:6f:1d  
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2、注意不要使用无线网卡直接连接无线,因为要保证airmon-ng对于无线设备的独占配置。当然可以在网络连接中,清除无线的配置。

由于版本较老,没有airmon-ng check kill的支持,手动kill。

配置要抓取的无线信息 (可选步骤)


iwconfig wlan1 channel 149


3、配置无线网卡为侦听模式


airmon-ng start wlan1


笔记本配置无线抓包_运维


指定信道命令


airmon-ng start wlan1 channel 11


4、启动wireshark进行抓包,注意使用root权限。

wireshark 在编译菜单下,选择无线配置,就可以在此处选择信道相关

5、使用完成后停止


airmon-ng stop wlan1mon


再想使用网卡上网,可以使用iwconfig 命令进行配置,详见另一篇博客。