SirHurt V2 Documentation

 

table getrawmetatable(Varient instance)

Return's the raw metatable of instance

 

bool setreadonly(table instance, bool protected)

Set's instances read only lock to protected

 

bool isreadonly(userdata instance)

Returns if Instance is writeable or readonly.

 

string LUAPROTECT(string script)

Returns encrypted code of script which can be decrypted and ran using XPROTECT.

 

none XPROTECT(string script)

Decrypts script encrypted by the LUAPROTECT function and run's the code. This function has no return.

 

string readfile(string filepath)

reads file  filepath and returns it's body. This will trigger a security popup on ran.

 

bool writefile(string filepath, string content)

writes to file  filepath and set's it's body to  content. This will trigger a security popup on ran.

 

string setclipboard(userdata Property)

set's your keyboards clipboard to value of Property.

 

int RandomString(int length)

returns a random string with the length of length

 

string getclipboard()

returns the text copied to your clipboard.

 

string ReplaceString(string orginal, string replace, string replacewith)

replaces all occurances of  replace in orginal with  replacewith and returns it.

 

string HttpGet(string url)

Returns page body of url

 

function loadstring(string script, [string chunk])

Compiles the script into a function which can be called. Chunk is optional.

 

userdata GetObjects(string assetid)

load's a roblox model assetid into the game and returns it

 

string gethwid()

returns your HWID for asshurt

 

table getnilinstances()

Returns a table with instances parented to nil

 

table   getgenv()

Returns a table populated with the SirHurt thread environment

 

table getrenv()

Returns a table populated with the ROBLOX thread environment

 

table getreg()

Returns a table populated with everything in the registry table


table  getgc()

Returns a table populated with everything in the garbage collector

 

bool checkcaller()

Returns whether the function caller originated from a SirHurt script

 

string sha256(string enc)

Returns hash of enc using sha256. 


bool SetProxy(string proxy)

Forces all HttpPost/HttpGet requests to use provided proxy proxy as a way of hiding your ip address from http requests. This function only has to be called once every time ROBLOX opens.


function newcclosure(function func)

Wraps function func in a C closure and returns the closure 

 

function hookfunction(function old, function new)

Hooks function 'old', replacing it with the function 'new'. The old function is returned and you must use it to call the function further.


none dofile(string path)

Read's file (path) and execute's the code contained in path.

 

none leftpress()

Simulates a left mouse button click.

 

none rightpress()

Simulates a right mouse button click.

 

none leftrelease()

Simulates a left mouse button release.

 

none rightrelease()

Simulates a right mouse button release.

 

none keypress(int k)

Simulates a key press to k, which is the number mapping of a key

 

none keyrelease(int k)

Simulates a key relese to k, which is the number mapping of a key

 

none mousemoverel(int x, int y)

Moves the mouse cursor by x and y relative to the current cursor position.

 

none mousescroll(int n)

Scrolls the mouse by n amount

 

bool validfgwindow()

Returns a bool based on if the foreground window is Roblox.


string decompile(Varient<LocalScript, ModuleScript> Script)

Decompiles & returns the source code of given Script


bool islclosure(function a)

Returns 'true' if a is a LClosure

 

LIBRARY (DEBUG)


Variant getupvalue/debug.getupvalue(function a, string b)

Returns the value of the requested upvalue from the stack specified

 

string setupvalue/debug.setupvalue(function a, string b, Variant c)

Sets the value of the requested upvalue from the stack specified and return's the upvalues name.

 

Table<Variant> getupvalues/debug.getupvalues(function a)

Returns all upvalues from the stack specified.

 

Variant getlocal/debug.getlocal(int  a, string b)

Returns the value of the requested local from stack index a.

 

Table<Variant> getlocals/debug.getlocals(int a)

Returns a table containing the locals from the given stack index


Variant getconstant/debug.getconstant(function f, int index)

Returns constant in function at index index


Table<Variant> getconstants/debug.getconstants(function f)

Stores all constants in function f in a table and returns it.


none  setconstant/debug.setconstant(function f, int index, Variant value)

Sets constant in function at index index to value

 

bool setlocal/debug.setlocal(function a, string b, Variant value)

Sets the value of the requested local from the passed stack index.


Table<Variant> debug.setmetatable(Variant a, Table<Variant> b)

Set's the metatable of a to b

 

Table<Variant> debug.getregistry()

Return's the lua registry.


LIBRARY (BIT)

 

int bit.bdiv(int a, int b)

Divides a by b


int bit.badd(int a, int b)

Adds a by b


int bit.bsub(int a, int b)

Subtracts a by b


int bit.bmul(int a, int b)

Multiplies a by b


int bit.rshift(int a, int b)

Carries out a right shift on by b


int bit.lshift(int a, int b)

Carries out a left shift on by b


int bit.band(int a, int b)

Carries out a logical AND on by b


int bit.bor(int a, int b)

Carries out a logical OR on by b


int bit.bxor(int a, int b)

Carries out a logical XOR on by b


int bit.bnot(int a)

Carries out a logical NOT on a


int bit.tobit(int a)

Converts a into proper form for use with bitwise operations


string bit.tohex(<string, int> a)

Converts into an hex string.


LIBRARY (AES)


string AES.encrypt(string enc, string data, string iv = 'V:wE<>[uw26Jd30%')

Returns encrypted string enc using AES. 

 

string AES.decrypt(string enc, string data, string iv = 'V:wE<>[uw26Jd30%')

Decrypts enc using data/iv and returns it using AES.


LIBRARY (BLOWFISH)

 

string BLOWFISH.encrypt(string enc, string data, string iv = 'V:wE<>[uw26Jd30%')

Returns encrypted string enc using blowfish. 

 

string BLOWFISH.decrypt(string enc, string data, string iv = 'V:wE<>[uw26Jd30%')

Decrypts enc using data/iv and returns it using blowfish.

 

LIBRARY (BASE64)


string Base64.encode(string enc)

Encodes enc in base64 and returns the output. 

 

string Base64.decode(string enc)

Decodes enc in base64 and returns the output.