https://github.com/keithrozario/lambshell
A Reverse Shell for Lambda
https://github.com/keithrozario/lambshell
Last synced: 1 day ago
JSON representation
A Reverse Shell for Lambda
- Host: GitHub
- URL: https://github.com/keithrozario/lambshell
- Owner: keithrozario
- Created: 2019-08-25T13:36:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T13:53:29.000Z (about 6 years ago)
- Last Synced: 2025-04-16T02:53:02.841Z (6 months ago)
- Language: Shell
- Size: 11.5 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lambshell
An interactive shell on a lambda using a netcat reverse shell
# Installation
To install, you'll need serverless framework, otherwise you can also deploy manually using the 2 publicly available layers in the `serverless.yml` file
$ sls deploy
# Get the Shell
To obtain the shell, run the following commands
## On listening server
$ sudo ncat -lv -p 8000## On local machine (params.json has the ip and port of the listening server)
$ sls invoke -f reverse --path params.json# Notes
If you're running the listener on EC2 or lightsail, remember to enable to port in your security groups.
# Results

# Thanks
Thanks to gkrizek for his [Bash custom runtime](https://github.com/gkrizek/bash-lambda-layer)
Thanks to Klayers for the [netcat binary as a layer](https://github.com/keithrozario/Klayers)