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

Other Info #2

Open
int0x33 opened this issue Mar 25, 2019 · 0 comments
Open

Other Info #2

int0x33 opened this issue Mar 25, 2019 · 0 comments

Comments

@int0x33
Copy link
Owner

int0x33 commented Mar 25, 2019

-- | --
whoami | Print effective userid
id | Print real and effective user and group IDs
awk -F ':' '{print $1}' /etc/passwd | List all users on the system
awk -F ':' '{print $1}' /etc/group | List all groups on the system
last | Show listing of last logged in users
lastlog | Foreach users get the last logged in
for i in $(cat /etc/passwd 2>/dev/null| cut -d":" -f1 2>/dev/null);do id $i;done 2>/dev/null | List uid and groups for each users
grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}' | List all super users accounts
w | Show who is logged on and what they are doing
users or who -a | Print the user names of users currently logged in to the current host
cat /etc/shells | Pathnames of valid login shells
cat /etc/profile | Display default system variables
cat ~/.profile | Display user variables and functions
env | Display environmental variables
route | Display route information
arp -a | Display arp table
cat /etc/resolv.conf | Show configured DNS sever addresses
head /var/mail/root | Try to read root mail
perl -v | Perl version
java -version | Java version
python --version | Python version
ruby -v | Ruby version

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

No branches or pull requests

1 participant