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

Inconsistency in the results depending on options used #1158

Open
JoshuaMart opened this issue May 8, 2023 · 1 comment
Open

Inconsistency in the results depending on options used #1158

JoshuaMart opened this issue May 8, 2023 · 1 comment
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@JoshuaMart
Copy link
Contributor

Hi,
If the -ports option is used together with -fhr, the final URL and the chain_status_code is not displayed.

Result without -ports :

root@8b5a349cdfa0:/recon# httpx -u redacted.tld -json -silent -fhr
{
  "timestamp": "2023-05-08T11:26:10.819288603Z",
  "hash": {
    ...
  },
  "port": "443",
  "url": "https://redacted.tld",
  "input": "redacted.tld",
  "title": "Redacted",
  "scheme": "https",
  "content_type": "text/html",
  "method": "GET",
  "host": "Redacted",
  "path": "/",
  "final_url": "https://redacted.tld/dashboard/",
  "time": "327.79312ms",
  "chain_status_codes": [
    302,
    200
  ],
  "a": [
    "Redacted"
  ],
  "cname": [
    "Redacted"
  ],
  "words": 1,
  "lines": 1,
  "status_code": 200,
  "content_length": 3026,
  "failed": false
}

Result with -ports :

root@8b5a349cdfa0:/recon# httpx -u redacted.tld -p 443 -json -silent -fhr
{
  "timestamp": "2023-05-08T11:26:04.438805097Z",
  "hash": {
    ...
  },
  "port": "443",
  "url": "https://redacted.tld:443",
  "input": "redacted.tld",
  "location": "/dashboard/",
  "scheme": "https",
  "content_type": "text/html",
  "method": "GET",
  "host": "Redacted",
  "path": "/",
  "time": "363.363036ms",
  "words": 1,
  "lines": 1,
  "status_code": 302,
  "content_length": 34,
  "failed": false
}

Also, in the first case (if -ports is not used), even if -location is present, it is not displayed in the output

Regards

@JoshuaMart JoshuaMart added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label May 8, 2023
@RamanaReddy0M RamanaReddy0M self-assigned this May 23, 2023
@0xfff010
Copy link

‏I have a problem with the last version when using httpx -silent

‏He says
‏Usage: httpx [OPTIONS] URL

‏Error: No such option: -s

What is the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

3 participants