No description
Find a file
Dmitry Isaenko 88aef83798
Some checks failed
continuous-integration/drone/push Build is failing
escape newlines
2022-07-26 20:06:14 +03:00
.github/ISSUE_TEMPLATE Update issue templates 2020-02-28 18:34:28 +03:00
JNI sources Remove debug line from Makefile_raspberry 2020-07-23 18:11:10 +03:00
screenshots And I forgot to update screenshot. Here. 2021-09-16 01:00:05 +03:00
src Add Goldleaf v0.10 support. Remove jenkins malware, add Drone, update readme, increment version. Shifting code to the safer place. Update dependencies. 2022-07-26 18:25:26 +03:00
.drone.yml escape newlines 2022-07-26 20:06:14 +03:00
appicon.ico v0.6 GoldLeaf v0.6.1 support 2019-08-14 05:37:58 +03:00
BUILD.md Add RCM payload support for Raspberry Pi 2020-07-23 18:07:50 +03:00
LICENSE Initial commit 2019-02-10 04:59:54 +03:00
pom.xml Add Goldleaf v0.10 support. Remove jenkins malware, add Drone, update readme, increment version. Shifting code to the safer place. Update dependencies. 2022-07-26 18:25:26 +03:00
README.md Add Goldleaf v0.10 support. Remove jenkins malware, add Drone, update readme, increment version. Shifting code to the safer place. Update dependencies. 2022-07-26 18:25:26 +03:00

NS-USBloader

License Releases LatestVer Build Status

NS-USBloader is:

  • A PC-side installer for Huntereb/Awoo-Installer / other compatible installers (USB and Network supported) and XorTroll/GoldLeaf (USB) NSP installer. Alternative to default usb_install_pc.py, remote_install_pc.py, GoldTree/Quark.
  • RCM payload tool that works on Windows, macOS (Intel and Apple Silicon) and Linux (x86, amd64 and Raspberry Pi ARM).
  • It's a tool for creating split files!
  • Also you can use it for merging split-files into one :)

Click here for Android version ;)

With GUI and cookies. Works on Windows, macOS and Linux.

Let's stay in touch:

→ Independent source code storage

→ Mirror, issues tracker, place to send PRs

→ Nightly builds

Support/Donate

Sometimes I add new posts about this project on my blog page.

Application screenshot
screenshot screenshot
screenshot screenshot

License

GNU General Public License version 3, or (at your option) any later version.

Used libraries & resources

List of awesome code contributors, translators and other great people!

System requirements

JRE/JDK 8u60 or higher for Windows

JDK 11 for MacOS and Linux

Supported GoldLeaf versions

GoldLeaf version NS-USBloader version
v0.5 v0.4 - v0.5.2, v0.8+
v0.6 none
v0.6.1 v0.6
v0.7 - 0.7.3 v0.7+
v0.8 - 0.9 v1.0+
v0.10 v6.0

where '+' means 'any next NS-USBloader version'.

Awoo Installer and compatible applications support

Awoo Installer uses the same command-set (or 'protocol') to Adubbz/Tinfoil.

A lot of other forks/apps uses the same command-set. To stop speculating about the name it's now called 'Awoo'. It WAS called 'TinFoil' before. Not any more.

Usage

Linux:
  1. Install JRE/JDK 8u60 or higher (openJDK is good. Oracle's one is also good). JavaFX not needed (it's embedded).

  2. root # java -jar /path/to/NS-USBloader.jar

  3. Optional: add user to 'udev' rules to use NS not-from-root-account

root # vim /etc/udev/rules.d/99-NS.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666"
root # udevadm control --reload-rules && udevadm trigger
  1. For RCM part
root # vim /etc/udev/rules.d/99-NS-RCM.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7321", MODE="0666"
root # udevadm control --reload-rules && udevadm trigger
  1. For HiDPI use scaling like java -Dglass.gtk.uiScale=150% -jar application.jar
Raspberry Pi
  1. Install JDK: sudo apt install default-jdk

  2. For UI install JavaFX: sudo apt install openjfx

  3. See steps 3 and 4 from 'Linux' section to update 'udev'.

macOS

Double-click on downloaded .jar file. Follow instructions. Or see 'Linux' section.

Set 'Security & Privacy' settings if needed.

Please note: JDK 11 is recommended for using on MacOS (EXCEPT APPLE SILICON). There are few really weird issues already reported from JDK 14 users on Mac.

macOS on Apple Silicon (ARM)
  • Some users tested this application with Zulu-JDK with FX support. Try it!
  • OpenJDK 17 also should be a working solution. Tell us if it works for you!
Windows:
  • Download and install Java JRE (8u60 or higher)
  • Get this application (JAR file) and double-click on it (alternatively open 'cmd', go to place where jar located and execute via java -jar thisAppName.jar)
  • Once application opens click on 'Gear' icon.
  • Click 'Download and install drivers'
  • Install drivers

And how to use it?

The first thing you should do it install Awoo (Huntereb) or GoldLeaf (XorTroll) on your NS.

Take a look on app, find where is the option to install from USB and/or Network. Maybe (very old) this article (about TinFoil) will be helpful.

In details

There are three tabs. First one is main.

'Gamepad' tab.

At the top of you selecting from drop-down application and protocol that you're going to use. For GoldLeaf only USB is available. Lamp icon stands for switching themes (light or dark).

Then you may drag-n-drop files (split-files aka folders) to application or use 'Select NSP files' button. Multiple selection for files available. Click it again and select files from another folder it you want, it will be added into the table.

Table.

There you can select checkbox for files that will be sent to application (AW/GL). Since GoldLeaf v0.5 allow you only one file transmission per time, only one file is available for selection.

Also you can use space to select/un-select files and 'delete' button for deleting. By right-mouse-click you can see context menu where you can delete one OR all items from the table.

For GoldLeaf v0.6.1 and NS-USBloader v0.6 (and higher) you will have to use 'Explore content' -> 'Remote PC (via USB)' You will see two drives HOME:/ and VIRT:/. First drive is pointing to your home directory. Second one is reflection of what you've added to table (first application tab). Also VIRT:/ drive have limited functionality in comparison to HOME:/. E.g. you can't write files to this drive since it's not a drive. But don't worry, it won't make any impact on GoldLeaf or your NS if you try.

Also, for GoldLeaf write files (from NS to PC): You have to 'Stop execution' properly before accessing files transferred from GL. Usually you have to wait 5sec or less. It will guarantee that your files properly written to PC.

'RCM' tab

On this tab you can select payloader like Hekate or LockPick_RCM and send it to NS. Drag-n-drop supported. Also some in-app validations for payload takes place ;)

'Folder with arrows and zeroes' tab

On this tab you can split and merge files. Select 'Split' or 'Merge' and split (or merge). BTW Drag-n-drop supported.

'Gears' tab.

Here you can configure settings for network file transmission. Usually you shouldn't change anything. But it you're cool hacker, go ahead! The most interesting option here is 'Don't serve requests'. Architecture of the Awoo's NET part is working interesting way. When you select in Awoo network NSP transfer, application will wait at port 2000 for the information about where should it take files from. Like '192.168.1.5:6060/my file.nsp'. Usually NS-USBloader serves requests by implementing simplified HTTP server and bringing it up and so on. But if this option selected, you can define path to remote location of the files. For example if you set in settings '192.168.4.2:80/ROMS/NS/' and add in table file 'my file.nsp' then NS-USBloader will simply tell Awoo "Hey, go take files from '192.168.4.2:80/ROMS/NS/my%20file.nsp' ". Of course you have to bring '192.168.4.2' host up and make file accessible from such address (just go install nginx). As I said, this feature is interesting, but I guess won't be popular.

Also here you can:

  • Set 'Auto-check for updates' for checking for updates when application starts, or click button to verify if new version released immediately.
  • Set 'Show only *.nsp in GoldLeaf' to filter all files displayed at HOME:/ drive. So only NSP files will appear.
'Dialog with three dots' tab.

That's where all logs dropped. Verbose information about transmissions comes here.

CLI (command line interface)

To get help run $ java -jar ns-usbloader-4.0.jar --help

 -c,--clean                      Remove/reset settings and exit
 -g,--goldleaf <...>             Install via GoldLeaf mode. Check '-g help' for information.
 -h,--help                       Show this help
 -m,--merge <...>                Merge files. Check '-m help' for information.
 -n,--tfn <...>                  Install via Awoo Network mode. Check '-n help' for information.
 -r,--rcm <[PATH/]payload.bin>   Send payload
 -s,--split <...>                Split files. Check '-s help' for information.
 -t,--tinfoil <FILE...>          Install via Awoo USB mode.
 -v,--version                    Show application version

For more complex commands help use help argument after the fists key. For example:

$ java -jar ns-usbloader-4.0.jar -n help

Usage:
        ns-usbloader -n nsip=<arg1> [hostip=<arg2>] FILE1 ...
        ns-usbloader --tfn nsip=<arg1> [hostip=<arg2>] FILE1 ...

Options:
        nsip=<ip>               Define NS IP address (mandatory)
        hostip=<ip[:port]>      Define this host IP address. Will be obtained automatically if not set.

Usage examples:

Send RCM payload:
$ java -jar ns-usbloader-4.0.jar -r C:\Users\Superhero\hekate.bin
Send files to Awoo Installer via Net-install: 
$ java -jar ns-usbloader-4.0.jar -n nsip=192.168.0.1 ./file.nsz ./file.nsp ~/*.xci
Send files to GoldLeaf v0.8:
$ java -jar ns-usbloader-4.0.jar -g ver=v0.8 ./*
Split files:
$ java -jar ns-usbloader-4.0.jar -s /tmp/ ~/*.nsp
Merge files:
$ java -jar ns-usbloader-4.0.jar -m /tmp/ ~/*.nsp

Other notes

'Status' = 'Uploaded' that appears in the table does not mean that file has been installed. It means that it has been sent to NS without any issues! That's what this app about. Handling successful/failed installation is a purpose of the other side application: Awoo/Awoo-like or GoldLeaf. And they don't provide any feedback interfaces so I can't detect success/failure.

What is this '-legacy' jar?!

JAR with NO postfixes recommended for Windows users, Linux users and MacOS users who're using Mojave or later versions.

JAR with '-legacy' postfix is for MacOS users who're still using OS X releases before (!) Mojave. (It also works for Linux and for Windows but sometimes it doesn't work for Windows and I don't know why).

We have this situation because of weird behaviour inside usb4java library used in this application for USB interactions. In '-legacy' it's v1.2.0 and in 'normal' it's v1.3.0

Translators!

If you want to see this app translated to your language, go grab this file and translate it.

Upload somewhere (create PR, use pastebin/google drive/whatever else). Create new issue and post a link. I'll grab it and add.

To convert files of any locale to readable format (and vise-versa) you can use this site https://itpro.cz/juniconv/

Support this app

If you like this app, just give a star (@ GitHub).

This is non-commercial project.

Nevertheless, I'll be more than happy if you find a chance to make a donation for charity to people I trust:

  • BTC → 1YoBdyiL4TTVsCWmJ93TkfU2a1s9UfJcY
  • LTC → MEXnCLjwvaAZpaoJ1J4biF4DpoAx86gCkf
  • ETH → 0x82Ab0ddE183C12cAa6eD61DF3671675C4bdC42fc
  • DOGE → DFfVjsbcs9VfV9EQTSFF3xJVbjZSbmctP3
  • DOT → 13javzN4ixHPmBfR1oZHjAecydvWbEuqRtBWuxrZyKvkUrg3
  • USDT (TRC20) → THhhs883gH1AcvmNb2EVfhR7QNkWnoa1vN

Thanks!

Appreciate assistance and support of both Vitaliy and Konstantin. Without you all this magic would not have happened.