Skip to content

Instantly share code, notes, and snippets.

@jNizM
jNizM / NtQuerySystemInformation.h
Last active November 6, 2023 04:19
Undocumented NtQuerySystemInformation Structures
// http://www.exploit-monday.com/2013/06/undocumented-ntquerysysteminformation.html
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
enum _SYSTEM_INFORMATION_CLASS
{
SystemBasicInformation = 0x0000,
SystemProcessorInformation = 0x0001,
SystemPerformanceInformation = 0x0002,
SystemTimeOfDayInformation = 0x0003,
@jNizM
jNizM / FortiClientVPN.reg
Last active May 9, 2023 15:38
FortiClient VPN - Terms of Use / EULA Accept
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\FA_UI\VPN-7.2.0.0690]
"installed"=dword:63d8cd2e
[HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\FA_UI\VPN-7.0.7.0345]
"installed"=dword:630f39a6
[HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\FA_UI\VPN-7.0.6.0290]
"installed"=dword:62bdbc48
@jNizM
jNizM / gist:79aa6a4b8ec428bf780f
Last active September 17, 2022 08:27
[AHK] AES Encryption (String)
/*
Update v0.4
Todo: - CryptSetKeyParam (KP_MODE with CBC [maybe CFB, ECB, OFB or CTS])
*/
MsgBox % enc := AES.Encrypt("Test String", "testpw", 256)
MsgBox % AES.Decrypt(enc, "testpw", 256)
Class AES
{
@jNizM
jNizM / gist:5030548
Last active July 16, 2022 02:41
[AHK] Encrypt & Decrypt Data
; ===================================================================================
; AHK Version ...: AHK_L 1.1.09.03 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Script ........: En-Decrypt.ahk
; Description ...: Encrypt & Decrypt Data
; ===================================================================================
; GLOBAL SETTINGS ===================================================================
#NoEnv
@jNizM
jNizM / Class_ProcessExplorer.ahk
Created May 9, 2016 08:41
[AHK] ProcessExplorer (v0.07 beta)
; ===============================================================================================================================
; Title .........: ProcessExplorer
; AHK Version ...: 1.1.23.05 x64 Unicode
; Win Version ...: Windows 10 Professional - x64
; Description ...: Log Remote Session Information
; Version .......: v0.07 Beta
; Modified ......: 2016.04.20-1653
; Author(s) .....: jNizM
; ===============================================================================================================================
;@Ahk2Exe-SetName ProcessExplorer
@jNizM
jNizM / winget.ps1
Created June 24, 2022 13:18
Install and upgrade / update apps with winget
$apps = @(
@{name = "7zip.7zip" },
@{name = "BraveSoftware.BraveBrowser" },
@{name = "Discord.Discord" },
@{name = "Lexikos.AutoHotkey" },
@{name = "Microsoft.PowerShell" },
@{name = "Microsoft.PowerToys" },
@{name = "Mozilla.Firefox" },
@{name = "Notepad++.Notepad++" },
@{name = "Spotify.Spotify" },
@jNizM
jNizM / gist:b0b35f621134fa742f50
Created February 23, 2015 10:16
[AHK] AES Encryption + ECB / CBC
; ===============================================================================================================================
; http://aes.online-domain-tools.com/
; Input Text : Hello World!1234 (Plaintext)
; Function : AES
; Mode : ECB (electronic codebook)
; Key : 12345678901234567890123456789012 (Plaintext)
; Init. vector : -
; OUTPUT : 17 C3 BA 4F 85 24 49 DD 7A 6C E9 20 99 EB 70 61 41 98 AB 40 81 48 7C 21 3A 1C 82 BC 40 4A D7 C8
; ===============================================================================================================================
@jNizM
jNizM / gpu_memory_info.ahk
Last active May 16, 2019 17:36
[AHK] NVIDIA Graphics Memory Size and Usage in OpenGL
; ===============================================================================================================================
; Title .........: GPU_MEMORY_INFO
; AHK Version ...: 1.1.15.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: GPU_MEMORY_INFO
; NVIDIA Graphics Memory Size and Usage in OpenGL
; Version .......: v1.00
; Modified ......: 2014.06.27-2150
; Author(s) .....: jNIzM
; ===============================================================================================================================
@jNizM
jNizM / gist:f8c4f51fd1331d4f2def
Last active May 16, 2019 17:36
Class Globally unique identifier (GUID) / Universally unique identifier (UUID)
#NoEnv
; Test GUID
MsgBox % Unique.Global.Create() ; ==> {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
test_guid1 := Unique.Global.Create()
test_guid2 := Unique.Global.Create()
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid1) ; ==> 1
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid2) ; ==> 0
@jNizM
jNizM / gist:16a68ff558222253add9
Created November 27, 2014 07:24
[AHK] BitCalc (Visual Bitwise Operations)
; GLOBAL SETTINGS ===============================================================================================================
;#Warn
#NoEnv
#SingleInstance Force
global WS_VSCROLL := 0x00200000
; GUI ===========================================================================================================================