Skip to content

Instantly share code, notes, and snippets.

View DelusionalLogic's full-sized avatar

Jesper Jensen DelusionalLogic

View GitHub Profile
LOLPROTO = Proto ("lolProto", "League of Legends protocol")
local packet_counter
local f = LOLPROTO.fields
local directions = {"Sent", "Recieved", [10] = "Special"}
f.direction = ProtoField.uint8("lolproto.dir", "Packet Direction", nil, directions, 0x0F)
f.pid = ProtoField.uint8("lolproto.id", "Packet Id")
@DelusionalLogic
DelusionalLogic / startup.py
Created October 16, 2012 16:41
LolAutoStarter
import ImageGrab
import win32gui
import os
import time
import win32api, win32con
x_pad = 0
y_pad = 0
playPos = (654, 43)
@DelusionalLogic
DelusionalLogic / gist:4163886
Last active October 13, 2015 07:57
stealthClicker example
function init()
print("NotepadFun")
end
hasRun = false
function tick(time)
if hasRun then
return
end
--[[
LoLStealth by DelusionalLogic
Version 0.1 (Release)
Save as script.lua in the folder where you have StealthClicker
Start LoL (Take it to login screen, don't log in)
Run StealthClicker
Put in the information (username and pwd is for lol to autologin)
It should start a game.
function altLoadFile(name)
return loadfile(LIB_PATH..name)
end
JSON = (altLoadFile("JSON.lua"))()
player = GetMyHero()
tickCount = 0
poll_count = 1
function altLoadFile(name)
return loadfile(LIB_PATH..name)
end
JSON = (altLoadFile("JSON.lua"))()
player = GetMyHero()
tickCount = 0
poll_count = 1
@DelusionalLogic
DelusionalLogic / stateManager.lua
Created December 27, 2012 12:28
StateManager lib
local OBJDEF = { varsion = 1.0 }
local JSON = (loadfile "JSON")()
local function exploreTable(table, resultTable)
local varCount = 0
if resultTable == nil then
resultTable = {}
end
for k,v in pairs(table) do
@DelusionalLogic
DelusionalLogic / script.lua
Created February 15, 2013 21:42
League of legends "Spammer" At default size
function init()
print("Lol spam (I guess)")
window = getWindow("PVP.net Client")
waitTime = tonumber(Console:ReadLine("Time between messages"))
spamString = Console:ReadLine("String to send")
threadLock = false
lastRunTime = os.time()
end
@DelusionalLogic
DelusionalLogic / Documentation
Last active December 14, 2015 00:48
Simple documentation for StealthClicker
Required functions: --Please keep everything in these functions, you need all, otherwise the program wont work
init() --Runs once on lua load
tick(time) --Runs every 100 ms, waits for last call. parameters: time = seconds since epoch
Global Methods:
loadEncrypted(string encryptedLua) --Run a string of encrypted Lua (You get the string crypted using the encrypter linked above)
getHWID() --Get a unique HWID for the computer
getWindow(string windowName) --Get the window instance of the window with the given name
getWindowByHandle(IntPtr handle) --Get a window based on the handle
getWindowWait(string windowName, int timeout) --Same as getWindow, except it keep on trying until timeout, returns when window is gotten or timeout is up (in seconds)
@DelusionalLogic
DelusionalLogic / WebWaleEnc
Created September 12, 2013 09:23
Project Webwhale Encryption
Webwhale encryption is the codename of my effort to make encryption actually useful, and put the power in the hands of the developer.
The encryption is based on a quite simple RSA encryption for sharing the symmetric AES key. This method requires you to have a webserver! Here's how to do it:
On your webserver you need to set up a php script that will accept the RSA public key, encrypt the key and send it. This could for example use phpSecLib:
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');