Categories > Coding > C# >
The API isn't working for me
Posted
The WRD API isn't working for me is there a problem with it right now? I tried to reference it in my winforms project!
Replied
the new one is not a C# .dll which you can reference.
there's a new example project, but i will save you the download:
first, make sure your project is set to `x64` instead of `Any CPU`. this is because Roblox switched to 64-bit in the recent years.
next, you have to put the exploit api .dll file in your app's `bin\x64\Release` folder
^ or embed it as a resource which gets copied to the build folder
then, inside your code, use these lines from the example to declare the functions:
(pastebin link because the wrd blacklisted word filter false-detects bad words inside this code)
https://pastebin.com/N76MhG57
you want to call `initialize()` before you call any function from the api, this is a basic winforms snippet: public Form1()
{
InitializeComponent();
initialize();
}
after initializing, run `execute(script)` to execute your script: (this is from the official example) private void btnExecute_Click(object sender, EventArgs e)
{
string script = txtScript.Text;
execute(script);
}
and to check if the exploit is attached currently, they recommend having a timer which calls `isAttached` periodically: (this is also from the official example)
private void timerAttachChecker_Tick(object sender, EventArgs e)
{
bool attached = isAttached();
if (attached)
{
labelStatus.Text = "Status: Attached";
labelStatus.ForeColor = Color.Green;
}
else
{
labelStatus.Text = "Status: Not attached";
labelStatus.ForeColor = Color.Red;
}
}
Cancel
Post
Replied
You can look at the example project in exploit dll download link and copy across all code for the attach,execute and isAttached. The code is practically just dllimports.
@Kxhu also has a cool project which will help you out a lot. You can check it out by viewing this thread. https://forum.wearedevs.net/t/37362
Cancel
Post
Languages - C++, C#,Javascript, HTML, CSS, Lua ,Xaml, Python
https://plutora.xyz/discord
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post