This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init beta version - work of 3 moths :D
- Loading branch information
Showing
299 changed files
with
150,110 additions
and
34 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// this's a global format function | ||
String.prototype.format = function () { | ||
"use strict"; | ||
var str = this.toString(); | ||
if (arguments.length) { | ||
var t = typeof arguments[0]; | ||
var key; | ||
var args = ("string" === t || "number" === t) ? | ||
Array.prototype.slice.call(arguments) : | ||
arguments[0]; | ||
|
||
for (key in args) { | ||
str = str.replace(new RegExp("\\{" + key + "\\}", "gi"), args[key]); | ||
} | ||
} | ||
|
||
return str; | ||
}; | ||
|
||
String.prototype.contains = function (segment, ignoreCase) { | ||
|
||
if (ignoreCase) { | ||
return this.toLowerCase().indexOf(segment.toLowerCase()) !== -1; | ||
} | ||
return this.indexOf(segment) !== -1; | ||
}; | ||
|
||
Array.prototype.inList=function(value,ignoreCase){ | ||
|
||
for (var i = 0; i < this.length; i++) { | ||
if (value.contains(this[i],ignoreCase)) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
|
||
importScripts( | ||
'hooks/const.js', | ||
'hooks/ntdll.js', | ||
'hooks/kernelbase.js', | ||
'hooks/kernel32.js', | ||
'hooks/kernel32_self.js', | ||
'hooks/kernel32_files.js', | ||
'hooks/kernel32_threads.js', | ||
'hooks/kernek32_strings.js', | ||
'hooks/kernel32_processes.js', | ||
'hooks/user32.js', | ||
'hooks/advapi32.js', | ||
'hooks/urlmon.js', | ||
'hooks/ws2_32.js', | ||
'hooks/winhttp.js', | ||
'hooks/msvcrt.js', | ||
'hooks/c_runtime.js', | ||
'hooks/wtsapi32.js', | ||
'hooks/uxtheme.js', | ||
'hooks/ole32.js', | ||
'hooks/lpk.js' | ||
); |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare interface String { | ||
format(val : object): string; | ||
format(...args: any[]): string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/** | ||
* | ||
* | ||
* @interface EmuAPI | ||
*/ | ||
declare interface EmuAPI { | ||
|
||
|
||
|
||
/** | ||
* Is Current PE x64 . | ||
* | ||
* @type {boolean} | ||
* @memberof EmuAPI | ||
*/ | ||
public isx64 : boolean; | ||
|
||
/** | ||
* Read X86 Register | ||
* | ||
* @param {number} Register - REG_{RegName} | ||
* @memberof EmuAPI | ||
*/ | ||
public ReadReg(Register : number) : number; | ||
|
||
|
||
/** | ||
* | ||
* Set Register Value . | ||
* | ||
* @param {number} Register | ||
* @param {number} Value | ||
* @returns {boolean} | ||
* @memberof EmuAPI | ||
*/ | ||
public SetReg(Register : number, Value : number) : boolean; | ||
|
||
/** | ||
* return the top of Stack | ||
* and Add 4 or 8 to Stack Pointer | ||
* | ||
* @returns {number} | ||
* @memberof EmuAPI | ||
*/ | ||
public pop() : number; | ||
|
||
/** | ||
* Strop the Cmulator . | ||
* | ||
* @memberof EmuAPI | ||
*/ | ||
public Stop(); void; | ||
} | ||
|
||
/** | ||
* | ||
* | ||
* @class ApiHook | ||
*/ | ||
declare class ApiHook{ | ||
|
||
/** | ||
*Creates an instance of ApiHook. | ||
* @memberof ApiHook | ||
*/ | ||
constructor(); | ||
|
||
|
||
/** | ||
* | ||
* | ||
* @param {EmuAPI} Emu | ||
* @param {number} Address | ||
* @returns {boolean} | ||
* @memberof ApiHook | ||
*/ | ||
public OnCallBack: (Emu: EmuAPI, Address: number) => boolean; | ||
|
||
|
||
/** | ||
* | ||
* | ||
* @param {string} LibraryName | ||
* @param {string} ApiName | ||
* @returns {boolean} | ||
* @memberof ApiHook | ||
*/ | ||
public install(LibraryName: string, ApiName: string): boolean; | ||
/** | ||
* | ||
* | ||
* @param {string} LibraryName | ||
* @param {number} Ordinal | ||
* @returns {boolean} | ||
* @memberof ApiHook | ||
*/ | ||
public install(LibraryName: string, Ordinal : number): boolean; | ||
|
||
} |
Oops, something went wrong.