More actions
Gofoil | |
---|---|
File:Gofoilswitch.png | |
General | |
Author | Orygin |
Type | PC Utilities |
Version | 1 |
License | Mixed |
Last Updated | 2020/07/13 |
Links | |
Download | |
Website | |
Source | |
Gofoil is a tool written in Go, inspired by tinfoil's python remote_install_pc.py and utilizing bycEEE/tinfoilusbgo.
The motivation behind this tool was to transfer switch saves from a NAS to a switch without requiring a computer to be powered up. As no client provided samba or NFS, Gofoil was developed as an always-on server to run on the NAS. It can perform a handshake with Tinfoil-like net install and serve files directly from the NAS. This tool has been tested with Awoo Installer on Atmosphere and may also work with tinfoil, although it has not been tested.
Usage
To run gofoil, you need to provide it a few arguments, like the host IP, port, and folder to scan for switch files.
Example, on a windows machine (and shared network):
gofoil.exe -root Z:\ -folders Downloads,Games/switch -ip 192.168.1.95 -port 8000
On linux:
./gofoil -root /volume1/ -folders Games -ip 192.168.1.2 -port 8000
It will start a server at the ip:port indicated. You can open this page (on your phone for example) to show a page where you can input your switch's IP. With Awoo or Tinfoil opened on your switch, and the network install selected, you should now see a list of files from the directory, available to install.
Building
Use the regular go command to get the project:
go get -u github.com/Orygin/gofoil
You can build for another OS/Arch target using the env vars GOOS and GOARCH.
For example for my NAS I had to build for linux/armv5:
GOOS="linux" GOARCH="arm" GOARM=5 go build
Changelog
(v.1.0)
- First Release.
External links
- Github - https://github.com/Orygin/gofoil