Thursday, November 25, 2010

Bypass Read Users At /etc/passwd

awk -F: '{ print $1 }' /etc*/passwd | sort

---

awk -F: '{ print $1 " "$2 " " $3" "$4" "$5 " "$6" "$7" "}' /etc*/passwd | sort

---
cd /etc;cat passwd
--
cat /etc/valiases/xxx.com 

 awk -F":" '{ print "username: " $1 "\t\tuid:" $3 }' /etc/passwd  
grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}' 
ls -la /etc/valiases/site.com < you can show user of him

No comments:

Post a Comment