Skip to content

Instantly share code, notes, and snippets.

View PotatoPwn's full-sized avatar
💭
I may be slow to respond.

K PotatoPwn

💭
I may be slow to respond.
View GitHub Profile
#include <Windows.h>
#include "stdio.h"
int main(int argc, char* argv[])
{
if (argc < 3)
{
printf("Invalid Arguments <EXECUTABLE> <MODULE NAME> <FUNCTION NAME / ORDINAL NUMBER> <(OPTIONAL) IS ORDINAL>");
return false;
import pefile
import os
import json
def Error_Info(OrdinalOffset: int, Ordinalname : str):
if Ordinalname is None:
return f"Ordinal_{OrdinalOffset}"
else:
return Ordinalname.decode()
#include <iostream>
#include <Windows.h>
#include <SubAuth.h>
using _FilterPassword = BOOLEAN(*)(PUNICODE_STRING AccountName, PUNICODE_STRING FullName, PUNICODE_STRING Password, BOOLEAN IsSet);
PUNICODE_STRING ConvertToPuni(char* Character)
{
int Len = MultiByteToWideChar(CP_UTF8, 0, Character, -1, NULL, 0);
@PotatoPwn
PotatoPwn / python-zip-unzipper.py
Created November 5, 2022 08:19
For a CTF challenge where i needed to unzip the current files based on the contents inside
#!/bin/pyithon
import zipfile
import os
original_file = "5900.zip"
while True:
original_file = zipfile.ZipFile(original_file, 'r') #sets variable as an interactive object
password = original_file.namelist() #list content in zip file
pw = (password[0].removesuffix('.zip')) #removes array and removes .zip from zip content