Skip to content
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 stored_response_path to output json #832

Merged
merged 2 commits into from
Oct 27, 2022
Merged

Conversation

parrasajad
Copy link
Contributor

Example:

echo https://example.com/ | httpx -json --srd /tmp/httpx.tmp | jq   



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

                projectdiscovery.io

Use with caution. You are responsible for your actions.
Developers assume no liability and are not responsible for any misuse or damage.
{
  "timestamp": "2022-10-25T12:34:11.669733+05:30",
  "hash": {
    "body_md5": "84238dfc8092e5d9c0dac8ef93371a07",
    "body_mmh3": "-1139337416",
    "body_sha256": "ea8fac7c65fb589b0d53560f5251f74f9e9b243478dcb6b3ea79b5e36449c8d9",
    "body_simhash": "9899951357530060719",
    "header_md5": "0c71aafac005267cf853306684506e1e",
    "header_mmh3": "2132970353",
    "header_sha256": "8b20d69636bf8cc058c96c64d5c215a4f6898da39faf22cf2c287af7a6c1ca81",
    "header_simhash": "15614706818132709225"
  },
  "port": "443",
  "url": "https://example.com:443",
  "input": "https://example.com/",
  "title": "Example Domain",
  "scheme": "https",
  "webserver": "ECS (dcb/7EEC)",
  "content_type": "text/html",
  "method": "GET",
  "host": "93.184.216.34",
  "path": "/",
  "time": "1.211279375s",
  "a": [
    "93.184.216.34",
    "2606:2800:220:1:248:1893:25c8:1946"
  ],
  "words": 298,
  "lines": 47,
  "status_code": 200,
  "content_length": 1256,
  "failed": false,
  "stored_response_path": "/tmp/httpx.tmp/example.com.txt"
}

@parrasajad parrasajad linked an issue Oct 25, 2022 that may be closed by this pull request
@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Oct 25, 2022
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File system paths must use filepath package

runner/runner.go Outdated Show resolved Hide resolved
runner/runner.go Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Mzack9999 Mzack9999 self-requested a review October 27, 2022 06:33
@ehsandeep ehsandeep merged commit faaada3 into dev Oct 27, 2022
@ehsandeep ehsandeep deleted the stored-response-path branch October 27, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add path of -store-response in json output
4 participants