Skip to content

Repository files navigation

Metasploit RE

Description

This is a collection of reverse engineered metasploit payloads. The goal is to understand how the payloads are generated and executed, especially when delivered in stages.

For more information on payloads and payload stages, see:

The payload descriptions in this repository are arranged according to the metasploit naming convention:

If you look at Metasploit’s payload list, you will also notice that some payloads actually have the exact same name, but in different formats. For example: windows/shell/reverse_tcp and windows/shell_reverse_tcp. The one with the forward slash indicates that is a “staged” payload, the one with the underscore means it’s “single”.

Single Payloads

Staged payloads

Using Docker with debugging capabilities for 32bit Linux payloads

In order to analyse and debug 32bit linux payloads in a Docker container, the following arguments are required:

# mkdir /tmp/shared
# docker run -it --rm --name deleteme -v /tmp/shared:/shared --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -p2000:2000 ubuntu

Use the following build options to generate 32bit binaries:

root@51d604030a59:/# apt install -y build-essential libc6-i386 gcc-multilib
root@51d604030a59:/# gcc -m32 test.c -o test
root@51d604030a59:/# setarch `uname -m` -R /shared/test

About

notes taken while studying metasploit

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages