- Extract the main NSO
- Convert it into an ELF (to strip header/hashes)
- Load it into Ida, find the function and patch the bytes back into the binary
- Convert the ELF back into NSO
- Use the nso as exefs patch or re-import it into the NCA/NSP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Script stores the current IP in a tmp file and later checks if it changed when run. POSTS to a Telegram bot. | |
| # Check how you can create a bot at https://core.telegram.org/bots | |
| old_ip=`cat /tmp/currentip` | |
| current_ip=`wget -qO- https://ipecho.net/plain` | |
| if [ $current_ip != $old_ip ]; then | |
| curl -s -X POST https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/sendMessage -d chat_id=<CHAT_ID> -d text="Machine changed IP from: ${old_ip} to ${current_ip}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //var BinarySerializer = require('./BinarySerializer') | |
| //var BinaryType = require('./BinaryType') | |
| // axis-aligned bounding box | |
| /* PARAMS: (Point)center, (Point)half */ | |
| function AABB(x, y, halfWidth, halfHeight) { | |
| this.initialize(x, y, halfWidth, halfHeight) | |
| } | |
| AABB.pool = [] |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000