Skip to content

Instantly share code, notes, and snippets.

@smackerdodi
Last active April 25, 2023 20:15
Show Gist options
  • Save smackerdodi/1f42633b49906dcfd096c8fc26c21ec5 to your computer and use it in GitHub Desktop.
Save smackerdodi/1f42633b49906dcfd096c8fc26c21ec5 to your computer and use it in GitHub Desktop.
add parameter to wordlist
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()
@smackerdodi
Copy link
Author

you can use it like this
python3 exist.py wordlist.txt param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment