80 Commits

Author SHA1 Message Date
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 579fa0547e using explicit syntax 2026-03-04 12:35:05 +01:00
Doğan Can Bakır 30032e69bd fix: suppress errcheck for deferred stmt.Close 2026-03-03 21:07:09 +03:00
Doğan Can Bakır e3965cec77 style: compact struct and const block 2026-03-03 21:01:04 +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 f2690f50af fix: address CodeRabbitAI review comments for database output
- Fix SQL injection in postgres.go using pq.QuoteIdentifier for table/index names
- Fix SQL injection in mysql.go using custom quoteIdentifier function
- Fix race condition in writer.go by checking closed state before channel send
- Add missing idx_url index in mysql.go for parity with PostgreSQL schema
- Include RawHeaders in omitRaw check for consistency
2026-01-12 12:25:22 +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
Mzack9999 27a22c6ac6 Fixing custom asset id upload (#2305)
fixing custom asset id
2025-11-08 02:23:37 +05:30
Mzack9999 2b688a5587 lint 2025-08-28 17:04:33 +02:00
Ramana Reddy 0e61679af1 Add team-id in dashboard url (#1892)
add team-id in dashboard url
2024-08-26 16:33:59 +05:30
Ramana Reddy eb2b540324 Add team-id option (#1886)
add team-id option
2024-08-22 19:26:31 +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
Ramana Reddy 862e1a01d6 fix test 2024-07-12 22:42:46 +05:30
Gwyn 34762b092a Update integration.go (#1319)
Fixed minor mistakes in the comments
2023-08-15 17:27:11 +05:30
Sajad e31c1250a2 add dsl match/filter condtion (#782)
* add dsl match/filter condtion

* update README

* add test cases
2022-10-06 17:11:12 +05:30
Sami d491201eff Issue 735+issue 739 (#757)
* adding strings.ToLower to headers

* added validation logic for flags

* validated silent flag with incompatible flags

* silent flag bug fix

* added test case

* updated test case to include multiple headers
2022-09-13 16:46:38 +05:30
LuitelSamikshya 4d4db87346 functional test 2021-11-11 20:51:31 -06:00
mzack 4a2a6d31d1 adding more tests 2021-08-23 15:37:46 +02:00
mzack 8f7aebef36 fixing bash name 2021-08-23 14:10:31 +02:00
mzack 020b719e4d Adding integration/regression tests 2021-08-23 12:50:37 +02:00
mzack a786957e19 Making runner public
Implements #258
2021-05-06 10:35:02 +02:00
Sandeep Singh a3042c1e28 Merge branch 'dev' into maintenance-shared-libraries 2021-05-06 00:17:55 +05:30
Sandeep Singh 780199faab Merge branch 'dev' into feature-input-glob 2021-05-06 00:15:36 +05:30
Mzack9999 c45f67a6a3 misc 2021-05-04 15:59:42 +02:00
Mzack9999 9f7efe7d1a Merge branch 'dev' into bugfix-rawhttp-dump 2021-05-04 15:55:33 +02:00
Mzack9999 e5e55b92b4 Merge branch 'dev' into feature-input-glob 2021-05-04 15:52:14 +02:00
Mzack9999 a22fdfb319 Merge branch 'dev' into maintenance-shared-libraries 2021-05-04 15:49:31 +02:00
sandeep d2fc01a62a misc changes 2021-04-30 16:41:36 +05:30
Sandeep Singh 8d8fc43ec6 Merge branch 'dev' into added-whitelist-blacklist 2021-04-30 16:27:49 +05:30
Mzack9999 bb3a6bf7dd replacing iputil with shared library 2021-04-30 09:56:18 +02:00
Mzack9999 0c78db6218 Merge branch 'dev' into added-whitelist-blacklist 2021-04-29 17:51:32 +02:00
Mzack9999 484f3f43d8 Merge branch 'dev' into feature-max-response-size 2021-04-29 17:48:52 +02:00
Mzack9999 840b86ccba Merge branch 'dev' into bugfix-rawhttp-dump 2021-04-29 17:47:45 +02:00
Sandeep Singh e9bb05db10 Merge pull request #249 from projectdiscovery/bugfix-request-body
Removing redundant request body dump
2021-04-29 20:53:26 +05:30
Mzack9999 1e52e65780 adding extract regex support 2021-04-28 15:11:13 +02:00
Mzack9999 810ebf8035 adding glob support 2021-04-28 14:43:44 +02:00
mzack 0f259ae982 fixing lint errors 2021-04-28 06:49:48 +02:00
Mzack9999 0ec50c2c59 Adding correct helper to dump raw http requests 2021-04-27 16:11:11 +02:00
Mzack9999 b454d87f0b Removing redundant request body dump 2021-04-27 15:54:23 +02:00
Mzack9999 c13aeb1490 Adding max response body size support 2021-04-27 15:37:30 +02:00
Melody 28ef5a12e0 Fix ip/cname resolve bug
When the url's format like: https://www.google.com:443, the domain pass
 to the resolver will be www.google.com:443 and can't get the right
 result

 This patch split the port at the start of the function and rewrite the
 domain to the right format, which makes the result of IP/Cname be
 right.
2021-04-27 14:04:10 +08:00
sandeep dc89316610 mod issues 2021-04-10 15:27:42 +05:30
sandeep 1fd48300a6 version push 2021-04-09 23:20:45 +05:30
Mzack9999 e3d6c9f710 using networkpolicy 2021-04-09 14:53:27 +02:00
Ice3man543 24bee4e037 Misc 2021-04-09 15:53:13 +05:30
Mzack9999 069c96f432 adding whitelist-blacklist support 2021-04-08 23:11:41 +02:00
Ice3man543 261fb05578 Fixed lint errors 2021-04-07 21:33:50 +05:30
Ice3man543 8370013923 Use sha256 as advertised 2021-04-07 21:29:27 +05:30
Ice3man543 87f92d43d6 Default value for path 2021-04-07 21:27:45 +05:30
Ice3man543 1309a96da2 Use body for the json field 2021-04-07 21:26:11 +05:30