2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 10:57:13 +00:00

Merge pull request #16 from YellowApple/patch-1

Slightly-more-accurate `fucking_coffee.rb`
This commit is contained in:
Nihad Abbasov 2015-11-23 22:09:55 +04:00
commit f2e2251c69

View File

@ -11,10 +11,11 @@ require 'net/telnet'
coffee_machine_ip = '10.10.42.42'
password = '1234'
password_prompt = 'Password: '
delay = 24
con = Net::Telnet.new('Host' => coffee_machine_ip)
con.cmd('String' => password, 'Match' => /#{password_prompt}/)
con.cmd('sys brew')
sleep 64
sleep delay
con.cmd('sys pour')
con.close