colloide

[historical] Web directory bruteforce script
git clone git://mcdim.xyz/colloide.git
Log | Files | Refs | README | LICENSE

extensionadder.py (636B)


      1 print("     .: Colloide :.")
      2 print("Extension adding tool for file wordlists\n")
      3 print("This tool is used to add filename extensions to a wordlist / dictionary.")
      4 print("Just type the wordlist name and then the file extension you want to add")
      5 file_name = raw_input("Wordlist name: ")
      6 xtension = raw_input("Extension: ")
      7 if xtension.startswith("."):
      8 	print("Dot /'./' found\n")
      9 else:
     10 	print("Dot /'./' not found - One will be added\n")
     11 	xtension = "." + xtension
     12 with open(file_name, 'r') as f:
     13     file_lines = [''.join([x.strip(), xtension, '\n']) for x in f.readlines()]
     14 
     15 with open(file_name, 'w') as f:
     16     f.writelines(file_lines)