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";'
<< [C++] Random Junk Generation
All Entries

Add a Comment

Get Your IP Instantly
Name:
Enter the text shown in the image (case sensitive):
Email:

The site engine has been coded from scratch. The modules are coded separately eath other.
Server Time: 19:16. Dates and times are shown in Lithuanian (GMT +2) timezone
Name:
Password:

Enter Captcha (Case Sensitive):


Register
English
Lietuviškai

RSS Feed
Main Content
Carmageddon
Programming
Technology
Electronics
Linux
Anything
Site Info

Unique visit count:
4 visits on page.
3519 visits on site.
Detailed Statistics