Advertisement
LahsenA

basharchive....45

Dec 9th, 2019
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.14 KB | None | 0 0
  1. #!/container/slam
  2.  
  3. # Email Extractor
  4.  
  5. # Coded By AriestaHeart
  6.  
  7. # Thanks to malhadijr
  8.  
  9. # content style
  10.  
  11. BOLD='\e[1m'
  12.  
  13. # content shading
  14.  
  15. RED='\033[0;31m'
  16.  
  17. GREEN='\033[0;32m'
  18.  
  19. YELLOW='\033[0;33m'
  20.  
  21. BLUE='\033[0;34m'
  22.  
  23. MAENTA='\033[0;35m'
  24.  
  25. LIGHTRED='\033[0;91m'
  26.  
  27. LIGHTGREEN='\033[0;92m'
  28.  
  29. LIGHTCYAN='\033[0;96m'
  30.  
  31. # foundation shading
  32.  
  33. BACKGREEN='\033[0;42m'
  34.  
  35. BACKBLUE='\033[0;44m'
  36.  
  37. # no style
  38.  
  39. NC='\033[0m'
  40.  
  41. header(){
  42.  
  43. printf " ${LIGHTGREEN}___${NC} ${LIGHTRED} __ ${NC}\n"
  44.  
  45. printf " ${LIGHTGREEN}/|${NC} ${LIGHTRED}//__ ____ ______//_ ${NC}\n"
  46.  
  47. printf " ${LIGHTGREEN}//| |${NC} ${LIGHTRED}//_//_ \/__ \'/___/__/${NC}\n"
  48.  
  49. printf " ${LIGHTGREEN}/___ |${NC} ${LIGHTRED}/__/__//_//_ ${NC}\n"
  50.  
  51. printf "${LIGHTGREEN}/_/|_|${NC} ${LIGHTRED}/_//_/\___/\__,_/_/\__/${NC}\n"
  52.  
  53. }
  54.  
  55. # -
  56.  
  57. clear
  58.  
  59. header
  60.  
  61. # -
  62.  
  63. reverberation ""
  64.  
  65. reverberation "__________________________________________________________________________________"
  66.  
  67. reverberation ""
  68.  
  69. reverberation "Email Filter"
  70.  
  71. reverberation "Coded By : Ariesta Heart ( ariestahrt )"
  72.  
  73. reverberation "Date : 22 March 2017"
  74.  
  75. reverberation "__________________________________________________________________________________"
  76.  
  77. reverberation ""
  78.  
  79. # end of banyol
  80.  
  81. reverberation "Rundown of record on this index : "
  82.  
  83. reverberation ""
  84.  
  85. ls
  86.  
  87. reverberation ""
  88.  
  89. reverberation "__________________________________________________________________________________"
  90.  
  91. # -
  92.  
  93. reverberation ""
  94.  
  95. printf "[+] Email List : ${LIGHTCYAN}"
  96.  
  97. understand emaillist
  98.  
  99. printf "${NC}"
  100.  
  101. # -
  102.  
  103. printf "[+] Result will spare in : ${LIGHTCYAN}"
  104.  
  105. understand spare
  106.  
  107. printf "${NC}"
  108.  
  109. # -
  110.  
  111. printf "[+] Making registry : "
  112.  
  113. on the off chance that [[ ! - d "$save" ]]; at that point
  114.  
  115. mkdir $save
  116.  
  117. reverberation - e "${GREEN}[OK]${NC}"
  118.  
  119. else
  120.  
  121. reverberation - e "${RED}[ERR]${NC} | ${RED}File Already Exists${NC}"
  122.  
  123. fi
  124.  
  125. reverberation ""
  126.  
  127. # -
  128.  
  129. counter=$(wc - l < $emaillist)
  130.  
  131. reverberation - e "${NC}[+] Total lines : [${LIGHTGREEN}$counter${NC}]"
  132.  
  133. reverberation "[+] Cleaning your email list , bringing down the word in your rundown , and evacuating copies email , Please hold up ..."
  134.  
  135. # Code for cleaning email list
  136.  
  137. grep - Eiorh '([[:alnum:]_.- ]+@[[:alnum:]_.- ]+?\.[[:alpha:].]{2,6})' $emaillist | sort | uniq > temp_list && mv temp_list $emaillist
  138.  
  139. # Lowering the word
  140.  
  141. feline $emaillist | awk '{print tolower($0)}' | sort | uniq > temp_list && mv temp_list $emaillist
  142.  
  143. # Removing copies line
  144.  
  145. sort - u $emaillist | uniq > temp_list && mv temp_list $emaillist
  146.  
  147. counter=$(wc - l < $emaillist)
  148.  
  149. reverberation ""
  150.  
  151. reverberation "[+] Done ~"
  152.  
  153. reverberation ""
  154.  
  155. reverberation - e "[+] You have [${LIGHTGREEN}$counter${NC}] email"
  156.  
  157. reverberation ""
  158.  
  159. # Array list here
  160.  
  161. microsoft_family=( hotmail live viewpoint msn )
  162.  
  163. yahoo_family=( hurray ymail btinternet bt rocketmail sky )
  164.  
  165. google_family=( gmail google googlemail )
  166.  
  167. aol_family=( aol )
  168.  
  169. # Array list here
  170.  
  171. otherpath="other_mail.txt"
  172.  
  173. cp $emaillist "$save/$otherpath"
  174.  
  175. # - GREPING MICROSOFT FAMILY - #
  176.  
  177. # -
  178.  
  179. thispath="microsoft_family.txt"
  180.  
  181. # -
  182.  
  183. reverberation "[+] Catch microsoft family : "
  184.  
  185. reverberation "[+] I have list : "
  186.  
  187. for (( I = 0; I < ${#microsoft_family[@]}; i++ )); do
  188.  
  189. reverberation " [-] @${microsoft_family[$i]}.*"
  190.  
  191. done
  192.  
  193. reverberation ""
  194.  
  195. # - Looping - #
  196.  
  197. for (( I = 0; I < ${#microsoft_family[@]}; i++ )); do
  198.  
  199. emailtogrep="@${microsoft_family[$i]}."
  200.  
  201. printf " [+] Catch $emailtogrep* : "
  202.  
  203. feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
  204.  
  205. feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
  206.  
  207. counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
  208.  
  209. on the off chance that [[ $counter != 0 ]]; at that point
  210.  
  211. printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
  212.  
  213. else
  214.  
  215. printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
  216.  
  217. fi
  218.  
  219. done
  220.  
  221. # - Looping - #
  222.  
  223. counter=$(wc - l < "$save/$thispath")
  224.  
  225. reverberation ""
  226.  
  227. reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Microsoft Family"
  228.  
  229. reverberation ""
  230.  
  231. # - END OF GREPING HOTMAIL FAMILY - #
  232.  
  233. #############################
  234.  
  235. # - GREPING YAHOO FAMILY - #
  236.  
  237. # -
  238.  
  239. thispath="yahoo_family.txt"
  240.  
  241. # -
  242.  
  243. reverberation "[+] Catch yippee family : "
  244.  
  245. reverberation "[+] I have list : "
  246.  
  247. for (( I = 0; I < ${#yahoo_family[@]}; i++ )); do
  248.  
  249. reverberation " [-] @${yahoo_family[$i]}.*"
  250.  
  251. done
  252.  
  253. reverberation ""
  254.  
  255. # - Looping - #
  256.  
  257. for (( I = 0; I < ${#yahoo_family[@]}; i++ )); do
  258.  
  259. emailtogrep="@${yahoo_family[$i]}."
  260.  
  261. printf " [+] Catch $emailtogrep* : "
  262.  
  263. feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
  264.  
  265. feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
  266.  
  267. counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
  268.  
  269. on the off chance that [[ $counter != 0 ]]; at that point
  270.  
  271. printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
  272.  
  273. else
  274.  
  275. printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
  276.  
  277. fi
  278.  
  279. done
  280.  
  281. # - Looping - #
  282.  
  283. counter=$(wc - l < "$save/$thispath")
  284.  
  285. reverberation ""
  286.  
  287. reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Yahoo Family"
  288.  
  289. reverberation ""
  290.  
  291. # - END OF GREPING YAHOO FAMILY - #
  292.  
  293. #############################
  294.  
  295. # - GREPING GOOGLE FAMILY - #
  296.  
  297. # -
  298.  
  299. thispath="google_family.txt"
  300.  
  301. # -
  302.  
  303. reverberation "[+] Catch google family : "
  304.  
  305. reverberation "[+] I have list : "
  306.  
  307. for (( I = 0; I < ${#google_family[@]}; i++ )); do
  308.  
  309. reverberation " [-] @${google_family[$i]}.*"
  310.  
  311. done
  312.  
  313. reverberation ""
  314.  
  315. # - Looping - #
  316.  
  317. for (( I = 0; I < ${#google_family[@]}; i++ )); do
  318.  
  319. emailtogrep="@${google_family[$i]}."
  320.  
  321. printf " [+] Catch $emailtogrep* : "
  322.  
  323. feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
  324.  
  325. feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
  326.  
  327. counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
  328.  
  329. on the off chance that [[ $counter != 0 ]]; at that point
  330.  
  331. printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
  332.  
  333. else
  334.  
  335. printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
  336.  
  337. fi
  338.  
  339. done
  340.  
  341. # - Looping - #
  342.  
  343. counter=$(wc - l < "$save/$thispath")
  344.  
  345. reverberation ""
  346.  
  347. reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Google Family"
  348.  
  349. reverberation ""
  350.  
  351. # - END OF GREPING GOOGLE FAMILY - #
  352.  
  353. # - GREPING AOL FAMILY - #
  354.  
  355. # -
  356.  
  357. thispath="aol_family.txt"
  358.  
  359. # -
  360.  
  361. reverberation "[+] Catch aol family : "
  362.  
  363. reverberation "[+] I have list : "
  364.  
  365. for (( I = 0; I < ${#aol_family[@]}; i++ )); do
  366.  
  367. reverberation " [-] @${aol_family[$i]}.*"
  368.  
  369. done
  370.  
  371. reverberation ""
  372.  
  373. # - Looping - #
  374.  
  375. for (( I = 0; I < ${#aol_family[@]}; i++ )); do
  376.  
  377. emailtogrep="@${aol_family[$i]}."
  378.  
  379. printf " [+] Catch $emailtogrep* : "
  380.  
  381. feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
  382.  
  383. feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
  384.  
  385. counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
  386.  
  387. in the event that [[ $counter != 0 ]]; at that point
  388.  
  389. printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
  390.  
  391. else
  392.  
  393. printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
  394.  
  395. fi
  396.  
  397. done
  398.  
  399. # - Looping - #
  400.  
  401. counter=$(wc - l < "$save/$thispath")
  402.  
  403. reverberation ""
  404.  
  405. reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Aol Family"
  406.  
  407. reverberation ""
  408.  
  409. # - END OF GREPING AOL FAMILY - #
  410.  
  411. #############################
  412.  
  413. # - OTHER MAIL - #
  414.  
  415. reverberation "[+] Other Mail"
  416.  
  417. counter=$(wc - l < "$save/$otherpath")
  418.  
  419. reverberation ""
  420.  
  421. reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Other Mail"
  422.  
  423. reverberation ""
  424.  
  425. reverberation "[+] Done - "
  426.  
  427. reverberation ""
  428.  
  429. # - OTHER MAIL - #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement