This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import argparse | |
import tempfile | |
import ipaddress | |
from time import sleep | |
from shlex import split | |
from os import path, remove | |
from scapy.all import sniff | |
from threading import Thread | |
from subprocess import Popen, PIPE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#define BOOT_KEY_SIZE 16 | |
#pragma warning(disable: 4996) | |
void getRegistryClassValue(HKEY rootKey, const char* subKey, char* classValue, DWORD classValueSize) { | |
HKEY hKey; | |
LONG result = RegOpenKeyExA(rootKey, subKey, 0, KEY_READ, &hKey); | |
if (result != ERROR_SUCCESS) { | |
fprintf(stderr, "Error opening registry key: %ld\n", result); |