Code Monkey home page Code Monkey logo

Comments (9)

randomactsofsecurity avatar randomactsofsecurity commented on May 14, 2024

Ran into this issue as well recently, think the issue may be from the instantiation of the http transport in chrome.go missing some of the defaults?

transport := http.DefaultTransport.(*http.Transport).Clone()

Seems to fix the issue with a shallow copy, but need to test it out a bit more against more assets in comparison to the old version.

from gowitness.

leonjza avatar leonjza commented on May 14, 2024

I can replicate this on Kali for https://tesla.com, but works fine on macOS. 🤔

from gowitness.

leonjza avatar leonjza commented on May 14, 2024

So there are two problems here. For the error related to reddit a fix is incoming shortly. As for tesla.com, there seems to be weirdness in how the server responds based on the User-Agent and Connection headers. Still debugging this.

from gowitness.

leonjza avatar leonjza commented on May 14, 2024

I am happy I fixed the reddit example (thanks for reporting @znre). As for tesla.com, the preflight request fails with this request.

image

For the sake of copy/paste.

GET / HTTP/1.1
Host: www.tesla.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Referer: https://tesla.com
Accept-Encoding: gzip, deflate
Connection: close

Change the User-Agent to curl, and it will work, or Connection to keep-alive and it will sometimes work. So the question is I guess, does it make sense to set the UA in the preflight as well? In my mind it does, but we have this interesting case now.

from gowitness.

artemidas avatar artemidas commented on May 14, 2024

Hey there, any updates on this one? It seems that gowitness single https://www.tesla.com/es_ES/ works just fine.
I'm from Spain by the way 😉

from gowitness.

lyonys avatar lyonys commented on May 14, 2024

@leonjza I am still facing the same issues in the latest build. gowitness fails to create a local 'screenshot' folder. I think we can change it to use mkdirall instead of mkdir and it would resolve the issue.

https://stackoverflow.com/questions/37932551/mkdir-if-not-exists-using-golang

from gowitness.

leonjza avatar leonjza commented on May 14, 2024

@lyonys are you providing a path that is deeper than 1 directory? Right now we are preparing the directory here.

from gowitness.

leonjza avatar leonjza commented on May 14, 2024

Closing this for now. Looks like the tesla.com example works at the moment.

from gowitness.

Samwise-G avatar Samwise-G commented on May 14, 2024

only the https://tesla.com is not working again, reproduced on kali

from gowitness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.