~n on Nostr: TIL: bash can do this: { echo -e "GET / HTTP/1.0\r\n" >&3; cat <&3 ; } 3<> ...
TIL: bash can do this:
{ echo -e "GET / HTTP/1.0\r\n" >&3; cat <&3 ; } 3<> /dev/tcp/some.host.name/80
Published at
2024-01-07 15:36:58Event JSON
{
"id": "d12bd103ae566d58d4be64a55ad6bcac0c52d7b1911d893d32db50ea67f772b7",
"pubkey": "6b1e0d08f4dc433d1a460b7d09f7c2f02bc4799aef106345c77b35ae4012e67b",
"created_at": 1704641818,
"kind": 1,
"tags": [
[
"proxy",
"https://chaos.social/users/nblr/statuses/111715406236433936",
"activitypub"
]
],
"content": "TIL: bash can do this:\n\n{ echo -e \"GET / HTTP/1.0\\r\\n\" \u003e\u00263; cat \u003c\u00263 ; } 3\u003c\u003e /dev/tcp/some.host.name/80",
"sig": "aacdba97e10636c83460ae695c2c4211d11c747b519f78bde3f08c7ba2edeccd3682993dccf0442fc977ba1f7fcdfcb60edc9367970a0ab65c1f56ab70554cb0"
}