minikrebs
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
minikrebs [2013-01-14 01:16] – [Lazorcam] 93.193.105.108 | minikrebs [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== minikrebs ====== | ||
- | {{tag> krebs software hardware tools computing networking}} | ||
- | In short: | ||
- | **minikrebs is an low-interaction special-purpose firmware generator for the TP-Link WR703N.** | ||
- | |||
- | Longer Version: | ||
- | The project minikrebs is a meta-project for a number of special-purpose images for the TP-Link WR703n (or MR3020) Wireless Router. These Images are called `profiles` in the context and are build with the help of the OpenWRT Image Builder. Building the complete image is very important as the scarcest | ||
- | |||
- | ===== TLDR ====== | ||
- | This is how you get a cool webcam-streamer firmware for your WR703N: | ||
- | | ||
- | Use it to flash your minirouter | ||
- | |||
- | ===== DISCLAMER ===== | ||
- | All code is pseudo-code and it might or might not work on your system. Copy-Paste with extreme caution. | ||
- | |||
- | ===== Hardware ===== | ||
- | Hardware Platform is in most cases the TP-Link WR703N | ||
- | Buy at: | ||
- | - [[https:// | ||
- | - [[http:// | ||
- | |||
- | Almost 100% compatible is the TP-Link MR3020 which was built for the european market and is a bit bigger, has 5 LEDs and a 3-way switch. | ||
- | Buy at: | ||
- | - [[http:// | ||
- | - [[https:// | ||
- | |||
- | ===== Installation ===== | ||
- | All code is stored in the painload git repository at https:// | ||
- | |||
- | git clone https:// | ||
- | cd painload/ | ||
- | |||
- | |||
- | ===== Build Environment ===== | ||
- | The following convenience scripts are available under / | ||
- | ./prepare -- prepares the build environment for a given profile into builder/ | ||
- | ./upgrade -- writes the created image to your minikrebs via ssh | ||
- | ./restore -- restores custom files from builder folder | ||
- | |||
- | |||
- | ===== Profiles ===== | ||
- | Profiles provide the core functionality of minikrebs. It contains everything you need to build an awesome, special-purpose firmware for your mini computer. | ||
- | |||
- | Profiles are a combination of three things: | ||
- | - An Idea | ||
- | - A custom make command for the Image Builder | ||
- | - A directory of custom files to be included in the final image | ||
- | |||
- | The Next section describes the currently available profiles - please note, profiles may change faster than this wiki page, so have a look at minikrebs/ | ||
- | |||
- | Also, `good` profiles will contain a doc/ folder which describes what the profiles does and what its prerequirements are. | ||
- | |||
- | ---- | ||
- | |||
- | |||
- | |||
- | === Functionality === | ||
- | The Heckenkrebs will use the aap tool to connect randomly to wireless networks | ||
- | which are unprotected in some ways. | ||
- | |||
- | aap is patched to calculate default easybox keys in addition to try open | ||
- | networks. It also provides a blacklist and access-point password list | ||
- | |||
- | ==== instacam ==== | ||
- | |||
- | The aim of the project is to reliably push a video stream directly to the internets for | ||
- | everyone to see at a very low price. | ||
- | |||
- | {{https:// | ||
- | |||
- | === Hardware === | ||
- | |||
- | == Core (Wifi / Ethernet) == | ||
- | - TP-Link WR703n[[https:// | ||
- | - USB Webcam | ||
- | - [[https:// | ||
- | - [[http:// | ||
- | - [[http:// | ||
- | - [[http:// | ||
- | == 4G / 3G / UMTS == | ||
- | Currently Untested: | ||
- | - usb hub ~ 4 Euro | ||
- | - [[http:// | ||
- | - [[http:// | ||
- | - umts stick ~ 20 Euro | ||
- | - MicroSD card (optional) | ||
- | |||
- | == Mobile Version == | ||
- | either use (easy mode): | ||
- | - USB Battery Bank | ||
- | - [[http:// | ||
- | or (expert mode): | ||
- | - DC-DC StepDown Module | ||
- | - [[http:// | ||
- | - Battery Pack | ||
- | - take any battery pack you can find (car battery, model making) | ||
- | |||
- | === Software === | ||
- | |||
- | == Build Firmware == | ||
- | |||
- | git clone github.com/ | ||
- | cd krebs/ | ||
- | ./prepare instacam | ||
- | builder/ | ||
- | |||
- | == Flash == | ||
- | |||
- | # flash image is at: | ||
- | # | ||
- | | ||
- | # either flash image directly via web interface or | ||
- | # after obtaining ssh-access on the router run | ||
- | |||
- | OWN_IP=<< | ||
- | |||
- | ---- | ||
- | |||
- | ==== Lazorcam ==== | ||
- | The minikrebs is deployed inside the shackspace lazor and is powered by its power supply. The next step is to stream the webcam data to ustream via an intermediate VHOST inside the shack infrastructure network. | ||
- | |||
- | |||
- | {{https:// | ||
- | |||
- | Besides that the image is pretty much equal to the base instacam firmware. | ||
- | |||
- | The WR703N is external Antenna adapter modded to be able to connect to the shack wifi through the metal case of the laser. | ||
- | |||
- | For more information see [[project: | ||
- | |||
- | |||
- | ==== usbbridge ==== | ||
- | minikrebs will start up as usbbridge with the usbip-stack. | ||
- | It will run usbipd and grab an ip-address via dhcp from the LAN interface. | ||
- | |||
- | {{https:// | ||
- | |||
- | === setup ==== | ||
- | Connect usb-device and then connect krebsplug to power. | ||
- | When changing the usb-device, detach it on the client side, | ||
- | power off the krebsplug, attach usb device and power upthen. | ||
- | |||
- | === usage === | ||
- | == client side attach == | ||
- | |||
- | modprobe vhci-hcd | ||
- | usbip list -r << | ||
- | usbip attach -h << | ||
- | |||
- | == client side detach == | ||
- | |||
- | usbip detach -p 0 | ||
- | |||
- | ==== Rick-Roller ==== | ||
- | The purpose of the profile is to create an access point where every connection | ||
- | is rewritten to rickroll. | ||
- | |||
- | {{https:// | ||
- | |||
- | If you carry it in your hand when driving by train you will have great fun giggling at the blinking LED. | ||
- | |||
- | === Difficulities ==== | ||
- | As video autostarting is quite difficult at mobile victims to achieve, | ||
- | a short gif with rick dancing plus the first minute of its famous song will be | ||
- | served by the httpd. | ||
- | |||
- | Laptops and other clients with phat-browsers will probably honor both autostart loop tags in the new html5 standard. | ||
- | |||
- | === Bare Version ==== | ||
- | This is the ' | ||
- | |||
- | Without an external usb-stick the space is very limited on the device and you will not fit airbase-ng onto the image to automatically answer all the probes for free networks by mobile devices. | ||
- | |||
- | === Advanced Version ==== | ||
- | With more disk space you can fit airbase-ng on the system and also push the whole song (and possibly the whole damn video) to victims. | ||
- | |||
- | This image is not yet finished so i advise to use rickroller_bare instead. | ||
- | |||
- | === Software | ||
- | The dnsmasq will resolve every domain request to the plugs ip-address. | ||
- | uhttpd will serve a custom rick-astley error-page for every request it receives. | ||
- | The LED will blink for 5 seconds and then go off. | ||
- | |||
- | === Honorable Mentions | ||
- | In the process of creating this profile i stumbled upon the Mobile RickRoll Appliance, took their code but except for the idea of using cgi to display a successful roll pretty much nothing survived the complete rewrite. | ||
- | Also the wr703n is much much smaller and the (also much smaller) battery with 2000mah lasts for 6+ hours. | ||
- | |||
- | === Rickroll Loop | ||
- | |||
- | 8.8 --> 17.3 ; startup loop | ||
- | 26.3 --> 34 ; were no strangers to love, you know the rules and so do i | ||
- | 26.3 --> 42.6 ; ... gotta make you understand | ||
- | |||
- | ==== NFC-Gate ===== | ||
- | The NFC-Gate is part of the [[https:// | ||
- | |||
- | {{https:// | ||
- | |||
- | The nfcgate is a build for the MR3020[[https:// | ||
- | available LEDs to display the status of the login. NFC-Reader used is the SCM SCL3711[[https:// | ||
- | |||
- | For more information see: [[https:// | ||
- | |||
- | ==== krebs ==== | ||
- | This is the base profile for krebs nodes. Copy it to create cool krebs images. Core feature is the automatic connection to the retiolum darknet. | ||
- | |||
- | === Hard Package dependencies === | ||
- | Make sure to include them in custom\_make | ||
- | tinc | ||
- | |||
- | ==== heckenkrebs ==== | ||
- | Heckenkrebs is the automatic internet-establish and gateway provider for the | ||
- | krebs darknet. It is a fork of the original krebs image. | ||
- | |||
- | This profile will automatically establish wireless connections to shared wireless networks. If you want the Krebs to connect to your wlan you need to add your wireless credentials to / | ||
- | W-Lans can be blacklisted by adding the ssid to / | ||
- | |||
- | run infest on the system to get into the retiolum darknet (requires internet) | ||
- | hostsfiles for tinc can be updated with tinc-update | ||
- | |||
- | the LED will turn off after 60 seconds of working internet connection to save power | ||
- | |||
- | ===== Quickstart to get your own krebs on wr703n ===== | ||
- | !important this is pseudo code, so please use your brains | ||
- | |||
- | cd / | ||
- | ./prepare krebs | ||
- | builder/ | ||
- | |||
- | ==== Stock image ===== | ||
- | connect to krebs | ||
- | |||
- | dhclient eth0 | ||
- | firefox 192.168.1.1 | ||
- | {{goto the firmware-upgrade page}} | ||
- | {{upload ../ | ||
- | {{wait}} | ||
- | {{reconnect power}} | ||
- | |||
- | ==== Upgrade image ===== | ||
- | |||
- | === From Recovery | ||
- | |||
- | {{ start krebs in recovery mode}} | ||
- | ifconfig eth0 192.168.1.3 | ||
- | telnet 192.168.1.1 | ||
- | mount_root | ||
- | passwd | ||
- | / | ||
- | exit | ||
- | OWN_IP=192.168.1.3 ./upgrade 192.168.1.1 | ||
- | {{reconnect power}} | ||
- | |||
- | === When minikrebs is in dhcp-client mode ==== | ||
- | |||
- | echo " | ||
- | ifconfig eth0 192.168.0.1 && dnsmasq -d | ||
minikrebs.1358122616.txt.gz · Zuletzt geändert: 2013-01-14 01:16 von 93.193.105.108