Shellab: Linux and Windows shellcode enrichment utility

Introduction

Shellab is a tool that can be used to improve existing shellcodes and adapt them for personal needs. Developed to provide an alternative to msfvenom with new functionalities. Suitable for both Windows and Linux shellcode (32 and 64 bit).

Features

  • Encode shellcode with custom encoder
  • Generate stagers and egghunters (including sandwich and omelette egghunter)
  • Inject shellcode into PE files
  • Run shellcode on Linux
  • Remove bad characters and null-bytes
  • Perform experimental size reduction (by instructions replacement)
  • Export shellcode in different executable formats (C, C#, Python, Powershell, hex, raw etc.)
  • Add custom instructions, NOP slides and specific system calls

Install

$ sudo apt-get install radare2
git clone https://github.com/TheSecondSun/Shellab.git

Usage

This example will encode the input shellcode with “rot_xor” encoder, insert “xor eax, eax” instruction and 100 non-canonical NOP instructions in front of it, generate a bind stager (that will listen for the incoming shellcode on port 4444) and prepend the shellcode with exit() syscall.

Show help message:

List available components:

Generate the shellcode:

Copyright (c) 2018 Jakub Lutczyn

Source: https://github.com/TheSecondSun/

Share