Categories > Exploiting > WRD Exploit API >

How do I setup the C++ API for WeAreDevs?


New Reply

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Posted

Hello, the description on how to setup the C++ API is kind of *unclear*. If you can please send some steps on how to do it. 

TERIHAX

Coming Back???

Mention

Posts: 1529

Threads: 51

Joined: Jul, 2020

Reputation: 8

Replied

how is it unclear in any way?

 

its that simple:

1. add reference to cpp api

2. put this:

[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 SendLuaScript(string script);

in the code of the executor's main window or form

 

and then use thee SendLuaScript("script here") to run scripts and use LaunchExploit() to inject

 

if you still don't understand you should just watch at least like 10 exploit tutorials to get at least the basics to add reference, where to add code etc

Dsc: https://discord.com/users/883050084537860117

"teri teri peri peri sauce" - deadlocust (reply me with a quote & i might put it here)

Rep Goal 10 - Thanks for The Rep :O

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

Can you link some of this videos that you are talking about? Thanks.

MainDab

Main_EX#3595

Mention

Posts: 369

Threads: 36

Joined: Sep, 2020

Reputation: 7

Replied

@dragon20084

 

Using it is relatively simple. Here we go again... 

 

Step 1


Download the WRD C++ version and put it in the same directory as the exploit you're making 

 

Step 2


You're now going to reference the functions that you will import from the DLL on runtime. 

[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 SendLuaScript(string script);

 

This is exactly as what Terihax said above. Place this somewhere in your code, in a suitable place. You should know where.

 

Step 3


Again, as Terihax said, all you need to do to call the functions is this

LaunchExploit(); // Inject/Attach WeAreDevs

SendLuaScript(string); // Execute a script
SendLuaScript("print(\"Hi\")"); // Usage example
// You can format the string using www.freeformatter.com/java-dotnet-escape.html#ad-output

It's actually very easy and this should be sufficient

 

If you have issues feel free to reply 

Available on Discord at Main_EX#3595 | Discord ID : 766314130880593932 | My Discord Server / MainDab
Top 10 Poop PositionsBeginners tutorial in making exploits

 

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

@MainDabHello! What kind of project does it need to be Forms or Console?

MainDab

Main_EX#3595

Mention

Posts: 369

Threads: 36

Joined: Sep, 2020

Reputation: 7

Replied

@dragon20084 Forms... if you're making a UI.

 

 

Available on Discord at Main_EX#3595 | Discord ID : 766314130880593932 | My Discord Server / MainDab
Top 10 Poop PositionsBeginners tutorial in making exploits

 


New Reply

Users viewing this thread:


( Members: 0, Guests: 1, Total: 1 )