Thursday, May 11, 2017

Bypass Forbiden in Cat /etc/passwd

pernah ngalamin forbiden saat mau mengambil data di directory /etc/passwd ?

nah kalo pernah cobain command ini :D

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

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

3-
PHP Code:
cd /etc;cat passwd 

4-
PHP Code:
awk -F":" '{ print "user****: " $1 "\t\tuid:" $3 }' /etc/passwd 

5-
PHP Code:
grep --"^#" /etc/passwd awk -F'$3 == 0 { print $1}' 

i hope that you like it :D
Load disqus comments

0 comments