Install software:

opkg update
opkg install aircrack-ng

Test current wifi mode:

iw wlan0 info
Interface wlan0
        ifindex 5
        wdev 0x2
        addr 90:a2:da:f0:06:76
        type managed
        wiphy 0
        channel 8 (2447 MHz), width: 20 MHz, center1: 2447 MHz

Start monitor mode:

airmon-ng start wlan0  1
wlan0           Atheros         ath9k - [phy0]
                                (monitor mode enabled on mon0)

Confirm it under monitor mode:

mon0      IEEE 802.11bgn  Mode:Monitor  Tx-Power=17 dBm
          RTS thr:off   Fragment thr:off
          Power Management:off
iw mon0 info
Interface mon0
        ifindex 6
        wdev 0x3
        addr 90:a2:da:f0:06:76
        type monitor
        wiphy 0

Get BSSID and Channel:

airodump-ng mon0 
BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
40:70:09:E4:87:90    0       12        0    0   6  54e. WPA2 CCMP   PSK  TG167
F4:6D:04:5D:1B:BC    0       37        0    0   8  54e. WPA2 TKIP   PSK  dd-wr
D8:50:E6:D7:EA:1E    0       43      161   29   8  54e  WPA2 CCMP   PSK  ASUS

Start Capture:

airodump-ng -c 8 --bssid D8:50:E6:D7:EA:1E -w capture mon0

Stop monitor mode:

airmon-ng stop mon0




Write comment (1 Comment)

Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
opkg update
opkg install kmod-usb-serial kmod-usb-serial-pl2303

USB serial adapters

Install software:

opkg update
opkg list |grep serial |grep python
pyserial - 2.4-1 - serial port python bindings
opkg install pyserial
cd /usr/lib/python2.7
nano /mnt/sda1/
# load the module
import tp4000zc
# the port that we're going to use.  This can be a number or device name.
# on linux or posix systems this will look like /dev/tty2 or /dev/ttyUSB0
# on windows this will look something like COM3
port = '/dev/ttyUSB0'
# get an instance of the class
dmm = tp4000zc.Dmm(port)
# read a value
val =
print val.text       # print the text representation of the value
                     # something like: -4.9 millivolts DC
print val.numericVal # and the numeric value
                     # ie: -0.0048
# recycle the serial port
python /mnt/sda1/
-50.2 millivolts DC

Write comment (0 Comments)

Install software:

opkg update
opkg install nmap

Scan local network:

nmap -sP
Nmap scan report for
Host is up (0.011s latency).
MAC Address: 14:CF:E2:A2:42:A7 (Unknown)
Nmap scan report for
Host is up (0.00017s latency).
MAC Address: 00:19:B9:22:AE:4A (Dell)
Nmap done: 256 IP addresses (9 hosts up) scanned in 3.47 second

To scan for TCP connections:

nmap -sT
Starting Nmap 6.01 ( ) at 2015-06-19 07:32 UTC
Nmap scan report for
Host is up (0.011s latency).
Not shown: 997 closed ports
22/tcp   open  ssh
111/tcp  open  rpcbind
3306/tcp open  mysql
MAC Address: 00:19:B9:22:AE:4A (Dell)
Nmap done: 1 IP address (1 host up) scanned in 2.45 seconds


Write comment (1 Comment)

mkdir ~/hub-ctrl
cd ~/hub-ctrl
mips-openwrt-linux-uclibc-gcc   hub-ctrl.c -o hub-ctrl \
-Wl,-rpath-link=${LDFLAGS}  -lusb

mips-openwrt-linux-uclibc-strip hub-ctrl
scp hub-ctrl root@

Control per port power/per indicator LED of USB Hub

Write comment (0 Comments)


Expand the Storage at Yun

Languages Supported by Yun

Backup and Recover

Network and Yun

Hardware & Yun

OpenWrt-SDK & Yun