Self-made WiFiPineapple (2)
There are some problems with the WiFiPineapple produced by the last blog post, such as the plug-in cannot be upgraded.
A simpler method of transplantation was found by looking up the data.
Original link: http://www.hypn.za.net/blog/2013/06/30/tp-link-tl-wr703n-router-as-a-wifi-pineapple/
Prepare the tool:
# 1 Wireless Portable 3G Router
Description: the router needs to meet several requirements: 1, configure USB port 2, Flash storage is greater than 4m3, you can brush openwrt.
It seems that more people recommend TL-WR703N/TL-WR720N,703N. Foreign tutorials are in use, and there is an official firmware package of openwrt; 720N is no problem, because the author tests with WR720N, so the following WR720N operation shall prevail.
# 2 SanDisk Cool beans (CZ33)
This is not an advertisement. It would be better if you could find a flash drive that is smaller and more suitable for hanging on the router for a long time.
Step 1: browse openwrt
This step is very flexible, you can according to the model of your router to brush different versions of openwrt.
Official link: http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/
Step 2: make WiFi Pineapple USB
Download firmware
Download link: https://wifipineapple.com/?downloads&version=mk4
Unsquashfs decompresses and releases firmware, which can be prepared without subsequent extraction and replacement.
Download the packaged image:
TL-WR703N Pineapple 2.8.1.zip (1.8GB)
TL-WR703N Pineapple 2.8.1-with infusions.zip (1.8GB)
Use Win32 Disk Imager to write the firmware to the flash drive.
Step 3: attach a flash drive to the router
First, you need to install software to enable routing to support mount and recognize ext4 format USB storage:
Access device ssh 192.168.0.1 through SSH
Enter the root password to log in
And then execute it in turn.
Opkg update
Opkg install kmod-usb-storage
Opkg install kmod-fs-ext4
Opkg install block-mount
Then insert the flash drive into the router and do the following
Mkdir-p / mnt/sda2
Mount / dev/sda2 / mnt/sda2
Mkdir-p / tmp/cproot
Mount-- bind / / tmp/cproot
Tar-C / tmp/cproot-cvf -. | | tar-C / mnt/sda2-xf-|
Umount / tmp/cproot
Umount / mnt/sda2
/ etc/init.d/fstab enable
/ etc/init.d/fstab start
The vi / etc/config/fstab / / changes are as follows
Config mount
Option target /
Option device / dev/sda2
Option fstype ext4
Option options rw,sync
Option enabled 1
Option enabled_fsck 0
Config swap
Option device / dev/sda1
Option enabled 1
Restart the device after saving
Reboot
Step 4: modify the adjustment configuration file
Copy the original firmware uhttpd, php.ini configuration files to the corresponding directory
Modify the software source to: http://cloud.wifipineapple.com/packages
Reinstall the configuration component
Opkg install htop bash nano netcat tar openssh-sftp-client nmap tcpdump aircrack-ng kismet-client kismet-server nbtscan snort karma samba36-client elinks yafc python php5-cgi uhttpd zoneinfo-core procps
Restart to complete the migration operation.
Quan A
1. Karma cannot be started normally
Extract / usr/sbin/wpad from the official image and overwrite it to the corresponding directory.
2. Keylogger needs to be installed on external U disk.
Format the remaining capacity as ext4, and then mount it to the / usb directory
3. The flash drive was not mounted successfully.
Cp /. Extroot.md5sum / tmp/whole_root-disabled/etc/extroot.md5sum
4. Network configuration
Config interface 'loopback'
Option ifname 'lo'
Option proto 'static'
Option ipaddr '127.0.0.1'
Option netmask '255.0.0.0'
Config interface 'lan'
# option ifname 'eth0'
Option type 'bridge'
Option proto 'static'
Option ipaddr '172.16.42.1'
# option gateway '172.16.42.42'
Option netmask '255.255.255.0'
Config interface wan
Option ifname 'eth0'
Option proto dhcp