Advertisement
Guest User

Untitled

a guest
Feb 13th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.02 KB | None | 0 0
  1. <note: simpen file jadiin format .sh tq by onneganteng>
  2.  
  3. #!/bin/bash
  4. # Slackerc0de Family Present
  5. # By Malhadi Jr.
  6. # Recoded by MRCk222 From IDLive
  7.  
  8. #set -x
  9. NC='\033[0m'
  10. GREEN='\e[38;5;82m'
  11. CYAN='\e[38;5;45m'
  12. RED='\e[38;5;196m'
  13. echo ""
  14. printf "\n";
  15. printf "${CYAN}##############################################\n"
  16. printf "${CYAN}##############################################\n"
  17. printf "\e[38;5;82m#######\ #######\ ## |\n"
  18. printf "\e[38;5;82m## __##\ ## __##\ ## |\n"
  19. printf "\e[38;5;82m## | ## |######\ ##\ ##\ ## | ## |######\ ## |\n"
  20. printf "\e[38;5;82m####### |\____##\ ## | ## |####### |\____##\ ## |\n"
  21. printf "\e[38;5;82m## ____/ ####### |## | ## |## ____/ ####### |## |\n"
  22. printf "\e[38;5;82m## | ## __## |## | ## |## | ## __## |## |\n"
  23. printf "\e[38;5;82m## | \####### |\####### |## | \####### |## |\n"
  24. printf "\e[38;5;82m\__| \_______| \____## |\__| \_______|\__|\n"
  25. printf "\e[38;5;82m ##\ ## |\n"
  26. printf "\e[38;5;82m \###### |\n"
  27. printf "\e[38;5;82m \______/\n"
  28. printf "${RED}"
  29. printf "==============================================\n"
  30. printf "${NC} NyenderID - PP Valid v1 \n"
  31. printf "${RED}==============================================${NC}\n\n"
  32.  
  33. usage() {
  34. echo "Usage: ./myscript.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.  
  48. Report any bugs to: IDLive
  49. "
  50. exit 1
  51. }
  52.  
  53. # Assign the arguments for each
  54. # parameter to global variable
  55. while getopts ":i:r:l:t:dchu" o; do
  56. case "${o}" in
  57. i)
  58. inputFile=${OPTARG}
  59. ;;
  60. r)
  61. targetFolder=${OPTARG}
  62. ;;
  63. l)
  64. sendList=${OPTARG}
  65. ;;
  66. t)
  67. perSec=${OPTARG}
  68. ;;
  69. d)
  70. isDel='y'
  71. ;;
  72. c)
  73. isCompress='y'
  74. ;;
  75. h)
  76. usage
  77. ;;
  78. esac
  79. done
  80.  
  81. # Do automatic update
  82. # before passing arguments
  83.  
  84.  
  85. if [[ $inputFile == '' || $targetFolder == '' || $sendList == '' || $perSec == '' ]]; then
  86. cli_mode="interactive"
  87. else
  88. cli_mode="interpreter"
  89. fi
  90.  
  91. # Assign false value boolean
  92. # to both options when its null
  93. if [ -z "${isDel}" ]; then
  94. isDel='n'
  95. fi
  96.  
  97. if [ -z "${isCompress}" ]; then
  98. isCompress='n'
  99. fi
  100.  
  101. SECONDS=0
  102.  
  103. # Asking user whenever the
  104. # parameter is blank or null
  105. if [[ $inputFile == '' ]]; then
  106. # Print available file on
  107. # current folder
  108. # clear
  109. tree
  110. read -p "Enter mailist file: " inputFile
  111. fi
  112.  
  113. if [[ $targetFolder == '' ]]; then
  114. read -p "Enter target folder: " targetFolder
  115. # Check if result folder exists
  116. # then create if it didn't
  117. if [[ ! -d "$targetFolder" ]]; then
  118. echo "[+] Creating $targetFolder/ folder"
  119. mkdir $targetFolder
  120. else
  121. read -p "$targetFolder/ folder are exists, append to them ? [y/n]: " isAppend
  122. if [[ $isAppend == 'n' ]]; then
  123. exit
  124. fi
  125. fi
  126. else
  127. if [[ ! -d "$targetFolder" ]]; then
  128. echo "[+] Creating $targetFolder/ folder"
  129. mkdir $targetFolder
  130. fi
  131. fi
  132.  
  133. if [[ $isDel == '' || $cli_mode == 'interactive' ]]; then
  134. read -p "Delete list per check ? [y/n]: " isDel
  135. fi
  136.  
  137. if [[ $isCompress == '' || $cli_mode == 'interactive' ]]; then
  138. read -p "Compress the result ? [y/n]: " isCompress
  139. fi
  140.  
  141. if [[ $sendList == '' ]]; then
  142. read -p "How many list send: " sendList
  143. fi
  144.  
  145. if [[ $perSec == '' ]]; then
  146. read -p "Delay time: " perSec
  147. fi
  148.  
  149.  
  150. urlencode() {
  151. # urlencode <string>
  152.  
  153. local length="${#1}"
  154. for (( i = 0; i < length; i++ )); do
  155. local c="${1:i:1}"
  156. case $c in
  157. [a-zA-Z0-9.~_-]) printf "$c" ;;
  158. *) printf '%s' "$c" | xxd -p -c1 |
  159. while read c; do printf '%%%s' "$c"; done ;;
  160. esac
  161. done
  162. }
  163.  
  164.  
  165. malhadi_request() {
  166. RED='\033[0;31m'
  167. CYAN='\033[0;36m'
  168. YELLOW='\033[1;33m'
  169. ORANGE='\033[0;33m'
  170. PURPLE='\033[0;35m'
  171. NC='\033[0m'
  172. SECONDS=0
  173. 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')
  174. 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" )
  175. rand_useragent=${useragent[$RANDOM % ${#useragent[@]}]}
  176.  
  177. # 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`
  178. 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 cookiejar.txt --cookie cookie.txt`
  179. duration=$SECONDS
  180.  
  181. # echo -n $1;echo "$posted" | grep 'merchantCountry'
  182. # countryCode="$(echo "$posted" | grep 'merchantCountr' | grep -o -P '(?<=merchantCountry=).*(?=\")')"
  183. countryCode="$(echo "$posted" | grep -o -P '(?<=paypal.com).*(?=cgi-bin)' | tail -1 | awk -F[\/\/] '{print $2}' | tr '[:lower:]' '[:upper:]')"
  184. header="`date +%H:%M:%S` $inputFile -> $targetFolder"
  185. footer="[IDLIVE - PaypalV.03]\n"
  186.  
  187. if [[ $countryCode == '' ]]; then
  188. printf "$2/$3. [${RED}DIE${NC}]${RED} $1 ${NC} $footer"
  189. echo "$1" >> $4/die.txt
  190. # echo "$posted" > $1.html
  191. else
  192. country=${countryCodeList[$countryCode]}
  193. printf "$2/$3. [\e[38;5;82mLIVE${NC}] \e[38;5;82m[$country] \e[38;5;82m($countryCode) \e[38;5;82m$1 ${NC} $footer"
  194. echo "[$country] ($countryCode) => $1" >> $4/live.txt
  195. fi
  196.  
  197. printf "\r"
  198. }
  199. echo "========================================"
  200. totalLines=`grep -c "@" $inputFile`
  201. echo "Total List : $totalLines."
  202. echo " "
  203. echo "Hotmail: `grep -c "@hotmail" $inputFile`"
  204. echo "Yahoo: `grep -c "@yahoo" $inputFile`"
  205. echo "Gmail: `grep -c "@gmail" $inputFile`"
  206. echo "Yandex: `grep -c "@yandex" $inputFile`"
  207. echo ".de: `grep -c ".de" $inputFile`"
  208. echo "========================================"
  209.  
  210. # Extract email per line
  211. # from both input file
  212. IFS=$'\r\n' GLOBIGNORE='*' command eval 'mailist=($(cat $inputFile))'
  213. con=1
  214.  
  215. echo "[+] Sending $sendList email per $perSec seconds"
  216.  
  217. for (( i = 0; i < "${#mailist[@]}"; i++ )); do
  218. username="${mailist[$i]}"
  219. indexer=$((con++))
  220. tot=$((totalLines--))
  221. fold=`expr $i % $sendList`
  222. if [[ $fold == 0 && $i > 0 ]]; then
  223. header="`date +%H:%M:%S`"
  224. duration=$SECONDS
  225. echo "Waiting $perSec seconds. $(($duration / 3600)) hours $(($duration / 60 % 60)) minutes and $(($duration % 60)) seconds elapsed, ratio $sendList email / $perSec seconds"
  226. sleep $perSec
  227. fi
  228.  
  229. malhadi_request "$username" "$indexer" "$tot" "$targetFolder" "$inputFile" &
  230.  
  231. if [[ $isDel == 'y' ]]; then
  232. grep -v -- "$username" $inputFile > "$inputFile"_temp && mv "$inputFile"_temp $inputFile
  233. fi
  234. done
  235.  
  236. # waiting the background process to be done
  237. # then checking list from garbage collector
  238. # located on $targetFolder/unknown.txt
  239. echo "[+] Waiting background process to be done"
  240. wait
  241. wc -l $targetFolder/*
  242.  
  243. if [[ $isCompress == 'y' ]]; then
  244. tgl=`date`
  245. tgl=${tgl// /-}
  246. zipped="$targetFolder-$tgl.zip"
  247.  
  248. echo "[+] Compressing result"
  249. zip -r "compressed/$zipped" "$targetFolder/die.txt" "$targetFolder/live.txt" "$targetFolder/limited.txt"
  250. echo "[+] Saved to compressed/$zipped"
  251. mv $targetFolder haschecked
  252. echo "[+] $targetFolder has been moved to haschecked/"
  253. fi
  254. #rm $inputFile
  255. duration=$SECONDS
  256. echo "Checking done in $(($duration / 3600)) hours $(($duration / 60 % 60)) minutes and $(($duration % 60)) seconds."
  257. echo "+==========+ PAYPAL EMAIL VALIDATOR +==========+"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement