This file contains 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
require("zip") | |
-- credits: https://stackoverflow.com/questions/2829175/how-to-extract-files-from-a-zip-file-using-lua | |
function extract(zipPath, zipFilename, destinationPath) | |
local zfile, err = zip.open(zipPath .. zipFilename) | |
-- iterate through each file insize the zip file | |
for file in zfile:files() do | |
local currFile, err = zfile:open(file.filename) | |
local currFileContents = currFile:read("*a") -- read entire contents of current file |
This file contains 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
// deprecated for manual_exception_handling repo | |
#pragma once | |
#include <Windows.h> | |
#include <cstdint> | |
#include <memory> | |
#include <iostream> | |
#include <vector> | |
#include <cassert> |
This file contains 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
// 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 |
This file contains 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
-- 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) |
This file contains 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
-- 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 |
This file contains 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
#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]; |
This file contains 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 <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"; |
This file contains 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
-- 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} |
This file contains 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
--[[ 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 |
This file contains 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
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 |
NewerOlder