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

Httpx failing #7

Closed
KyootyBella opened this issue Dec 16, 2021 · 12 comments
Closed

Httpx failing #7

KyootyBella opened this issue Dec 16, 2021 · 12 comments
Assignees
Labels
help wanted Extra attention is needed invalid This doesn't seem right

Comments

@KyootyBella
Copy link

Is your feature request related to a problem? Please describe.
When running log4j scan httpx sends error

Example:
./log4j-rce-scanner.sh -l ip.txt -b t

Usage: httpx [OPTIONS] URL

Error: No such option: -s

Describe the solution you'd like
Change so it doesn't run with -s?

Describe alternatives you've considered
N/A

Additional context
Nothing

@adilsoybali adilsoybali self-assigned this Dec 16, 2021
@adilsoybali adilsoybali added the bug Something isn't working label Dec 16, 2021
@adilsoybali
Copy link
Owner

Hi @KyootyBella. As can be seen in the source code, httpx was never used with the -s parameter. Can you install the latest version of this tool and httpx and try again?

@psppatrick
Copy link

Hi @adilsoybali I've installed the latest version of this tool and httpx and I'm getting the same issue

it looks like the issue is with the httpx -silent command in the script

I don't think httpx has a silent flag

@adilsoybali
Copy link
Owner

Hi @psppatrick. The -silent parameter is used in the latest version of Httpx. You can verify this from the original github page of the httpx tool. I also tried to verify this issue on linux but couldn't see any errors. Can you please share a screenshot or video of the existence of the error? Also, can you run the following command and post the output?
echo -e "$(httpx -version)\n$(uname -a)\n\n$(echo $SHELL)\n\n$(echo adilsoybali.com | httpx -silent)"

asciicast

@KyootyBella
Copy link
Author

Hi @adilsoybali thanks for the fast reply, I am currently off work where I am using the tool, but will send you the screenshots when I get back, I am running it in kali and will test it with Ubuntu when I get back

I have been installing the newest version of httpx directly from the github but will try again, do you know the specific version which has the silent command?

@adilsoybali
Copy link
Owner

All right, I'm waiting. It works on v.1.1.4 which is the latest version I'm using. You can test it in this version.

@adilsoybali
Copy link
Owner

Hi @KyootyBella @psppatrick. You probably installed the httpx tool, which is python. You need to uninstall it and install the correct httpx tool.

Python httpx tool: https://www.python-httpx.org/
The httpx tool we use, written in Go: https://github.com/projectdiscovery/httpx

@adilsoybali adilsoybali added invalid This doesn't seem right help wanted Extra attention is needed and removed bug Something isn't working labels Dec 16, 2021
@KyootyBella
Copy link
Author

HI @adilsoybali yeah, I had to install the python tool because the httpx tool in go couldn't be recognised, I will try again here now I just put up an ubuntu vm so will see if kali is doing something that breaks it.

@KyootyBella
Copy link
Author

So Update on why it doesn't work, I have found out that it doesn't automatically recognises it when installing it directly from

go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest

but going through and git cloning it, building it with go and then moving it to the bin folder makes it all work.
Thanks for the quick response and help

@LordBoreas
Copy link

@KyootyBella Can you please explain what you mean by "build it with go and then move it all into bin means exactly? like the exact steps/code im all the way into where its running : Subfinder is working
Assetfinder is working
Amass is working
Usage: httpx (OPTIONS) URL
Error: No such options: -s
If anyone could help it would be great

@adilsoybali
Copy link
Owner

@KyootyBella Can you please explain what you mean by "build it with go and then move it all into bin means exactly? like the exact steps/code im all the way into where its running : Subfinder is working
Assetfinder is working
Amass is working
Usage: httpx (OPTIONS) URL
Error: No such options: -s
If anyone could help it would be great

Hi @LordBoreas. You probably installed the httpx tool, which is python. You need to uninstall it and install the correct httpx tool.

Python httpx tool: https://www.python-httpx.org/
The httpx tool we use, written in Go: https://github.com/projectdiscovery/httpx

@LordBoreas
Copy link

LordBoreas commented May 17, 2022 via email

@adilsoybali
Copy link
Owner

adilsoybali commented May 17, 2022

No that isn't the issue, I went through the same process as @@.*** @.> so I got the right version off httpx with go installed. However I was reaching the same problem as Bella but she said that when she just git cloned the repo and "built httpx with go" it solved everything as the original go string to download httpx wasn't working according to her. I just was curious of how I can achieve this same resolution of building httpx with go and moving it all into bin. Like what is the exact process of that code wise?

On Mon, May 16, 2022, 5:16 AM Adil Soybalı @.
> wrote: @KyootyBella https://github.com/KyootyBella Can you please explain what you mean by "build it with go and then move it all into bin means exactly? like the exact steps/code im all the way into where its running : Subfinder is working Assetfinder is working Amass is working Usage: httpx (OPTIONS) URL Error: No such options: -s If anyone could help it would be great Hi @LordBoreas https://github.com/LordBoreas. You probably installed the httpx tool, which is python. You need to uninstall it and install the correct httpx tool. Python httpx tool: https://www.python-httpx.org/ The httpx tool we use, written in Go: https://github.com/projectdiscovery/httpx — Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZF6EHNV62CW3IKA7PYS3HLVKI4DPANCNFSM5KGRNXEQ . You are receiving this because you were mentioned.Message ID: @.***>

Hello @LordBoreas, I do not fully understand the problem you are experiencing. Could you please explain the problem you are experiencing by supporting it with screenshots? Also run the code below and post the output please.

echo -e "$(httpx -version)\n$(uname -a)\n\n$(echo $SHELL)\n\n$(echo adilsoybali.com | httpx -silent)\n\n$(which httpx)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants