Click Here
Home Blog Gallery Links Tutorials Projects
Linux Hack Uncovered 2010-04-18 20:39
This hack shows the info for all users found on linux mashine by executing commands with their rights (works even with users that can't be normally su'ed on :D)
It outputs info like:
User root (Groups: root)
Id: uid=0(root) gid=0(root) grupės=0(root)

Command Line To try on:
Quote:
$ cat /etc/passwd | cut -d":" -f1 | sort | xargs -I {} -i sudo -u {} bash -c 'echo -e "User `whoami` (Groups: `groups`)\nId: `id`\n";'

Add a Comment

Get Your IP Instantly
Name:
Enter the text from the image below to the text field next to it (text is case sensitive):
Captcha
Email:

Name:
Password:

Enter Captcha (Case Sensitive):
Captcha


Register
English
Lietuviškai

RSS Feed
Main Content
Animation
Carmageddon
Programming
Technology
Electronics
Gaming
Linux
Anything
Site News

Unique visit count:
1 visits on page.
730 visits on site.
Detailed Statistics
Misceleanous Content