Skip to content

Shared library implementations that transform the containing process into a shell when loaded (useful for privilege escalation, argument injection, file overwrites, LD_PRELOAD, etc.).

License

Notifications You must be signed in to change notification settings

SeanPesce/lib2shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib2shell

Author: Sean Pesce

Overview

Shared library implementations that transform the containing process into a shell on load (useful for privilege escalation, argument injection, file overwrites, etc.). A write-up of a privilege escalation scenario using this technique can be found on my blog.

Usage

(Many examples on GTFOBins)

Examples for Unix operating systems:

ssh-keygen -D ./lib2shell.so
openssl req -engine ./lib2shell.so

Examples on Windows:

ssh-keygen -D .\lib2shell.dll
openssl req -engine .\lib2shell.dll

Compiling

Unix:

make

Windows:

Open the project in Visual studio, select your build configuration ("Release" and your target architecture), then in the top menu click BuildBuild Solution.


For inquiries and/or information about me, visit my personal website.

About

Shared library implementations that transform the containing process into a shell when loaded (useful for privilege escalation, argument injection, file overwrites, LD_PRELOAD, etc.).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published