Exploit API v2



Download


This is built on the exact same idea as API v1, but for use with C++.


API Last modified: August 9, 2019

Doc Last modified: August 21, 2019


Usage Example for C# Projects


Open your C# project and build it. Go to where your file was built and drop your downloaded WeAreDevs_API.cpp.dll file in there.

To call the API, you must import the functions using the code below.



[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool LaunchExploit();

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendLuaCScript(string script);

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendLimitedLuaScript(string script);

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendCommand(string script);


From there, you need to go in a game and call the LaunchExploit() function

You can then start using the other functions


SendLimitedLuaScript("print 'hello world'")


SendLuaCScript("getglobal print\r\npushstring hello world!\r\npcall 1 0 0")


SendCommand("btools me")


You can look at the list of commands you can use with SendCommand() below


Methods

List of methods and valid parameters(Given you used the naming convention above)


Methods
LaunchExploit() Before doing anything, you will need to launch the exploit. This will check if its patched, inject the necessary tools, etc.
SendLuaScript(string_LuaScript) Takes in a string and executes the string as a Lua script
SendLuaCScript(string_LuaCScript) Takes in a string and executes the string as a Lua C script
SendCommand(string_Command) Takes in a string and executes it's corresponding pre-built command
isAPIAttached() Returns true if the module is attached, false otherwise.

View API v1's documenation starting HERE for the rest of the documenation because they're the same.