Advertisement
rulfos

WRD TP PLOIT Script

Jul 14th, 2020
867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.26 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. //The C# API can be re-downloaded at https://wearedevs.net/d/Exploit%20API
  5. //Make sure it is added as a reference if you decide to re-download
  6. using WeAreDevs_API;
  7.  
  8. //The exploit itself auto updates. You never need to do work yourself!
  9. //Just create the project once and let WeAreDevs do the work for you.
  10. //Why is this free? Its because of the non-intrusive watermark the API adds
  11. namespace Exploit_Template_with_WRDAPI
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         //Creates object so we can make calls to WeAreDevs_API.
  16.         readonly ExploitAPI api = new ExploitAPI();
  17.         /*To see methods you can call, go to
  18.         The project in the solution explorer -> References -> Right click on WeAreDevs_API.dll ->
  19.         View in Object Browser -> WeAreDevs_API -> WeAreDevs_API -> click Exploit API.
  20.         This will then show a list of all functions you can use!*/
  21.  
  22.         public Form1()
  23.         {
  24.             InitializeComponent();
  25.         }
  26.  
  27.         //The exploit must be injected before calling any other function!
  28.         private void BtnInject_Click(object sender, EventArgs e)
  29.         {
  30.             api.LaunchExploit();
  31.         }
  32.  
  33.         //Executes the lua script
  34.         private void BtnExecute_Click(object sender, EventArgs e)
  35.         {
  36.             string script = inputScript.Text;
  37.             api.SendLimitedLuaScript(script);
  38.         }
  39.  
  40.         //Sets your player's walkspeed to 100
  41.         //Quick command button using a Lua script
  42.         private void BtnSpeed_Click(object sender, EventArgs e)
  43.         {
  44.             api.SendLimitedLuaScript("game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=100");
  45.         }
  46.  
  47.         //Gives your player btools
  48.         //Quick command button using a pre-built command
  49.         private void BtnBtools_Click(object sender, EventArgs e)
  50.         {
  51.             api.SendCommand("btools me");
  52.         }
  53.  
  54.         //Example usage of a dynamic command
  55.         //Quick command button using a pre-built command, but this one grab's the user input
  56.         //Teleports the player to a player of the specified username
  57.         private void BtnTPTo_Click(object sender, EventArgs e)
  58.         {
  59.             string username = inputTPTo.Text;
  60.             api.SendCommand("teleport " + username);
  61.         }
  62.  
  63.         //Changes UI text to say if the exploit is injected or not
  64.         //Challenge: Try making the attach button only show if the exploit is not injected
  65.         private void CheckInjected()
  66.         {
  67.             if (api.isAPIAttached())
  68.             {
  69.                 //The exploit is injected and now ready to execute scripts/commands
  70.                 txtIsInjected.Text = "Is Injected: true";
  71.             }
  72.             else
  73.             {
  74.                 //The exploit is not injected... The client must inject
  75.                 txtIsInjected.Text = "Is Injected: false";
  76.             }
  77.         }
  78.  
  79.         //Check if the exploit is injected on load
  80.         private void Form1_Load(object sender, EventArgs e)
  81.         {
  82.             CheckInjected();
  83.         }
  84.  
  85.         //Check if the exploit is injected every 3 seconds
  86.         private void InjectedChecker_Tick(object sender, EventArgs e)
  87.         {
  88.             CheckInjected();
  89.         }
  90.     }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement