In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
What is WiFiPineapple?
I believe you all have your own answers to this question. Here is an introduction from radiowar:
Since 2008, WiFiPineApple has become the most popular security testing device. With the support of the open source wireless security audit software community, WiFiPineApple has an easy-to-use man-in-the-middle operation. After the release of the fourth generation hardware, it will become more and more simple and easy to use. WiFiPineApple is produced by Hak5's Darren Kitchen and Robin Wood.
For more information, please visit http://radiowar.org/hardware/what-is-wifipineapple.html
Http://radiowar.org/hardware/what-is-wifipineapple-2.html
After a brief understanding of pineapple, we should quickly get to the point: homemade WiFiPineapple
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/
Friends who choose WR703N can download http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin directly.
Note: the original firmware brush "factory" is already the "sysupgrade" of OpenWrt.
Friends who choose WR720N, it is recommended to download the modified firmware of Nanpu month, because the openwrt official website does not release the firmware of WR720N. The main difference between 720N and 703N is that 720N has more than one network port and has its own power plug. So most of the 720N firmware on the Internet is compiled based on the 703 revision, among which there are many excellent firmware, such as stone ghosts and so on. For more information, please visit the response section http://www.right.com.cn/forum/forum-72-1.html of Enshan WIFI Forum.
Nanpu month TP-LINK TL-WR720N V3 OpenWrt firmware download http://blog.nanpuyue.com/2012/011.html pay attention to select the usb extended version, the mini version can not correctly identify the flash drive.
It is very easy to swipe the machine. Log in to the router management background, select "system tools"-"firmware upgrade" and select the downloaded bin firmware file. Click OK to wait for the router to install the firmware and restart it.
Note that the default management address of TPlink is 192.168.1.253. After browsing openwrt, it will be changed to 192.168.1.1.
Step 2: configure openwrt
First, set the administrator password, and select "system"-"Administrative Rights" to modify the administrative password.
Then configure the network, select "Network"-"Interface", click the LAN port and configure the address. In order to avoid conflicts with the home router, the author configures 192.168.0.1 DNS 24, physically sets up eth2 and wireless bridge, and DHCP advanced setting 3192.168.0.16 8.8.8.8 that is, the DHCP assignment gateway is 192.168.0.1 DNS server is 8.8.8.8.
Click the "WAN" port and select the protocol as "DHCP client"
Select "Network"-"Wireless" to turn on the wireless function, and set the wireless SSID and password.
Openwrt can now be accessed wirelessly
The third step is to configure the USB plug-in flash drive
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
PS: Nanpuyue firmware has been integrated and no installation is required
Next, you need to format the flash drive. 2GB is formatted as swap (sda1). The rest is formatted as ext4 (sda2).
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
Execute df after restart to see if the root directory has been replaced by a flash drive. Of course, you can also check it in the WEB interface.
Then you can install all kinds of software as much as you like.
Opkg update update list
Under the opkg install nano installation software, you can choose to install it.
Opkg install htop
Opkg install bash
Opkg install netcat
Opkg install tar
Opkg install openssh-sftp-client
Opkg install nmap
Opkg install tcpdump
Opkg install aircrack-ng
Opkg install kismet-client
Opkg install kismet-server
Opkg install nbtscan
Opkg install snort
# karma should be installed
Opkg install karma
Opkg install samba36-client
Opkg install elinks
Opkg install yafc
Opkg install python
Opkg install uhttpd
Opkg install at
Opkg install ethtool
Opkg install ettercap
Opkg install macchanger
Opkg install netstat-nat
Opkg install reaver
Opkg install sslsniff
Opkg install sslstrip
Opkg install wget
Opkg install wput
Opkg install curl
# libnids should be installed
Opkg install libnids
# php5 and php5-cgi should be installed
Opkg install php5
Opkg install php5-cgi
Step 4 install and configure wifipineapple
Download wifipineapple firmware to your computer
Wget http://wifipineapple.com/index.php?downloads&downloadUpgrade=2.8.1
Install unsquashfs tools
Sudo apt-get install squashfs-tools
Release the firmware file
Unsquashfs upgrade-2.8.1.bin
Copy some files to openwrt
You need to turn off the wireless before copying the wpad, otherwise the copy fails, and execute after turning off the wireless
Scp / root/squashfs-root/usr/sbin/wpad root@192.168.0.1:/usr/sbin
Turn the wireless back on and continue copying hostapd_cli and hostapd.sh
Scp / root/squashfs-root/usr/sbin/hostapd_cli root@192.168.0.1:/usr/sbin
Scp / root/squashfs-root/lib/wifi/hostapd.sh root@192.168.0.1:/lib/wifi
Download the Pineapple Web Interface source file to the test directory under the local root directory
Sudo apt-get install git
Git clone https://github.com/PenturaLabs/web-interface / root/test/pineapple
Copy the source file to the openwrt directory
Scp-r / root/test/pineapple/ root@192.168.0.1:/
Download the configuration file https://github.com/PenturaLabs/Pineapple-Confs/tree/master/etc
Copy the tools under the squashfs-root/usr/sbin/ directory to openwrt / usr/sbin/
Scp / root/squashfs-root/usr/sbin/autossh root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/chat root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/dnsspoof root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/dsniff root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/empty root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/filesnarf root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/macof root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/mailsnarf root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/msgsnarf root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/sshmitm root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/sshow root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/tcpkill root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/tcpnice root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/urlsnarf root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/update-usbids.sh root@192.168.0.1:/usr/sbin/
Scp / root/squashfs-root/usr/sbin/webmitm root@192.168.0.1:/usr/sbin/
Be careful not to copy the replacement libuClibc-0.9.33.2.so file to see the foreign tutorials have this step, because the copy replacement makes the route down many times after the routing down is unplugged, the USB disk can be unplugged normally, and the third step of mounting operation needs to be redone.
Copy the configuration file to squashfs-root
Scp-r / root/squashfs-root/etc/chatscripts root@192.168.0.1:/etc/
Scp-r / root/squashfs-root/etc/gcom root@192.168.0.1:/etc/
Scp-r / root/squashfs-root/etc/usb_modeswitch.d root@192.168.0.1:/etc/
Scp / root/squashfs-root/www/* root@192.168.0.1:/www/
And copy to openwrt it is recommended not to replace the network dhcp file because it will modify the network configuration will not affect the wifipineapple installation of the original WAN port LAN port settings are good other files can be backed up after replacement must be copied and replaced is php.ini uhttpd
In addition, the replication work can directly complete the recommended shutdown state of the flash drive to plug and unplug the flash drive, and copy the operation in linux
Turn off wifipineapple upgrade and perform on openwrt
Touch index.php / www/
Mv / pineapple/pages/upgrade.php / pineapple/pages/not-upgrade.php
Touch / pineapple/pages/upgrade.php
Add boot up:
Nano / etc/rc.local
Hostapd_cli-p / var/run/hostapd-phy0 karma_enable
Vi / etc/config/httpd.conf
Add at the end
/: root:$p$root
Then perform a restart
Reboot
Access http://192.168.0.1:1471 after reboot and log in with openwrt password
It's almost done here.
Conclusion:
Said that the first time to play portable routing, but also the first contact with openwrt and wifipineapple, during a lot of detours, at first brushed a netizen self-made openwrt firmware, because the remaining ROM is not enough, and other firmware always prompt error, completely embarrassed, and later checked a lot of information that can be MTD strong brush, and directly back to the original factory firmware, at first look back online factory firmware is dismantled with brushing machine line brush What a relief. Then plucked up the courage to continue to try other firmware, and finally found their own firmware, after brushing wifipineapple because of libuClibc-0.9.33.2.so reasons, routing down several times, each time the route lights become flashing, at first hurriedly brushed back with the MTD method, and then later found that unplugging the flash drive routing can switch back to its own ROM storage to continue to work, and then format the flash drive all over again. Then I did down again, and found that all I had to do was to hang up the flash drive without formatting. Later, because the network file changed the network, the configuration network twists and turns for a long time, the configuration file on the network only keeps a network card, toss about and change back to the original, the backup file played a role. This is what it looks like. During this period, I want to return the 720 to a 703 which is close to the online tutorial, and then I finally got it done. But the pineapple is not very good at using, continue to toss.
Reference: http://samiux.blogspot.kr/2013/05/howto-tp-link-tl-mr3020-pocket-router.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.