2018-02-19 14:29:52 +11:00
|
|
|
# Setuid and Setgid
|
|
|
|
|
|
|
|
|
|
MITRE ATT&CK Technique: [T1166](https://attack.mitre.org/wiki/Technique/T1166)
|
|
|
|
|
|
|
|
|
|
Navigate to [hello.c](../Payloads/hello.c)
|
|
|
|
|
|
|
|
|
|
Input:
|
2018-02-19 14:32:10 +11:00
|
|
|
|
2018-02-19 14:29:52 +11:00
|
|
|
make hello
|
2018-02-19 14:32:10 +11:00
|
|
|
|
2018-02-19 14:29:52 +11:00
|
|
|
sudo chown root hello
|
2018-02-19 14:32:10 +11:00
|
|
|
|
2018-02-19 14:29:52 +11:00
|
|
|
sudo chmod u+s hello
|
2018-02-19 14:32:10 +11:00
|
|
|
|
2018-02-19 14:29:52 +11:00
|
|
|
./hello
|