Last active
April 25, 2023 20:15
-
-
Save smackerdodi/1f42633b49906dcfd096c8fc26c21ec5 to your computer and use it in GitHub Desktop.
add parameter to wordlist
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
import sys | |
textfile=sys.argv[1] | |
param=sys.argv[2] | |
with open(textfile, "r+") as t: | |
for line in t: | |
if param in line: | |
print("It's already there") | |
break | |
else: | |
t.write(param + "\n") | |
print("Done added ") | |
t.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can use it like this
python3 exist.py wordlist.txt param