Skip to content

Instantly share code, notes, and snippets.

View TotallyNotAHaxxer's full-sized avatar
🏴
Building alot of projects

Totally_Not_A_Haxxer TotallyNotAHaxxer

🏴
Building alot of projects
View GitHub Profile
@TotallyNotAHaxxer
TotallyNotAHaxxer / Sec.hpp
Created December 7, 2023 07:06
Security | anti handle function
inline bool LockMemAccess()
{
bool bSuccess = false;
// Process token and user
HANDLE hToken = nullptr;
PTOKEN_USER pTokenUser = nullptr;
DWORD cbBufferSize = 0;
// Access control list
PACL pACL = nullptr;
hello demo
@TotallyNotAHaxxer
TotallyNotAHaxxer / D.txt
Last active January 28, 2024 20:32
D@#@#&^$%@$%^@#$^
f9abbdf7c17d8b10431def98b9ff7c148885b8b71b336a2ed378a493b5b7952f
@TotallyNotAHaxxer
TotallyNotAHaxxer / ksauto.sh
Last active February 9, 2024 02:14
KSAUTO
export APISERVER=https://${KUBERNETES_SERVICE_HOST}
export SERVICEACCOUNT=/run/secrets/kubernetes.io/serviceaccount
export NAMESPACE=$(cat ${SERVICEACCOUNT}/namespace)
export TOKEN=$(cat ${SERVICEACCOUNT}/token)
export TOKEN=$(cat ${SERVICEACCOUNT}/token)
export CACERT=${SERVICEACCOUNT}/ca.crt
curl --cacert ${CACERT} --header "Authorization: Bearer ${TOKEN}" -X GET ${APISERVER}/api
@TotallyNotAHaxxer
TotallyNotAHaxxer / tabclass.py
Created February 17, 2024 08:05
Table class
"""
| This class is super easy to use. We can use it as a much more safer, faster
| and lightweight class for organizing information in a standard ASCII table
| format. The reason I did this is to increase speed, versatility, and save
| Python a few sweats in memory when we try to print other sets of info on
| a table. Also this prevents formatting mistakes and is also really fun
| and cool to tune and use for development purposes.
|
|
| Made by : Totally_Not_A_Haxxer
@TotallyNotAHaxxer
TotallyNotAHaxxer / VKEY.json
Created February 21, 2024 00:54
JSON Virtual Key Code Map
{
"VK_LBUTTON": "0x01",
"VK_RBUTTON": "0x02",
"VK_CANCEL": "0x03",
"VK_MBUTTON": "0x04",
"VK_XBUTTON1": "0x05",
"VK_XBUTTON2": "0x06",
"VK_BACK": "0x08",
"VK_TAB": "0x09",
"VK_CLEAR": "0x0C",
@TotallyNotAHaxxer
TotallyNotAHaxxer / helper.cpp
Created February 21, 2024 01:15
KeySpammer - Virtual Key Code Utility
#include <Windows.h>
#include <iostream>
#include <unordered_map>
#include <string>
std::unordered_map<std::string, std::string> VKEY_Map = {
{"VK_LBUTTON", "0x01"},
{"VK_TAB", "0x09"},
{"VK_RBUTTON", "0x02"},
{"VK_CANCEL", "0x03"},
/*
<-----------------------------------------\
| local return type A (Unsigned) /-----|
| \____________/
| if ( (unsigned __int8)sub_14005C3A0("Press to get player data", &v189) ) |
Integer8 { |
sub_140036B30(qword_14015BB60); |
sub_14005BA00("Checking username -- "); |
((void (*)(void))sub_140036BD0)(); |
LEN = 0; | <- Note: Integer value represents length of current POS (original value was v49)
@TotallyNotAHaxxer
TotallyNotAHaxxer / Automatic_ReCase9.ps
Created May 14, 2025 06:21
For reverse engineering an application that cache's files without naming them with extensions, further organizing and sorting cache resources going based on header detection. In this case, GIF and PNG were the two focus sources, anything else was 'another' file
#### @DSTs
$pngDir = ".FixedImages"
$gifDir = ".FixedGifs"
$otherDir = ".Others"
#### @Helper->Creates the directory if it does not exist
foreach ($dir in @($pngDir, $gifDir, $otherDir)) {
if (-not (Test-Path -Path $dir)) {
New-Item -Path $dir -ItemType Directory | Out-Null
@TotallyNotAHaxxer
TotallyNotAHaxxer / gist:7ae22233d0184cb41b9822cbd2fe4844
Created May 15, 2025 12:53
Bash One Liner - Iterate through source directories collecting URLs amongst source files
find . -type f -name "*.js" -exec bash -c 'file="{}"; grep -o -E "(https?:\/\/|www\.)[a-zA-Z0-9][a-zA-Z0-9\-]*\.[a-zA-Z0-9][a-zA-Z0-9\-\.]*[a-zA-Z0-9]\b(\/[^\"'\''<>\\s]*)?" "$file" | sed "s/[\"'\'']*$//g" | while read -r url; do echo "{\"file\":\"$file\",\"url\":\"$url\"}"; done' \; | jq -s 'group_by(.url) | map({url: .[0].url, files: map(.file) | unique})' > site_list.json