Quantcast
Channel: xterm – Securitron Linux blog.
Viewing all articles
Browse latest Browse all 9

Get weather information from the command line in Linux.

$
0
0
This nice obfuscated and overly complex command will get weather information from wttr.in using the command line. jason@kaio:~$ exec 3/dev/tcp/wttr.in/80; printf 'GET /Wagga Wagga HTTP/1.1\r\nConnection: close\r\nHost: wttr.in\r\nUser-Agent: curl\r\n\r\n' >&3; while IFS='' read -r line; do printf -- '%s\n' "${line}"; done &- HTTP/1.1 200 OK Server: nginx/1.10.3 Date: Mon, 05 Nov 2018 22:03:10 GMT Content-Type: text/html; …

Viewing all articles
Browse latest Browse all 9

Trending Articles