Comment by throwaway0x7E6
4 years ago
neat tool. I would encrypt the payload type and extension tho
>Some browsers disable window.crypto on local files and non-TLS servers
which ones do that?
4 years ago
neat tool. I would encrypt the payload type and extension tho
>Some browsers disable window.crypto on local files and non-TLS servers
which ones do that?
It is documented [1] as only being available in secure contexts, which is normally https:// but does include file:// urls. Testing now, it works for me in Chrome, Safari, Brave, and Firefox.
If you put:
in a local HTML file and visit it in your browser, all four browsers alert with "[object CryptoKey]".
[1] https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subt...
[2] https://developer.mozilla.org/en-US/docs/Web/Security/Secure...
Brave and Safari that I know of.
i.e. if you run the creator with a simple HTTP server on localhost:8080 it'll block the fetch to localhost:8080/foo
for local files as well?
Yes.
If that wasn't the case, then "HTML virus" would be a thing: I send you an HTML file and, if you open it, it read files from your hard drive and uploads them to my server.
5 replies →