Comments (9)
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.
I can replicate this on Kali for https://tesla.com, but works fine on macOS. 🤔
from gowitness.
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.
I am happy I fixed the reddit example (thanks for reporting @znre). As for tesla.com, the preflight request fails with this request.
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.
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.
@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.
@lyonys are you providing a path that is deeper than 1 directory? Right now we are preparing the directory here.
from gowitness.
Closing this for now. Looks like the tesla.com example works at the moment.
from gowitness.
only the https://tesla.com is not working again, reproduced on kali
from gowitness.
Related Issues (20)
- Include screenshots using domain name and 'Host' header when using nmap XML
- Segfault
- Docker images fail with GLIBC error HOT 2
- Dashboard navigation pages don't wrap
- Could it take screenshot for just one DOM element?
- Can I import this project as a library ? HOT 1
- File Screenshot Errors HOT 5
- Snap-Chromium eating disk space HOT 2
- Unable to save long URL filenames by default
- How to specify the SQLite3 file when it is not in the current directory? Similar to sqlite://gowitness.sqlite3. HOT 1
- cleanup / prune data based on perception hash
- Exclude port(s) from being accessed
- Database merging is broken after version 2.4.2 - error unsupported database URI provided
- How to delete old records? HOT 1
- [FEATURE REQUEST] Add ability to specify CDP websocket for a remote chrome instance
- Getting error while taking screenshot
- In standalone mode, can multiple instances of screenshotting be done in parallel? HOT 2
- executable file not found in $PATH
- blank pages and following window.location HOT 1
- need target deduplication and database removal API support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gowitness.