This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://talosintelligence.com/vulnerability_reports/TALOS-2019-0782 | |
# Finds containers running with the root password set to NULL | |
# William Ward <[email protected]> | |
cnrs=$(docker ps -q) | |
for id in $cnrs | |
do | |
pwl=$(docker exec -it $id cat /etc/shadow | grep root) |