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

[v1.1.1] Some target scans will not stop when using the -unsafe option #355

Closed
No-Github opened this issue Aug 12, 2021 · 2 comments · Fixed by #360 or #370
Closed

[v1.1.1] Some target scans will not stop when using the -unsafe option #355

No-Github opened this issue Aug 12, 2021 · 2 comments · Fixed by #360 or #370
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@No-Github
Copy link

Describe the bug
Some target scans will not stop when using the -unsafe option

Environment details

root@localhost:~# httpx -version

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

		projectdiscovery.io

Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.
[INF] Current Version: v1.1.1
root@localhost:~# go version
go version go1.15.6 linux/amd64
root@localhost:~# uname -a
Linux localhost.localdomain 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux

Error details

Scan cannot end when using the -unsafe option

root@localhost:~# echo  "http://122.233.118.93:8123" | httpx -title -content-length -status-code

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

		projectdiscovery.io

Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.
root@localhost:~# 
root@localhost:~# echo  "http://122.233.118.93:8123" | httpx -title -content-length -status-code -unsafe

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

		projectdiscovery.io

Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.
@Mzack9999 Mzack9999 self-assigned this Aug 14, 2021
@Mzack9999 Mzack9999 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Aug 14, 2021
@Mzack9999 Mzack9999 linked a pull request Aug 14, 2021 that will close this issue
@Mzack9999
Copy link
Member

@No-Github Thanks for reporting this issue. The default timeout for unsafe http is 30 seconds. I've corrected the rawhttp library behavior to respect the timeout specified via the cli option, as it was not exposed.

@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Aug 14, 2021
@ehsandeep
Copy link
Member

@No-Github this is now fixed in the dev version #360

@ehsandeep ehsandeep linked a pull request Aug 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
3 participants