Skip to content

Instantly share code, notes, and snippets.

View seh_via_veh.cpp
#pragma once
#include <Windows.h>
#include <cstdint>
#include <memory>
#include <iostream>
#include <vector>
#include <cassert>
#include <ehdata.h>
@juniorjacob
juniorjacob / fixing_validatehwnd_call.cpp
Created Jul 8, 2020
Gives code examples for all the necessary steps in order to call ValidateHwnd or any other Validate method in win32kbase.
View fixing_validatehwnd_call.cpp
// for examples sake, lets say all of these are pre defined: ValidateHwnd, wnd_handle
void* ethread::get_win32() {
return PsGetThreadWin32Thread(ethr);
}
void ethread::set_win32(void* new_, void* buffer) {
void* current = get_win32();
PsSetThreadWin32Thread(ethr, NULL, current); // reset win32
PsSetThreadWin32Thread(ethr, new_, NULL); // modify win32
@juniorjacob
juniorjacob / ragesu.lua
Last active Mar 10, 2020
fatality rewrite of ragesu for aimware v5
View ragesu.lua
-- config
local invert_key = 0x5
-- dependencies
local csgo_globals = csgo.interface_handler:get_global_vars()
function tick() return csgo_globals.tickcount end
local function get_item(index, value)
@juniorjacob
juniorjacob / inclusion.lua
Last active Jan 21, 2020
A custom Pure Lua compiler to allow for static file inclusion.
View inclusion.lua
-- credits to louka | merge.lua
-- helped a lot
local pattern_regex = "C_INCLUDE%s*%(?%s*['\"]([%w_/\\%.]+)['\"]%s*%)?"
local directory = "" -- adds onto all calls to get contents of files, really easy and helpful
local wrap_includes = false -- wraps files with pcall that has custom error message
local function get_line_count(string)
local result = 1
@juniorjacob
juniorjacob / coloring.hpp
Created Nov 6, 2019
A single header include for all coloring needs, can be used, easily, to create a simple rainbow effect, and convert HSV, and RGB, into hex for web design.
View coloring.hpp
#pragma once
#include <Windows.h>
namespace coloring {
template< typename T >
std::string int_hex(T val) {
if (static_cast<int>(val) == 0)
return std::string("00");
char hexval[3];
@juniorjacob
juniorjacob / file parser.cpp
Last active Apr 8, 2020
Converts any file's byte's into a Resource Header file. File -> Resource
View file parser.cpp
#include <vector>
#include <Windows.h>
#include <TlHelp32.h>
#include <iostream>
#include <fstream>
std::string file_path = "";
std::string file_endpath = "";
std::string namespace_name = "example_namespace";
std::string namespace_resource_name = "resources";
@juniorjacob
juniorjacob / gui_library.lua
Created May 10, 2019
Graphical User Interface Library; Creates a Base Interface to add Interface on top of; Created with intent to be used in Roblox
View gui_library.lua
-- notes
--[[
size_pos = table, arranged as so: {<udim2>size, <udim2>pos}
size of objects:
toggle - {height = 21, width = 99}
slider - {height = 27, width = UDim2.new(1, -(posOffset))}
dropdown - {height = 25, width = 160}
textinput - {height = 21, width = 120}
@juniorjacob
juniorjacob / md5_hashing.lua
Created May 10, 2019
Hash Functions for Whitelisting; Old functions used in a Whitelist, Created by me
View md5_hashing.lua
--[[ lua
function md5hashify(tohash)
local api = "https://helloacm.com/api/md5/?s="
local hash1 = game:HttpGet(api .. tohash, true):sub(2, 33)
hash1 = "additionsarecool|o|" .. hash1:sub(#hash1 - 10, #hash1)
local hash2 = game:HttpGet(api .. hash1, true):sub(20, 33)
local hash3 = game:HttpGet(api .. hash2, true):sub(2, 33)
return hash3
View islandfricker_bypass.lua
if not getgenv().if_globals_loaded then
getgenv().isBypassed = false
getgenv().global = false
getgenv().mt = false
getgenv().store = game.CoreGui
getgenv().if_globals_loaded = true
end
-- supported: synX, elysian, proto, and visenya
@juniorjacob
juniorjacob / keyword_gen.lua
Last active May 10, 2019
Keyword Generator; Prints out all of the possible combinations out of the "keywords" table
View keyword_gen.lua
local keywords = {"test", "keyword", "2", "one", "hello", "world", "!"}
local posted = {}
function table.find(array, tofind)
if not type(array) == "table" then return end
for i,v in pairs(array) do
if i == tofind or v == tofind then
return i
end
end
You can’t perform that action at this time.