Skip to content

ghmko/php-reverse-shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

php-reverse-shell

Stabilize reverse Shell

-Do this on Kali, zsh shell gives error with turning enter in to ^M

    exec bash --login

-Check if bash is active.

    ps -p $$

-get vars

    echo $TERM

    stty -a

-Setup shell nc

    nvlp -nc 4444

    $ python -c 'import pty; pty.spawn("/bin/bash")'

    Ctrl-Z

-In terminal

    $ stty raw -echo

    $ fg

-In reverse shell

    $ reset

    $ export SHELL=bash

    $ export TERM=xterm-256color

    $ stty rows columns

-not always needed.

    export TERM=xterm

original code : https://github.com/pentestmonkey/php-reverse-shell

About

No description, website, or topics provided.

Resources

License

GPL-2.0 and 2 other licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
COPYING.GPL
Unknown
COPYING.PHP-REVERSE-SHELL

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%