Spare API



944 users have viewed this page.

Download Direct Download

If you aren't familiar with Visual Studio, you will have trouble following this text tutorial. We highly recommend you use the video tutorial if you aren't familiar with Visual Studio.

How do I use this?

1.) Open Visual Studio, click File->New->Project and select Visual C#.

2.) Click "Windows Forms App (.NET Framework)" and be sure the "Framework" is set to 4.6 or higher.

3.) Once loaded, right click on "References" in the Solution Explorer and click "Add Reference".

4.) Click "Browse" and navigate to the "SpareApi.dll" file, make sure it has a check mark on the "Reference Manager", then click "Ok".

5.) You should now see "SpareApi" in your project references. If you see that, proceed. If you don't see it, you didn't follow the steps properly.

6.) Now you can design your interface however you would like it, I will be using MaterialSkin for the sake of writing this tutorial.

7.) Right click on your form application and click "View Code", then add using SpareApi; at the top below "using System.Windows.Forms;".

8.) Above "public Form1()", add SpareModule YourExploitName = new SpareModule(); and change "YourExploitName" to the name of your exploit.

9.) If you have already added an "Attach" button to your application, you can proceed. If you haven't, please add them and then proceed.

10.) Double click on the "Attach" button and it will create a Click Event for you.

11.) Inside of the "Attach" button function, followed by "{" it should be empty. Add the following code and edit it to follow your design names. YourExploitName.LoadExploit();

12.) If you have already added an "Execute" button and "TextBox" to your application, you can proceed. If you haven't, please add them and then proceed.

13.) Double click on the "Execute" button and it will create a Click Event for you.

14.) Inside of the "Execute" button function, followed by "{" it should be empty. Add the following code and edit it to follow your design names. YourExploitName.ExecuteScript(TextBoxName.Text);

You're done now. You can execute scripts using the Spare Api without an issue, we focused on making this as easy-to-use as possible. If you want to use commands instead of scripts, you can follow the small reference below.

Pre-Built Functions

YourExploitName.LoadExploit();

YourExploitName.UpdateModule();

YourExploitName.ExecuteScript(string Script);

YourExploitName.ExecuteCommand(string Command);