projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.75k stars 843 forks source link

Added Awesome Search Queries (-cpe) and Passive Wordpress Plugins and Themes ( -wp, -wordpress ) flags #1976

Open parthmalhotra opened 2 weeks ago

parthmalhotra commented 2 weeks ago

Awesome Search Queries Integration (-cpe)

Product and Vendor extraction based on awesome-search-queries, The title, favicon and body based queries in awesome-search-queries gets matched with the result of the host probed by httpx, On matching queries the product and vendor and CPE information is added to the results.

parth@Parths-Laptop httpx % echo https://example.com/ | ./httpx -cpe

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.9 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://example.com/ [cpe:2.3:a:papercut:papercut_mf:*:*:*:*:*:*:*:*] [papercut] [papercut_mf]
parth@Parths-Laptop httpx % 

With -json

  "product": "papercut_mf",
  "vendor": "papercut",
  "cpe": "cpe:2.3:a:papercut:papercut_mf:*:*:*:*:*:*:*:*"

Passive Wordpress Plugins and Themes Detection ( -wp, -wordpress )

parth@Parths-Laptop httpx % echo https://wordpress.example.com/ | ./httpx -wp             

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.9 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://wordpress.example.com/ [WP Plugins: gutenberg,accordion-blocks,contact-form-7,svg-support,woocommerce,ultimate-addons-for-gutenberg] [WP Themes: swiss]
parth@Parths-Laptop httpx % 

With -json :

  "wordpress": {
    "plugins": [
      "gutenberg",
      "accordion-blocks",
      "contact-form-7",
      "svg-support",
      "woocommerce",
      "ultimate-addons-for-gutenberg"
    ],
    "themes": [
      "swiss"
    ]
  }

Closes #1975