mirror of
https://github.com/anotherhadi/revshell.git
synced 2026-11-25 05:53:39 +01:00
main
█▀█ █▀▀ █ █ █▀▀ █ █ █▀▀ █ █
█▀▄ ██▄ ▀▄▀ ▄▄█ █▀█ ██▄ █▄▄ █▄▄
Revshell: reverse/bind shell one-liners, fast
Fill {ip}/{port}/{shell} into known reverse shell, bind shell, MSFVenom,
HoaxShell and shellcode one-liners from a searchable TUI or a scriptable CLI.
Part of the foam tools.
The catalog comes from
0dayCTF/reverse-shell-generator
(MIT, Ryan Montgomery), vendored as a git submodule and regenerated with
go generate
Install
With go:
go install github.com/anotherhadi/revshell/cmd/revshell@latest
With Nix, from the anotherhadi NUR:
nix run github:anotherhadi/nur-packages#revshell
# flake: inputs.nur-anotherhadi.url = "github:anotherhadi/nur-packages";
environment.systemPackages = [ nur-anotherhadi.packages.${system}.revshell ];
# or through NUR
environment.systemPackages = [ pkgs.nur.repos.anotherhadi.revshell ];
Each GitHub release has an
archive per platform (Linux, macOS, Windows and FreeBSD, amd64 and arm64) with
the revshell binary, and a SHA256SUMS file.
TUI
revshell
ctrl+h/ctrl+l: move between the panes;alt+1/alt+2: jump to the list or the preview;alt+z: zoom the pane/: search the catalog (type to filter,escto stop)ctrl+o: the ip, port and shell the commands are rendered with↑/↓,j/k,pgup/pgdown,home/end: move the list, scroll the previewc: cycle category (reverse, bind, msfvenom, hoaxshell, shellcode)o: cycle the OS filtere: cycle encoding (none, url, url2, base64)y/enter: copy the rendered command
CLI
revshell list [--category ReverseShell] [--os linux]
revshell search bash
revshell gen "Bash -i" --ip 10.0.0.1 --port 4444 --shell /bin/bash
revshell gen "Windows - Reverse TCP (x86)" --ip 10.0.0.1 --port 4444 # shellcode: ip/port hex-escaped
revshell listeners --port 4444
gen/list/search/listeners print to stdout for piping, e.g.
revshell gen ... | wl-copy or straight into an nc/ssh command.
Languages
Go
100%
