Advertisement
Guest User

Untitled

a guest
Jun 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.43 KB | None | 0 0
  1. #!/usr/bin/python
  2. #-*- coding: utf-8 -*-
  3. # [Program]
  4.  
  5.  
  6. import sys
  7. import os
  8. import ftplib
  9. import ConfigParser
  10. import urllib
  11. import gzip
  12. import csv
  13.  
  14. # Lecture du fichier de configuration ...
  15. config = ConfigParser.ConfigParser()
  16. config.read('cupp.cfg')
  17.  
  18. years = config.get('years', 'years').split(',')
  19. chars = config.get('specialchars', 'chars').split(',')
  20.  
  21. numfrom = config.getint('nums','from')
  22. numto = config.getint('nums','to')
  23.  
  24. wcfrom = config.getint('nums','wcfrom')
  25. wcto = config.getint('nums','wcto')
  26.  
  27. threshold = config.getint('nums','threshold')
  28.  
  29. # 1337 configs en mode, bien vous pouvez ajouter plus de lignes si vous l'ajoutez aussi au fichier de configuration.
  30. # Vous devrez également ajouter plus de lignes à deux endroits dans le repertoire ...
  31. a = config.get('leet','a')
  32. i = config.get('leet','i')
  33. e = config.get('leet','e')
  34. t = config.get('leet','t')
  35. o = config.get('leet','o')
  36. s = config.get('leet','s')
  37. g = config.get('leet','g')
  38. z = config.get('leet','z')
  39.  
  40.  
  41. # pour les concaténations ...
  42.  
  43. def concats(seq, start, stop):
  44. for mystr in seq:
  45. for num in xrange(start, stop):
  46. yield mystr + str(num)
  47.  
  48.  
  49. # pour trier et faire des combinaisons ...
  50.  
  51. def komb(seq, start, special = ""):
  52. for mystr in seq:
  53. for mystr1 in start:
  54. yield mystr + special + mystr1
  55.  
  56. # imprimer la liste aux mots de comptage de fichiers
  57.  
  58. def print_to_file(filename, unique_list_finished):
  59. f = open ( filename, 'w' )
  60. unique_list_finished.sort()
  61. f.write (os.linesep.join(unique_list_finished))
  62. f = open ( filename, 'r' )
  63. lines = 0
  64. for line in f:
  65. lines += 1
  66. f.close()
  67. print "[+] Enregistrement du dictionnaire dans \033[1;31m"+filename+"\033[1;m, counting \033[1;31m"+str(lines)+" words.\033[1;m"
  68. print "[+] Maintenant, chargez votre pistolet avec \033[1;31m"+filename+"\033[1;m and shoot! Good luck!"
  69.  
  70. if len(sys.argv) < 2 or sys.argv[1] == '-h':
  71. print " ___________ "
  72. print " \033[07m Hacked! \033[27m "
  73. print " \ # Anonymous "
  74. print " \ \033[1;31m,__,\033[1;m "
  75. print " \ \033[1;31m(\033[1;moo\033[1;31m)____\033[1;m # Profiler"
  76. print " \033[1;31m(__) )\ \033[1;m "
  77. print " \033[1;31m ||--|| \033[1;m\033[05m*\033[25m\033[1;m [ M.Lazarus |M.Lazarus-Anonymous.org ]\r\n\r\n"
  78.  
  79. print " [ Options ]\r\n"
  80. print " -h Aide General:)"
  81. print " Pour plus d'aide jetez un coup d'oeil dans docs / README"
  82. print " Le fichier de configuration globale est cupp.cfg\n"
  83.  
  84. print " -i Questions interactives pour le profilage de mot de passe utilisateur\r\n"
  85.  
  86. print " -w infos suplémentaire pour wordlist"
  87. print " or WyD.pl sortie de la wordlist\r\n"
  88.  
  89. print " -l Telécharger listes de mots du referentiel\r\n"
  90. print " -a Analyser les noms d'utilisateur et les mots de passe par defaut directement a partir de la base de donnees Alecto"
  91. print " Project Alecto utilise des bases de donnees purifiees de Phenoelit et CIRT"
  92. print " \r\n"
  93. print " -v Version du programme\r\n"
  94. exit()
  95.  
  96. elif sys.argv[1] == '-v':
  97. print "\r\n \033[1;31m[ cupp.py ] v3.1.0-alpha\033[1;m\r\n"
  98. print " * Hacked up by lazarus - LazarusANons-exploit.org"
  99. print " * http://www.remote-exploit.org\r\n"
  100. exit()
  101.  
  102.  
  103. elif sys.argv[1] == '-w':
  104. if len(sys.argv) < 3:
  105. print "\r\n[Usage]: "+sys.argv[0]+" -w [FILENAME]\r\n"
  106. exit()
  107. fajl = open(sys.argv[2], "r")
  108. listic = fajl.readlines()
  109. linije = 0
  110. for line in listic:
  111. linije += 1
  112.  
  113. listica = []
  114. for x in listic:
  115. listica += x.split()
  116.  
  117. print "\r\n *************************************************"
  118. print " * \033[1;31mWARNING!!!\033[1;m *"
  119. print " * En utilisant de grandes listes de mots dans certains *"
  120. print " * les options ci-dessous ne sont pas recommandées! *"
  121. print " *************************************************\r\n"
  122.  
  123. conts = raw_input("> Voulez-vous concaténer tous les mots de la liste de mots? Y/[N]: ").lower()
  124.  
  125.  
  126.  
  127. if conts == "y" and linije > threshold:
  128. print "\r\n[-] Le nombre maximum de mots pour la concaténation est"+str(threshold)
  129. print "[-] Vérifiez le fichier de configuration pour augmenter ce nombre .\r\n"
  130. conts = raw_input("> Voulez-vous concaténer tous les mots de la liste de mots ? Y/[N]: ").lower()
  131. conts = conts
  132. cont = ['']
  133. if conts == "y":
  134. for cont1 in listica:
  135. for cont2 in listica:
  136. if listica.index(cont1) != listica.index(cont2):
  137. cont.append(cont1+cont2)
  138.  
  139. spechars = ['']
  140. spechars1 = raw_input("> Voulez-vous ajouter des caractères spéciaux à la fin des mots ? Y/[N]: ").lower()
  141. if spechars1 == "y":
  142. for spec1 in chars:
  143. spechars.append(spec1)
  144. for spec2 in chars:
  145. spechars.append(spec1+spec2)
  146. for spec3 in chars:
  147. spechars.append(spec1+spec2+spec3)
  148.  
  149. randnum = raw_input("> Voulez-vous ajouter des nombres aléatoires à la fin des mots ? Y/[N]:").lower()
  150. leetmode = raw_input("> Leet mode? (i.e. leet = 1337) Y/[N]: ").lower()
  151.  
  152.  
  153. kombinacija1 = list(komb(listica, years))
  154. kombinacija2 = ['']
  155. if conts == "y":
  156. kombinacija2 = list(komb(cont, years))
  157. kombinacija3 = ['']
  158. kombinacija4 = ['']
  159. if spechars1 == "y":
  160. kombinacija3 = list(komb(listica, spechars))
  161. if conts == "y":
  162. kombinacija4 = list(komb(cont, spechars))
  163. kombinacija5 = ['']
  164. kombinacija6 = ['']
  165. if randnum == "y":
  166. kombinacija5 = list(concats(listica, numfrom, numto))
  167. if conts == "y":
  168. kombinacija6 = list(concats(cont, numfrom, numto))
  169.  
  170. print "\r\n[+] Maintenant, faire un dictionnaire..."
  171.  
  172. print "[+] Tri de la liste et suppression des doublons..."
  173.  
  174. komb_unique1 = dict.fromkeys(kombinacija1).keys()
  175. komb_unique2 = dict.fromkeys(kombinacija2).keys()
  176. komb_unique3 = dict.fromkeys(kombinacija3).keys()
  177. komb_unique4 = dict.fromkeys(kombinacija4).keys()
  178. komb_unique5 = dict.fromkeys(kombinacija5).keys()
  179. komb_unique6 = dict.fromkeys(kombinacija6).keys()
  180. komb_unique7 = dict.fromkeys(listica).keys()
  181. komb_unique8 = dict.fromkeys(cont).keys()
  182.  
  183. uniqlist = komb_unique1+komb_unique2+komb_unique3+komb_unique4+komb_unique5+komb_unique6+komb_unique7+komb_unique8
  184.  
  185. unique_lista = dict.fromkeys(uniqlist).keys()
  186. unique_leet = []
  187. if leetmode == "y":
  188. for x in unique_lista: # Si vous voulez ajouter plus de caractères de leet, vous devrez ajouter plus de lignes dans le fichier cupp.cfg ...
  189. x = x.replace('a',a)
  190. x = x.replace('i',i)
  191. x = x.replace('e',e)
  192. x = x.replace('t',t)
  193. x = x.replace('o',o)
  194. x = x.replace('s',s)
  195. x = x.replace('g',g)
  196. x = x.replace('z',z)
  197. unique_leet.append(x)
  198.  
  199. unique_list = unique_lista + unique_leet
  200.  
  201. unique_list_finished = []
  202.  
  203. unique_list_finished = [x for x in unique_list if len(x) > wcfrom and len(x) < wcto]
  204.  
  205. print_to_file(sys.argv[2]+'.cupp.txt', unique_list_finished)
  206.  
  207. fajl.close()
  208. exit()
  209.  
  210.  
  211.  
  212. elif sys.argv[1] == '-i':
  213. print "\r\n[+] Insérer les informations sur la victime pour faire un dictionnaire"
  214. print "[+] Si vous ne connaissez pas toutes les informations, appuyez simplement sur Entrée lorsque vous y êtes invité! ;)\r\n"
  215.  
  216. # Nous avons besoin d'informations en premier!
  217.  
  218. name = raw_input("> Nom: ").lower()
  219. while len(name) == 0 or name == " " or name == " " or name == " ":
  220. print "\r\n[-] Vous devez entrer un nom au moins!"
  221. name = raw_input("> Nom: ").lower()
  222. name = str(name)
  223.  
  224. surname = raw_input("> surnom: ").lower()
  225. nick = raw_input("> Prenom: ").lower()
  226. birthdate = raw_input("> Anniversaire (JMA): ")
  227. while len(birthdate) != 0 and len(birthdate) != 8:
  228. print "\r\n[-] tu doit enter 8 chiffres pour Aniversaire!"
  229. birthdate = raw_input("> Anniversaire (JMA): ")
  230. birthdate = str(birthdate)
  231.  
  232. print "\r\n"
  233.  
  234. wife = raw_input("> Pere) nom: ").lower()
  235. wifen = raw_input("> pere) prenom: ").lower()
  236. wifeb = raw_input("> Pere) Anniversaire (JMA): ")
  237. while len(wifeb) != 0 and len(wifeb) != 8:
  238. print "\r\n[-] tu doit enter 8 chiffres pour birthday!"
  239. wifeb = raw_input("> Pere Anniversaire (JMA): ")
  240. wifeb = str(wifeb)
  241. print "\r\n"
  242.  
  243. kid = raw_input("> Enfants nom: ").lower()
  244. kidn = raw_input("> Enfants prenom: ").lower()
  245. kidb = raw_input("> Enfants Anniversaire (JMA): ")
  246. while len(kidb) != 0 and len(kidb) != 8:
  247. print "\r\n[-] tu doit enter 8 chiffres pour birthday!"
  248. kidb = raw_input("> Enfant Aniverssaire (JMA): ")
  249. kidb = str(kidb)
  250. print "\r\n"
  251.  
  252. pet = raw_input("> Animaux Compagnies: ").lower()
  253. company = raw_input("> Aninmaux nom: ").lower()
  254. print "\r\n"
  255.  
  256. words = ['']
  257. words1 = raw_input("> Voulez-vous ajouter quelques mots cles sur la victime? Y/[N]: ").lower()
  258. words2 = ""
  259. if words1 == "y":
  260. words2 = raw_input("> Entrer les mots separes par une virgule. [c'est a dire. hacker, jus, noir], les espaces seront supprimes: ").replace(" ","")
  261. words = words2.split(",")
  262.  
  263. spechars = ['']
  264. spechars1 = raw_input("> Voulez-vous ajouter des caracteres speciaux a la fin des mots ? Y/[N]: ").lower()
  265. if spechars1 == "y":
  266. for spec1 in chars:
  267. spechars.append(spec1)
  268. for spec2 in chars:
  269. spechars.append(spec1+spec2)
  270. for spec3 in chars:
  271. spechars.append(spec1+spec2+spec3)
  272.  
  273. randnum = raw_input("> Voulez-vous ajouter des nombres aleatoires a la fin des mots ? Y/[N]:").lower()
  274. leetmode = raw_input("> Leet mode? (i.e. leet = 1337) Y/[N]: ").lower()
  275.  
  276.  
  277. print "\r\n[+] Maintenant, faire un dictionnaire..."
  278.  
  279.  
  280. # Maintenant, je dois faire quelques modifications de cordes ...
  281. # Les anniversaires en premier
  282.  
  283. birthdate_yy = birthdate[-2:]
  284. birthdate_yyy = birthdate[-3:]
  285. birthdate_yyyy = birthdate[-4:]
  286. birthdate_xd = birthdate[1:2]
  287. birthdate_xm = birthdate[3:4]
  288. birthdate_dd = birthdate[:2]
  289. birthdate_mm = birthdate[2:4]
  290.  
  291. wifeb_yy = wifeb[-2:]
  292. wifeb_yyy = wifeb[-3:]
  293. wifeb_yyyy = wifeb[-4:]
  294. wifeb_xd = wifeb[1:2]
  295. wifeb_xm = wifeb[3:4]
  296. wifeb_dd = wifeb[:2]
  297. wifeb_mm = wifeb[2:4]
  298.  
  299. kidb_yy = kidb[-2:]
  300. kidb_yyy = kidb[-3:]
  301. kidb_yyyy = kidb[-4:]
  302. kidb_xd = kidb[1:2]
  303. kidb_xm = kidb[3:4]
  304. kidb_dd = kidb[:2]
  305. kidb_mm = kidb[2:4]
  306.  
  307.  
  308. # Convertir les premières lettres en majuscules ...
  309.  
  310. nameup = name.title()
  311. surnameup = surname.title()
  312. nickup = nick.title()
  313. wifeup = wife.title()
  314. wifenup = wifen.title()
  315. kidup = kid.title()
  316. kidnup = kidn.title()
  317. petup = pet.title()
  318. companyup = company.title()
  319.  
  320. wordsup = []
  321. wordsup = map(str.title, words)
  322.  
  323. word = words+wordsup
  324.  
  325. # inverser un nom
  326.  
  327. rev_name = name[::-1]
  328. rev_nameup = nameup[::-1]
  329. rev_nick = nick[::-1]
  330. rev_nickup = nickup[::-1]
  331. rev_wife = wife[::-1]
  332. rev_wifeup = wifeup[::-1]
  333. rev_kid = kid[::-1]
  334. rev_kidup = kidup[::-1]
  335.  
  336. reverse = [rev_name, rev_nameup, rev_nick, rev_nickup, rev_wife, rev_wifeup, rev_kid, rev_kidup]
  337. rev_n = [rev_name, rev_nameup, rev_nick, rev_nickup]
  338. rev_w = [rev_wife, rev_wifeup]
  339. rev_k = [rev_kid, rev_kidup]
  340. # Faisons un travail sérieux! Ce sera un désordre de code, mais ... qui s'en soucie? :
  341.  
  342. # Combinaisons d'anniversaires
  343.  
  344. bds = [birthdate_yy, birthdate_yyy, birthdate_yyyy, birthdate_xd, birthdate_xm, birthdate_dd, birthdate_mm]
  345.  
  346. bdss = []
  347.  
  348. for bds1 in bds:
  349. bdss.append(bds1)
  350. for bds2 in bds:
  351. if bds.index(bds1) != bds.index(bds2):
  352. bdss.append(bds1+bds2)
  353. for bds3 in bds:
  354. if bds.index(bds1) != bds.index(bds2) and bds.index(bds2) != bds.index(bds3) and bds.index(bds1) != bds.index(bds3):
  355. bdss.append(bds1+bds2+bds3)
  356.  
  357.  
  358.  
  359. # Pour la femme...
  360. wbds = [wifeb_yy, wifeb_yyy, wifeb_yyyy, wifeb_xd, wifeb_xm, wifeb_dd, wifeb_mm]
  361.  
  362. wbdss = []
  363.  
  364. for wbds1 in wbds:
  365. wbdss.append(wbds1)
  366. for wbds2 in wbds:
  367. if wbds.index(wbds1) != wbds.index(wbds2):
  368. wbdss.append(wbds1+wbds2)
  369. for wbds3 in wbds:
  370. if wbds.index(wbds1) != wbds.index(wbds2) and wbds.index(wbds2) != wbds.index(wbds3) and wbds.index(wbds1) != wbds.index(wbds3):
  371. wbdss.append(wbds1+wbds2+wbds3)
  372.  
  373.  
  374.  
  375. # pour les enfants...
  376. kbds = [kidb_yy, kidb_yyy, kidb_yyyy, kidb_xd, kidb_xm, kidb_dd, kidb_mm]
  377.  
  378. kbdss = []
  379.  
  380. for kbds1 in kbds:
  381. kbdss.append(kbds1)
  382. for kbds2 in kbds:
  383. if kbds.index(kbds1) != kbds.index(kbds2):
  384. kbdss.append(kbds1+kbds2)
  385. for kbds3 in kbds:
  386. if kbds.index(kbds1) != kbds.index(kbds2) and kbds.index(kbds2) != kbds.index(kbds3) and kbds.index(kbds1) != kbds.index(kbds3):
  387. kbdss.append(kbds1+kbds2+kbds3)
  388.  
  389. # cordes combinesons....
  390.  
  391. kombinaac = [pet, petup, company, companyup]
  392.  
  393. kombina = [name, surname, nick, nameup, surnameup, nickup]
  394.  
  395. kombinaw = [wife, wifen, wifeup, wifenup, surname, surnameup]
  396.  
  397. kombinak = [kid, kidn, kidup, kidnup, surname, surnameup]
  398.  
  399. kombinaa = []
  400. for kombina1 in kombina:
  401. kombinaa.append(kombina1)
  402. for kombina2 in kombina:
  403. if kombina.index(kombina1) != kombina.index(kombina2) and kombina.index(kombina1.title()) != kombina.index(kombina2.title()):
  404. kombinaa.append(kombina1+kombina2)
  405.  
  406. kombinaaw = []
  407. for kombina1 in kombinaw:
  408. kombinaaw.append(kombina1)
  409. for kombina2 in kombinaw:
  410. if kombinaw.index(kombina1) != kombinaw.index(kombina2) and kombinaw.index(kombina1.title()) != kombinaw.index(kombina2.title()):
  411. kombinaaw.append(kombina1+kombina2)
  412.  
  413. kombinaak = []
  414. for kombina1 in kombinak:
  415. kombinaak.append(kombina1)
  416. for kombina2 in kombinak:
  417. if kombinak.index(kombina1) != kombinak.index(kombina2) and kombinak.index(kombina1.title()) != kombinak.index(kombina2.title()):
  418. kombinaak.append(kombina1+kombina2)
  419.  
  420.  
  421.  
  422. komb1 = list(komb(kombinaa, bdss))
  423. komb1 += list(komb(kombinaa, bdss, "_"))
  424. komb2 = list(komb(kombinaaw, wbdss))
  425. komb2 += list(komb(kombinaaw, wbdss, "_"))
  426. komb3 = list(komb(kombinaak, kbdss))
  427. komb3 += list(komb(kombinaak, kbdss, "_"))
  428. komb4 = list(komb(kombinaa, years))
  429. komb4 += list(komb(kombinaa, years, "_"))
  430. komb5 = list(komb(kombinaac, years))
  431. komb5 += list(komb(kombinaac, years, "_"))
  432. komb6 = list(komb(kombinaaw, years))
  433. komb6 += list(komb(kombinaaw, years, "_"))
  434. komb7 = list(komb(kombinaak, years))
  435. komb7 += list(komb(kombinaak, years, "_"))
  436. komb8 = list(komb(word, bdss))
  437. komb8 += list(komb(word, bdss, "_"))
  438. komb9 = list(komb(word, wbdss))
  439. komb9 += list(komb(word, wbdss, "_"))
  440. komb10 = list(komb(word, kbdss))
  441. komb10 += list(komb(word, kbdss, "_"))
  442. komb11 = list(komb(word, years))
  443. komb11 += list(komb(word, years, "_"))
  444. komb12 = ['']
  445. komb13 = ['']
  446. komb14 = ['']
  447. komb15 = ['']
  448. komb16 = ['']
  449. komb21 = ['']
  450. if randnum == "y":
  451. komb12 = list(concats(word, numfrom, numto))
  452. komb13 = list(concats(kombinaa, numfrom, numto))
  453. komb14 = list(concats(kombinaac, numfrom, numto))
  454. komb15 = list(concats(kombinaaw, numfrom, numto))
  455. komb16 = list(concats(kombinaak, numfrom, numto))
  456. komb21 = list(concats(reverse, numfrom, numto))
  457. komb17 = list(komb(reverse, years))
  458. komb17 += list(komb(reverse, years, "_"))
  459. komb18 = list(komb(rev_w, wbdss))
  460. komb18 += list(komb(rev_w, wbdss, "_"))
  461. komb19 = list(komb(rev_k, kbdss))
  462. komb19 += list(komb(rev_k, kbdss, "_"))
  463. komb20 = list(komb(rev_n, bdss))
  464. komb20 += list(komb(rev_n, bdss, "_"))
  465. komb001 = ['']
  466. komb002 = ['']
  467. komb003 = ['']
  468. komb004 = ['']
  469. komb005 = ['']
  470. komb006 = ['']
  471. if spechars1 == "y":
  472. komb001 = list(komb(kombinaa, spechars))
  473. komb002 = list(komb(kombinaac, spechars))
  474. komb003 = list(komb(kombinaaw , spechars))
  475. komb004 = list(komb(kombinaak , spechars))
  476. komb005 = list(komb(word, spechars))
  477. komb006 = list(komb(reverse, spechars))
  478.  
  479. print "[+] Tri de la liste et suppression des doublons..."
  480.  
  481. komb_unique1 = dict.fromkeys(komb1).keys()
  482. komb_unique2 = dict.fromkeys(komb2).keys()
  483. komb_unique3 = dict.fromkeys(komb3).keys()
  484. komb_unique4 = dict.fromkeys(komb4).keys()
  485. komb_unique5 = dict.fromkeys(komb5).keys()
  486. komb_unique6 = dict.fromkeys(komb6).keys()
  487. komb_unique7 = dict.fromkeys(komb7).keys()
  488. komb_unique8 = dict.fromkeys(komb8).keys()
  489. komb_unique9 = dict.fromkeys(komb9).keys()
  490. komb_unique10 = dict.fromkeys(komb10).keys()
  491. komb_unique11 = dict.fromkeys(komb11).keys()
  492. komb_unique12 = dict.fromkeys(komb12).keys()
  493. komb_unique13 = dict.fromkeys(komb13).keys()
  494. komb_unique14 = dict.fromkeys(komb14).keys()
  495. komb_unique15 = dict.fromkeys(komb15).keys()
  496. komb_unique16 = dict.fromkeys(komb16).keys()
  497. komb_unique17 = dict.fromkeys(komb17).keys()
  498. komb_unique18 = dict.fromkeys(komb18).keys()
  499. komb_unique19 = dict.fromkeys(komb19).keys()
  500. komb_unique20 = dict.fromkeys(komb20).keys()
  501. komb_unique21 = dict.fromkeys(komb21).keys()
  502. komb_unique01 = dict.fromkeys(kombinaa).keys()
  503. komb_unique02 = dict.fromkeys(kombinaac).keys()
  504. komb_unique03 = dict.fromkeys(kombinaaw).keys()
  505. komb_unique04 = dict.fromkeys(kombinaak).keys()
  506. komb_unique05 = dict.fromkeys(word).keys()
  507. komb_unique07 = dict.fromkeys(komb001).keys()
  508. komb_unique08 = dict.fromkeys(komb002).keys()
  509. komb_unique09 = dict.fromkeys(komb003).keys()
  510. komb_unique010 = dict.fromkeys(komb004).keys()
  511. komb_unique011 = dict.fromkeys(komb005).keys()
  512. komb_unique012 = dict.fromkeys(komb006).keys()
  513.  
  514. uniqlist = bdss+wbdss+kbdss+reverse+komb_unique01+komb_unique02+komb_unique03+komb_unique04+komb_unique05+komb_unique1+komb_unique2+komb_unique3+komb_unique4+komb_unique5+komb_unique6+komb_unique7+komb_unique8+komb_unique9+komb_unique10+komb_unique11+komb_unique12+komb_unique13+komb_unique14+komb_unique15+komb_unique16+komb_unique17+komb_unique18+komb_unique19+komb_unique20+komb_unique21+komb_unique07+komb_unique08+komb_unique09+komb_unique010+komb_unique011+komb_unique012
  515.  
  516. unique_lista = dict.fromkeys(uniqlist).keys()
  517. unique_leet = []
  518. if leetmode == "y":
  519. for x in unique_lista: # Si vous voulez ajouter plus de caractères de leet, vous devrez ajouter plus de lignes dans le fichier cupp.cfg...
  520. x = x.replace('a',a)
  521. x = x.replace('i',i)
  522. x = x.replace('e',e)
  523. x = x.replace('t',t)
  524. x = x.replace('o',o)
  525. x = x.replace('s',s)
  526. x = x.replace('g',g)
  527. x = x.replace('z',z)
  528. unique_leet.append(x)
  529.  
  530. unique_list = unique_lista + unique_leet
  531.  
  532. unique_list_finished = []
  533. unique_list_finished = [x for x in unique_list if len(x) < wcto and len(x) > wcfrom]
  534.  
  535. print_to_file(name+'.txt', unique_list_finished)
  536. exit()
  537.  
  538.  
  539. elif sys.argv[1] == '-a':
  540. url = config.get('alecto','alectourl')
  541.  
  542. print "\r\n[+] Vérifier si alectodb n'est pas présent..."
  543. if os.path.isfile('alectodb.csv.gz') == 0:
  544. print "[+] Downloading alectodb.csv.gz..."
  545. webFile = urllib.urlopen(url)
  546. localFile = open(url.split('/')[-1], 'w')
  547. localFile.write(webFile.read())
  548. webFile.close()
  549. localFile.close()
  550.  
  551.  
  552. f = gzip.open('alectodb.csv.gz', 'rb')
  553.  
  554. data = csv.reader(f)
  555.  
  556. usernames = []
  557. passwords = []
  558. for row in data:
  559. usernames.append(row[5])
  560. passwords.append(row[6])
  561. gus = list(set(usernames))
  562. gpa = list(set(passwords))
  563. gus.sort()
  564. gpa.sort()
  565.  
  566. print "\r\n[+] Exportation vers alectodb-usernames.txt et alectodb-passwords.txt\r\n[+] Done."
  567. f = open ( 'alectodb-usernames.txt', 'w' )
  568. f.write (os.linesep.join(gus))
  569. f.close()
  570.  
  571. f = open ( 'alectodb-passwords.txt', 'w' )
  572. f.write (os.linesep.join(gpa))
  573. f.close()
  574.  
  575.  
  576. f.close()
  577. sys.exit()
  578.  
  579.  
  580.  
  581. elif sys.argv[1] == '-l':
  582.  
  583. ftpname = config.get('downloader','ftpname')
  584. ftpurl = config.get('downloader','ftpurl')
  585. ftppath = config.get('downloader','ftppath')
  586. ftpuser = config.get('downloader','ftpuser')
  587. ftppass = config.get('downloader','ftppass')
  588.  
  589.  
  590. if os.path.isdir('dictionaries') == 0:
  591. os.mkdir('dictionaries')
  592.  
  593. print " \r\n Choisissez la section que vous voulez télécharger:\r\n"
  594.  
  595. print " 1 Moby 14 french 27 places"
  596. print " 2 afrikaans 15 german 28 polish"
  597. print " 3 american 16 hindi 39 random"
  598. print " 4 aussie 17 hungarian 30 religion"
  599. print " 5 chinese 18 italian 31 russian"
  600. print " 6 computer 19 japanese 32 science"
  601. print " 7 croatian 20 latin 33 spanish"
  602. print " 8 czech 21 literature 34 swahili"
  603. print " 9 danish 22 movieTV 35 swedish"
  604. print " 10 databases 23 music 36 turkish"
  605. print " 11 dictionaries 24 names 37 yiddish"
  606. print " 12 dutch 25 net 38 exit program"
  607. print " 13 finnish 26 norwegian \r\n"
  608. print " \r\n Les fichiers seront téléchargés à partir de "+ftpname+"dépôt "
  609. print " \r\n Astuce: Après avoir téléchargé la liste de mots, vous pouvez l'améliorer avec l'option -w\r\n"
  610.  
  611. filedown = raw_input("> Entrer un nombre: ")
  612. filedown.isdigit()
  613. while filedown.isdigit() == 0:
  614. print "\r\n[-] Mauvais choix. "
  615. filedown = raw_input("> Entrer un nombre: ")
  616. filedown = str(filedown)
  617. while int(filedown) > 38:
  618. print "\r\n[-] Mauvais choix. "
  619. filedown = raw_input("> Entrer un nombre: ")
  620. filedown = str(filedown)
  621.  
  622.  
  623. def handleDownload(block):
  624. file.write(block)
  625. print ".",
  626.  
  627. def downloader():
  628. ftp.login(ftpuser, ftppass)
  629. ftp.cwd(ftppath)
  630.  
  631. def filequitter():
  632. file.close()
  633. print ' done.'
  634.  
  635.  
  636. if filedown == "1":
  637. print "\r\n[+] connection...\r\n"
  638. ftp = ftplib.FTP(ftpurl)
  639. downloader()
  640. ftp.cwd('Moby')
  641. if os.path.isdir('dictionaries/Moby/') == 0:
  642. os.mkdir('dictionaries/Moby/')
  643. dire = 'dictionaries/Moby/'
  644. file = open(dire+'mhyph.tar.gz', 'wb')
  645. print "\r\n[+] downloading mhyph.tar.gz..."
  646. ftp.retrbinary('RETR ' + 'mhyph.tar.gz', handleDownload)
  647. filequitter()
  648.  
  649. file = open(dire+'mlang.tar.gz', 'wb')
  650. print "\r\n[+] downloading mlang.tar.gz..."
  651. ftp.retrbinary('RETR ' + 'mlang.tar.gz', handleDownload)
  652. filequitter()
  653.  
  654. file = open(dire+'moby.tar.gz', 'wb')
  655. print "\r\n[+] downloading moby.tar.gz..."
  656. ftp.retrbinary('RETR ' + 'moby.tar.gz', handleDownload)
  657. filequitter()
  658.  
  659. file = open(dire+'mpos.tar.gz', 'wb')
  660. print "\r\n[+] downloading mpos.tar.gz..."
  661. ftp.retrbinary('RETR ' + 'mpos.tar.gz', handleDownload)
  662. filequitter()
  663.  
  664. file = open(dire+'mpron.tar.gz', 'wb')
  665. print "\r\n[+] downloading mpron.tar.gz..."
  666. ftp.retrbinary('RETR ' + 'mpron.tar.gz', handleDownload)
  667. filequitter()
  668.  
  669. file = open(dire+'mthes.tar.gz', 'wb')
  670. print "\r\n[+] downloading mthes.tar.gz..."
  671. ftp.retrbinary('RETR ' + 'mthes.tar.gz', handleDownload)
  672. filequitter()
  673.  
  674. file = open(dire+'mwords.tar.gz', 'wb')
  675. print "\r\n[+] downloading mwords.tar.gz..."
  676. ftp.retrbinary('RETR ' + 'mwords.tar.gz', handleDownload)
  677. filequitter()
  678.  
  679. print '[+] fichiers enregistrés dans'+ dire
  680. ftp.quit()
  681. exit()
  682.  
  683. if filedown == "2":
  684. print "[+] connection..."
  685. ftp = ftplib.FTP(ftpurl)
  686. downloader()
  687. ftp.cwd('afrikaans')
  688. if os.path.isdir('dictionaries/afrikaans/') == 0:
  689. os.mkdir('dictionaries/afrikaans/')
  690. dire = 'dictionaries/afrikaans/'
  691.  
  692. file = open(dire+'afr_dbf.zip', 'wb')
  693. print "\r\n[+] downloading afr_dbf.zip..."
  694. ftp.retrbinary('RETR ' + 'afr_dbf.zip', handleDownload)
  695. filequitter()
  696.  
  697. print '[+] file saved to '+ dire
  698. ftp.quit()
  699. exit()
  700.  
  701. if filedown == "3":
  702. print "[+] connection..."
  703. ftp = ftplib.FTP(ftpurl)
  704. downloader()
  705. ftp.cwd('american')
  706. if os.path.isdir('dictionaries/american/') == 0:
  707. os.mkdir('dictionaries/american/')
  708. dire = 'dictionaries/american/'
  709.  
  710. file = open(dire+'dic-0294.tar.gz', 'wb')
  711. print "\r\n[+] downloading dic-0294.tar.gz..."
  712. ftp.retrbinary('RETR ' + 'dic-0294.tar.gz', handleDownload)
  713. filequitter()
  714.  
  715. print '[+] fichiers enregistrés dans '+ dire
  716. ftp.quit()
  717. exit()
  718.  
  719. if filedown == "4":
  720. print "[+] connection..."
  721. ftp = ftplib.FTP(ftpurl)
  722.  
  723. downloader()
  724. ftp.cwd('aussie')
  725. if os.path.isdir('dictionaries/aussie/') == 0:
  726. os.mkdir('dictionaries/aussie/')
  727. dire = 'dictionaries/aussie/'
  728.  
  729. file = open(dire+'oz.gz', 'wb')
  730. print "\r\n[+] downloading oz.gz..."
  731. ftp.retrbinary('RETR ' + 'oz.gz', handleDownload)
  732. filequitter()
  733.  
  734. print '[+] fichiers enregistrés dans '+ dire
  735. ftp.quit()
  736. exit()
  737.  
  738.  
  739. if filedown == "5":
  740. print "[+] connection..."
  741. ftp = ftplib.FTP(ftpurl)
  742. downloader()
  743. ftp.cwd('chinese')
  744. if os.path.isdir('dictionaries/chinese/') == 0:
  745. os.mkdir('dictionaries/chinese/')
  746. dire = 'dictionaries/chinese/'
  747.  
  748. file = open(dire+'chinese.gz', 'wb')
  749. print "\r\n[+] downloading chinese.gz..."
  750. ftp.retrbinary('RETR ' + 'chinese.gz', handleDownload)
  751. filequitter()
  752.  
  753. print '[+] fichiers enregistrés dans '+ dire
  754. ftp.quit()
  755. exit()
  756.  
  757. if filedown == "6":
  758. print "[+] connection..."
  759. ftp = ftplib.FTP(ftpurl)
  760. downloader()
  761. ftp.cwd('computer')
  762. if os.path.isdir('dictionaries/computer/') == 0:
  763. os.mkdir('dictionaries/computer/')
  764. dire = 'dictionaries/computer/'
  765.  
  766. file = open(dire+'Domains.gz', 'wb')
  767. print "\r\n[+] downloading Domains.gz..."
  768. ftp.retrbinary('RETR ' + 'Domains.gz', handleDownload)
  769. filequitter()
  770.  
  771. file = open(dire+'Dosref.gz', 'wb')
  772. print "\r\n[+] downloading Dosref.gz..."
  773. ftp.retrbinary('RETR ' + 'Dosref.gz', handleDownload)
  774. filequitter()
  775.  
  776. file = open(dire+'Ftpsites.gz', 'wb')
  777. print "\r\n[+] downloading Ftpsites.gz..."
  778. ftp.retrbinary('RETR ' + 'Ftpsites.gz', handleDownload)
  779. filequitter()
  780.  
  781. file = open(dire+'Jargon.gz', 'wb')
  782. print "\r\n[+] downloading Jargon.gz..."
  783. ftp.retrbinary('RETR ' + 'Jargon.gz', handleDownload)
  784. filequitter()
  785.  
  786. file = open(dire+'common-passwords.txt.gz', 'wb')
  787. print "\r\n[+] downloading common-passwords.txt.gz..."
  788. ftp.retrbinary('RETR ' + 'common-passwords.txt.gz', handleDownload)
  789. filequitter()
  790.  
  791. file = open(dire+'etc-hosts.gz', 'wb')
  792. print "\r\n[+] downloading etc-hosts.gz..."
  793. ftp.retrbinary('RETR ' + 'etc-hosts.gz', handleDownload)
  794. filequitter()
  795.  
  796. file = open(dire+'foldoc.gz', 'wb')
  797. print "\r\n[+] downloading foldoc.gz..."
  798. ftp.retrbinary('RETR ' + 'foldoc.gz', handleDownload)
  799. filequitter()
  800.  
  801. file = open(dire+'language-list.gz', 'wb')
  802. print "\r\n[+] downloading language-list.gz..."
  803. ftp.retrbinary('RETR ' + 'language-list.gz', handleDownload)
  804. filequitter()
  805.  
  806. file = open(dire+'unix.gz', 'wb')
  807. print "\r\n[+] downloading unix.gz..."
  808. ftp.retrbinary('RETR ' + 'unix.gz', handleDownload)
  809. filequitter()
  810.  
  811. print '[+] fichiers enregistrés dans '+ dire
  812. ftp.quit()
  813. exit()
  814.  
  815. if filedown == "7":
  816. print "[+] connection..."
  817. ftp = ftplib.FTP(ftpurl)
  818. downloader()
  819. ftp.cwd('croatian')
  820. if os.path.isdir('dictionaries/croatian/') == 0:
  821. os.mkdir('dictionaries/croatian/')
  822. dire = 'dictionaries/croatian/'
  823.  
  824. file = open(dire+'croatian.gz', 'wb')
  825. print "\r\n[+] downloading croatian.gz..."
  826. ftp.retrbinary('RETR ' + 'croatian.gz', handleDownload)
  827. filequitter()
  828.  
  829. print '[+] fichiers enregistrés dans '+ dire
  830. ftp.quit()
  831. exit()
  832.  
  833. if filedown == "8":
  834. print "[+] connection..."
  835. ftp = ftplib.FTP(ftpurl)
  836. downloader()
  837. ftp.cwd('czech')
  838. if os.path.isdir('dictionaries/czech/') == 0:
  839. os.mkdir('dictionaries/czech/')
  840. dire = 'dictionaries/czech/'
  841.  
  842. file = open(dire+'czech-wordlist-ascii-cstug-novak.gz', 'wb')
  843. print "\r\n[+] downloading czech-wordlist-ascii-cstug-novak.gz..."
  844. ftp.retrbinary('RETR ' + 'czech-wordlist-ascii-cstug-novak.gz', handleDownload)
  845. filequitter()
  846.  
  847. print '[+] fichiers enregistrés dans'+ dire
  848. ftp.quit()
  849. exit()
  850.  
  851.  
  852. if filedown == "9":
  853. print "[+] connection..."
  854. ftp = ftplib.FTP(ftpurl)
  855. downloader()
  856. ftp.cwd('danish')
  857. if os.path.isdir('dictionaries/danish/') == 0:
  858. os.mkdir('dictionaries/danish/')
  859. dire = 'dictionaries/danish/'
  860.  
  861. file = open(dire+'danish.words.gz', 'wb')
  862. print "\r\n[+] downloading danish.words.gz..."
  863. ftp.retrbinary('RETR ' + 'danish.words.gz', handleDownload)
  864. filequitter()
  865.  
  866. file = open(dire+'dansk.zip', 'wb')
  867. print "\r\n[+] downloading dansk.zip..."
  868. ftp.retrbinary('RETR ' + 'dansk.zip', handleDownload)
  869. filequitter()
  870.  
  871. print '[+] fichiers enregistrés dans '+ dire
  872. ftp.quit()
  873. exit()
  874.  
  875. if filedown == "10":
  876. print "[+] connection..."
  877. ftp = ftplib.FTP(ftpurl)
  878. downloader()
  879. ftp.cwd('databases')
  880. if os.path.isdir('dictionaries/databases/') == 0:
  881. os.mkdir('dictionaries/databases/')
  882. dire = 'dictionaries/databases/'
  883.  
  884. file = open(dire+'acronyms.gz', 'wb')
  885. print "\r\n[+] downloading acronyms.gz..."
  886. ftp.retrbinary('RETR ' + 'acronyms.gz', handleDownload)
  887. filequitter()
  888.  
  889. file = open(dire+'att800.gz', 'wb')
  890. print "\r\n[+] downloading att800.gz..."
  891. ftp.retrbinary('RETR ' + 'att800.gz', handleDownload)
  892. filequitter()
  893.  
  894. file = open(dire+'computer-companies.gz', 'wb')
  895. print "\r\n[+] downloading computer-companies.gz..."
  896. ftp.retrbinary('RETR ' + 'computer-companies.gz', handleDownload)
  897. filequitter()
  898.  
  899. file = open(dire+'world_heritage.gz', 'wb')
  900. print "\r\n[+] downloading world_heritage.gz..."
  901. ftp.retrbinary('RETR ' + 'world_heritage.gz', handleDownload)
  902. filequitter()
  903.  
  904. print '[+] fichiers enregistrés dans '+ dire
  905. ftp.quit()
  906. exit()
  907.  
  908. if filedown == "11":
  909. print "[+] connection..."
  910. ftp = ftplib.FTP(ftpurl)
  911. downloader()
  912. ftp.cwd('dictionaries')
  913. if os.path.isdir('dictionaries/dictionaries/') == 0:
  914. os.mkdir('dictionaries/dictionaries/')
  915. dire = 'dictionaries/dictionaries/'
  916.  
  917. file = open(dire+'Antworth.gz', 'wb')
  918. print "\r\n[+] downloading Antworth.gz..."
  919. ftp.retrbinary('RETR ' + 'Antworth.gz', handleDownload)
  920. filequitter()
  921.  
  922. file = open(dire+'CRL.words.gz', 'wb')
  923. print "\r\n[+] downloading CRL.words.gz..."
  924. ftp.retrbinary('RETR ' + 'CRL.words.gz', handleDownload)
  925. filequitter()
  926.  
  927. file = open(dire+'Roget.words.gz', 'wb')
  928. print "\r\n[+] downloading Roget.words.gz..."
  929. ftp.retrbinary('RETR ' + 'Roget.words.gz', handleDownload)
  930. filequitter()
  931.  
  932. file = open(dire+'Unabr.dict.gz', 'wb')
  933. print "\r\n[+] downloading Unabr.dict.gz..."
  934. ftp.retrbinary('RETR ' + 'Unabr.dict.gz', handleDownload)
  935. filequitter()
  936.  
  937. file = open(dire+'Unix.dict.gz', 'wb')
  938. print "\r\n[+] downloading Unix.dict.gz..."
  939. ftp.retrbinary('RETR ' + 'Unix.dict.gz', handleDownload)
  940. filequitter()
  941.  
  942. file = open(dire+'englex-dict.gz', 'wb')
  943. print "\r\n[+] downloading englex-dict.gz..."
  944. ftp.retrbinary('RETR ' + 'englex-dict.gz', handleDownload)
  945. filequitter()
  946.  
  947. file = open(dire+'knuth_britsh.gz', 'wb')
  948. print "\r\n[+] downloading knuth_britsh.gz..."
  949. ftp.retrbinary('RETR ' + 'knuth_britsh.gz', handleDownload)
  950. filequitter()
  951.  
  952. file = open(dire+'knuth_words.gz', 'wb')
  953. print "\r\n[+] downloading knuth_words.gz..."
  954. ftp.retrbinary('RETR ' + 'knuth_words.gz', handleDownload)
  955. filequitter()
  956.  
  957. file = open(dire+'pocket-dic.gz', 'wb')
  958. print "\r\n[+] downloading pocket-dic.gz..."
  959. ftp.retrbinary('RETR ' + 'pocket-dic.gz', handleDownload)
  960. filequitter()
  961.  
  962. file = open(dire+'shakesp-glossary.gz', 'wb')
  963. print "\r\n[+] downloading shakesp-glossary.gz..."
  964. ftp.retrbinary('RETR ' + 'shakesp-glossary.gz', handleDownload)
  965. filequitter()
  966.  
  967. file = open(dire+'special.eng.gz', 'wb')
  968. print "\r\n[+] downloading special.eng.gz..."
  969. ftp.retrbinary('RETR ' + 'special.eng.gz', handleDownload)
  970. filequitter()
  971.  
  972. file = open(dire+'words-english.gz', 'wb')
  973. print "\r\n[+] downloading words-english.gz..."
  974. ftp.retrbinary('RETR ' + 'words-english.gz', handleDownload)
  975. filequitter()
  976.  
  977. print '[+] fichiers enregistrés dans '+ dire
  978. ftp.quit()
  979. exit()
  980.  
  981. if filedown == "12":
  982. print "[+] connection..."
  983. ftp = ftplib.FTP(ftpurl)
  984. downloader()
  985. ftp.cwd('dutch')
  986. if os.path.isdir('dictionaries/dutch/') == 0:
  987. os.mkdir('dictionaries/dutch/')
  988. dire = 'dictionaries/dutch/'
  989.  
  990. file = open(dire+'words.dutch.gz', 'wb')
  991. print "\r\n[+] downloading words.dutch.gz..."
  992. ftp.retrbinary('RETR ' + 'words.dutch.gz', handleDownload)
  993. filequitter()
  994.  
  995. print '[+] fichiers enregistrés dans '+ dire
  996. ftp.quit()
  997. exit()
  998.  
  999. if filedown == "13":
  1000. print "[+] connection..."
  1001. ftp = ftplib.FTP(ftpurl)
  1002. downloader()
  1003. ftp.cwd('finnish')
  1004. if os.path.isdir('dictionaries/finnish/') == 0:
  1005. os.mkdir('dictionaries/finnish/')
  1006. dire = 'dictionaries/finnish/'
  1007.  
  1008. file = open(dire+'finnish.gz', 'wb')
  1009. print "\r\n[+] downloading finnish.gz..."
  1010. ftp.retrbinary('RETR ' + 'finnish.gz', handleDownload)
  1011. filequitter()
  1012.  
  1013. file = open(dire+'firstnames.finnish.gz', 'wb')
  1014. print "\r\n[+] downloading firstnames.finnish.gz..."
  1015. ftp.retrbinary('RETR ' + 'firstnames.finnish.gz', handleDownload)
  1016. filequitter()
  1017.  
  1018. file = open(dire+'words.finnish.FAQ.gz', 'wb')
  1019. print "\r\n[+] downloading words.finnish.FAQ.gz..."
  1020. ftp.retrbinary('RETR ' + 'words.finnish.FAQ.gz', handleDownload)
  1021. filequitter()
  1022.  
  1023. print '[+] fichiers enregistrés dans '+ dire
  1024. ftp.quit()
  1025. exit()
  1026.  
  1027. if filedown == "14":
  1028. print "[+] connection..."
  1029. ftp = ftplib.FTP(ftpurl)
  1030. downloader()
  1031. ftp.cwd('french')
  1032. if os.path.isdir('dictionaries/french/') == 0:
  1033. os.mkdir('dictionaries/french/')
  1034. dire = 'dictionaries/french/'
  1035.  
  1036. file = open(dire+'dico.gz', 'wb')
  1037. print "\r\n[+] downloading dico.gz..."
  1038. ftp.retrbinary('RETR ' + 'dico.gz', handleDownload)
  1039. filequitter()
  1040.  
  1041. print '[+] fichiers enregistrés dans '+ dire
  1042. ftp.quit()
  1043. exit()
  1044.  
  1045. if filedown == "15":
  1046. print "[+] connection..."
  1047. ftp = ftplib.FTP(ftpurl)
  1048. downloader()
  1049. ftp.cwd('german')
  1050. if os.path.isdir('dictionaries/german/') == 0:
  1051. os.mkdir('dictionaries/german/')
  1052. dire = 'dictionaries/german/'
  1053.  
  1054. file = open(dire+'deutsch.dic.gz', 'wb')
  1055. print "\r\n[+] downloading deutsch.dic.gz..."
  1056. ftp.retrbinary('RETR ' + 'deutsch.dic.gz', handleDownload)
  1057. filequitter()
  1058.  
  1059. file = open(dire+'germanl.gz', 'wb')
  1060. print "\r\n[+] downloading germanl.gz..."
  1061. ftp.retrbinary('RETR ' + 'germanl.gz', handleDownload)
  1062. filequitter()
  1063.  
  1064. file = open(dire+'words.german.gz', 'wb')
  1065. print "\r\n[+] downloading words.german.gz..."
  1066. ftp.retrbinary('RETR ' + 'words.german.gz', handleDownload)
  1067. filequitter()
  1068.  
  1069. print '[+] fichiers enregistrés dans '+ dire
  1070. ftp.quit()
  1071. exit()
  1072.  
  1073. if filedown == "16":
  1074. print "[+] connection..."
  1075. ftp = ftplib.FTP(ftpurl)
  1076. downloader()
  1077. ftp.cwd('hindi')
  1078. if os.path.isdir('dictionaries/hindi/') == 0:
  1079. os.mkdir('dictionaries/hindi/')
  1080. dire = 'dictionaries/hindi/'
  1081.  
  1082. file = open(dire+'hindu-names.gz', 'wb')
  1083. print "\r\n[+] downloading hindu-names.gz..."
  1084. ftp.retrbinary('RETR ' + 'hindu-names.gz', handleDownload)
  1085. filequitter()
  1086.  
  1087. print '[+] fichiers enregistrés dans '+ dire
  1088. ftp.quit()
  1089. exit()
  1090.  
  1091. if filedown == "17":
  1092. print "[+] connection..."
  1093. ftp = ftplib.FTP(ftpurl)
  1094. downloader()
  1095. ftp.cwd('hungarian')
  1096. if os.path.isdir('dictionaries/hungarian/') == 0:
  1097. os.mkdir('dictionaries/hungarian/')
  1098. dire = 'dictionaries/hungarian/'
  1099.  
  1100. file = open(dire+'hungarian.gz', 'wb')
  1101. print "\r\n[+] downloading hungarian.gz..."
  1102. ftp.retrbinary('RETR ' + 'hungarian.gz', handleDownload)
  1103. filequitter()
  1104.  
  1105. print '[+] fichiers enregistrés dans '+ dire
  1106. ftp.quit()
  1107. exit()
  1108.  
  1109. if filedown == "18":
  1110. print "[+] connection..."
  1111. ftp = ftplib.FTP(ftpurl)
  1112. downloader()
  1113. ftp.cwd('italian')
  1114. if os.path.isdir('dictionaries/italian/') == 0:
  1115. os.mkdir('dictionaries/italian/')
  1116. dire = 'dictionaries/italian/'
  1117.  
  1118. file = open(dire+'words.italian.gz', 'wb')
  1119. print "\r\n[+] downloading words.italian.gz..."
  1120. ftp.retrbinary('RETR ' + 'words.italian.gz', handleDownload)
  1121. filequitter()
  1122.  
  1123. print '[+] fichiers enregistrés dans '+ dire
  1124. ftp.quit()
  1125. exit()
  1126.  
  1127. if filedown == "19":
  1128. print "[+] connection..."
  1129. ftp = ftplib.FTP(ftpurl)
  1130. downloader()
  1131. ftp.cwd('japanese')
  1132. if os.path.isdir('dictionaries/japanese/') == 0:
  1133. os.mkdir('dictionaries/japanese/')
  1134. dire = 'dictionaries/japanese/'
  1135.  
  1136. file = open(dire+'words.japanese.gz', 'wb')
  1137. print "\r\n[+] downloading words.japanese.gz..."
  1138. ftp.retrbinary('RETR ' + 'words.japanese.gz', handleDownload)
  1139. filequitter()
  1140.  
  1141. print '[+] fichiers enregistrés dans '+ dire
  1142. ftp.quit()
  1143. exit()
  1144.  
  1145. if filedown == "20":
  1146. print "[+] connection..."
  1147. ftp = ftplib.FTP(ftpurl)
  1148. downloader()
  1149. ftp.cwd('latin')
  1150. if os.path.isdir('dictionaries/latin/') == 0:
  1151. os.mkdir('dictionaries/latin/')
  1152. dire = 'dictionaries/latin/'
  1153.  
  1154. file = open(dire+'wordlist.aug.gz', 'wb')
  1155. print "\r\n[+] downloading wordlist.aug.gz..."
  1156. ftp.retrbinary('RETR ' + 'wordlist.aug.gz', handleDownload)
  1157. filequitter()
  1158.  
  1159. print '[+] fichiers enregistrés dans '+ dire
  1160. ftp.quit()
  1161. exit()
  1162.  
  1163. if filedown == "21":
  1164. print "[+] connection..."
  1165. ftp = ftplib.FTP(ftpurl)
  1166. downloader()
  1167. ftp.cwd('literature')
  1168. if os.path.isdir('dictionaries/literature/') == 0:
  1169. os.mkdir('dictionaries/literature/')
  1170. dire = 'dictionaries/literature/'
  1171.  
  1172. file = open(dire+'LCarrol.gz', 'wb')
  1173. print "\r\n[+] downloading LCarrol.gz..."
  1174. ftp.retrbinary('RETR ' + 'LCarrol.gz', handleDownload)
  1175. filequitter()
  1176.  
  1177. file = open(dire+'Paradise.Lost.gz', 'wb')
  1178. print "\r\n[+] downloading Paradise.Lost.gz..."
  1179. ftp.retrbinary('RETR ' + 'Paradise.Lost.gz', handleDownload)
  1180. filequitter()
  1181.  
  1182. file = open(dire+'aeneid.gz', 'wb')
  1183. print "\r\n[+] downloading aeneid.gz..."
  1184. ftp.retrbinary('RETR ' + 'aeneid.gz', handleDownload)
  1185. filequitter()
  1186.  
  1187. file = open(dire+'arthur.gz', 'wb')
  1188. print "\r\n[+] downloading arthur.gz..."
  1189. ftp.retrbinary('RETR ' + 'arthur.gz', handleDownload)
  1190. filequitter()
  1191.  
  1192. file = open(dire+'cartoon.gz', 'wb')
  1193. print "\r\n[+] downloading cartoon.gz..."
  1194. ftp.retrbinary('RETR ' + 'cartoon.gz', handleDownload)
  1195. filequitter()
  1196.  
  1197. file = open(dire+'cartoons-olivier.gz', 'wb')
  1198. print "\r\n[+] downloading cartoons-olivier.gz..."
  1199. ftp.retrbinary('RETR ' + 'cartoons-olivier.gz', handleDownload)
  1200. filequitter()
  1201.  
  1202. file = open(dire+'charlemagne.gz', 'wb')
  1203. print "\r\n[+] downloading charlemagne.gz..."
  1204. ftp.retrbinary('RETR ' + 'charlemagne.gz', handleDownload)
  1205. filequitter()
  1206.  
  1207. file = open(dire+'fable.gz', 'wb')
  1208. print "\r\n[+] downloading fable.gz..."
  1209. ftp.retrbinary('RETR ' + 'fable.gz', handleDownload)
  1210. filequitter()
  1211.  
  1212. file = open(dire+'iliad.gz', 'wb')
  1213. print "\r\n[+] downloading iliad.gz..."
  1214. ftp.retrbinary('RETR ' + 'iliad.gz', handleDownload)
  1215. filequitter()
  1216.  
  1217. file = open(dire+'myths-legends.gz', 'wb')
  1218. print "\r\n[+] downloading myths-legends.gz..."
  1219. ftp.retrbinary('RETR ' + 'myths-legends.gz', handleDownload)
  1220. filequitter()
  1221.  
  1222. file = open(dire+'odyssey.gz', 'wb')
  1223. print "\r\n[+] downloading odyssey.gz..."
  1224. ftp.retrbinary('RETR ' + 'odyssey.gz', handleDownload)
  1225. filequitter()
  1226.  
  1227. file = open(dire+'sf.gz', 'wb')
  1228. print "\r\n[+] downloading sf.gz..."
  1229. ftp.retrbinary('RETR ' + 'sf.gz', handleDownload)
  1230. filequitter()
  1231.  
  1232. file = open(dire+'shakespeare.gz', 'wb')
  1233. print "\r\n[+] downloading shakespeare.gz..."
  1234. ftp.retrbinary('RETR ' + 'shakespeare.gz', handleDownload)
  1235. filequitter()
  1236.  
  1237. file = open(dire+'tolkien.words.gz', 'wb')
  1238. print "\r\n[+] downloading tolkien.words.gz..."
  1239. ftp.retrbinary('RETR ' + 'tolkien.words.gz', handleDownload)
  1240. filequitter()
  1241.  
  1242. print '[+] fichiers enregistrés dans '+ dire
  1243. ftp.quit()
  1244. exit()
  1245.  
  1246. if filedown == "22":
  1247. print "[+] connection..."
  1248. ftp = ftplib.FTP(ftpurl)
  1249. downloader()
  1250. ftp.cwd('movieTV')
  1251. if os.path.isdir('dictionaries/movieTV/') == 0:
  1252. os.mkdir('dictionaries/movieTV/')
  1253. dire = 'dictionaries/movieTV/'
  1254.  
  1255. file = open(dire+'Movies.gz', 'wb')
  1256. print "\r\n[+] downloading Movies.gz..."
  1257. ftp.retrbinary('RETR ' + 'Movies.gz', handleDownload)
  1258. filequitter()
  1259.  
  1260. file = open(dire+'Python.gz', 'wb')
  1261. print "\r\n[+] downloading Python.gz..."
  1262. ftp.retrbinary('RETR ' + 'Python.gz', handleDownload)
  1263. filequitter()
  1264.  
  1265. file = open(dire+'Trek.gz', 'wb')
  1266. print "\r\n[+] downloading Trek.gz..."
  1267. ftp.retrbinary('RETR ' + 'Trek.gz', handleDownload)
  1268. filequitter()
  1269.  
  1270. print '[+] fichiers enregistrés dans '+ dire
  1271. ftp.quit()
  1272. exit()
  1273.  
  1274. if filedown == "23":
  1275. print "[+] connection..."
  1276. ftp = ftplib.FTP(ftpurl)
  1277. downloader()
  1278. ftp.cwd('music')
  1279. if os.path.isdir('dictionaries/music/') == 0:
  1280. os.mkdir('dictionaries/music/')
  1281. dire = 'dictionaries/music/'
  1282.  
  1283. file = open(dire+'music-classical.gz', 'wb')
  1284. print "\r\n[+] downloading music-classical.gz..."
  1285. ftp.retrbinary('RETR ' + 'music-classical.gz', handleDownload)
  1286. filequitter()
  1287.  
  1288. file = open(dire+'music-country.gz', 'wb')
  1289. print "\r\n[+] downloading music-country.gz..."
  1290. ftp.retrbinary('RETR ' + 'music-country.gz', handleDownload)
  1291. filequitter()
  1292.  
  1293. file = open(dire+'music-jazz.gz', 'wb')
  1294. print "\r\n[+] downloading music-jazz.gz..."
  1295. ftp.retrbinary('RETR ' + 'music-jazz.gz', handleDownload)
  1296. filequitter()
  1297.  
  1298. file = open(dire+'music-other.gz', 'wb')
  1299. print "\r\n[+] downloading music-other.gz..."
  1300. ftp.retrbinary('RETR ' + 'music-other.gz', handleDownload)
  1301. filequitter()
  1302.  
  1303. file = open(dire+'music-rock.gz', 'wb')
  1304. print "\r\n[+] downloading music-rock.gz..."
  1305. ftp.retrbinary('RETR ' + 'music-rock.gz', handleDownload)
  1306. filequitter()
  1307.  
  1308. file = open(dire+'music-shows.gz', 'wb')
  1309. print "\r\n[+] downloading music-shows.gz..."
  1310. ftp.retrbinary('RETR ' + 'music-shows.gz', handleDownload)
  1311. filequitter()
  1312.  
  1313. file = open(dire+'rock-groups.gz', 'wb')
  1314. print "\r\n[+] downloading rock-groups.gz..."
  1315. ftp.retrbinary('RETR ' + 'rock-groups.gz', handleDownload)
  1316. filequitter()
  1317.  
  1318. print '[+] fichiers enregistrés dans '+ dire
  1319. ftp.quit()
  1320. exit()
  1321.  
  1322. if filedown == "24":
  1323. print "[+] connection..."
  1324. ftp = ftplib.FTP(ftpurl)
  1325. downloader()
  1326. ftp.cwd('names')
  1327. if os.path.isdir('dictionaries/names/') == 0:
  1328. os.mkdir('dictionaries/names/')
  1329. dire = 'dictionaries/names/'
  1330.  
  1331. file = open(dire+'ASSurnames.gz', 'wb')
  1332. print "\r\n[+] downloading ASSurnames.gz..."
  1333. ftp.retrbinary('RETR ' + 'ASSurnames.gz', handleDownload)
  1334. filequitter()
  1335.  
  1336. file = open(dire+'Congress.gz', 'wb')
  1337. print "\r\n[+] downloading Congress.gz..."
  1338. ftp.retrbinary('RETR ' + 'Congress.gz', handleDownload)
  1339. filequitter()
  1340.  
  1341. file = open(dire+'Family-Names.gz', 'wb')
  1342. print "\r\n[+] downloading Family-Names.gz..."
  1343. ftp.retrbinary('RETR ' + 'Family-Names.gz', handleDownload)
  1344. filequitter()
  1345.  
  1346. file = open(dire+'Given-Names.gz', 'wb')
  1347. print "\r\n[+] downloading Given-Names.gz..."
  1348. ftp.retrbinary('RETR ' + 'Given-Names.gz', handleDownload)
  1349. filequitter()
  1350.  
  1351. file = open(dire+'actor-givenname.gz', 'wb')
  1352. print "\r\n[+] downloading actor-givenname.gz..."
  1353. ftp.retrbinary('RETR ' + 'actor-givenname.gz', handleDownload)
  1354. filequitter()
  1355.  
  1356. file = open(dire+'actor-surname.gz', 'wb')
  1357. print "\r\n[+] downloading actor-surname.gz..."
  1358. ftp.retrbinary('RETR ' + 'actor-surname.gz', handleDownload)
  1359. filequitter()
  1360.  
  1361. file = open(dire+'cis-givenname.gz', 'wb')
  1362. print "\r\n[+] downloading cis-givenname.gz..."
  1363. ftp.retrbinary('RETR ' + 'cis-givenname.gz', handleDownload)
  1364. filequitter()
  1365.  
  1366. file = open(dire+'cis-surname.gz', 'wb')
  1367. print "\r\n[+] downloading cis-surname.gz..."
  1368. ftp.retrbinary('RETR ' + 'cis-surname.gz', handleDownload)
  1369. filequitter()
  1370.  
  1371. file = open(dire+'crl-names.gz', 'wb')
  1372. print "\r\n[+] downloading crl-names.gz..."
  1373. ftp.retrbinary('RETR ' + 'crl-names.gz', handleDownload)
  1374. filequitter()
  1375.  
  1376. file = open(dire+'famous.gz', 'wb')
  1377. print "\r\n[+] downloading famous.gz..."
  1378. ftp.retrbinary('RETR ' + 'famous.gz', handleDownload)
  1379. filequitter()
  1380.  
  1381. file = open(dire+'fast-names.gz', 'wb')
  1382. print "\r\n[+] downloading fast-names.gz..."
  1383. ftp.retrbinary('RETR ' + 'fast-names.gz', handleDownload)
  1384. filequitter()
  1385.  
  1386. file = open(dire+'female-names-kantr.gz', 'wb')
  1387. print "\r\n[+] downloading female-names-kantr.gz..."
  1388. ftp.retrbinary('RETR ' + 'female-names-kantr.gz', handleDownload)
  1389. filequitter()
  1390.  
  1391. file = open(dire+'female-names.gz', 'wb')
  1392. print "\r\n[+] downloading female-names.gz..."
  1393. ftp.retrbinary('RETR ' + 'female-names.gz', handleDownload)
  1394. filequitter()
  1395.  
  1396. file = open(dire+'givennames-ol.gz', 'wb')
  1397. print "\r\n[+] downloading givennames-ol.gz..."
  1398. ftp.retrbinary('RETR ' + 'givennames-ol.gz', handleDownload)
  1399. filequitter()
  1400.  
  1401. file = open(dire+'male-names-kantr.gz', 'wb')
  1402. print "\r\n[+] downloading male-names-kantr.gz..."
  1403. ftp.retrbinary('RETR ' + 'male-names-kantr.gz', handleDownload)
  1404. filequitter()
  1405.  
  1406. file = open(dire+'male-names.gz', 'wb')
  1407. print "\r\n[+] downloading male-names.gz..."
  1408. ftp.retrbinary('RETR ' + 'male-names.gz', handleDownload)
  1409. filequitter()
  1410.  
  1411. file = open(dire+'movie-characters.gz', 'wb')
  1412. print "\r\n[+] downloading movie-characters.gz..."
  1413. ftp.retrbinary('RETR ' + 'movie-characters.gz', handleDownload)
  1414. filequitter()
  1415.  
  1416. file = open(dire+'names.french.gz', 'wb')
  1417. print "\r\n[+] downloading names.french.gz..."
  1418. ftp.retrbinary('RETR ' + 'names.french.gz', handleDownload)
  1419. filequitter()
  1420.  
  1421. file = open(dire+'names.hp.gz', 'wb')
  1422. print "\r\n[+] downloading names.hp.gz..."
  1423. ftp.retrbinary('RETR ' + 'names.hp.gz', handleDownload)
  1424. filequitter()
  1425.  
  1426. file = open(dire+'other-names.gz', 'wb')
  1427. print "\r\n[+] downloading other-names.gz..."
  1428. ftp.retrbinary('RETR ' + 'other-names.gz', handleDownload)
  1429. filequitter()
  1430.  
  1431. file = open(dire+'shakesp-names.gz', 'wb')
  1432. print "\r\n[+] downloading shakesp-names.gz..."
  1433. ftp.retrbinary('RETR ' + 'shakesp-names.gz', handleDownload)
  1434. filequitter()
  1435.  
  1436. file = open(dire+'surnames-ol.gz', 'wb')
  1437. print "\r\n[+] downloading surnames-ol.gz..."
  1438. ftp.retrbinary('RETR ' + 'surnames-ol.gz', handleDownload)
  1439. filequitter()
  1440.  
  1441. file = open(dire+'surnames.finnish.gz', 'wb')
  1442. print "\r\n[+] downloading surnames.finnish.gz..."
  1443. ftp.retrbinary('RETR ' + 'surnames.finnish.gz', handleDownload)
  1444. filequitter()
  1445.  
  1446. file = open(dire+'usenet-names.gz', 'wb')
  1447. print "\r\n[+] downloading usenet-names.gz..."
  1448. ftp.retrbinary('RETR ' + 'usenet-names.gz', handleDownload)
  1449. filequitter()
  1450.  
  1451. print '[+] fichiers enregistrés dans '+ dire
  1452. ftp.quit()
  1453. exit()
  1454.  
  1455.  
  1456. if filedown == "25":
  1457. print "[+] connection..."
  1458. ftp = ftplib.FTP(ftpurl)
  1459. downloader()
  1460. ftp.cwd('net')
  1461. if os.path.isdir('dictionaries/net/') == 0:
  1462. os.mkdir('dictionaries/net/')
  1463. dire = 'dictionaries/net/'
  1464.  
  1465. file = open(dire+'hosts-txt.gz', 'wb')
  1466. print "\r\n[+] downloading hosts-txt.gz..."
  1467. ftp.retrbinary('RETR ' + 'hosts-txt.gz', handleDownload)
  1468. filequitter()
  1469.  
  1470. file = open(dire+'inet-machines.gz', 'wb')
  1471. print "\r\n[+] downloading inet-machines.gz..."
  1472. ftp.retrbinary('RETR ' + 'inet-machines.gz', handleDownload)
  1473. filequitter()
  1474.  
  1475. file = open(dire+'usenet-loginids.gz', 'wb')
  1476. print "\r\n[+] downloading usenet-loginids.gz..."
  1477. ftp.retrbinary('RETR ' + 'usenet-loginids.gz', handleDownload)
  1478. filequitter()
  1479.  
  1480. file = open(dire+'usenet-machines.gz', 'wb')
  1481. print "\r\n[+] downloading usenet-machines.gz..."
  1482. ftp.retrbinary('RETR ' + 'usenet-machines.gz', handleDownload)
  1483. filequitter()
  1484.  
  1485. file = open(dire+'uunet-sites.gz', 'wb')
  1486. print "\r\n[+] downloading uunet-sites.gz..."
  1487. ftp.retrbinary('RETR ' + 'uunet-sites.gz', handleDownload)
  1488. filequitter()
  1489.  
  1490. print '[+] fichiers enregistrés dans '+ dire
  1491. ftp.quit()
  1492. exit()
  1493.  
  1494. if filedown == "26":
  1495. print "[+] connection..."
  1496. ftp = ftplib.FTP(ftpurl)
  1497. downloader()
  1498. ftp.cwd('norwegian')
  1499. if os.path.isdir('dictionaries/norwegian/') == 0:
  1500. os.mkdir('dictionaries/norwegian/')
  1501. dire = 'dictionaries/norwegian/'
  1502.  
  1503. file = open(dire+'words.norwegian.gz', 'wb')
  1504. print "\r\n[+] downloading words.norwegian.gz..."
  1505. ftp.retrbinary('RETR ' + 'words.norwegian.gz', handleDownload)
  1506. filequitter()
  1507.  
  1508. print '[+] fichiers enregistrés dans '+ dire
  1509. ftp.quit()
  1510. exit()
  1511.  
  1512. if filedown == "27":
  1513. print "[+] connection..."
  1514. ftp = ftplib.FTP(ftpurl)
  1515. downloader()
  1516. ftp.cwd('places')
  1517. if os.path.isdir('dictionaries/places/') == 0:
  1518. os.mkdir('dictionaries/places/')
  1519. dire = 'dictionaries/places/'
  1520.  
  1521. file = open(dire+'Colleges.gz', 'wb')
  1522. print "\r\n[+] downloading Colleges.gz..."
  1523. ftp.retrbinary('RETR ' + 'Colleges.gz', handleDownload)
  1524. filequitter()
  1525.  
  1526. file = open(dire+'US-counties.gz', 'wb')
  1527. print "\r\n[+] downloading US-counties.gz..."
  1528. ftp.retrbinary('RETR ' + 'US-counties.gz', handleDownload)
  1529. filequitter()
  1530.  
  1531. file = open(dire+'World.factbook.gz', 'wb')
  1532. print "\r\n[+] downloading World.factbook.gz..."
  1533. ftp.retrbinary('RETR ' + 'World.factbook.gz', handleDownload)
  1534. filequitter()
  1535.  
  1536. file = open(dire+'Zipcodes.gz', 'wb')
  1537. print "\r\n[+] downloading Zipcodes.gz..."
  1538. ftp.retrbinary('RETR ' + 'Zipcodes.gz', handleDownload)
  1539. filequitter()
  1540.  
  1541. file = open(dire+'places.gz', 'wb')
  1542. print "\r\n[+] downloading places.gz..."
  1543. ftp.retrbinary('RETR ' + 'places.gz', handleDownload)
  1544. filequitter()
  1545.  
  1546. print '[+] fichiers enregistrés dans '+ dire
  1547. ftp.quit()
  1548. exit()
  1549.  
  1550. if filedown == "28":
  1551. print "[+] connection..."
  1552. ftp = ftplib.FTP(ftpurl)
  1553. downloader()
  1554. ftp.cwd('polish')
  1555. if os.path.isdir('dictionaries/polish/') == 0:
  1556. os.mkdir('dictionaries/polish/')
  1557. dire = 'dictionaries/polish/'
  1558.  
  1559. file = open(dire+'words.polish.gz', 'wb')
  1560. print "\r\n[+] downloading words.polish.gz..."
  1561. ftp.retrbinary('RETR ' + 'words.polish.gz', handleDownload)
  1562. filequitter()
  1563.  
  1564. print '[+] fichiers enregistrés dans '+ dire
  1565. ftp.quit()
  1566. exit()
  1567.  
  1568. if filedown == "29":
  1569. print "[+] connection..."
  1570. ftp = ftplib.FTP(ftpurl)
  1571. downloader()
  1572. ftp.cwd('random')
  1573. if os.path.isdir('dictionaries/random/') == 0:
  1574. os.mkdir('dictionaries/random/')
  1575. dire = 'dictionaries/random/'
  1576.  
  1577. file = open(dire+'Ethnologue.gz', 'wb')
  1578. print "\r\n[+] downloading Ethnologue.gz..."
  1579. ftp.retrbinary('RETR ' + 'Ethnologue.gz', handleDownload)
  1580. filequitter()
  1581.  
  1582. file = open(dire+'abbr.gz', 'wb')
  1583. print "\r\n[+] downloading abbr.gz..."
  1584. ftp.retrbinary('RETR ' + 'abbr.gz', handleDownload)
  1585. filequitter()
  1586.  
  1587. file = open(dire+'chars.gz', 'wb')
  1588. print "\r\n[+] downloading chars.gz..."
  1589. ftp.retrbinary('RETR ' + 'chars.gz', handleDownload)
  1590. filequitter()
  1591.  
  1592. file = open(dire+'dogs.gz', 'wb')
  1593. print "\r\n[+] downloading dogs.gz..."
  1594. ftp.retrbinary('RETR ' + 'dogs.gz', handleDownload)
  1595. filequitter()
  1596.  
  1597. file = open(dire+'drugs.gz', 'wb')
  1598. print "\r\n[+] downloading drugs.gz..."
  1599. ftp.retrbinary('RETR ' + 'drugs.gz', handleDownload)
  1600. filequitter()
  1601.  
  1602. file = open(dire+'junk.gz', 'wb')
  1603. print "\r\n[+] downloading junk.gz..."
  1604. ftp.retrbinary('RETR ' + 'junk.gz', handleDownload)
  1605. filequitter()
  1606.  
  1607. file = open(dire+'numbers.gz', 'wb')
  1608. print "\r\n[+] downloading numbers.gz..."
  1609. ftp.retrbinary('RETR ' + 'numbers.gz', handleDownload)
  1610. filequitter()
  1611.  
  1612. file = open(dire+'phrases.gz', 'wb')
  1613. print "\r\n[+] downloading phrases.gz..."
  1614. ftp.retrbinary('RETR ' + 'phrases.gz', handleDownload)
  1615. filequitter()
  1616.  
  1617. file = open(dire+'sports.gz', 'wb')
  1618. print "\r\n[+] downloading sports.gz..."
  1619. ftp.retrbinary('RETR ' + 'sports.gz', handleDownload)
  1620. filequitter()
  1621.  
  1622. file = open(dire+'statistics.gz', 'wb')
  1623. print "\r\n[+] downloading statistics.gz..."
  1624. ftp.retrbinary('RETR ' + 'statistics.gz', handleDownload)
  1625. filequitter()
  1626.  
  1627. print '[+] fichiers enregistrés dans '+ dire
  1628. ftp.quit()
  1629. exit()
  1630.  
  1631. if filedown == "30":
  1632. print "[+] connection..."
  1633. ftp = ftplib.FTP(ftpurl)
  1634. downloader()
  1635. ftp.cwd('religion')
  1636. if os.path.isdir('dictionaries/religion/') == 0:
  1637. os.mkdir('dictionaries/religion/')
  1638. dire = 'dictionaries/religion/'
  1639.  
  1640. file = open(dire+'Koran.gz', 'wb')
  1641. print "\r\n[+] downloading Koran.gz..."
  1642. ftp.retrbinary('RETR ' + 'Koran.gz', handleDownload)
  1643. filequitter()
  1644.  
  1645. file = open(dire+'kjbible.gz', 'wb')
  1646. print "\r\n[+] downloading kjbible.gz..."
  1647. ftp.retrbinary('RETR ' + 'kjbible.gz', handleDownload)
  1648. filequitter()
  1649.  
  1650. file = open(dire+'norse.gz', 'wb')
  1651. print "\r\n[+] downloading norse.gz..."
  1652. ftp.retrbinary('RETR ' + 'norse.gz', handleDownload)
  1653. filequitter()
  1654.  
  1655. print '[+] fichiers enregistrés dans '+ dire
  1656. ftp.quit()
  1657. exit()
  1658.  
  1659. if filedown == "31":
  1660. print "[+] connection..."
  1661. ftp = ftplib.FTP(ftpurl)
  1662. downloader()
  1663. ftp.cwd('russian')
  1664. if os.path.isdir('dictionaries/russian/') == 0:
  1665. os.mkdir('dictionaries/russian/')
  1666. dire = 'dictionaries/russian/'
  1667.  
  1668. file = open(dire+'russian.lst.gz', 'wb')
  1669. print "\r\n[+] downloading russian.lst.gz..."
  1670. ftp.retrbinary('RETR ' + 'russian.lst.gz', handleDownload)
  1671. filequitter()
  1672.  
  1673. file = open(dire+'russian_words.koi8.gz', 'wb')
  1674. print "\r\n[+] downloading russian_words.koi8.gz..."
  1675. ftp.retrbinary('RETR ' + 'russian_words.koi8.gz', handleDownload)
  1676. filequitter()
  1677.  
  1678. print '[+] fichiers enregistrés dans '+ dire
  1679. ftp.quit()
  1680. exit()
  1681.  
  1682. if filedown == "32":
  1683. print "[+] connection..."
  1684. ftp = ftplib.FTP(ftpurl)
  1685. downloader()
  1686. ftp.cwd('science')
  1687. if os.path.isdir('dictionaries/science/') == 0:
  1688. os.mkdir('dictionaries/science/')
  1689. dire = 'dictionaries/science/'
  1690.  
  1691. file = open(dire+'Acr-diagnosis.gz', 'wb')
  1692. print "\r\n[+] downloading Acr-diagnosis.gz..."
  1693. ftp.retrbinary('RETR ' + 'Acr-diagnosis.gz', handleDownload)
  1694. filequitter()
  1695.  
  1696. file = open(dire+'Algae.gz', 'wb')
  1697. print "\r\n[+] downloading Algae.gz..."
  1698. ftp.retrbinary('RETR ' + 'Algae.gz', handleDownload)
  1699. filequitter()
  1700.  
  1701. file = open(dire+'Bacteria.gz', 'wb')
  1702. print "\r\n[+] downloading Bacteria.gz..."
  1703. ftp.retrbinary('RETR ' + 'Bacteria.gz', handleDownload)
  1704. filequitter()
  1705.  
  1706. file = open(dire+'Fungi.gz', 'wb')
  1707. print "\r\n[+] downloading Fungi.gz..."
  1708. ftp.retrbinary('RETR ' + 'Fungi.gz', handleDownload)
  1709. filequitter()
  1710.  
  1711. file = open(dire+'Microalgae.gz', 'wb')
  1712. print "\r\n[+] downloading Microalgae.gz..."
  1713. ftp.retrbinary('RETR ' + 'Microalgae.gz', handleDownload)
  1714. filequitter()
  1715.  
  1716. file = open(dire+'Viruses.gz', 'wb')
  1717. print "\r\n[+] downloading Viruses.gz..."
  1718. ftp.retrbinary('RETR ' + 'Viruses.gz', handleDownload)
  1719. filequitter()
  1720.  
  1721. file = open(dire+'asteroids.gz', 'wb')
  1722. print "\r\n[+] downloading asteroids.gz..."
  1723. ftp.retrbinary('RETR ' + 'asteroids.gz', handleDownload)
  1724. filequitter()
  1725.  
  1726. file = open(dire+'biology.gz', 'wb')
  1727. print "\r\n[+] downloading biology.gz..."
  1728. ftp.retrbinary('RETR ' + 'biology.gz', handleDownload)
  1729. filequitter()
  1730.  
  1731. file = open(dire+'tech.gz', 'wb')
  1732. print "\r\n[+] downloading tech.gz..."
  1733. ftp.retrbinary('RETR ' + 'tech.gz', handleDownload)
  1734. filequitter()
  1735.  
  1736. print '[+] fichiers enregistrés dans '+ dire
  1737. ftp.quit()
  1738. exit()
  1739.  
  1740. if filedown == "33":
  1741. print "[+] connection..."
  1742. ftp = ftplib.FTP(ftpurl)
  1743. downloader()
  1744. ftp.cwd('spanish')
  1745. if os.path.isdir('dictionaries/spanish/') == 0:
  1746. os.mkdir('dictionaries/spanish/')
  1747. dire = 'dictionaries/spanish/'
  1748.  
  1749. file = open(dire+'words.spanish.gz', 'wb')
  1750. print "\r\n[+] downloading words.spanish.gz..."
  1751. ftp.retrbinary('RETR ' + 'words.spanish.gz', handleDownload)
  1752. filequitter()
  1753.  
  1754. print '[+] fichiers enregistrés dans '+ dire
  1755. ftp.quit()
  1756. exit()
  1757.  
  1758. if filedown == "34":
  1759. print "[+] connection..."
  1760. ftp = ftplib.FTP(ftpurl)
  1761. downloader()
  1762. ftp.cwd('swahili')
  1763. if os.path.isdir('dictionaries/swahili/') == 0:
  1764. os.mkdir('dictionaries/swahili/')
  1765. dire = 'dictionaries/swahili/'
  1766.  
  1767. file = open(dire+'swahili.gz', 'wb')
  1768. print "\r\n[+] downloading swahili.gz..."
  1769. ftp.retrbinary('RETR ' + 'swahili.gz', handleDownload)
  1770. filequitter()
  1771.  
  1772. print '[+] fichiers enregistrés dans '+ dire
  1773. ftp.quit()
  1774. exit()
  1775.  
  1776. if filedown == "35":
  1777. print "[+] connection..."
  1778. ftp = ftplib.FTP(ftpurl)
  1779. downloader()
  1780. ftp.cwd('swedish')
  1781. if os.path.isdir('dictionaries/swedish/') == 0:
  1782. os.mkdir('dictionaries/swedish/')
  1783. dire = 'dictionaries/swedish/'
  1784.  
  1785. file = open(dire+'words.swedish.gz', 'wb')
  1786. print "\r\n[+] downloading words.swedish.gz..."
  1787. ftp.retrbinary('RETR ' + 'words.swedish.gz', handleDownload)
  1788. filequitter()
  1789.  
  1790. print '[+] fichiers enregistrés dans '+ dire
  1791. ftp.quit()
  1792. exit()
  1793.  
  1794. if filedown == "36":
  1795. print "[+] connection..."
  1796. ftp = ftplib.FTP(ftpurl)
  1797. downloader()
  1798. ftp.cwd('turkish')
  1799. if os.path.isdir('dictionaries/turkish/') == 0:
  1800. os.mkdir('dictionaries/turkish/')
  1801. dire = 'dictionaries/turkish/'
  1802.  
  1803. file = open(dire+'turkish.dict.gz', 'wb')
  1804. print "\r\n[+] downloading turkish.dict.gz..."
  1805. ftp.retrbinary('RETR ' + 'turkish.dict.gz', handleDownload)
  1806. filequitter()
  1807.  
  1808. print '[+] fichiers enregistrés dans '+ dire
  1809. ftp.quit()
  1810. exit()
  1811.  
  1812. if filedown == "37":
  1813. print "[+] connection..."
  1814. ftp = ftplib.FTP(ftpurl)
  1815. downloader()
  1816. ftp.cwd('yiddish')
  1817. if os.path.isdir('dictionaries/yiddish/') == 0:
  1818. os.mkdir('dictionaries/yiddish/')
  1819. dire = 'dictionaries/yiddish/'
  1820.  
  1821. file = open(dire+'yiddish.gz', 'wb')
  1822. print "\r\n[+] downloading yiddish.gz..."
  1823. ftp.retrbinary('RETR ' + 'yiddish.gz', handleDownload)
  1824. filequitter()
  1825.  
  1826. print '[+] fichiers enregistrés dans '+ dire
  1827. ftp.quit()
  1828. exit()
  1829.  
  1830.  
  1831.  
  1832. else:
  1833. print '[-] en quittant.'
  1834. exit()
  1835.  
  1836.  
  1837. else:
  1838. print "\r\n[Usage]: "+sys.argv[0] +" [OPTIONS] \r\n"
  1839. print "[Aide]: "+sys.argv[0] +" -h\r\n"
  1840. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement