xapax / oscp

506 stars 218 forks source link

Dirbuster argument List to long error #1

Open ZSSchulze opened 7 years ago

ZSSchulze commented 7 years ago

When trying to write dirt results to file you get argument list to long. Fix it with below code

Old Code

subprocess.check_output("replace INSERTDIRBSCAN \"" + data + "\" -- " + path, shell=True)

Fixed Code subprocess.check_output("replace INSERTDIRBSCAN \"" + "%s".format(data) + "\" -- " + path, shell=True)

avarx commented 7 years ago

A) Why not create a PR? B) Tested it. Output in template file is %s

ZSSchulze commented 7 years ago

Sorry correct string is

subprocess.check_output("replace INSERTDIRBSCAN \"" + "{0}".format(data) + "\" -- " + path, shell=True)

And I will create a PR I guess.

avarx commented 7 years ago

You don't need to apologize. I thought I d' ask. :) Thanks!

aderon2 commented 6 years ago

Tried this fix, but still getting "Argument list too long" in my errors output. My line currently reads as:

subprocess.check_output("replace INSERTDIRBSCAN \"" + "{0}".format(data) + "\" -- " + path, shell=True)