xapax / oscp

504 stars 220 forks source link

Dirbuster argument List to long error #1

Open ZSSchulze opened 6 years ago

ZSSchulze commented 6 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 6 years ago

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

ZSSchulze commented 6 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 6 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)