Slideshow and module by 888 poker review

Build One

Print

MiniPwner Community Edition

You can easily build your own Mini-Pwner.

Update February 2013: It seems TP-Link has released a newer firmware and apparently flashing older firmware such as the derbycon build can brick your device if its one of these newer ones.  See 

http://forum.daviddarts.com/read.php?2,6659 for more info.

Update October 2012: I have an improved build that was used at DerbyCon.  Its not all the way cleaned up yet but its usable for folks at home as well.

http://www.minipwner.com/index.php/forum/5-minipwner-support/941-pdf-of-derbycon-instructions
http://www.minipwner.com/20120514/

As of today (10.22.12) the nightly builds at OpenWrt are broken, you'll need to use the DerbyCon build above for now.

What You'll Need:

  • TP-Link TL-WR703N router (www.volumerates.com for $22.34)
  • (A TP-Link TL-MR3020 will also work.  Be sure to get the 3020 firmware in step 1, there's a different address for the web console to reload the firmware but the remaining instructions are pretty much the same)
  • USB flash drive (Low profile drive such as the Cruzer Fit recommended)
  • 5V “cellphone” backup battery with MicroUSB connector (Find the one below by searching for "sharper image charger" on ebay)
  • MiniPwner setup package available here.

Warning: The snapshot at downloads.openwrt.org dated 5/29 seems to have bricked my router. Beware, I will post more info when I figure out whats going on

Setup Steps:

  1. Download the OpenWrt image for the TP-Link WR-703N router from http://downloads.openwrt.org/snapshots/trunk/ar71xx/. Get the file openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
  2. Download and install Netcat on your computer if its not already there.
  3. Download the MiniPwner community edition scripts from here.
  4. Use your computer to repartition and format your thumb drive as follows: Partition 1: linux swap space, Partition2: ext4.
  5. Insert the thumb drive into the USB port of the TPLink router.
  6. Configure your computer with a static address of 192.168.1.111
  7. Connect your computer to the router with an ethernet cable and power on the router
  8. Browse to 192.168.1.1. Login admin password admin.
  9. Mouseover the left hand links to find the DateTimeCfgRpm.htm link and click
  10. Mouseover the expanded menu to find SoftwareUpgradeRpm.htm link and click
  11. Use the dialog to upload the new flash (openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin) to the router. It will go through a 100% status bar twice then reboot.
  12. On your computer open a command prompt. CD to the directory containing minipwner.tar, and open a netcat listener using "nc -l -p 3333 < minipwner.tar" (or if your PC is linux use "nc -l <minipwner.tar 3333"
  13. Once the router finishes rebooting, telnet to 192.168.1.1
  14. *** If you mess up anything after this point, enter the command "firstboot" into your telnet session, reboot, and you will be right back here.***
  15. If you aren't good with vi for editing, consider doing "opkg install nano" to get a more friendly editor.
  16. Copy and paste the following commands into your telnet session.
    cd /usr/share
    nc 192.168.1.111 3333 > minipwner.tar
    
  17. It will hang up while transfering the tar archive from the PC. (netcat doesn't know that the file transfer is done) Wait 10 seconds then go to the command prompt window on the PC and Ctrl-C to break the connection
  18. Paste this command into your telnet session:
    tar -xf minipwner.tar
  19. Paste these commands into your telnet session:
    cd /usr/share/minipwner
    cp -f /etc/config/network /etc/config/network.orig 
    cp -f /etc/config/wireless /etc/config/wireless.orig
    cp -f /etc/config/firewall /etc/config/firewall.orig
    cp -f /etc/profile /etc/profile.orig
    cp -f /etc/config/fstab /etc/config/fstab.orig
    cp -f /etc/opkg.conf /etc/opkg.conf.orig
    cp -f /etc/config/system /etc/config/system.orig
    cp -f /etc/config/dhcp /etc/config/dhcp.orig
    cp -f ./network.1 /etc/config/network
    cp -f ./wireless.1 /etc/config/wireless
    cp -f firewall.1 /etc/config/firewall
    cat /etc/config/wireless.orig
    
  20. Your original /etc/config/wireless file contents should have been displayed on the screen. Copy the MAC address of your wireless adapter from the screen.
  21. Edit etc/config/wireless using
    vi /etc/config/wireless

    Delete the bad MAC address (cursor to it and use x to delete) then paste in the copied MAC (i to insert then paste). Then change the Wifi settings to connect to your wireless router (by default tries to connect to SSID "TOKI". Shift-ZZ to save and exit. :q! to exit without saving.
  22. Paste these commands into your telnet session:
    /etc/init.d/network restart
    wifi
  23. Type
    ifconfig wlan0
    to check that your wireless settings came up. If you don't have a DHCP assigned address you'll need to troubleshoot your settings.
  24. If your internet connection works you should be able to run "opkg update" and see that it connects and updates packages.

    Some people have challenges at this step. One common problem is that their wireless network is in the range 192.168.1.x, which is the same range as eth0. See the forum for options if this is your problem (simple fix is to change the IP range of your wireless network)

  25. Paste these commands into your telnet session:
    cd /usr/share/minipwner
    opkg update
    opkg install kernel
    opkg install kmod-usb-storage
    opkg install kmod-fs-ext4
    opkg install block-mount
    cp -f profile.1 /etc/profile
    cp -f fstab.1 /etc/config/fstab
    cp -f opkg.conf.1 /etc/opkg.conf
    cp -f system.1 /etc/config/system
    mkdir /mnt/usb
    /etc/init.d/fstab enable
    /etc/init.d/fstab start
    ls /mnt/usb
    
  26. Check that your USB drive mounted. "mount" or "df" commands should show it. If not, you'll need to troubleshoot USB access.
  27. Paste these commands into your telnet session:
    cd /usr/share/minipwner
    ln -s /mnt/usb /opt
    ln -s /etc /mnt/usb/etc
    opkg update
    opkg install netcat
    opkg -dest usb install tar
    opkg -dest usb install openssh-sftp-client
    opkg -dest usb install nmap
    opkg -dest usb install tcpdump
    opkg -dest usb install aircrack-ng
    opkg -dest usb install kismet-client
    opkg -dest usb install kismet-server
    opkg -dest usb install perl
    opkg -dest usb install openvpn
    opkg -dest usb install dsniff
    opkg -dest usb install nbtscan
    opkg -dest usb install snort
    opkg -dest usb install karma
    opkg -dest usb install samba36-client
    opkg -dest usb install elinks
    opkg -dest usb install yafc
    cp -f ./network.2 /etc/config/network
    cp -f ./wireless.2 /etc/config/wireless
    cp -f ./dhcp.2 /etc/config/dhcp
    ln -s /mnt/usb/usr/share/nmap /usr/share/nmap
    cat /etc/config/wireless.orig
  28. Your original /etc/config/wireless file contents should have been displayed on the screen. Copy the MAC address of your wireless adapter from the screen.
  29. Edit etc/config/wireless using
    vi etc/config/wireless

    Delete the bad MAC address (cursor to it and use x to delete) then paste in the copied MAC (i to insert then paste). Shift-ZZ to save and exit. :q! to exit without saving.
  30. Type passwd to set a root password.
  31. Reboot. The default configuration for the minipwner is acting as a wireless access point with an SSID of TLINK and a router IP of 192.168.50.1, and running DHCP on the ethernet port.
  32. If things get hosed up, see the "rebuilding" section of the FAQ for instructions on using fail-safe mode to rebuild your router.

  33. If you want to install other packages to the USB key, do opkg -dest usb install <whatever>.  I have had problems where installed libraries, modules, or other resources are not found because they are not in the "normal" place.  In a lot of cases you can kinda fix this by creating a symlink, similar to the one above for "
    ln -s /mnt/usb/usr/share/nmap /usr/share/nmap"


Use of the MiniPwner signifies your agreement to the MiniPwner EULA.

2011. © 2012 Kevin Bong Consulting DBA MiniPwner
Auto Insurance Quotes