2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 19:07:33 +00:00

Merge pull request #82 from zhiephie/patch-1

Patch 1
This commit is contained in:
Nihad Abbasov 2015-12-02 01:12:02 +04:00
commit 17a16a7db4
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{
"require": {
"bestnetwork/telnet": "^1.0"
"bestnetwork/telnet": "^1.0",
"vlucas/phpdotenv": "^2.0"
}
}

View File

@ -3,6 +3,9 @@
require 'vendor/autoload.php';
$dotenv = new Dotenv\Dotenv(__DIR__);
$dotenv->load();
use Bestnetwork\Telnet\TelnetClient;
(strpos(exec('who'), getenv('USER')) !== false) or exit('no session');