4 ms·
Thankfully, curl can't be tricked in such a manner. I'd have a more substantial comment, I hope, if the site was loading.
by code_duck 15y ago
Thankfully, curl can't be tricked in such a manner.
I'd have a more substantial comment, I hope, if the site was loading.
- 5hoom 15y agoYep. Sounds interesting but seems like it's meta-comments only at this stage. If anyone happens to load this elusive "View Source Spoof" page, please leave a nice detailed description for the rest of us. Our minds can draw the pictures :)
- xorglorb 15y agoCache (no images): https://webcache.googleusercontent.com/search?q=cache:http://www.scriptjunkie.us/2011/09/original-source-forgery/&hl=en&client=firefox-a&hs=1s3&rls=org.mozilla:en-US:official&strip=1 https://webcache.googleusercontent.com/search?q=cache:http:/...
- dave1010uk 15y agoDepending on how well your terminal deals with things like high unicode characters and RTL, I wonder if you could trick curl. You could also send the curl user agent harmless HTML and send Firefox / IE user agents a nasty exploit - that would probably fool me for a while.
- code_duck 15y agoYou don't have to view the output in a terminal, though - generally I wouldn't if I was really trying to look at a file. Server side user agent discrimination is a good point. One has have the option to send his or her own lies regarding that, though. There's always a a way to follow whatever script path to its various ends...
- there 15y agoThankfully, curl can't be tricked in such a manner. fetch http://jcs.org/tmp/nothing.html http://jcs.org/tmp/nothing.html through curl: jcs@air:~> curl -s http://jcs.org/tmp/nothing.html there is really nothing here, i can promise you that. but you just aren't seeing the content. jcs@air:~> curl -s http://jcs.org/tmp/nothing.html | vis View source in Firefox. \^H\^H\^H\^H\^H\^H\^H\^H\^H\^H\^H[...]
- code_duck 15y agoClever and true... I didn't say I'd view it in the terminal, though! curl http://jcs.org/tmp/nothing.html | vim -