<?php
include('Net/SSH2.php');
$username = $_GET['username'];
$password = $_GET['password'];
$email = $_GET['email'];
$ssh = new Net_SSH2('127.0.0.1');
if (!$ssh->login('root', 'passroot')) {
exit('Login Failed');
}
echo $ssh->exec('useradd -p '.$username.' -c '.$email.' '.$username);
?>
wow, ini diakalo bikin account lewat ssh di php pake ini aja
modulnya ambil dari sini http://phpseclib.sourceforge.net/
ini contoh script adduser
PHP:<?php include('Net/SSH2.php'); $username = $_GET['username']; $password = $_GET['password']; $email = $_GET['email']; $ssh = new Net_SSH2('127.0.0.1'); if (!$ssh->login('root', 'passroot')) { exit('Login Failed'); } echo $ssh->exec('useradd -p '.$username.' -c '.$email.' '.$username); ?>
silahkan di kembangkan
buat kayak fastssh itu loh mas.mungkin yang di maksud ts ssh inject semacam dropbear, openssh dll
maaf kalau keliru