203 Commits

Author SHA1 Message Date
Dogan Can Bakir 6c34d93168 feat: honor HTTP_PROXY/HTTPS_PROXY env vars when -proxy is unset (#2493)
Falls back to http.ProxyFromEnvironment for the HTTP transport and
reads the same vars manually for the headless launcher (chromedp
does not read env).

Closes #2492
2026-05-13 21:24:40 +02:00
Dogan Can Bakir 0dc2c9fe61 fix(db): persist CPE column in postgres and mysql writers (#2494)
* fix(db): persist CPE in postgres and mysql (#2487)

Adds cpe column to both SQL schemas, idempotent migration for
existing tables, and JSON binding in InsertBatch.

* adding comment note

* fixing lint

---------

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2026-05-13 21:22:02 +02:00
Mzack9999 3adf9cef13 fixing output writing 2026-03-22 13:35:16 +01:00
Dogan Can Bakir ed0f6af683 Merge pull request #2344 from ayuxsec/feat-add-md-output-support
Add Markdown output support
2026-03-05 14:16:46 +03:00
Dogan Can Bakir 3f1541a94c Merge pull request #2351 from projectdiscovery/2350_fix_resolver_parsing
fix resolver parsing
2026-03-05 14:08:10 +03:00
Doğan Can Bakır b97e22b6ae fix: address PR review feedback
- Add Deprecated comment to OutputFilterErrorPage field
- Coerce PageType to string for safe type assertion
2026-03-03 21:03:32 +03:00
Doğan Can Bakır 1c4561ba07 feat: replace page classifier with dit, add -fpt flag
Closes #2403
2026-03-03 21:03:32 +03:00
ayuxsec c52b709976 Merge branch 'dev' into feat-add-md-output-support 2026-02-05 19:51:42 +05:30
Doğan Can Bakır 8080434e71 warn when resolver looks like file path but doesn't exist 2026-02-04 15:58:16 +03:00
Dogan Can Bakir 96ac054c2c Merge branch 'dev' into feature/database-output 2026-01-19 21:18:38 +07:00
Mzack9999 fb1ea1c9aa Merge branch 'dev' into feature/secret-file-auth 2026-01-12 15:41:54 +04:00
Mzack9999 f445b0aa72 docs update + flags validation + debug logging 2026-01-12 15:34:24 +04:00
Doğan Can Bakır 430e33f9a1 fix: address coderabbit review comments
- Handle error from format.Parse in streamInput
- Add InputMode validation to ValidateOptions for early error detection
- Extract duplicate format validation to getInputFormat helper
- Fix shadow variable err in loadFromFormat callback
- Add bounds check in test before index access
- Add test for malformed XML input
- Run go mod tidy to fix dependency marking
2026-01-12 14:23:54 +03:00
Doğan Can Bakır 0f5141b0d7 feat: add burp xml input mode support (-im flag) 2026-01-12 14:13:31 +03:00
Doğan Can Bakır b60bfa24db feat: add secret file authentication support (-sf flag) 2026-01-12 14:03:07 +03:00
Doğan Can Bakır c1c1fd0a76 refactor: use batcher utility and StringVarEnv 2026-01-12 12:29:38 +03:00
Doğan Can Bakır 2ea576f175 feat: add database output support for storing scan results
Add support for storing httpx scan results directly to databases with
both CLI flags and YAML config file options.

Supported databases:
- MongoDB
- PostgreSQL
- MySQL

Features:
- Batched writes for performance (configurable batch size)
- Auto-flush with configurable interval
- Individual columns for each Result field (not JSON blob)
- Support for environment variable HTTPX_DB_CONNECTION_STRING
- Option to omit raw request/response data (-rdbor)

New CLI flags under OUTPUT group:
- -rdb, -result-db: enable database storage
- -rdbc, -result-db-config: path to YAML config file
- -rdbt, -result-db-type: database type (mongodb, postgres, mysql)
- -rdbcs, -result-db-conn: connection string
- -rdbn, -result-db-name: database name (default: httpx)
- -rdbtb, -result-db-table: table/collection name (default: results)
- -rdbbs, -result-db-batch-size: batch size (default: 100)
- -rdbor, -result-db-omit-raw: omit raw data

Closes #1973
Closes #2360
Closes #2361
Closes #2362
2026-01-12 12:25:22 +03:00
Doğan Can Bakır 81461d35e8 feat: add passive CPE and WordPress detection
Add support for passive detection of CPE (Common Platform Enumeration)
identifiers and WordPress plugins/themes using awesome-search-queries.

CPE Detection (-cpe flag):
- Matches response title, body, and favicon hash against patterns
- Extracts product, vendor, and generates CPE 2.3 identifiers
- Uses patterns from Shodan, FOFA, Google dorks

WordPress Detection (-wp flag):
- Detects plugins via /wp-content/plugins/[name]/ patterns
- Detects themes via /wp-content/themes/[name]/ patterns
- Validates against known plugins/themes list

New CLI flags in PROBES group:
- -cpe: display CPE based on awesome-search-queries
- -wp, -wordpress: display WordPress plugins and themes

Both are automatically included in JSON/CSV output.

Closes #1975
2026-01-06 13:22:43 +03:00
Doğan Can Bakır 822257198b fix resolver parsing 2026-01-03 18:45:09 +03:00
ayuxsec f53b945a5c Add Markdown output support
- Introduce `MarkDownOutput` flag and CLI option (`-markdown` / `-md`).
- Implement `Result.MarkdownOutput` to generate a formatted Markdown table with optional title and CDN columns, and a response body preview.
- Add markdown escaping helper.
- Update runner to create `.md` output file, handle markdown generation per result, and write to file or stdout.
- Adjust option parsing and related logic to include markdown handling.
2025-12-26 17:37:29 +05:30
Mzack9999 7e6003ca51 fixing comment 2025-12-24 15:11:53 +04:00
Mzack9999 78bf9c393a restoring original logic + limiting read to 512Mb + lint 2025-12-24 15:00:10 +04:00
Connor Larson 2773b08d8b changed max response to save and read to 10MB, the common/httpx default 2025-12-22 12:29:06 -07:00
Mzack9999 e34656f0c4 js inject from https://github.com/projectdiscovery/httpx/pull/2066 2025-10-24 13:50:29 +04:00
ayanrajpoot10 8f33284c4f feat: add shorthand flag for websocket option in command line 2025-10-10 20:51:55 +05:30
Doğan Can Bakır da1e3b2940 add custom fingerprint support 2025-09-09 17:09:47 +03:00
Mzack9999 65d4f6e7fb chars 2025-09-03 12:33:04 +02:00
Doğan Can Bakır 4d3e3a4ad8 Merge branch 'dev' into 2103_introduce_dynamic_output_filtering 2025-09-02 11:51:15 +03:00
siamak a.m.o f0e464f6ea Implement auto-referer option
The option -auto-referer, sets the referer HTTP header
of the current request to it's URL.
2025-08-18 12:08:42 +03:30
Mzack9999 079732ec1a add exp info 2025-08-12 19:53:27 +02:00
Doğan Can Bakır dc8ad1732f introduce dynamic filtering 2025-07-24 14:43:43 +03:00
Mzack9999 f886c404e9 reverse logic 2025-04-02 20:01:09 +02:00
yoshino-s ad67e70a25 feat(headless): add options to specific if screenshot with full page 2025-03-27 14:11:38 +08:00
Mzack9999 c52a923407 Refactoring proxy falg 2024-11-25 12:17:39 +01:00
Dogan Can Bakir 2f16a472f5 filter out near duplicate responses (#1951)
* filter out near duplicate responses

* use ACR cache

* lint + msg

* skip asn

* optional asn

* more opt

* Update runner.go

---------

Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-10-21 03:29:20 +05:30
Dogan Can Bakir a5f8198169 add auth cred file flag (#1912)
* add auth cred file flag

* update readme

* rename
2024-09-16 23:59:37 +05:30
Mzack9999 db72bb2902 Adding trace (#1883)
* adding trace

* using retryablehttp

* syntax error

---------

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-09-16 23:56:21 +05:30
Mzack9999 2455adc7da Merge branch 'dev' into pr/1917 2024-09-16 19:12:19 +02:00
Mzack9999 8e48bde09c using duration var 2024-09-16 19:11:04 +02:00
Mikhail Gaile 4e33c0c926 feat: add idle screenshot option 2024-09-15 13:32:06 +03:00
Ramana Reddy eb2b540324 Add team-id option (#1886)
add team-id option
2024-08-22 19:26:31 +05:30
Mzack9999 f92dd0e27e lint 2024-08-19 17:39:57 +02:00
meme-lord 2fd380afbc Make ChainInStdout option available when using httpx as a library (#1855)
make ChainInStdout option available when using httpx as a library
2024-08-14 21:49:04 +05:30
Dogan Can Bakir 8abc972842 add disable stdout option (#1871) 2024-08-13 23:36:07 +05:30
Dogan Can Bakir fe00d47fbf introduce path flag for -fep (#1830)
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2024-07-30 22:13:17 +05:30
Tarun Koyalwar 63b64cb4e6 feat: httpx results dashboard (#1834)
* misc updates

* WIP: add dashboard support

* feat dashboard support

* screenshot with upload validation

* misc textual update

* interactive api key login

* feat: add -pdu local results file upload

* fix missing tech info in dashboard

* update flag description

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-07-26 20:57:19 +05:30
Ice3man 3b5554af36 feat: added enhancements to favicon + made API public (#1774)
* more additions and enhancements to httpx

* feat: added enhancements to favicon + made API public

* update deps

* misc additions

* fix hasChain with 1 status code not working

* Revert "fix hasChain with 1 status code not working"

This reverts commit fabadcddbc.

---------

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2024-06-24 19:07:26 +05:30
Ice3man ca3e696834 feat: use networkpolicy + wappalyzer singletons from library 2024-06-17 18:11:01 +05:30
SAEED 736ed3299c Added the Functionality of storing raw request response headers (#1671)
* implemented storing header

* Revert "chore(deps): bump github.com/quic-go/quic-go from 0.37.7 to 0.42.0"

This reverts commit a88d85acd6.

* implemented req/resp headers storing feature

* implemented req/resp headers storing feature

* update readme

* commit to last commit

* add `-ob, -omit-body` flag

---------

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: Doğan Can Bakır <dogancanbakir@protonmail.com>
Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2024-06-13 02:37:14 +05:30
Mzack9999 e432123e95 Merge pull request #1761 from projectdiscovery/support_multiple_values
Support multiple values
2024-06-12 15:45:18 +02:00