2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 10:57:13 +00:00
hacker-scripts/php/fucking_coffee.php
Ahmad Samiei 6ec31b425e no need to load .env file for this script
USER already exist by default in environment
.env file only used to store gmail and twilio credentials
2015-12-03 18:51:21 +08:00

15 lines
320 B
PHP

#!/usr/bin/env php
<?php
require 'vendor/autoload.php';
use Bestnetwork\Telnet\TelnetClient;
(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);
$con->execute('sys pour');