Page 1 of 4

[Release]Host HENkaku - On Windows/Linux/OSX/Android

Posted: Tue Aug 02, 2016 10:25 am
by meetpatty
Update 07/08

Here are the confirmed steps for using HENkaku-webservice on android (Works with Tethering!)
  1. Install termux on android device: https://play.google.com/store/apps/deta ... rmux&hl=en
  2. Install Hackers Keyboard on android device: https://play.google.com/store/apps/deta ... oard&hl=en
  3. Open terminux on android device
  4. In termux execute:
    1. apt update && apt upgrade
    2. apt install coreutils
    3. apt install nodejs
    4. mkdir henkaku && cd henkaku
    5. npm install express
    6. npm install request
  5. On your android device use a webrowser to download https://github.com/meetpatty/HENkaku-we ... service.js
  6. Edit the downloaded file (HENkaku-webservice.js)with your favourite text editor.
    1. Change line 10 to: var localUrl = "http://<ipaddress>:3000/x";
      where <ipaddress> is the ip address of your android device
      If you are using a wifi hotspot and have your vita connected, look at the output from ifconfig, the ip address will be field inet addr in wlan0
    2. Change line var server = app.listen(80, function () { to var server = app.listen(3000, function () { (line 325 currently)
  7. In termux copy HENkaku-webservice.js to henkaku folder created in previous step: cp <pathtodownloadedfile> ./
  8. You can now run the web sevice in termux, execute: node HENkaku-webservice.js
  9. Browse to http://<ipaddressofandroiddevice>:3000/ on your vita
Updatate 06/08

I have re-written the webservice in node.js which means multiplatform support. I have also removed the need for a proxy. See the release for setup:

https://github.com/meetpatty/HENkaku-we ... ses/latest

Update 03/08 - HENkaku web service now automatically creates all the required files when starting up. The install process is now greatly simplified!

See Usage.odt in the project for how to setup.

After my previous attempt to create a solution to host HENkaku locally failed, I have now been successful in creating a webservice to deliver the HENkaku exploit.

See https://github.com/meetpatty/HENkaku-webserver

Right now it is a windows only solution as it uses ASP.NET webapi. It uses fiddler to redirect the request to go.henkaku.xya/x?... to the local webservice and a payload is generated based on the addresses passed in to the request.

Re: Host HENkaku locally - Actually working this time

Posted: Tue Aug 02, 2016 3:02 pm
by AlexxLopaztico02
Thanks! Now we dont need wifi to henkaku :D

And, have you thinked of making the same but the ftp? Like a local ftp

Re: Host HENkaku locally - Actually working this time

Posted: Tue Aug 02, 2016 4:09 pm
by gnmmarechal
AlexxLopaztico02 wrote:Thanks! Now we dont need wifi to henkaku :D

And, have you thinked of making the same but the ftp? Like a local ftp
iirc, FTP is already local...

Re: Host HENkaku locally - Actually working this time

Posted: Tue Aug 02, 2016 8:42 pm
by lawthugg
So as this is very involved, and for some one whos a bit dyslexic, would there be a video tutorial in the works? Would be a great addition to the release.

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 10:04 am
by meetpatty
The setup process for HENkakuWebServer has been significantly improved, all required files are now automatically created. See above for link.

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 12:03 pm
by psgarsenal
Hey,
Really like your job here!

Just in case you didn't know it, Mono (open-source copy of .net) supports ASP.net
http://www.mono-project.com/docs/web/aspnet/

As mono is supported on mac and linux, do you think you could build again your solution using mono? this would mean more compatibility at close to no cost for you!

Thanks for reading !

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 12:22 pm
by meetpatty
Will take a look, although I may well end up doing a re-write using node.js as a learning exercise.

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 12:41 pm
by romain337
Hi

Can you just package the necessary files and let us put them in our favorite server ? Server code is mandatory?

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 12:56 pm
by meetpatty
The web service is required since a unique payload must be generated each time the exploit runs on the vita. Have a look at the code, it isn't just serving up static content...

Re: Host HENkaku locally - Now easier to setup

Posted: Wed Aug 03, 2016 7:22 pm
by romain337
I didn't know much how javascript work. I've already tried to read how the wii payload work but failed hard. I've also read a bit of your C# code for the server you shared on github but I did not know either how all of this work :)

Thanks for the quick answer!