Yun & Compatible
- Details
- Written by Sonny Yu
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:
iwconfig 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)
- Details
- Written by Sonny Yu
lsusb ... Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
opkg update opkg install kmod-usb-serial kmod-usb-serial-pl2303
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 wget https://raw.githubusercontent.com/Xuth/tp4000_dmm/master/tp4000zc.py
nano /mnt/sda1/read.py
# 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 = dmm.read() 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 dmm.close()
python /mnt/sda1/read.py -50.2 millivolts DCWrite comment (0 Comments)
-0.0502
- Details
- Written by Sonny Yu
Install software:
opkg update opkg install nmap
Scan local network:
nmap -sP 192.168.0.0/24 Nmap scan report for 192.168.0.1 Host is up (0.011s latency). MAC Address: 14:CF:E2:A2:42:A7 (Unknown) ... Nmap scan report for 192.168.0.240 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 192.168.0.240 Starting Nmap 6.01 ( http://nmap.org ) at 2024-06-19 07:32 UTC Nmap scan report for 192.168.0.240 Host is up (0.011s latency). Not shown: 997 closed ports PORT STATE SERVICE 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 (3 Comments)
- Details
- Written by Sonny Yu
mkdir ~/hub-ctrl cd ~/hub-ctrl wget http://www.gniibe.org/oitoite/ac-power-control-by-USB-hub/hub-ctrl.c
mips-openwrt-linux-uclibc-gcc hub-ctrl.c -o hub-ctrl \ -I${CFLAGS} -L${LDFLAGS} \ -Wl,-rpath-link=${LDFLAGS} -lusb mips-openwrt-linux-uclibc-strip hub-ctrl
scp hub-ctrl [email protected]:/mnt/sda1
Control per port power/per indicator LED of USB Hub
Write comment (0 Comments)Subcategories
Expand the Storage at Yun
Expand the Storage at Yun
Languages Supported by Yun
Languages Supported by Yun
Backup and Recover
Backup and Recover
Network and Yun
Network and Yun
Hardware & Yun
Hardware & Yun
OpenWrt-SDK & Yun
OpenWrt-SDK & Yun
Page 7 of 34