Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* LUA FUNCTIONS */
- ToSig(str) -> Create signature from data & mask (input example "\x53\x55?\x8B??\x68")
- /* LHK FUNCTIONS */
- SetDebugPrivileges()
- WriteConsole(str)
- CleanExit(returncode)
- Sleep(ms)
- CloseHandle(handle) -> return BOOL
- IsKeyDown(vk_key) -> returns BOOL
- FindWindow(title) -> return HWND
- SendMessage(hwnd, msg, wparam, lparam) -> return BOOL
- PostMessage(hwnd, msg, wparam, lparam) -> return BOOL
- GetProcessId(hwnd) -> return PID
- OpenProcess(access, pid) -> return PROCESS
- TerminateProcess(process) - > return BOOL
- GetBaseAddress(process, modulename) -> return ADDRESS
- SigScan(process, start, maxlen, sig, siglen) -> return ADDRESS
- AllocMem(process, address, size, type, protection) -> return ADDRESS
- FreeMem(process, address, size, type) -> return BOOL
- ProtectMem(process, address, size, protection) -> return oldPROTECTION
- QueryMem(process, address) -> return baseAddress, allocationBase, allocationProtect, regionSize, state, protect, type
- ReadByte(process, address) -> return BYTE
- ReadShort(process, address) -> return SHORT
- ReadInt(process, address) -> return INT
- ReadLong(process, address) -> return LONG
- ReadFloat(process, address -> return FLOAT
- ReadStr(process, address, len) -> return STRING [If len is 0 read till null char]
- WriteByte(process, address, val)
- WriteShort(process, address, val)
- WriteInt(process, address, val)
- WriteLong(process, address, val)
- WriteFloat(process, address, val)
- WriteStr(process, address, str)
- /*Public Helper Driver (kernel mode memory access)*/
- DrvOpen() -> Open driver communication path, must be used before all Drv* functions
- DrvClose() -> Close driver communication path, must be used before exiting script
- DrvSetProc(exename) -> set current kmode process, must be used to before DrvRead*/DrvWrite*/DrvSigScan calls
- DrvUnsetProc() -> null current kmode process, must be used to before exiting script or calling DrvSetProc again
- DrvReadByte(address) -> return BYTE
- DrvReadShort(address) -> return SHORT
- DrvReadInt(address) -> return INT
- DrvReadFloat(address -> return FLOAT
- DrvWriteByte(address, val) -> return BOOL (true = success, false = fail)
- DrvWriteShort(address, val) -> return BOOL (true = success, false = fail)
- DrvWriteInt(address, val) -> return BOOL (true = success, false = fail)
- DrvWriteFloat(address, val) -> return BOOL (true = success, false = fail)
- DrvSigScan(start, maxlen, sig, siglen) -> return ADDRESS
- DrvPopImageData() -> pop image info from linked list in kernel, see http://pastebin.com/SL5dLSFV for details
- /* Threading */
- ThreadCreate(luafile) -> return THREAD (created in suspended state)
- ThreadResume(THREAD) -> return INT (previous suspend counter)
- ThreadSuspend(THREAD) -> return INT (previous suspend counter)
- ThreadTerminate(THREAD, exitcode) -> return INT (0 = fail, 1 = success)
- ThreadGetExitCode(THREAD) -> return INT (thread exit code)
- /* Fast Artifical Nerual Network */
- annCreate(numLayers, ...) -> return FANN PTR
- annCreateFromFile(file) -> return FANN PTR
- annDestroy(FANN PTR)
- annSaveToFile(FANN PTR, file)
- annRandomizeWeights(FANN PTR, min, max)
- annLearnRate(FANN PTR, [rate]) -> returns FLOAT (only if one arg is given)
- annTrainAlgorithm(FANN PTR, [algorithm]) -> returns ALGORITHM (only if one arg is given)
- annTrainOnFile(FANN PTR, file)
- annRun(FANN PTR, inputs) -> return ARRAY OF FLOATS (input is also array of floats)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement