Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. cat /etc/passwd | while read -r line ; do
  2. user=$(echo $line | cut -d ":" -f 1)
  3. password=$(cat /etc/shadow | grep $user | cut -d ":" -f 2)
  4. echo $password
  5. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement