Skip to content

Instantly share code, notes, and snippets.

@gr33n7007h
Created November 19, 2019 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gr33n7007h/42a4b728ebcaac1d2a5fb17f36aafa59 to your computer and use it in GitHub Desktop.
Save gr33n7007h/42a4b728ebcaac1d2a5fb17f36aafa59 to your computer and use it in GitHub Desktop.
gets
🤑 pry
>> tcp = TCPSocket.new('towel.blinkenlights.nl', 23)
=> #<TCPSocket:fd 8, AF_INET, 192.168.0.29, 34504>
>>
>> while line = tcp.gets
| bytes = tcp.nread
| p line: "#{line}", bytes: bytes
| sleep 0.2
| end
{:line=>"\e[H\e[J\e[H\r\n", :bytes=>8181}
{:line=>"\r\n", :bytes=>8179}
{:line=>"\r\n", :bytes=>8177}
{:line=>"\r\n", :bytes=>8175}
{:line=>"\r\n", :bytes=>8173}
{:line=>"\r\n", :bytes=>8171}
{:line=>" \r\n", :bytes=>8096}
{:line=>" Original Work : Simon Jansen ( http://www.asciimation.co.nz/ ) \r\n", :bytes=>8021}
{:line=>" Telnetification : Sten Spans ( http://blinkenlights.nl/ ) \r\n", :bytes=>7946}
{:line=>" Terminal Tricks : Mike Edwards (pf-asciimation@mirkwood.net) \r\n", :bytes=>7871}
{:line=>" \r\n", :bytes=>7796}
{:line=>" The hard work was done by Simon and Mike, \r\n", :bytes=>7721}
{:line=>" I just placed it online in a different format. \r\n", :bytes=>7646}
{:line=>" \r\n", :bytes=>7571}
{:line=>" So long And Thanks for all the fish \r\n", :bytes=>7496}
{:line=>" \r\n", :bytes=>7421}
{:line=>" Sten (I just need a Hug) \r\n", :bytes=>7346}
{:line=>" \r\n", :bytes=>7271}
{:line=>" \e[H\r\n", :bytes=>7193}
{:line=>"\r\n", :bytes=>7191}
{:line=>"\r\n", :bytes=>7189}
{:line=>"\r\n", :bytes=>7187}
{:line=>"\r\n", :bytes=>7185}
{:line=>"\r\n", :bytes=>7183}
{:line=>" \r\n", :bytes=>7108}
{:line=>" \r\n", :bytes=>7033}
{:line=>" The IPv6 version has extra scenes and extra color support. \r\n", :bytes=>6958}
{:line=>" So if you want to experience ascii starwars to it's fullest \r\n", :bytes=>6883}
{:line=>" you really should get IPv6. \r\n", :bytes=>6808}
{:line=>" \r\n", :bytes=>6733}
{:line=>" www.sixxs.net or another IPv6 tunnel broker may \r\n", :bytes=>6658}
{:line=>" help getting IPv6 to your computer. \r\n", :bytes=>6583}
{:line=>" \r\n", :bytes=>6508}
{:line=>" Good Luck, \r\n", :bytes=>6433}
{:line=>" \r\n", :bytes=>6358}
{:line=>" Snore ( Has no life for Hardware ) \r\n", :bytes=>6283}
{:line=>" \e[H\r\n", :bytes=>6205}
{:line=>"\r\n", :bytes=>6203}
{:line=>"\r\n", :bytes=>6201}
{:line=>"\r\n", :bytes=>6199}
{:line=>"\r\n", :bytes=>6197}
{:line=>"\r\n", :bytes=>6195}
{:line=>" \r\n", :bytes=>6120}
{:line=>" \r\n", :bytes=>6045}
{:line=>" \r\n", :bytes=>5970}
{:line=>" \r\n", :bytes=>5895}
^CInterrupt:
from (pry):5:in `sleep'
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment