Last active
April 5, 2018 18:56
-
-
Save antony-jr/ea0b92ae96df04606a4bf8c4763ea115 to your computer and use it in GitHub Desktop.
A Simple Wordlist merger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys,os | |
if len(sys.argv) < 3: | |
print("Usage: {} [WORDLIST ONE] [WORDLIST TWO] [OUTPUT WORDLIST NAME]".format(sys.argv[0])) | |
sys.exit(0) | |
wlist1 = sys.argv[1] | |
wlist2 = sys.argv[2] | |
output = sys.argv[3] | |
w1fp = open(wlist1 , encoding='utf-8', errors='ignore') | |
w2fp = open(wlist2 , encoding='utf-8', errors='ignore') | |
outputfp = open(output , mode="w" , encoding='utf-8', errors='ignore') | |
for i in w1fp: | |
for j in w2fp: | |
outputfp.write(i.rstrip()+j.rstrip()+'\n') | |
break | |
w1fp.close() | |
w2fp.close() | |
outputfp.close() | |
print("Finished Merging , Written new wordlist -> {}".format(output)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment