pwnwriter / haylxon

⚡ Blazing-fast tool to grab screenshots of your domain list right from terminal.
https://crates.io/crates/hxn
MIT License
386 stars 16 forks source link

[bug] Produces a blank file #33

Closed enomothem closed 10 months ago

enomothem commented 10 months ago

Description

I don't know if it's because of the title or the url, this screenshot doesn't have any content, but the size is assigned. I changed it to an image suffix, which is still an unsupported format.

Software Version

0.1.8

Steps to Reproduce

image

I get a responsive page, but I get a 0 byte file, and I don't know why

Expected Behavior

no image

Actual Behavior

image

Additional Information

No response

enomothem commented 10 months ago

This seems to be related to ports and paths

enomothem commented 10 months ago

http://aaa.com/ --> http-aaa.com.png
http://aaa.com:8080/ --> http-aaa.com

pwnwriter commented 10 months ago

mine works well with http://0.0.0.0:8000,

http-0 0 0 0:8000

enomothem commented 10 months ago

I figured it out, because the colon: is an illegal character for windows

enomothem commented 10 months ago

https://github.com/pwnwriter/haylxon/pull/35/commits/8158ce79b127e607a3c09ccbbba0f027e8f95c08 After I changed the code and replaced it, the problem was solved image