Comments (12)
Hi @OJ, any updates on the JSON output functionality?
from gobuster.
At this stage, it's not ready for merging. I'll add commentary to the PR shortly.
from gobuster.
@Ice3man543 FYI I just started on this an hour ago.. right now it is only stdout for dir mode, but it shouldn't take more than another hour or two to have stdout+file output for dns and dir mode
I don't have the most time right now so if you want to work on it, check out https://github.com/mzpqnxow/gobuster/tree/json-logging
from gobuster.
Output currently looks like this:
$ ./gobuster.git -J -w ../raft-medium-words-lowercase.txt -u http://localhost -X OPTIONS -e
{"Expanded":"true","Mode":"dir","Output file":"","Status":"starting","Status codes":"200,204,301,302,307","Threads":10,"URL":"http://localhost/","level":"info","msg":"Scan initializing","time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/javascript","level":"info","msg":"HIT","size":-1,"status":301,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/out","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/.","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/httpd","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/test2","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/test1","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
{"URL":"http://localhost/redirector","level":"info","msg":"HIT","size":-1,"status":200,"time":"2018-03-04T02:16:40-05:00"}
...
from gobuster.
Hi @mzpqnxow, I will take a look at it.
from gobuster.
Hi @mzpqnxow, Actually the result should be in an array. This would make it easy to move through the response and parse it. The response should be something like this :
{
"results":[
{
"URL":"http://localhost/admin",
"level":"info",
"size":-1,
"status":200
},
{
"URL":"http://localhost/config",
"level":"info",
"size":-1,
"status":302
}
]
}
Currently, I am somewhat busy so I can't help you out much.
Thanks.
from gobuster.
@Ice3man543 this is meant to be consumed line by line at runtime (in real-time) by a third party tool. If the user wants full results at the end they should be using the flag to log results to disk.
from gobuster.
Yes @mzpqnxow, that's what I had originally intended by creating this issue. BTW, no problem. I was able to use -n flag to get just directories.
from gobuster.
@OJ: Can we merge #119 PR by @itsbriany? nmap
and alike tools (see, Kali Linux
) implemented it so we can play between each report easily and multi-diagonally (through toolset of use).
from gobuster.
no json??
from gobuster.
@Ice3man543 is correct from a semantic standpoint, an array of results makes more sense.
Is there any update on this feature?
from gobuster.
I disagree, JSON lines output is better for live consuming (you can pipe with JQ) and is different for structured JSON output that usually goes in a file, so no need to structure it as an array ... Should we assign someone to continue the work by @Ice3man543 ?
from gobuster.
Related Issues (20)
- Incorporating a flag to choose words with certain length HOT 1
- Handle empty response from server HOT 2
- Error: unknown flag: --wildcard HOT 2
- Show the path when timeout HOT 2
- MTLS not working HOT 6
- vhost mode append domain! HOT 1
- vhost not working correctly HOT 1
- invalid control character in URL HOT 1
- Is it possible to take input URLs via stdin?
- [dns] wordlist line count is always higher by one HOT 7
- Bug Report/Feature Request for vhost/fuzz mode HOT 1
- [fuzz] [fe80::1%wlp2s0]:53: server misbehaving HOT 1
- [New functionnality] - Insensitive option HOT 1
- Is it possible to scan domain like https://pubaccount10086.blob.core.windows.net? HOT 1
- Not able to perform directory enumerations HOT 5
- Recursive directory bruteforcing HOT 1
- Add `--exclude-dir` on dir mode HOT 1
- Pattern flag adds to the number of requests
- Feature Request: Ability to input multiple wordlist files HOT 1
- gobuster -u http://fakebank.com -w wordlist.txt dir HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobuster.