Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printers not working fine in the library #53

Closed
javixeneize opened this issue Sep 22, 2017 · 6 comments
Closed

printers not working fine in the library #53

javixeneize opened this issue Sep 22, 2017 · 6 comments
Labels

Comments

@javixeneize
Copy link

Hi

Im trying the printer option in the library and it doesnt seem to work correctly

According to the doc, it says:

-o filename,printer equals to printer=(“printer”, “filename”)

I dont want to specify filename, just the format of the report. It still needs the filename

On top of that, the order is incorrect. it is printer=(filename,printer). See below

for r in wfuzz.get_payload(["GET","HEAD","POST","TRACE","OPTIONS"]).fuzz(url='http://localhost:5000/', method="FUZZ", printer=("t2","json")):
print r

And to finish, it doesnt do anything, it prints r in the default format, and t2 is empty

Let me know if i can help to solve any of the issues, as i find the tool quite useful

Thanks

@xmendez
Copy link
Owner

xmendez commented Sep 25, 2017

Hi,

-o options prints the results in a file using the specified format it does not change the main output as before.

The order is incorrect in the documentation but the option works for me. For example:

import wfuzz
for r in wfuzz.get_payload(range(10)).fuzz(url='http://testphp.vulnweb.com/FUZZ', printer=("/tmp/1", "raw")): print r
Then /tmp/1 contains the results.

cheers

@javixeneize
Copy link
Author

Hi

I dont wnat to print it in a file i just want to format the output

The equivalent command using CLI is this

python wfuzz.py -o json -w wordlist/general/test.txt http://localhost:5000/FUZZ

How should it be done using the library?
Thanks

@xmendez
Copy link
Owner

xmendez commented Sep 25, 2017

You can't format the main output. The last command using the CLI does not change the main output. It will create a file named json containing the results formatted using the raw printer.

The library does not format the output, it gives you results. It is up to you what to do with the results.

@javixeneize
Copy link
Author

Hi

No, the command line doesnt work like that

If i execute python wfuzz.py -o csv -w wordlist/general/test.txt http://localhost:5000/FUZZ it doesnt store the data in a file called csv. It prints the result in a csv format

with wfuzz -e printers you can see all the options you have

In fact, having the response served as a json is something that i really like :)

Thanks

@xmendez
Copy link
Owner

xmendez commented Sep 25, 2017

You are using an old version. wfuzz.py does not even exist in the newer versions.
Do --version to check the version.

This was changed to avoid having to do redirects when storing results. Now you can see the output and store at the same time.

Cheers

@javixeneize
Copy link
Author

You are right... if i use wfuzz directly (2.2.2) that option is not available. I was using version 2.1.5 with python wfuzz.py

I think returning the response in a json format is fantastic! Is there any way this can be included in this version?

If not, can i modify wfuzz to include this?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants