Hacking [Release] AIO Self Hosting for Raspberry Pi - 2.0

Kafluke

Well-Known Member
OP
Member
Joined
May 6, 2006
Messages
5,474
Trophies
0
Age
47
XP
4,636
Country
United States
*8-18-16: updated Raspbian image to latest self hosting pack. AIO Self Hosting 2.0 Now with 100% boot rates for Wii U 5.5.1!*


raspberry_zpstdka8xcs.png

Then put it to good use! Host with it.

Benefits:
- 100% Self contained. WiFi not needed. No need to do any router hacking or use TubeHax. You don't go online with this. No accidental updates.
- Unlike EZ-Share wifi solutions you're not limited to a 32GB or smaller SD card.
- It's cool.

So I know that this isn't very cost effective. It's kinda fun to put an old dusty raspberry pi 1 to use. This will also work on pi 2's. I only had to buy a 6 dollar used Wii USB LAN adapter. I had the rest lying around so I thought I'd share with those that want to do the same thing because hey, why not.

If you are familiar with Linux and want to skip all the instructions then here is the quick and dirty:
1. Install Raspbian on your Raspberry Pi.
2. Install Apache and PHP.
3. Put any self hosting solution you want in the /var/www/html/ folder.
4. Setup static network ip's on both the pi and the wii u.
5. Use a crossover cable to connect the two.

Noob friendly instructions (image includes my latest self hosting package but you can use any you want):

Needed items:
- Raspberry Pi with SD card (8GB or bigger) and power adapter.
- SD card for your wii U (2GB or bigger)
- Wii USB LAN adapter
- Crossover ethernet cable
- Windows computer with SD slot for imaging the Raspberry Pi SD
- Download and install these tools:
- SD Formatter - https://www.sdcard.org/downloads/formatter_4/eula_windows/
- Win32 Disk Imager - https://sourceforge.net/projects/win32diskimager/
- Rasbian with Apache and selfhosting image 2.0(extract with winrar) -
https://mega.nz/#F!dRtkkLyD!1xkLVG8Aovgb2aXN9OOCpA

Instructions:

1. Insert your raspberry pi SD into your pc and fire up SD Formatter.
2. Format your Raspberry Pi's SD card using SD formstter and set "FORMAT SIZE ADJUSTMENT" option to "ON" in the "Options" menu.
3. Click "Format" button.
4. Right-click on Win32 Disk Imager and select Run as administrator.
5. Under "Image File" click on the blue folder icon and select the image file that you extracted. It should be called "AIO SelfHost for RaspberryPi 1.3.img".
6. Make sure your SD drive letter is selected from the list to the right of the blue folder.
7. Click write. Click through the warnings about formatting your SD card.
8. When it's finished imaging put your SD card into your Raspberry Pi and power up. You do not need to plug in HDMI or composite video unless you want to watch it boot. (Do not connect crossover yet)
9. Copy everything that is INSIDE of the folder "SD CARD" to the root of your Wii U SD card.
- SD card should look like this SD:/wiiu/...
10. Plug in your Wii USB ethernet adapter and power on your wii u. (don't connect the crossover cable yet)
11. Go to your internet settings and set up a new connection using ethernet. System Settings -> Internet -> Connect to the Internet -> Y -> Wired Connection
12. Set your IP address to "10.10.10.15". Set subnet of "255.255.255.0". Set DNS of "10.10.10.1"
13. Make the Wired connection your default connection or the next steps won't work.
14. Plug in the crossover cable to the Wii USB LAN adapter and the other end to your raspberry Pi.
13. Open up your browser on the Wii U and point to: "http://10.10.10.10/"
14. Done.

How to update the web page without fully re-imaging the SD card:
1. Download the latest "AIO without PC software" package.
http://gbatemp.net/threads/5-5-1-5-4-0-5-3-2-self-hosting-package-everything-in-one-zip-file.424679/
2. Extract the download and copy the "www" folder to a fat32 formatted USB flash drive. If the Raspberry Pi reboots then it's not going to detect the USB. Reformat it to fat32 and try again. If it still doesn't work then try a different flash drive.
3. Plug in the flash drive to your Raspberry Pi. (Use a USB hub if you don't have enough ports or do what I do, unplug the keyboard and just use the mouse for the next step)
4. Raspbian will pop up with a message saying "Removable medium is inserted"
5. Click on "Open in File Manager" and then click OK.
6. Drag the "www" folder to the Raspbian desktop.
7. Unplug the USB flash drive and plug back in the keyboard if you removed it earlier.
8. Right click on the "www" folder and click "Open in Terminal"
9. Type in these EXACT commands:
sudo rm -r /var/www/html/*
sudo mv * /var/www/html/
10. Delete the "www" folder from the desktop and reboot the raspberry pi.
All done

Now you can simply boot up the Pi whenever you want to run your exploits. You could even trick the Wii U into loading the same Loadiine app every time you fire up the browser. Take it in your car! Take it on trips! Completely self contained!

If you don't have a crossover ethernet cable and a Wii LAN adapter then the Pi makes a great little webhosting device (just change the static IP on Rasbian to an IP that is on your network. I tested this and it's working great on 5.5.1

*Final Note* I did this as a weekend project. It was fun and I'll use it but I'm not going to maintain this very much. Anybody can use the above instructions then update any of the homebrew and apps yourself. Everything is contained on the Raspberry Pi inside of /var/www/html/. Have fun!

Video of it working
 
Last edited by Kafluke,

lonelyhero

Active Member
Newcomer
Joined
Jan 25, 2016
Messages
41
Trophies
0
Age
44
XP
649
Country
United States
raspberry_zpstdka8xcs.png

Then put it to good use! Host with it.

Benefits:
- 100% Self contained. WiFi not needed. No need to do any router hacking or use TubeHax. You don't go online with this. No accidental updates.
- Unlike EZ-Share wifi solutions you're not limited to a 32GB or smaller SD card.
- It's cool.

So I know that this isn't very cost effective. It's kinda fun to put an old dusty raspberry pi 1 to use. This will also work on pi 2's. I only had to buy a 6 dollar used Wii USB LAN adapter. I had the rest lying around so I thought I'd share with those that want to do the same thing because hey, why not.

If you are familiar with Linux and want to skip all the instructions then here is the quick and dirty:
1. Install Raspbian on your Raspberry Pi.
2. Install Apache and PHP.
3. Put any self hosting solution you want in the /var/www/html/ folder.
4. Setup static network ip's on both the pi and the wii u.
5. Use a crossover cable to connect the two.

Noob friendly instructions (image includes my latest self hosting package but you can use any you want):

- Raspberry Pi with SD card (8GB or bigger) and power adapter.
- SD card for your wii U (2GB or bigger)
- Wii USB LAN adapter
- Crossover ethernet cable
- Windows computer with SD slot for imaging the Raspberry Pi SD
- Download and install these tools:
- SD Formatter - https://www.sdcard.org/downloads/formatter_4/eula_windows/
- Win32 Disk Imager - https://sourceforge.net/projects/win32diskimager/
- Files for root of Wii U SD Card - https://mega.nz/#!qRNlzbjB!YxFRVvEOUEFcsXMDVZsrtAMVZKxvjjJxGLFP_p9YH1E
- Rasbian with Apache and selfhosting image (extract with winrar) -https://mega.nz/#F!Lc0xHa5J!nsv_uYdQR9dHDHMkltt_sQ (Still uploading... 2 of 5 finished)

Instructions:

1. Insert your raspberry pi SD into your pc and fire up SD Formatter.
2. Format your Raspberry Pi's SD card using this tool and set "FORMAT SIZE ADJUSTMENT" option to "ON" in the "Options" menu.
3. Click "Format" button.
4. Right-click on Win32 Disk Imager and select Run as administrator.
5. Under "Image File" click on the blue folder icon and select the image file that you extracted. It should be called "Rasbian Wii U and Hosting.img".
6. Make sure your SD drive letter is selected from the list to the right of the blue folder.
7. Click write. Click through the warnings about formatting your SD card.
8. When it's finished imaging put your SD card into your Raspberry Pi and power up. You do not need to plug in HDMI or composite video unless you want to watch it boot. (Do not connect crossover yet)
9. Copy everything that is INSIDE of the folder "SD root" (from the extracted SD package from mega.nz) to the root of your Wii U SD card.
- SD card should look like this SD:/wiiu/...
10. Plug in your Wii USB ethernet adapter and power on your wii u. (don't connect the crossover cable yet)
11. Go to your internet settings and set up a new connection using ethernet. System Settings -> Internet -> Connect to the Internet -> Y -> Wired Connection
12. Set your IP address to "10.10.10.15". Set subnet of "255.255.255.0". Set DNS of "10.10.10.1"
13. Make the Wired connection your default connection or the next steps won't work.
14. Plug in the crossover cable to the Wii USB LAN adapter and the other end to your raspberry Pi.
13. Open up your browser on the Wii U and point to: "http://10.10.10.10/"
14. Done.
Now you can simply boot up the Pi whenever you want to run your exploits. You could even trick the Wii U into loading the same Loadiine app every time you fire up the browser. Take it in your car! Take it on trips! Completely self contained!

If you don't have a crossover ethernet cable and a Wii LAN adapter then the Pi makes a great little webhosting device (just change the static IP on Rasbian to an IP that is on your network. I tested this and it's working great on 5.5.1

*Final Note* I did this as a weekend project. It was fun and I'll use it but I'm not going to maintain this very much. Anybody can use the above instructions then update any of the homebrew and apps yourself. Everything is contained on the Raspberry Pi inside of /var/www/html/. Have fun!

Video of it working

I actually ordered a raspberry pi on Sunday to do this and run emulators on my tv lol
 

wiiNinja

Well-Known Member
Member
Joined
Jan 13, 2009
Messages
645
Trophies
1
XP
1,762
Country
United States
I'm already doing this. My Pi is used as a 3DS Streetpass Relay and a web server for the homebrew self hosting.
If you're using it for web hosting only, then just the Wifi will do. If you're planning on using it for Streetpass, then you'll need the wired Ethernet, or a second network connection of some kind.
 

apachehavok

Well-Known Member
Member
Joined
Jan 17, 2014
Messages
329
Trophies
0
Age
40
XP
237
Country
Angola
Last edited by apachehavok,

Kafluke

Well-Known Member
OP
Member
Joined
May 6, 2006
Messages
5,474
Trophies
0
Age
47
XP
4,636
Country
United States
@Kafluke

Hey Kafluke! Is there a difference between a crossover and a patch cable? Would this work? Just want literally the smallest crossover I can find. I do have some spare ends and a crimper, so can this cable be modded into a crossover?

Thanks!!

http://www.amazon.com/InstallerPart...151091&sr=1-13&keywords=black+crossover+cable
http://www.amazon.com/InstallerPart...151091&sr=1-13&keywords=black+crossover+cable
Yes they are different. A crossover cable can be connected between two nodes (devices). A patch cable requires a switch or a router in between the nodes.
 

apachehavok

Well-Known Member
Member
Joined
Jan 17, 2014
Messages
329
Trophies
0
Age
40
XP
237
Country
Angola
Yes they are different. A crossover cable can be connected between two nodes (devices). A patch cable requires a switch or a router in between the nodes.

Cool. Thanks for the info. Ordering a raspberry pi with a nice black cover to match the wiiU! Gonna look sharp!
 

Kafluke

Well-Known Member
OP
Member
Joined
May 6, 2006
Messages
5,474
Trophies
0
Age
47
XP
4,636
Country
United States
Awesome! Whats the ETA on that, and do you post it here or on the all in one thread you have?
It's 1.2 rc1 in the aoi. So you can get image ready and just ssh into Linux to update it. Or just wait until I do it on the main Rasbian image later tonight
 

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,581
Trophies
3
Website
defaultdnb.github.io
XP
26,916
Country
United Kingdom
@Kafluke you are a self hosting genius, but is it possible to self host these files from a jailbroken (or even unjailbroken) iPhone?

I have iFile (which I believe acts as web server, but no idea on compatibility PHP-wise), and tethering is much the same to do as android.

Many thanks in advance :)
 

apachehavok

Well-Known Member
Member
Joined
Jan 17, 2014
Messages
329
Trophies
0
Age
40
XP
237
Country
Angola
This is a cheaper solution not counting the pie zero of course. I use one and it works fine. I set it up so the microsd card on the device is the webroot.

http://www.amazon.com/zsun®-Memory-Reader-MicroSD-Flash/dp/B00UT1MC9W

Granted if you have a pi just laying around might as well use it.


I would like to use that solution but ever tutorial I can find requires like web programming or something... I do hardware engineering. Software is my weak point. This ras pi solution is literally flashing a single iso to an sd card and you are done.

Is there a step by step tutorial with getting that thing to work without the need for a degree in web theory?

THanks!
 

citrus3000psi

Active Member
Newcomer
Joined
Aug 25, 2014
Messages
41
Trophies
0
Age
40
XP
138
Country
United States

Kafluke

Well-Known Member
OP
Member
Joined
May 6, 2006
Messages
5,474
Trophies
0
Age
47
XP
4,636
Country
United States
I would like to use that solution but ever tutorial I can find requires like web programming or something... I do hardware engineering. Software is my weak point. This ras pi solution is literally flashing a single iso to an sd card and you are done.

Is there a step by step tutorial with getting that thing to work without the need for a degree in web theory?

THanks!
Problem with that is you're limited to 32 gb sd
 

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
I would like to use that solution but ever tutorial I can find requires like web programming or something... I do hardware engineering. Software is my weak point. This ras pi solution is literally flashing a single iso to an sd card and you are done.

Is there a step by step tutorial with getting that thing to work without the need for a degree in web theory?

THanks!

https://wiki.hackerspace.pl/projects:zsun-wifi-card-reader

Flashing
Here are some ways you can flash the device:
  1. Solder on an ethernet jack and flash from the original uboot (hard but safe)
  2. Reflash the bootloader from the original firmware to one that supports upload over serial (less soldering but fatal if you mess up)
  3. Reflash the firmware from the original firmware using mtd_write (easy but you have to do it right on the first try)
  4. Attach a programmer to the flash chip (impossible to mess up)
  5. Use the original firmware's update function
Honestly attack vector 3 sounds the easiest. I honestly fail to see how running a few tftp commands "requires a degree in web theory". If you want to solder up to the board, be my guest though. I'll probably rip apart the board and enable USB so I can do HID attacks.

Thanks for reminding me about this @citrus3000psi. I had original ordered several of them from a Chinese website when this was first released, but had to cancel my order due to them taking over a month without even shipping the product. I just ordered a few off of Amazon. :)
 
Last edited by Relys,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: It's so unfair, maybe AI can save us lol