VanGans

ppval

Sep 17th, 2018
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.80 KB | None | 0 0
  1. #!/bin/bash
  2. # XZ-Sec
  3. # PayPal Valid Email
  4. # By VanGans.
  5.  
  6. #set -x
  7. RED='\033[0;31m'
  8. CYAN='\033[0;36m'
  9. YELLOW='\033[1;33m'
  10. ORANGE='\033[0;33m'
  11. PUR='\033[0;35m'
  12. GRN="\e[32m"
  13. WHI="\e[37m"
  14. NC='\033[0m'
  15. echo ""
  16. printf "$GRN                 ██╗   ██╗ █████╗ ██╗     ██╗██████╗     ██████╗ ██████╗\n"
  17. printf "$GRN                 ██║   ██║██╔══██╗██║     ██║██╔══██╗    ██╔══██╗██╔══██╗\n"
  18. printf "$GRN                 ██║   ██║███████║██║     ██║██║  ██║    ██████╔╝██████╔╝\n"
  19. printf "$GRN                 ╚██╗ ██╔╝██╔══██║██║     ██║██║  ██║    ██╔═══╝ ██╔═══╝ \n"
  20. printf "$GRN                  ╚████╔╝ ██║  ██║███████╗██║██████╔╝    ██║     ██║\n"    
  21. printf "$GRN                   ╚═══╝  ╚═╝  ╚═╝╚══════╝╚═╝╚═════╝     ╚═╝     ╚═╝\n"    
  22. printf "$RED   _____________________________\n"
  23. printf "$CYAN  #   coded BY VanGans        #\n"
  24. printf "$CYAN  #      Power BY:            #\n"
  25. printf "$CYAN  #      XZ-Sec               #\n"
  26. printf "$CYAN  # - http://xz-sec.viip.win  #\n"
  27. printf "$RED   _____________________________\n"
  28. printf "$NC\n"
  29. cat <<EOF
  30.  
  31. EOF
  32.  
  33. usage() {
  34.   echo "Usage: ./script.sh COMMANDS: [-i <list.txt>] [-r <folder/>] [-l {1-1000}] [-t {1-10}] OPTIONS: [-d] [-c]
  35.  
  36. Command:
  37. -i (20k-US.txt)     File input that contain email to check
  38. -r (result/)        Folder to store the result live.txt and die.txt
  39. -l (60|90|110)      How many list you want to send per delayTime
  40. -t (3|5|8)          Sleep for -t when check is reach -l fold
  41.  
  42. Options:
  43. -d                  Delete the list from input file per check
  44. -c                  Compress result to compressed/ folder and
  45.                    move result folder to haschecked/
  46. -h                  Show this manual to screen
  47. -u                  Check integrity file then update
  48.  
  49. ORIGINAL SCRIPT BY: <VanGans> fb.com/irfanarekporjo
  50. "
  51.   exit 1
  52. }
  53.  
  54. # Assign the arguments for each
  55. # parameter to global variable
  56. while getopts ":i:r:l:t:dchu" o; do
  57.     case "${o}" in
  58.         i)
  59.             inputFile=${OPTARG}
  60.             ;;
  61.         r)
  62.             targetFolder=${OPTARG}
  63.             ;;
  64.         l)
  65.             sendList=${OPTARG}
  66.             ;;
  67.         t)
  68.             perSec=${OPTARG}
  69.             ;;
  70.         d)
  71.             isDel='y'
  72.             ;;
  73.         c)
  74.             isCompress='y'
  75.             ;;
  76.         h)
  77.             usage
  78.             ;;
  79.         u)
  80.             updater "manual"
  81.             ;;
  82.     esac
  83. done
  84.  
  85.  
  86.  
  87.  
  88.  
  89. if [[ $inputFile == '' || $targetFolder == '' || $sendList == '' || $perSec == '' ]]; then
  90.   cli_mode="interactive"
  91. else
  92.   cli_mode="interpreter"
  93. fi
  94.  
  95. # Assign false value boolean
  96. # to both options when its null
  97. if [ -z "${isDel}" ]; then
  98.   isDel='n'
  99. fi
  100.  
  101. if [ -z "${isCompress}" ]; then
  102.   isCompress='n'
  103. fi
  104.  
  105. SECONDS=0
  106.  
  107. # Asking user whenever the
  108. # parameter is blank or null
  109. if [[ $inputFile == '' ]]; then
  110.   # Print available file on
  111.   # current folder
  112.   # clear
  113.   read -p "Nama Mailist Mu: " inputFile
  114. fi
  115.  
  116. if [[ $targetFolder == '' ]]; then
  117.   read -p "Nama Folder Result: " targetFolder
  118.   # Check if result folder exists
  119.   # then create if it didn't
  120.   if [[ ! -d "$targetFolder" ]]; then
  121.     echo "[+] Creating $targetFolder/ folder"
  122.     mkdir $targetFolder
  123.   else
  124.     read -p "$targetFolder/ folder sudah ada, timpa ? [y/n]: " isAppend
  125.     if [[ $isAppend == 'n' ]]; then
  126.       exit
  127.     fi
  128.   fi
  129. else
  130.   if [[ ! -d "$targetFolder" ]]; then
  131.     echo "[+] Creating $targetFolder/ folder"
  132.     mkdir $targetFolder
  133.   fi
  134. fi
  135.  
  136. if [[ $isDel == '' || $cli_mode == 'interactive' ]]; then
  137.   read -p "Hapus list per check ? [y/n]: " isDel
  138. fi
  139.  
  140. if [[ $isCompress == '' || $cli_mode == 'interactive' ]]; then
  141.   read -p "Compress the result ? [y/n]: " isCompress
  142. fi
  143.  
  144. if [[ $sendList == '' ]]; then
  145.   read -p "How many list send: " sendList
  146. fi
  147.  
  148. if [[ $perSec == '' ]]; then
  149.   read -p "Delay time: " perSec
  150. fi
  151.  
  152.  
  153. urlencode() {
  154.     # urlencode <string>
  155.  
  156.     local length="${#1}"
  157.     for (( i = 0; i < length; i++ )); do
  158.         local c="${1:i:1}"
  159.         case $c in
  160.             [a-zA-Z0-9.~_-]) printf "$c" ;;
  161.             *) printf '%s' "$c" | xxd -p -c1 |
  162.                    while read c; do printf '%%%s' "$c"; done ;;
  163.         esac
  164.     done
  165. }
  166.  
  167.  
  168.   malhadi_request() {
  169.   RED='\033[0;31m'
  170.   CYAN='\033[0;36m'
  171.   YELLOW='\033[1;33m'
  172.   ORANGE='\033[0;33m'
  173.   PURPLE='\033[0;35m'
  174.   NC='\033[0m'
  175.   SECONDS=0
  176.   useragent=('Mozilla/5.0 (Windows NT 6.0) AppleWebKit/5362 (KHTML, like Gecko) Chrome/14.0.848.0 Safari/5362' 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)' 'Opera/8.77 (Windows NT 6.0; U; en-US) Presto/2.9.179 Version/10.00' 'Mozilla/5.0 (Windows NT 5.1; en-US; rv:1.9.0.20) Gecko/20130614 Firefox/3.6.8' 'Mozilla/5.0 (Windows NT 6.0; en-US; rv:1.9.0.20) Gecko/20141216 Firefox/7.0' 'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.0; Trident/5.1)' 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/5.1)' 'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.0; Trident/4.1)' 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/5350 (KHTML, like Gecko) Chrome/15.0.827.0 Safari/5350' 'Mozilla/5.0 (Windows NT 5.0; en-US; rv:1.9.2.20) Gecko/20110914 Firefox/5.0.1' 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/5311 (KHTML, like Gecko) Chrome/13.0.808.0 Safari/5311' 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.0; Trident/4.1)' 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/5352 (KHTML, like Gecko) Chrome/15.0.874.0 Safari/5352' 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/3.0)' 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0)' 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/5361 (KHTML, like Gecko) Chrome/13.0.833.0 Safari/5361' 'Mozilla/5.0 (Windows NT 6.1; en-US; rv:1.9.0.20) Gecko/20120410 Firefox/3.8')
  177.   declare -A countryCodeList=( [AF]="Afghanistan" [AX]="Aland Islands" [AL]="Albania" [DZ]="Algeria" [AS]="American Samoa" [AD]="Andorra" [AO]="Angola" [AI]="Anguilla" [AQ]="Antarctica" [AG]="Antigua and Barbuda" [AR]="Argentina" [AM]="Armenia" [AW]="Aruba" [AU]="Australia" [AT]="Austria" [AZ]="Azerbaijan" [BS]="Bahamas" [BH]="Bahrain" [BD]="Bangladesh" [BB]="Barbados" [BY]="Belarus" [BE]="Belgium" [BZ]="Belize" [BJ]="Benin" [BM]="Bermuda" [BT]="Bhutan" [BO]="Bolivia, Plurinational State of" [BQ]="Bonaire, Sint Eustatius and Saba" [BA]="Bosnia and Herzegovina" [BW]="Botswana" [BV]="Bouvet Island" [BR]="Brazil" [IO]="British Indian Ocean Territory" [BN]="Brunei Darussalam" [BG]="Bulgaria" [BF]="Burkina Faso" [BI]="Burundi" [KH]="Cambodia" [CM]="Cameroon" [CA]="Canada" [CV]="Cape Verde" [KY]="Cayman Islands" [CF]="Central African Republic" [TD]="Chad" [CL]="Chile" [CN]="China Domestic" [C2]="China International" [CX]="Christmas Island" [CC]="Cocos (Keeling) Islands" [CO]="Colombia" [KM]="Comoros" [CG]="Congo" [CD]="Congo, The Democratic Republic of the" [CK]="Cook Islands" [CR]="Costa Rica" [CI]="Cote d'Ivoire" [HR]="Croatia" [CU]="Cuba" [CW]="Curacao" [CY]="Cyprus" [CZ]="Czech Republic" [DK]="Denmark" [DJ]="Djibouti" [DM]="Dominica" [DO]="Dominican Republic" [EC]="Ecuador" [EG]="Egypt" [SV]="El Salvador" [GQ]="Equatorial Guinea" [ER]="Eritrea" [EE]="Estonia" [ET]="Ethiopia" [FK]="Falkland Islands (Malvinas)" [FO]="Faroe Islands" [FJ]="Fiji" [FI]="Finland" [FR]="France" [GF]="French Guiana" [PF]="French Polynesia" [TF]="French Southern Territories" [GA]="Gabon" [GM]="Gambia" [GE]="Georgia" [DE]="Germany" [GH]="Ghana" [GI]="Gibraltar" [GR]="Greece" [GL]="Greenland" [GD]="Grenada" [GP]="Guadeloupe" [GU]="Guam" [GT]="Guatemala" [GG]="Guernsey" [GN]="Guinea" [GW]="Guinea-Bissau" [GY]="Guyana" [HT]="Haiti" [HM]="Heard Island and McDonald Islands" [VA]="Holy See (Vatican City State)" [HN]="Honduras" [HK]="Hong Kong" [HU]="Hungary" [IS]="Iceland" [IN]="India" [ID]="Indonesia" [IR]="Iran, Islamic Republic of" [IQ]="Iraq" [IE]="Ireland" [IM]="Isle of Man" [IL]="Israel" [IT]="Italy" [JM]="Jamaica" [JP]="Japan" [JE]="Jersey" [JO]="Jordan" [KZ]="Kazakhstan" [KE]="Kenya" [KI]="Kiribati" [KP]="Korea, Democratic People's Republic of" [KR]="Korea, Republic of" [KW]="Kuwait" [KG]="Kyrgyzstan" [LA]="Lao People's Democratic Republic" [LV]="Latvia" [LB]="Lebanon" [LS]="Lesotho" [LR]="Liberia" [LY]="Libya" [LI]="Liechtenstein" [LT]="Lithuania" [LU]="Luxembourg" [MO]="Macao" [MK]="Macedonia, The Former Yugoslav Republic of" [MG]="Madagascar" [MW]="Malawi" [MY]="Malaysia" [MV]="Maldives" [ML]="Mali" [MT]="Malta" [MH]="Marshall Islands" [MQ]="Martinique" [MR]="Mauritania" [MU]="Mauritius" [YT]="Mayotte" [MX]="Mexico" [FM]="Micronesia, Federated States of" [MD]="Moldova, Republic of" [MC]="Monaco" [MN]="Mongolia" [ME]="Montenegro" [MS]="Montserrat" [MA]="Morocco" [MZ]="Mozambique" [MM]="Myanmar" [NA]="Namibia" [NR]="Nauru" [NP]="Nepal" [NL]="Netherlands" [NC]="New Caledonia" [NZ]="New Zealand" [NI]="Nicaragua" [NE]="Niger" [NG]="Nigeria" [NU]="Niue" [NF]="Norfolk Island" [MP]="Northern Mariana Islands" [NO]="Norway" [OM]="Oman" [PK]="Pakistan" [PW]="Palau" [PS]="Palestine, State of" [PA]="Panama" [PG]="Papua New Guinea" [PY]="Paraguay" [PE]="Peru" [PH]="Philippines" [PN]="Pitcairn" [PL]="Poland" [PT]="Portugal" [PR]="Puerto Rico" [QA]="Qatar" [RE]="Reunion" [RO]="Romania" [RU]="Russian Federation" [RW]="Rwanda" [BL]="Saint Barthelemy" [SH]="Saint Helena, Ascension and Tristan Da Cunha" [KN]="Saint Kitts and Nevis" [LC]="Saint Lucia" [MF]="Saint Martin (French part)" [PM]="Saint Pierre and Miquelon" [VC]="Saint Vincent and the Grenadines" [WS]="Samoa" [SM]="San Marino" [ST]="Sao Tome and Principe" [SA]="Saudi Arabia" [SN]="Senegal" [RS]="Serbia" [SC]="Seychelles" [SL]="Sierra Leone" [SG]="Singapore" [SX]="Sint Maarten (Dutch part)" [SK]="Slovakia" [SI]="Slovenia" [SB]="Solomon Islands" [SO]="Somalia" [ZA]="South Africa" [GS]="South Georgia and the South Sandwich Islands" [SS]="South Sudan" [ES]="Spain" [LK]="Sri Lanka" [SD]="Sudan" [SR]="Suriname" [SJ]="Svalbard and Jan Mayen" [SZ]="Swaziland" [SE]="Sweden" [CH]="Switzerland" [SY]="Syrian Arab Republic" [TW]="Taiwan, Province of China" [TJ]="Tajikistan" [TZ]="Tanzania, United Republic of" [TH]="Thailand" [TL]="Timor-Leste" [TG]="Togo" [TK]="Tokelau" [TO]="Tonga" [TT]="Trinidad and Tobago" [TN]="Tunisia" [TR]="Turkey" [TM]="Turkmenistan" [TC]="Turks and Caicos Islands" [TV]="Tuvalu" [UG]="Uganda" [UA]="Ukraine" [AE]="United Arab Emirates" [GB]="United Kingdom" [UK]="United Kingdom" [US]="United States" [UM]="United States Minor Outlying Islands" [UY]="Uruguay" [UZ]="Uzbekistan" [VU]="Vanuatu" [VE]="Venezuela, Bolivarian Republic of" [VN]="Viet Nam" [VG]="Virgin Islands, British" [VI]="Virgin Islands, U.S." [WF]="Wallis and Futuna" [EH]="Western Sahara" [YE]="Yemen" [ZM]="Zambia" [ZW]="Zimbabwe" )
  178.   rand_useragent=${useragent[$RANDOM % ${#useragent[@]}]}
  179.  
  180.   # posted=`curl "https://www.paypal.com/cgi-bin/webscr" --data "cmd=_cart&upload=1&business=$1&item_name_1=Iyaharuuum&amount_1=12.35&shipping_1=2.45" --compressed -D - -s --cookie-jar drop.cook --cookie asu`
  181.   posted=`curl "https://www.paypal.com/cgi-bin/webscr" --data "item_name=Sunbury$RAND.COM+-+Monthly+Email+Address&p3=1&t3=Y&cmd=_xclick-subscriptions&currency_code=AUD&sra=1&src=1&business=$1" --compressed -D - -s --cookie-jar drop-cookies.txt --cookie cookies.txt`
  182.   duration=$SECONDS
  183.  
  184.   # echo -n $1;echo "$posted" | grep 'merchantCountry'
  185.   # countryCode="$(echo "$posted" | grep 'merchantCountr' | grep -o -P '(?<=merchantCountry=).*(?=\")')"
  186.   countryCode="$(echo "$posted" | grep -o -P '(?<=paypal.com).*(?=cgi-bin)' | tail -1 | awk -F[\/\/] '{print $2}' | tr '[:lower:]' '[:upper:]')"
  187.   header="`date +%H:%M:%S` $inputFile -> $targetFolder"
  188.   footer="[Dr Hard - PayPal Valid] $(($duration % 60))sec.\n"
  189.  
  190.   if [[ $countryCode == '' ]]; then
  191.     printf "[$header] $2/$3. ${RED}DIE => $1 ${NC} $footer"
  192.     echo "$1" >> $4/die.txt
  193.     # echo "$posted" > $1.html
  194.   else
  195.     country=${countryCodeList[$countryCode]}
  196.     printf "[$header] $2/$3. ${GRN}LIVE [$country] ($countryCode) => $1 ${NC} $footer"
  197.     echo "[$country] ($countryCode) => $1" >> $4/live.txt
  198.   fi
  199.  
  200.   printf "\r"
  201. }
  202.  
  203. # Preparing file list
  204. # by using email pattern
  205. # every line in $inputFile
  206. echo "[+] Cleaning your mailist file"
  207. grep -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' $inputFile | tr '[:upper:]' '[:lower:]' | sort | uniq > temp_list && mv temp_list $inputFile
  208.  
  209. # Finding match mail provider
  210. echo "___________________________________________________"
  211. # Print total line of mailist
  212. totalLines=`grep -c "@" $inputFile`
  213. echo "There are $totalLines of list."
  214. echo " "
  215. echo "Hotmail: `grep -c "@hotmail" $inputFile`"
  216. echo "Yahoo: `grep -c "@yahoo" $inputFile`"
  217. echo "Gmail: `grep -c "@gmail" $inputFile`"
  218. echo "Aol: `grep -c "@aol" $inputFile`"
  219. echo "Yandex: `grep -c "@yandex" $inputFile`"
  220. echo "Outlock: `grep -c "@Outlock" $inputFile`"
  221. echo "Mail: `grep -c "@mail" $inputFile`"
  222. echo "Gmail: `grep -c "@gmail" $inputFile`"
  223. echo "___________________________________________________"
  224.  
  225. # Extract email per line
  226. # from both input file
  227. IFS=$'\r\n' GLOBIGNORE='*' command eval  'mailist=($(cat $inputFile))'
  228. con=1
  229.  
  230. echo "[+] Sending $sendList email per $perSec seconds"
  231.  
  232. for (( i = 0; i < "${#mailist[@]}"; i++ )); do
  233.   username="${mailist[$i]}"
  234.   indexer=$((con++))
  235.   tot=$((totalLines--))
  236.   fold=`expr $i % $sendList`
  237.   if [[ $fold == 0 && $i > 0 ]]; then
  238.     header="`date +%H:%M:%S`"
  239.     duration=$SECONDS
  240.     echo "Waiting $perSec seconds. $(($duration / 3600)) hours $(($duration / 60 % 60)) minutes and $(($duration % 60)) seconds elapsed, ratio $sendList email / $perSec seconds"
  241.     sleep $perSec
  242.   fi
  243.  
  244.   malhadi_request "$username" "$indexer" "$tot" "$targetFolder" "$inputFile" &
  245.  
  246.   if [[ $isDel == 'y' ]]; then
  247.     grep -v -- "$username" $inputFile > "$inputFile"_temp && mv "$inputFile"_temp $inputFile
  248.   fi
  249. done
  250.  
  251. # waiting the background process to be done
  252. # then checking list from garbage collector
  253. # located on $targetFolder/unknown.txt
  254. echo "[+] Waiting background process to be done"
  255. wait
  256. wc -l $targetFolder/*
  257.  
  258. if [[ $isCompress == 'y' ]]; then
  259.   tgl=`date`
  260.   tgl=${tgl// /-}
  261.   zipped="$targetFolder-$tgl.zip"
  262.  
  263.   echo "[+] Compressing result"
  264.   zip -r "compressed/$zipped" "$targetFolder/die.txt" "$targetFolder/live.txt" "$targetFolder/limited.txt"
  265.   echo "[+] Saved to compressed/$zipped"
  266.   mv $targetFolder haschecked
  267.   echo "[+] $targetFolder has been moved to haschecked/"
  268. fi
  269. #rm $inputFile
  270. duration=$SECONDS
  271. echo "Checking done in $(($duration / 3600)) hours $(($duration / 60 % 60)) minutes and $(($duration % 60)) seconds."
  272. echo "+==========+ VanGans || - Power by  XZ-Sec || VanGans +==========+"
Advertisement
Add Comment
Please, Sign In to add comment