Skip to content
forked from vykt/liblain

Process exploitation library for Linux.

License

Notifications You must be signed in to change notification settings

RootKit-Org/libpwu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liblain

ABOUT:

The Lain library (liblain) provides a programmatic interface to the memory and memory maps of processes on Linux. Liblain can be used for:

  • Code injection
  • Memory analysis
  • Anti-cheat bypass (see lain.ko)

liblain offers both a procfs and a lain.ko LKM backend. Both interfaces provide identical functionality and are interchangable.

liblain stores both virtual memory areas and backing objects in nodes traversable as lists or trees. The use of nodes for storage means the internal memory map can be updated without invalidating any pointers. This makes development of complex tools much easier.

In addition to a memory interface liblain also provides several utilities including:

  • Same method for resolving PID as ps/top.
  • Fast address -> VM area search.

DEPENDENCIES:

liblain requires libcmore.

INSTALLATION:

Fetch the repo:

$ git clone https://github.com/vykt/liblain

Build:

$ make lib

Install:

# make install

Install additional markdown documentation:

# make install_doc

To uninstall:

# make uninstall

LINKING:

Ensure your linker searches for liblain in the install directory (adjust as required):

# echo "/usr/local/lib" > /etc/ld.so.conf.d/liblain.conf

Include <liblain.h\> in your sources:

#include <liblain.h>

Ask your compiler to link liblain:

$ gcc -o test test.c -llain

DOCUMENTATION:

See ./doc/md for markdown documentation. After installing liblain the following manpages are available:

Manpage Description
liblain_error Error handling
liblain_map Memory map data structure
liblain_iface Using interfaces
liblain_util Utilities

About

Process exploitation library for Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.9%
  • Makefile 5.1%