Advertisement
Guest User

bash 'em phishers

a guest
Apr 30th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "VSB Phishing self defense department Ion Cannon started.";
  4. while :
  5. do
  6.     #create random password 5 - 15 chars
  7.     rndpass=$(cat /dev/urandom | tr -dc 'a-z' | head -c $(($RANDOM % 10 + 5)));
  8.    
  9.     #create random three chars as prefix of students login
  10.     rndusername=$(cat /dev/urandom | tr -dc 'a-z' | head -c 3);
  11.  
  12.     #create random  number login suffix
  13.     randomSuffix=$(($RANDOM%1000));
  14.  
  15.     #pad it to 4 digit format
  16.     randomSuffix=$(printf "%04d" $randomSuffix)
  17.  
  18.     rndusername=$rndusername$randomSuffix;
  19.  
  20.     #fire ion cannon
  21.     curl --data "username=$rndusername&password=$rndpass" https://www.sso.vsb.0l.cz/rewrite.php &
  22.     echo "Student sent: $rndusername $rndpass"
  23.    
  24.     sleep 0.2
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement