Skip to content

Instantly share code, notes, and snippets.

View vitorfhc's full-sized avatar

Vitor Falcao vitorfhc

  • Hack the Box
View GitHub Profile
#define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <errno.h>
#define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <errno.h>
@vitorfhc
vitorfhc / clone_pidns.c
Last active May 28, 2022 17:03
This code clones the process and unshares the PID namespace
#define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <errno.h>
# This code was written by Vitor Falcão <vitorfhc at protonmail.com>
#!/usr/bin/python3
from socket import socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR
from threading import Thread
from requests import get, exceptions
from string import ascii_lowercase, ascii_uppercase
from random import choice
from binascii import hexlify