Quantcast
Channel: Recent Gists from caiokawasaki
Viewing all articles
Browse latest Browse all 18

ssh_access.php

$
0
0
ssh_access.php
<?php
use phpseclib\Net\SSH2;
use phpseclib\Crypt\RSA;
$ssh = newSSH2('ip');
$key = newRSA();
$key->loadKey(file_get_contents('/.ssh/id_rsa'));
$ssh->login('root', $key);
echo$ssh->exec('cd /var/www/html/website; sleep 20; pwd;');

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>