xairy / linux-kernel-exploitation Goto Github PK
View Code? Open in Web Editor NEWA collection of links related to Linux kernel security and exploitation
License: Creative Commons Attribution 4.0 International
A collection of links related to Linux kernel security and exploitation
License: Creative Commons Attribution 4.0 International
Presume you would have seen this from a couple weeks ago.
Linux Kernel Runtime Guard (LKRG) bypass using usermodehelper [PoC, CVE-2017-1000112]
PoC only - no writeup. I haven't tested it. Exploit should look familiar ;)
Potentially a useful reference as the first (?) LKRG bypass demonstration.
Edit: Tested, and didn't work for me on Ubuntu 16.04.4 4.8.0-53-generic
, but willing to admit user error.
Hello, i'm starting do learn linux kernel exploitation, and for somehow, i need to dynamically set different at run-time of kernel using sysctl syscall, but for values of parameters that aren't listed on #include <linux/sysctl.h>
I don't know how to change!!! Please help me with some ideas!!!
The code:
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <linux/sysctl.h>
int _sysctl(struct __sysctl_args *args);
int main(void) {
int name [] = {CTL_VM, VM_MEMORY_FAILURE_RECOVERY};
int namelen = 2;
int oldval[8];
size_t len = sizeof(oldval);
int error;
error = sysctl (name, namelen, (void *)oldval, &len, 0 , 4);
if (error == -1){
perror("_sysctl");
exit(EXIT_FAILURE);
} else {
printf("Changed value!");
exit(EXIT_SUCCESS);
}
}
For another parameters listed on header file it accepts to change, but not for parameters listed on /proc/sys/vm that aren't in header!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.