Conversation
|
Hi and thanks for the PR. So adding HTTP as a protocol was already discussed a few times. For now no one has implemented it because I don't really see a big use case for it. As far as I am aware there aren't a whole lot of services in AD that rely on HTTP (basic) auth. If you aim at targeting custom applications you would probably asses these manually or use other, more suited tools (e.g. burpsuite). TLDR; Are there services that use basic auth?/Is there a use case or need for this protocol? Feel free to discuss if anyone has a different opinion. |
|
Hi @NeffIsBack In real-world assessments I’ve seen HTTP Basic Auth used fairly often for:
In those cases:
So the goal is not to replace Burp or web testing, but to extend NetExec’s lateral movement & credential validation capabilities to a class of services that currently often fall through the cracks. |
Description
This PR adds native HTTP and HTTPS Basic Authentication support to NetExec.
The new http protocol allows operators to quickly validate credentials against web services protected with Basic Auth, both over plain HTTP and TLS. The implementation follows existing NetExec protocol patterns and integrates with the credential engine, database, logging, and module system.
Disclaimer: I used AI-assisted coding to bootstrap this feature and refined it iteratively through testing.
Feedback and improvements are very welcome.
Type of change
Insert an "x" inside the brackets for relevant items (do not delete options)
Setup guide for the review
All testing was performed against local Apache containers using Docker.
Both HTTP and HTTPS (self-signed TLS) Basic Auth endpoints were used.
httpd-wrapper-tls.conf
self-signed certs
htdocs/index.html
Screenshots (if appropriate):
Checklist:
Insert an "x" inside the brackets for completed and relevant items (do not delete options)
poetry run python -m ruff check . --preview, use--fixto automatically fix what it can)tests/e2e_commands.txtfile if necessary (new modules or features are required to be added to the e2e tests)