-
Notifications
You must be signed in to change notification settings - Fork 58
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
add project discovery Nuclei boefje #518
Conversation
Signed-off-by: Riccardo ten Cate <[email protected]>
awesome, we'll have a look asap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition! I still have to test this out, but I do already have a few small remarks to improve it even more 👍
Tested and seems to work for me! |
I see this boefje currently ingests the |
That is achieved by making just a change in the "boefje.json" right? |
Indeed, and in the boefje itself since the input is different because |
@ammar92, can you make a suggestion for me as to how that should look like? :-) |
So in general it would look like this:
|
# if the input object is HostnameHTTPURL then the hostname is located in netloc | ||
if "netloc" in input and "name" in input["netloc"]: | ||
netloc_name = input["netloc"]["name"] | ||
port = input.get("port") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could also return a None
, which makes the formatted string look like <hostname>:None
. It can be avoided by giving a default port, e.g. port = input.get("port", 80)
But since the port
property is required and therefore guaranteed to exist, you can simply access that element directly: port = input["port"]
port = input.get("port") | |
port = input["port"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ammar92 Woeps i am not sure what i just did exactly haha, sorry about that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! One small suggestion left, but consider it approved 👍
Co-authored-by: ammar92 <[email protected]>
* main: Add sudo in Debian install manual (#153) Fix report translation (#609) Feature/add organization dashboard (#481) [CRT_SH] 🐛 don't treat invalid certificates from 3rd party as active (#541) Use PostgreSQL 15 in a single container (#546) [CRT_SH] 🐛 don't treat invalid certificates from 3rd party as active (#610) Update mula design documentation (#478) pass on underscore domains (#550) Feature: Add Subfinder Boefje (#516) add project discovery Nuclei boefje (#518) Remove loop from get random objects (#558)
* main: Add sudo in Debian install manual (#153) Fix report translation (#609) Feature/add organization dashboard (#481) [CRT_SH] 🐛 don't treat invalid certificates from 3rd party as active (#541) Use PostgreSQL 15 in a single container (#546) [CRT_SH] 🐛 don't treat invalid certificates from 3rd party as active (#610) Update mula design documentation (#478) pass on underscore domains (#550) Feature: Add Subfinder Boefje (#516) add project discovery Nuclei boefje (#518) Remove loop from get random objects (#558) Bump urllib3 from 1.26.14 to 1.26.15 (#576) Bump black from 22.3.0 to 23.1.0 (#578) Bump iniconfig from 1.1.1 to 2.0.0 (#579) Add indices for Bytes (#600) refactor(organization lists): unify access to organizations by user (#528)
Changes
This commit adds the Project discovery Nuclei scan as a boefje
More info about the scanner
Issue ticket number and link
Please paste a link to the issue on the project board here. Alternatively, if there was no submitted issue prior to this PR, you may add this PR to the project board directly.
Proof
Extra instructions for others
This section may be skipped or omitted. Uncomment and answer the below questions if relevant.
Checklist for author(s):
feature
orhotfix
branch, in line with our git branching strategy;.env
files if I added, removed, or changed any config options, and I have informed others that they need to modify their.env
files if required;If a non-trivial PR: