2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 02:47:14 +00:00
hacker-scripts/php/fucking_coffee.php

15 lines
320 B
PHP
Raw Permalink Normal View History

2015-11-30 14:14:35 +08:00
#!/usr/bin/env php
<?php
2015-11-30 14:14:35 +08:00
require 'vendor/autoload.php';
2015-11-30 14:14:35 +08:00
use Bestnetwork\Telnet\TelnetClient;
2015-11-30 14:14:35 +08:00
(strpos(exec('who'), getenv('USER')) !== false) or exit('no session');
sleep(17);
$con = new TelnetClient('10.10.42.42');
$con->execute('1234', 'Password: ');
$con->execute('sys brew');
sleep(24);
2015-11-30 14:20:05 +08:00
$con->execute('sys pour');