Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- function gen_random {
- head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo ''
- }
- success=0
- fail=0
- total=0
- while :
- do
- username=$(gen_random)
- password=$(gen_random)
- post_data="j_username=${username}&j_password=${password}&_eventId_proceed="
- echo $post_data
- curl -s -X POST -d "$post_data" http://snorhistory.com/logs.php > /dev/null
- if [ $? -eq 0 ]
- then
- success=$(expr $success + 1)
- else
- fail=$(expr $fail + 1)
- fi
- total=$(expr $total + 1)
- echo "Success: ${success}||Fail: ${fail}||Total: ${total}"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement