| skipped 750 lines |
751 | 751 | | " \r\n Tip: After downloading wordlist, you can improve it with -w option\r\n" |
752 | 752 | | ) |
753 | 753 | | |
| 754 | + | # List of files to download: |
| 755 | + | arguments = { |
| 756 | + | 1: ( |
| 757 | + | "Moby", |
| 758 | + | ( |
| 759 | + | "mhyph.tar.gz", |
| 760 | + | "mlang.tar.gz", |
| 761 | + | "moby.tar.gz", |
| 762 | + | "mpos.tar.gz", |
| 763 | + | "mpron.tar.gz", |
| 764 | + | "mthes.tar.gz", |
| 765 | + | "mwords.tar.gz", |
| 766 | + | ), |
| 767 | + | ), |
| 768 | + | 2: ("afrikaans", ("afr_dbf.zip",)), |
| 769 | + | 3: ("american", ("dic-0294.tar.gz",)), |
| 770 | + | 4: ("aussie", ("oz.gz",)), |
| 771 | + | 5: ("chinese", ("chinese.gz",)), |
| 772 | + | 6: ( |
| 773 | + | "computer", |
| 774 | + | ( |
| 775 | + | "Domains.gz", |
| 776 | + | "Dosref.gz", |
| 777 | + | "Ftpsites.gz", |
| 778 | + | "Jargon.gz", |
| 779 | + | "common-passwords.txt.gz", |
| 780 | + | "etc-hosts.gz", |
| 781 | + | "foldoc.gz", |
| 782 | + | "language-list.gz", |
| 783 | + | "unix.gz", |
| 784 | + | ), |
| 785 | + | ), |
| 786 | + | 7: ("croatian", ("croatian.gz",)), |
| 787 | + | 8: ("czech", ("czech-wordlist-ascii-cstug-novak.gz",)), |
| 788 | + | 9: ("danish", ("danish.words.gz", "dansk.zip")), |
| 789 | + | 10: ( |
| 790 | + | "databases", |
| 791 | + | ("acronyms.gz", "att800.gz", "computer-companies.gz", "world_heritage.gz"), |
| 792 | + | ), |
| 793 | + | 11: ( |
| 794 | + | "dictionaries", |
| 795 | + | ( |
| 796 | + | "Antworth.gz", |
| 797 | + | "CRL.words.gz", |
| 798 | + | "Roget.words.gz", |
| 799 | + | "Unabr.dict.gz", |
| 800 | + | "Unix.dict.gz", |
| 801 | + | "englex-dict.gz", |
| 802 | + | "knuth_britsh.gz", |
| 803 | + | "knuth_words.gz", |
| 804 | + | "pocket-dic.gz", |
| 805 | + | "shakesp-glossary.gz", |
| 806 | + | "special.eng.gz", |
| 807 | + | "words-english.gz", |
| 808 | + | ), |
| 809 | + | ), |
| 810 | + | 12: ("dutch", ("words.dutch.gz",)), |
| 811 | + | 13: ( |
| 812 | + | "finnish", |
| 813 | + | ("finnish.gz", "firstnames.finnish.gz", "words.finnish.FAQ.gz"), |
| 814 | + | ), |
| 815 | + | 14: ("french", ("dico.gz",)), |
| 816 | + | 15: ("german", ("deutsch.dic.gz", "germanl.gz", "words.german.gz")), |
| 817 | + | 16: ("hindi", ("hindu-names.gz",)), |
| 818 | + | 17: ("hungarian", ("hungarian.gz",)), |
| 819 | + | 18: ("italian", ("words.italian.gz",)), |
| 820 | + | 19: ("japanese", ("words.japanese.gz",)), |
| 821 | + | 20: ("latin", ("wordlist.aug.gz",)), |
| 822 | + | 21: ( |
| 823 | + | "literature", |
| 824 | + | ( |
| 825 | + | "LCarrol.gz", |
| 826 | + | "Paradise.Lost.gz", |
| 827 | + | "aeneid.gz", |
| 828 | + | "arthur.gz", |
| 829 | + | "cartoon.gz", |
| 830 | + | "cartoons-olivier.gz", |
| 831 | + | "charlemagne.gz", |
| 832 | + | "fable.gz", |
| 833 | + | "iliad.gz", |
| 834 | + | "myths-legends.gz", |
| 835 | + | "odyssey.gz", |
| 836 | + | "sf.gz", |
| 837 | + | "shakespeare.gz", |
| 838 | + | "tolkien.words.gz", |
| 839 | + | ), |
| 840 | + | ), |
| 841 | + | 22: ("movieTV", ("Movies.gz", "Python.gz", "Trek.gz")), |
| 842 | + | 23: ( |
| 843 | + | "music", |
| 844 | + | ( |
| 845 | + | "music-classical.gz", |
| 846 | + | "music-country.gz", |
| 847 | + | "music-jazz.gz", |
| 848 | + | "music-other.gz", |
| 849 | + | "music-rock.gz", |
| 850 | + | "music-shows.gz", |
| 851 | + | "rock-groups.gz", |
| 852 | + | ), |
| 853 | + | ), |
| 854 | + | 24: ( |
| 855 | + | "names", |
| 856 | + | ( |
| 857 | + | "ASSurnames.gz", |
| 858 | + | "Congress.gz", |
| 859 | + | "Family-Names.gz", |
| 860 | + | "Given-Names.gz", |
| 861 | + | "actor-givenname.gz", |
| 862 | + | "actor-surname.gz", |
| 863 | + | "cis-givenname.gz", |
| 864 | + | "cis-surname.gz", |
| 865 | + | "crl-names.gz", |
| 866 | + | "famous.gz", |
| 867 | + | "fast-names.gz", |
| 868 | + | "female-names-kantr.gz", |
| 869 | + | "female-names.gz", |
| 870 | + | "givennames-ol.gz", |
| 871 | + | "male-names-kantr.gz", |
| 872 | + | "male-names.gz", |
| 873 | + | "movie-characters.gz", |
| 874 | + | "names.french.gz", |
| 875 | + | "names.hp.gz", |
| 876 | + | "other-names.gz", |
| 877 | + | "shakesp-names.gz", |
| 878 | + | "surnames-ol.gz", |
| 879 | + | "surnames.finnish.gz", |
| 880 | + | "usenet-names.gz", |
| 881 | + | ), |
| 882 | + | ), |
| 883 | + | 25: ( |
| 884 | + | "net", |
| 885 | + | ( |
| 886 | + | "hosts-txt.gz", |
| 887 | + | "inet-machines.gz", |
| 888 | + | "usenet-loginids.gz", |
| 889 | + | "usenet-machines.gz", |
| 890 | + | "uunet-sites.gz", |
| 891 | + | ), |
| 892 | + | ), |
| 893 | + | 26: ("norwegian", ("words.norwegian.gz",)), |
| 894 | + | 27: ( |
| 895 | + | "places", |
| 896 | + | ( |
| 897 | + | "Colleges.gz", |
| 898 | + | "US-counties.gz", |
| 899 | + | "World.factbook.gz", |
| 900 | + | "Zipcodes.gz", |
| 901 | + | "places.gz", |
| 902 | + | ), |
| 903 | + | ), |
| 904 | + | 28: ("polish", ("words.polish.gz",)), |
| 905 | + | 29: ( |
| 906 | + | "random", |
| 907 | + | ( |
| 908 | + | "Ethnologue.gz", |
| 909 | + | "abbr.gz", |
| 910 | + | "chars.gz", |
| 911 | + | "dogs.gz", |
| 912 | + | "drugs.gz", |
| 913 | + | "junk.gz", |
| 914 | + | "numbers.gz", |
| 915 | + | "phrases.gz", |
| 916 | + | "sports.gz", |
| 917 | + | "statistics.gz", |
| 918 | + | ), |
| 919 | + | ), |
| 920 | + | 30: ("religion", ("Koran.gz", "kjbible.gz", "norse.gz")), |
| 921 | + | 31: ("russian", ("russian.lst.gz", "russian_words.koi8.gz")), |
| 922 | + | 32: ( |
| 923 | + | "science", |
| 924 | + | ( |
| 925 | + | "Acr-diagnosis.gz", |
| 926 | + | "Algae.gz", |
| 927 | + | "Bacteria.gz", |
| 928 | + | "Fungi.gz", |
| 929 | + | "Microalgae.gz", |
| 930 | + | "Viruses.gz", |
| 931 | + | "asteroids.gz", |
| 932 | + | "biology.gz", |
| 933 | + | "tech.gz", |
| 934 | + | ), |
| 935 | + | ), |
| 936 | + | 33: ("spanish", ("words.spanish.gz",)), |
| 937 | + | 34: ("swahili", ("swahili.gz",)), |
| 938 | + | 35: ("swedish", ("words.swedish.gz",)), |
| 939 | + | 36: ("turkish", ("turkish.dict.gz",)), |
| 940 | + | 37: ("yiddish", ("yiddish.gz",)), |
| 941 | + | } |
| 942 | + | |
754 | 943 | | filedown = input("> Enter number: ") |
755 | 944 | | filedown.isdigit() |
756 | 945 | | while filedown.isdigit() == 0: |
757 | 946 | | print("\r\n[-] Wrong choice. ") |
758 | 947 | | filedown = input("> Enter number: ") |
759 | 948 | | filedown = str(filedown) |
760 | | - | while int(filedown) > 38: |
| 949 | + | while int(filedown) > 38 or int(filedown) < 0: |
761 | 950 | | print("\r\n[-] Wrong choice. ") |
762 | 951 | | filedown = input("> Enter number: ") |
763 | 952 | | filedown = str(filedown) |
| skipped 25 lines |
789 | 978 | | if not os.path.isdir(dire): |
790 | 979 | | os.mkdir(dire) |
791 | 980 | | |
792 | | - | if filedown == "1": |
793 | | - | print("\r\n[+] connecting...\r\n") |
794 | | - | ftp = ftplib.FTP(ftpurl) |
795 | | - | downloader() |
796 | | - | ftp.cwd("Moby") |
797 | | - | |
798 | | - | dire = "dictionaries/Moby/" |
799 | | - | mkdir_if_not_exists(dire) |
800 | | - | |
801 | | - | files_to_download = { |
802 | | - | "mhyph.tar.gz", |
803 | | - | "mlang.tar.gz", |
804 | | - | "moby.tar.gz", |
805 | | - | "mpos.tar.gz", |
806 | | - | "mpron.tar.gz", |
807 | | - | "mthes.tar.gz", |
808 | | - | "mwords.tar.gz", |
809 | | - | } |
810 | | - | |
811 | | - | # download the files |
812 | | - | retr_file_list(ftp, dire, files_to_download) |
813 | | - | |
814 | | - | print("[+] files saved to " + dire) |
815 | | - | ftp.quit() |
816 | | - | exit() |
817 | | - | |
818 | | - | elif filedown == "2": |
819 | | - | print("[+] connecting...") |
820 | | - | ftp = ftplib.FTP(ftpurl) |
821 | | - | downloader() |
822 | | - | ftp.cwd("afrikaans") |
823 | | - | |
824 | | - | dire = "dictionaries/afrikaans/" |
825 | | - | mkdir_if_not_exists(dire) |
826 | | - | |
827 | | - | retr_binary_file(ftp, dire, "afr_dbf.zip") |
828 | | - | |
829 | | - | print("[+] file saved to " + dire) |
830 | | - | ftp.quit() |
831 | | - | exit() |
832 | | - | |
833 | | - | elif filedown == "3": |
834 | | - | print("[+] connecting...") |
835 | | - | ftp = ftplib.FTP(ftpurl) |
836 | | - | downloader() |
837 | | - | ftp.cwd("american") |
838 | | - | |
839 | | - | dire = "dictionaries/american/" |
840 | | - | mkdir_if_not_exists(dire) |
841 | | - | |
842 | | - | retr_binary_file(ftp, dire, "dic-0294.tar.gz") |
843 | | - | |
844 | | - | print("[+] file saved to " + dire) |
845 | | - | ftp.quit() |
846 | | - | exit() |
847 | | - | |
848 | | - | elif filedown == "4": |
849 | | - | print("[+] connecting...") |
850 | | - | ftp = ftplib.FTP(ftpurl) |
851 | | - | downloader() |
852 | | - | ftp.cwd("aussie") |
853 | | - | |
854 | | - | dire = "dictionaries/aussie/" |
855 | | - | mkdir_if_not_exists(dire) |
856 | | - | |
857 | | - | retr_binary_file(ftp, dire, "oz.gz") |
858 | | - | |
859 | | - | print("[+] file saved to " + dire) |
860 | | - | ftp.quit() |
861 | | - | exit() |
862 | | - | |
863 | | - | elif filedown == "5": |
864 | | - | print("[+] connecting...") |
865 | | - | ftp = ftplib.FTP(ftpurl) |
866 | | - | downloader() |
867 | | - | ftp.cwd("chinese") |
868 | | - | |
869 | | - | dire = "dictionaries/chinese/" |
870 | | - | mkdir_if_not_exists(dire) |
871 | | - | |
872 | | - | retr_binary_file(ftp, dire, "chinese.gz") |
873 | | - | |
874 | | - | print("[+] file saved to " + dire) |
875 | | - | ftp.quit() |
876 | | - | exit() |
877 | | - | |
878 | | - | elif filedown == "6": |
879 | | - | print("[+] connecting...") |
880 | | - | ftp = ftplib.FTP(ftpurl) |
881 | | - | downloader() |
882 | | - | ftp.cwd("computer") |
883 | | - | |
884 | | - | dire = "dictionaries/computer/" |
885 | | - | mkdir_if_not_exists(dire) |
886 | | - | |
887 | | - | files_to_download = { |
888 | | - | "Domains.gz", |
889 | | - | "Dosref.gz", |
890 | | - | "Ftpsites.gz", |
891 | | - | "Jargon.gz", |
892 | | - | "common-passwords.txt.gz", |
893 | | - | "etc-hosts.gz", |
894 | | - | "foldoc.gz", |
895 | | - | "language-list.gz", |
896 | | - | "unix.gz", |
897 | | - | } |
898 | | - | |
899 | | - | # download the files |
900 | | - | retr_file_list(ftp, dire, files_to_download) |
901 | | - | |
902 | | - | print("[+] files saved to " + dire) |
903 | | - | ftp.quit() |
904 | | - | exit() |
905 | | - | |
906 | | - | elif filedown == "7": |
907 | | - | print("[+] connecting...") |
908 | | - | ftp = ftplib.FTP(ftpurl) |
909 | | - | downloader() |
910 | | - | ftp.cwd("croatian") |
911 | | - | |
912 | | - | dire = "dictionaries/croatian/" |
913 | | - | mkdir_if_not_exists(dire) |
914 | | - | |
915 | | - | retr_binary_file(ftp, dire, "croatian.gz") |
916 | | - | |
917 | | - | print("[+] file saved to " + dire) |
918 | | - | ftp.quit() |
919 | | - | exit() |
920 | | - | |
921 | | - | elif filedown == "8": |
922 | | - | print("[+] connecting...") |
923 | | - | ftp = ftplib.FTP(ftpurl) |
924 | | - | downloader() |
925 | | - | ftp.cwd("czech") |
926 | | - | |
927 | | - | dire = "dictionaries/czech/" |
928 | | - | mkdir_if_not_exists(dire) |
929 | | - | |
930 | | - | retr_binary_file(ftp, dire, "czech-wordlist-ascii-cstug-novak.gz") |
931 | | - | |
932 | | - | print("[+] file saved to " + dire) |
933 | | - | ftp.quit() |
934 | | - | exit() |
935 | | - | |
936 | | - | elif filedown == "9": |
937 | | - | print("[+] connecting...") |
938 | | - | ftp = ftplib.FTP(ftpurl) |
939 | | - | downloader() |
940 | | - | ftp.cwd("danish") |
941 | | - | |
942 | | - | dire = "dictionaries/danish/" |
943 | | - | mkdir_if_not_exists(dire) |
944 | | - | |
945 | | - | retr_binary_file(ftp, dire, "danish.words.gz") |
946 | | - | retr_binary_file(ftp, dire, "dansk.zip") |
947 | | - | |
948 | | - | print("[+] files saved to " + dire) |
949 | | - | ftp.quit() |
950 | | - | exit() |
951 | | - | |
952 | | - | elif filedown == "10": |
953 | | - | print("[+] connecting...") |
954 | | - | ftp = ftplib.FTP(ftpurl) |
955 | | - | downloader() |
956 | | - | ftp.cwd("databases") |
957 | | - | |
958 | | - | dire = "dictionaries/databases/" |
959 | | - | mkdir_if_not_exists(dire) |
960 | | - | |
961 | | - | files_to_download = { |
962 | | - | "acronyms.gz", |
963 | | - | "att800.gz", |
964 | | - | "computer-companies.gz", |
965 | | - | "world_heritage.gz", |
966 | | - | } |
967 | | - | |
968 | | - | # download the files |
969 | | - | retr_file_list(ftp, dire, files_to_download) |
970 | | - | |
971 | | - | print("[+] files saved to " + dire) |
972 | | - | ftp.quit() |
973 | | - | exit() |
974 | | - | |
975 | | - | elif filedown == "11": |
976 | | - | print("[+] connecting...") |
977 | | - | ftp = ftplib.FTP(ftpurl) |
978 | | - | downloader() |
979 | | - | ftp.cwd("dictionaries") |
980 | | - | |
981 | | - | dire = "dictionaries/dictionaries/" |
982 | | - | mkdir_if_not_exists(dire) |
983 | | - | |
984 | | - | files_to_download = { |
985 | | - | "Antworth.gz", |
986 | | - | "CRL.words.gz", |
987 | | - | "Roget.words.gz", |
988 | | - | "Unabr.dict.gz", |
989 | | - | "Unix.dict.gz", |
990 | | - | "englex-dict.gz", |
991 | | - | "knuth_britsh.gz", |
992 | | - | "knuth_words.gz", |
993 | | - | "pocket-dic.gz", |
994 | | - | "shakesp-glossary.gz", |
995 | | - | "special.eng.gz", |
996 | | - | "words-english.gz", |
997 | | - | } |
998 | | - | |
999 | | - | # download the files |
1000 | | - | retr_file_list(ftp, dire, files_to_download) |
1001 | | - | |
1002 | | - | print("[+] files saved to " + dire) |
1003 | | - | ftp.quit() |
1004 | | - | exit() |
1005 | | - | |
1006 | | - | elif filedown == "12": |
1007 | | - | print("[+] connecting...") |
1008 | | - | ftp = ftplib.FTP(ftpurl) |
1009 | | - | downloader() |
1010 | | - | ftp.cwd("dutch") |
1011 | | - | |
1012 | | - | dire = "dictionaries/dutch/" |
1013 | | - | mkdir_if_not_exists(dire) |
1014 | | - | |
1015 | | - | retr_binary_file(ftp, dire, "words.dutch.gz") |
1016 | | - | |
1017 | | - | print("[+] file saved to " + dire) |
1018 | | - | ftp.quit() |
1019 | | - | exit() |
1020 | | - | |
1021 | | - | elif filedown == "13": |
1022 | | - | print("[+] connecting...") |
1023 | | - | ftp = ftplib.FTP(ftpurl) |
1024 | | - | downloader() |
1025 | | - | ftp.cwd("finnish") |
1026 | | - | |
1027 | | - | dire = "dictionaries/finnish/" |
1028 | | - | mkdir_if_not_exists(dire) |
1029 | | - | |
1030 | | - | files_to_download = { |
1031 | | - | "finnish.gz", |
1032 | | - | "firstnames.finnish.gz", |
1033 | | - | "words.finnish.FAQ.gz", |
1034 | | - | } |
1035 | | - | |
1036 | | - | # download the files |
1037 | | - | retr_file_list(ftp, dire, files_to_download) |
1038 | | - | |
1039 | | - | print("[+] files saved to " + dire) |
1040 | | - | ftp.quit() |
1041 | | - | exit() |
1042 | | - | |
1043 | | - | elif filedown == "14": |
1044 | | - | print("[+] connecting...") |
1045 | | - | ftp = ftplib.FTP(ftpurl) |
1046 | | - | downloader() |
1047 | | - | ftp.cwd("french") |
1048 | | - | |
1049 | | - | dire = "dictionaries/french/" |
1050 | | - | mkdir_if_not_exists(dire) |
1051 | | - | |
1052 | | - | retr_binary_file(ftp, dire, "dico.gz") |
1053 | | - | |
1054 | | - | print("[+] file saved to " + dire) |
1055 | | - | ftp.quit() |
1056 | | - | exit() |
1057 | | - | |
1058 | | - | elif filedown == "15": |
1059 | | - | print("[+] connecting...") |
1060 | | - | ftp = ftplib.FTP(ftpurl) |
1061 | | - | downloader() |
1062 | | - | ftp.cwd("german") |
1063 | | - | |
1064 | | - | dire = "dictionaries/german/" |
1065 | | - | mkdir_if_not_exists(dire) |
1066 | | - | |
1067 | | - | files_to_download = {"deutsch.dic.gz", "germanl.gz", "words.german.gz"} |
1068 | | - | |
1069 | | - | # download the files |
1070 | | - | retr_file_list(ftp, dire, files_to_download) |
1071 | | - | |
1072 | | - | print("[+] files saved to " + dire) |
1073 | | - | ftp.quit() |
1074 | | - | exit() |
1075 | | - | |
1076 | | - | elif filedown == "16": |
1077 | | - | print("[+] connecting...") |
1078 | | - | ftp = ftplib.FTP(ftpurl) |
1079 | | - | downloader() |
1080 | | - | ftp.cwd("hindi") |
1081 | | - | |
1082 | | - | dire = "dictionaries/hindi/" |
1083 | | - | mkdir_if_not_exists(dire) |
1084 | | - | |
1085 | | - | retr_binary_file(ftp, dire, "hindu-names.gz") |
1086 | | - | |
1087 | | - | print("[+] file saved to " + dire) |
1088 | | - | ftp.quit() |
1089 | | - | exit() |
1090 | | - | |
1091 | | - | elif filedown == "17": |
1092 | | - | print("[+] connecting...") |
1093 | | - | ftp = ftplib.FTP(ftpurl) |
1094 | | - | downloader() |
1095 | | - | ftp.cwd("hungarian") |
1096 | | - | |
1097 | | - | dire = "dictionaries/hungarian/" |
1098 | | - | mkdir_if_not_exists(dire) |
1099 | | - | |
1100 | | - | retr_binary_file(ftp, dire, "hungarian.gz") |
1101 | | - | |
1102 | | - | print("[+] file saved to " + dire) |
1103 | | - | ftp.quit() |
1104 | | - | exit() |
1105 | | - | |
1106 | | - | elif filedown == "18": |
1107 | | - | print("[+] connecting...") |
1108 | | - | ftp = ftplib.FTP(ftpurl) |
1109 | | - | downloader() |
1110 | | - | ftp.cwd("italian") |
| 981 | + | # download the files |
1111 | 982 | | |
1112 | | - | dire = "dictionaries/italian/" |
1113 | | - | mkdir_if_not_exists(dire) |
| 983 | + | intfiledown = int(filedown) |
1114 | 984 | | |
1115 | | - | retr_binary_file(ftp, dire, "words.italian.gz") |
| 985 | + | if intfiledown in arguments: |
1116 | 986 | | |
1117 | | - | print("[+] file saved to " + dire) |
1118 | | - | ftp.quit() |
1119 | | - | exit() |
1120 | | - | |
1121 | | - | elif filedown == "19": |
1122 | | - | print("[+] connecting...") |
| 987 | + | print("\r\n[+] connecting...\r\n") |
1123 | 988 | | ftp = ftplib.FTP(ftpurl) |
1124 | 989 | | downloader() |
1125 | | - | ftp.cwd("japanese") |
| 990 | + | ftp.cwd(arguments[intfiledown][0]) |
1126 | 991 | | |
1127 | | - | dire = "dictionaries/japanese/" |
| 992 | + | dire = "dictionaries/" + arguments[intfiledown][0] + "/" |
1128 | 993 | | mkdir_if_not_exists(dire) |
1129 | 994 | | |
1130 | | - | retr_binary_file(ftp, dire, "words.japanese.gz") |
1131 | | - | |
1132 | | - | print("[+] file saved to " + dire) |
1133 | | - | ftp.quit() |
1134 | | - | exit() |
1135 | | - | |
1136 | | - | elif filedown == "20": |
1137 | | - | print("[+] connecting...") |
1138 | | - | ftp = ftplib.FTP(ftpurl) |
1139 | | - | downloader() |
1140 | | - | ftp.cwd("latin") |
1141 | | - | |
1142 | | - | dire = "dictionaries/latin/" |
1143 | | - | mkdir_if_not_exists(dire) |
1144 | | - | |
1145 | | - | retr_binary_file(ftp, dire, "wordlist.aug.gz") |
1146 | | - | |
1147 | | - | print("[+] file saved to " + dire) |
1148 | | - | ftp.quit() |
1149 | | - | exit() |
1150 | | - | |
1151 | | - | elif filedown == "21": |
1152 | | - | print("[+] connecting...") |
1153 | | - | ftp = ftplib.FTP(ftpurl) |
1154 | | - | downloader() |
1155 | | - | ftp.cwd("literature") |
1156 | | - | |
1157 | | - | dire = "dictionaries/literature/" |
1158 | | - | mkdir_if_not_exists(dire) |
1159 | | - | |
1160 | | - | files_to_download = { |
1161 | | - | "LCarrol.gz", |
1162 | | - | "Paradise.Lost.gz", |
1163 | | - | "aeneid.gz", |
1164 | | - | "arthur.gz", |
1165 | | - | "cartoon.gz", |
1166 | | - | "cartoons-olivier.gz", |
1167 | | - | "charlemagne.gz", |
1168 | | - | "fable.gz", |
1169 | | - | "iliad.gz", |
1170 | | - | "myths-legends.gz", |
1171 | | - | "odyssey.gz", |
1172 | | - | "sf.gz", |
1173 | | - | "shakespeare.gz", |
1174 | | - | "tolkien.words.gz", |
1175 | | - | } |
| 995 | + | print(arguments[int(filedown)][0]) |
| 996 | + | files_to_download = arguments[intfiledown][1] |
1176 | 997 | | |
1177 | 998 | | # download the files |
1178 | 999 | | retr_file_list(ftp, dire, files_to_download) |
1179 | 1000 | | |
1180 | 1001 | | print("[+] files saved to " + dire) |
1181 | | - | ftp.quit() |
1182 | | - | exit() |
1183 | | - | |
1184 | | - | elif filedown == "22": |
1185 | | - | print("[+] connecting...") |
1186 | | - | ftp = ftplib.FTP(ftpurl) |
1187 | | - | downloader() |
1188 | | - | ftp.cwd("movieTV") |
1189 | | - | |
1190 | | - | dire = "dictionaries/movieTV/" |
1191 | | - | mkdir_if_not_exists(dire) |
1192 | | - | |
1193 | | - | files_to_download = {"Movies.gz", "Python.gz", "Trek.gz"} |
1194 | | - | |
1195 | | - | # download the files |
1196 | | - | retr_file_list(ftp, dire, files_to_download) |
1197 | | - | |
1198 | | - | print("[+] files saved to " + dire) |
1199 | | - | ftp.quit() |
1200 | | - | exit() |
1201 | | - | |
1202 | | - | elif filedown == "23": |
1203 | | - | print("[+] connecting...") |
1204 | | - | ftp = ftplib.FTP(ftpurl) |
1205 | | - | downloader() |
1206 | | - | ftp.cwd("music") |
1207 | | - | |
1208 | | - | dire = "dictionaries/music/" |
1209 | | - | mkdir_if_not_exists(dire) |
1210 | | - | |
1211 | | - | files_to_download = { |
1212 | | - | "music-classical.gz", |
1213 | | - | "music-country.gz", |
1214 | | - | "music-jazz.gz", |
1215 | | - | "music-other.gz", |
1216 | | - | "music-rock.gz", |
1217 | | - | "music-shows.gz", |
1218 | | - | "rock-groups.gz", |
1219 | | - | } |
1220 | | - | |
1221 | | - | # download the files |
1222 | | - | retr_file_list(ftp, dire, files_to_download) |
1223 | | - | |
1224 | | - | print("[+] files saved to " + dire) |
1225 | | - | ftp.quit() |
1226 | | - | exit() |
1227 | | - | |
1228 | | - | elif filedown == "24": |
1229 | | - | print("[+] connecting...") |
1230 | | - | ftp = ftplib.FTP(ftpurl) |
1231 | | - | downloader() |
1232 | | - | ftp.cwd("names") |
1233 | | - | |
1234 | | - | dire = "dictionaries/names/" |
1235 | | - | mkdir_if_not_exists(dire) |
1236 | | - | |
1237 | | - | files_to_download = { |
1238 | | - | "ASSurnames.gz", |
1239 | | - | "Congress.gz", |
1240 | | - | "Family-Names.gz", |
1241 | | - | "Given-Names.gz", |
1242 | | - | "actor-givenname.gz", |
1243 | | - | "actor-surname.gz", |
1244 | | - | "cis-givenname.gz", |
1245 | | - | "cis-surname.gz", |
1246 | | - | "crl-names.gz", |
1247 | | - | "famous.gz", |
1248 | | - | "fast-names.gz", |
1249 | | - | "female-names-kantr.gz", |
1250 | | - | "female-names.gz", |
1251 | | - | "givennames-ol.gz", |
1252 | | - | "male-names-kantr.gz", |
1253 | | - | "male-names.gz", |
1254 | | - | "movie-characters.gz", |
1255 | | - | "names.french.gz", |
1256 | | - | "names.hp.gz", |
1257 | | - | "other-names.gz", |
1258 | | - | "shakesp-names.gz", |
1259 | | - | "surnames-ol.gz", |
1260 | | - | "surnames.finnish.gz", |
1261 | | - | "usenet-names.gz", |
1262 | | - | } |
1263 | | - | |
1264 | | - | # download the files |
1265 | | - | retr_file_list(ftp, dire, files_to_download) |
1266 | | - | |
1267 | | - | print("[+] files saved to " + dire) |
1268 | | - | ftp.quit() |
1269 | | - | exit() |
1270 | | - | |
1271 | | - | elif filedown == "25": |
1272 | | - | print("[+] connecting...") |
1273 | | - | ftp = ftplib.FTP(ftpurl) |
1274 | | - | downloader() |
1275 | | - | ftp.cwd("net") |
1276 | | - | |
1277 | | - | dire = "dictionaries/net/" |
1278 | | - | mkdir_if_not_exists(dire) |
1279 | | - | |
1280 | | - | files_to_download = { |
1281 | | - | "hosts-txt.gz", |
1282 | | - | "inet-machines.gz", |
1283 | | - | "usenet-loginids.gz", |
1284 | | - | "usenet-machines.gz", |
1285 | | - | "uunet-sites.gz", |
1286 | | - | } |
1287 | | - | |
1288 | | - | # download the files |
1289 | | - | retr_file_list(ftp, dire, files_to_download) |
1290 | | - | |
1291 | | - | print("[+] files saved to " + dire) |
1292 | | - | ftp.quit() |
1293 | | - | exit() |
1294 | | - | |
1295 | | - | elif filedown == "26": |
1296 | | - | print("[+] connecting...") |
1297 | | - | ftp = ftplib.FTP(ftpurl) |
1298 | | - | downloader() |
1299 | | - | ftp.cwd("norwegian") |
1300 | | - | |
1301 | | - | dire = "dictionaries/norwegian/" |
1302 | | - | mkdir_if_not_exists(dire) |
1303 | | - | |
1304 | | - | retr_binary_file(ftp, dire, "words.norwegian.gz") |
1305 | | - | |
1306 | | - | print("[+] file saved to " + dire) |
1307 | | - | ftp.quit() |
1308 | | - | exit() |
1309 | | - | |
1310 | | - | elif filedown == "27": |
1311 | | - | print("[+] connecting...") |
1312 | | - | ftp = ftplib.FTP(ftpurl) |
1313 | | - | downloader() |
1314 | | - | ftp.cwd("places") |
1315 | | - | |
1316 | | - | dire = "dictionaries/places/" |
1317 | | - | mkdir_if_not_exists(dire) |
1318 | | - | |
1319 | | - | files_to_download = { |
1320 | | - | "Colleges.gz", |
1321 | | - | "US-counties.gz", |
1322 | | - | "World.factbook.gz", |
1323 | | - | "Zipcodes.gz", |
1324 | | - | "places.gz", |
1325 | | - | } |
1326 | | - | |
1327 | | - | # download the files |
1328 | | - | retr_file_list(ftp, dire, files_to_download) |
1329 | | - | |
1330 | | - | print("[+] files saved to " + dire) |
1331 | | - | ftp.quit() |
1332 | | - | exit() |
1333 | | - | |
1334 | | - | elif filedown == "28": |
1335 | | - | print("[+] connecting...") |
1336 | | - | ftp = ftplib.FTP(ftpurl) |
1337 | | - | downloader() |
1338 | | - | ftp.cwd("polish") |
1339 | | - | |
1340 | | - | dire = "dictionaries/polish/" |
1341 | | - | mkdir_if_not_exists(dire) |
1342 | | - | |
1343 | | - | retr_binary_file(ftp, dire, "words.polish.gz") |
1344 | | - | |
1345 | | - | print("[+] file saved to " + dire) |
1346 | | - | ftp.quit() |
1347 | | - | exit() |
1348 | | - | |
1349 | | - | elif filedown == "29": |
1350 | | - | print("[+] connecting...") |
1351 | | - | ftp = ftplib.FTP(ftpurl) |
1352 | | - | downloader() |
1353 | | - | ftp.cwd("random") |
1354 | | - | |
1355 | | - | dire = "dictionaries/random/" |
1356 | | - | mkdir_if_not_exists(dire) |
1357 | | - | |
1358 | | - | files_to_download = { |
1359 | | - | "Ethnologue.gz", |
1360 | | - | "abbr.gz", |
1361 | | - | "chars.gz", |
1362 | | - | "dogs.gz", |
1363 | | - | "drugs.gz", |
1364 | | - | "junk.gz", |
1365 | | - | "numbers.gz", |
1366 | | - | "phrases.gz", |
1367 | | - | "sports.gz", |
1368 | | - | "statistics.gz", |
1369 | | - | } |
1370 | | - | |
1371 | | - | # download the files |
1372 | | - | retr_file_list(ftp, dire, files_to_download) |
1373 | | - | |
1374 | | - | print("[+] files saved to " + dire) |
1375 | | - | ftp.quit() |
1376 | | - | exit() |
1377 | | - | |
1378 | | - | elif filedown == "30": |
1379 | | - | print("[+] connecting...") |
1380 | | - | ftp = ftplib.FTP(ftpurl) |
1381 | | - | downloader() |
1382 | | - | ftp.cwd("religion") |
1383 | | - | |
1384 | | - | dire = "dictionaries/religion/" |
1385 | | - | mkdir_if_not_exists(dire) |
1386 | | - | |
1387 | | - | files_to_download = {"Koran.gz", "kjbible.gz", "norse.gz"} |
1388 | | - | |
1389 | | - | # download the files |
1390 | | - | retr_file_list(ftp, dire, files_to_download) |
1391 | | - | |
1392 | | - | print("[+] files saved to " + dire) |
1393 | | - | ftp.quit() |
1394 | | - | exit() |
1395 | | - | |
1396 | | - | elif filedown == "31": |
1397 | | - | print("[+] connecting...") |
1398 | | - | ftp = ftplib.FTP(ftpurl) |
1399 | | - | downloader() |
1400 | | - | ftp.cwd("russian") |
1401 | | - | |
1402 | | - | dire = "dictionaries/russian/" |
1403 | | - | mkdir_if_not_exists(dire) |
1404 | | - | |
1405 | | - | retr_binary_file(ftp, dire, "russian.lst.gz") |
1406 | | - | retr_binary_file(ftp, dire, "russian_words.koi8.gz") |
1407 | | - | |
1408 | | - | print("[+] files saved to " + dire) |
1409 | | - | ftp.quit() |
1410 | | - | exit() |
1411 | | - | |
1412 | | - | elif filedown == "32": |
1413 | | - | print("[+] connecting...") |
1414 | | - | ftp = ftplib.FTP(ftpurl) |
1415 | | - | downloader() |
1416 | | - | ftp.cwd("science") |
1417 | | - | |
1418 | | - | dire = "dictionaries/science/" |
1419 | | - | mkdir_if_not_exists(dire) |
1420 | | - | |
1421 | | - | files_to_download = { |
1422 | | - | "Acr-diagnosis.gz", |
1423 | | - | "Algae.gz", |
1424 | | - | "Bacteria.gz", |
1425 | | - | "Fungi.gz", |
1426 | | - | "Microalgae.gz", |
1427 | | - | "Viruses.gz", |
1428 | | - | "asteroids.gz", |
1429 | | - | "biology.gz", |
1430 | | - | "tech.gz", |
1431 | | - | } |
1432 | | - | |
1433 | | - | # download the files |
1434 | | - | retr_file_list(ftp, dire, files_to_download) |
1435 | | - | |
1436 | | - | print("[+] files saved to " + dire) |
1437 | | - | ftp.quit() |
1438 | | - | exit() |
1439 | | - | |
1440 | | - | elif filedown == "33": |
1441 | | - | print("[+] connecting...") |
1442 | | - | ftp = ftplib.FTP(ftpurl) |
1443 | | - | downloader() |
1444 | | - | ftp.cwd("spanish") |
1445 | | - | |
1446 | | - | dire = "dictionaries/spanish/" |
1447 | | - | mkdir_if_not_exists(dire) |
1448 | | - | |
1449 | | - | retr_binary_file(ftp, dire, "words.spanish.gz") |
1450 | | - | |
1451 | | - | print("[+] file saved to " + dire) |
1452 | | - | ftp.quit() |
1453 | | - | exit() |
1454 | | - | |
1455 | | - | elif filedown == "34": |
1456 | | - | print("[+] connecting...") |
1457 | | - | ftp = ftplib.FTP(ftpurl) |
1458 | | - | downloader() |
1459 | | - | ftp.cwd("swahili") |
1460 | | - | |
1461 | | - | dire = "dictionaries/swahili/" |
1462 | | - | mkdir_if_not_exists(dire) |
1463 | | - | |
1464 | | - | retr_binary_file(ftp, dire, "swahili.gz") |
1465 | | - | |
1466 | | - | print("[+] file saved to " + dire) |
1467 | | - | ftp.quit() |
1468 | | - | exit() |
1469 | | - | |
1470 | | - | elif filedown == "35": |
1471 | | - | print("[+] connecting...") |
1472 | | - | ftp = ftplib.FTP(ftpurl) |
1473 | | - | downloader() |
1474 | | - | ftp.cwd("swedish") |
1475 | | - | |
1476 | | - | dire = "dictionaries/swedish/" |
1477 | | - | mkdir_if_not_exists(dire) |
1478 | | - | |
1479 | | - | retr_binary_file(ftp, dire, "words.swedish.gz") |
1480 | | - | |
1481 | | - | print("[+] file saved to " + dire) |
1482 | | - | ftp.quit() |
1483 | | - | exit() |
1484 | | - | |
1485 | | - | elif filedown == "36": |
1486 | | - | print("[+] connecting...") |
1487 | | - | ftp = ftplib.FTP(ftpurl) |
1488 | | - | downloader() |
1489 | | - | ftp.cwd("turkish") |
1490 | | - | |
1491 | | - | dire = "dictionaries/turkish/" |
1492 | | - | mkdir_if_not_exists(dire) |
1493 | | - | |
1494 | | - | retr_binary_file(ftp, dire, "turkish.dict.gz") |
1495 | | - | |
1496 | | - | print("[+] file saved to " + dire) |
1497 | | - | ftp.quit() |
1498 | | - | exit() |
1499 | | - | |
1500 | | - | elif filedown == "37": |
1501 | | - | print("[+] connecting...") |
1502 | | - | ftp = ftplib.FTP(ftpurl) |
1503 | | - | downloader() |
1504 | | - | ftp.cwd("yiddish") |
1505 | | - | |
1506 | | - | dire = "dictionaries/yiddish/" |
1507 | | - | mkdir_if_not_exists(dire) |
1508 | | - | |
1509 | | - | retr_binary_file(ftp, dire, "yiddish.gz") |
1510 | | - | |
1511 | | - | print("[+] file saved to " + dire) |
1512 | 1002 | | ftp.quit() |
1513 | 1003 | | exit() |
1514 | 1004 | | |
| skipped 10 lines |