Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
init beta version
Browse files Browse the repository at this point in the history
init beta version - work of 3 moths :D
  • Loading branch information
Coldzer0 committed Sep 29, 2018
1 parent 5ee38f0 commit 027fc59
Show file tree
Hide file tree
Showing 299 changed files with 150,110 additions and 34 deletions.
50 changes: 18 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,11 @@
# Uncomment these types if you want even more clean repository. But be careful.
# It can make harm to an existing project source. Read explanations below.
#
# Resource files are binaries containing manifest, project icon and version info.
# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files.
#*.res
#
# Type library file (binary). In old Delphi versions it should be stored.
# Since Delphi 2009 it is produced from .ridl file and can safely be ignored.
#*.tlb
#
# Diagram Portfolio file. Used by the diagram editor up to Delphi 7.
# Uncomment this if you are not using diagrams or use newer Delphi version.
#*.ddp
#
# Visual LiveBindings file. Added in Delphi XE2.
# Uncomment this if you are not using LiveBindings Designer.
#*.vlb
#
# Deployment Manager configuration file for your project. Added in Delphi XE2.
# Uncomment this if it is not mobile development and you do not use remote debug feature.
#*.deployproj
#
# C++ object files produced when C/C++ Output file generation is configured.
# Uncomment this if you are not using external objects (zlib library for example).
#*.obj
#


*.dSYM

# Delphi compiler-generated binaries (safe to delete)
*.exe
*.dll
*.bpl
*.bpi
*.dcp
*.so
*.apk
*.drc
*.map
Expand All @@ -41,9 +14,9 @@
*.tds
*.dcu
*.lib
*.a
*.o
*.ocx
*.zip

# Delphi autogenerated files (duplicated info)
*.cfg
Expand All @@ -57,10 +30,23 @@
*.tvsconfig
*.dsk

# Delphi history and backups
# Delphi history , Build and backups
lib
backup
__history/
__recovery/
*.~*

# Castalia statistics file (since XE7 Castalia is distributed with Delphi)
*.stat
*.bak

# unwanted folders :D
unicorn-engine-pascal
CTF
samples
GDT
win_dlls
Build/OSX
Build/linux
Build/win
59 changes: 59 additions & 0 deletions Build/API.js
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'
);
14,085 changes: 14,085 additions & 0 deletions Build/UserDB_TODO.TXT

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Build/hooks/API.d.ts
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;
}
99 changes: 99 additions & 0 deletions Build/hooks/ApiHook.d.ts
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;

}
Loading

0 comments on commit 027fc59

Please sign in to comment.