Categories > Exploiting > WRD Exploit API >

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

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. 

  • 0

TERIHAX

i say im gay as a joke 🙀

Posts: 2240

Threads: 102

Joined: Jul, 2020

Reputation: 32

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

  • 0

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

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

  • 0

MainDab

Main_EX

Posts: 467

Threads: 39

Joined: Sep, 2020

Reputation: 11

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 

  • 0

Posts: 3

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

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

  • 0

MainDab

Main_EX

Posts: 467

Threads: 39

Joined: Sep, 2020

Reputation: 11

Replied

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

 

 

  • 0

RiceUsesArchBtw

rice cracker

vip

Posts: 465

Threads: 19

Joined: Aug, 2021

Reputation: 39

Replied

@71541hi please learn the basics of c++, winform / wpf

  • 0

https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png

Posts: 2014

Threads: 198

Joined: Apr, 2021

Reputation: 16

Replied

why even trying to use the C++ api while you don't know how to use it?

  • 0

Random quote here...

Users viewing this thread:

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