Skip to content

Instantly share code, notes, and snippets.

View vitorfhc's full-sized avatar

Vitor Falcao vitorfhc

  • Hack the Box
View GitHub Profile
# 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
@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>
#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 / to_burp_scope.py
Created May 18, 2024 16:09
Receives a list of domains from the stdin and add them to the Burp project settings passed in the arguments
import sys
import json
def escape_dots(line):
return line.replace(".", "\\.")
def main():
if len(sys.argv) != 2: