38

GitHub - TheSecondSun/Shellab: Linux and Windows shellcode enrichment utility

 5 years ago
source link: https://github.com/TheSecondSun/Shellab
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Shellab

Linux and Windows shellcode development/enrichment utility

Shellab

Table of Contents

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).

Requirements

Shellab requires Radare2, you should install it running this command: $ sudo apt-get install radare2

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

TODO

  • Create more encoders
  • Implement generation of fully alphanumeric shellcode
  • Add shellcode comparison mechanism

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:

help_screenshot.png

List available components:

list_screenshot.png

Generate the shellcode:

example.png

Contribution

If you have an idea for a new encoder, egghunter or stager, or just want to improve this tool, simply create a pull request :)

License

This software is under MIT License


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK