Forum > Coding >

how am i able to check if my exploit has fully injected

Posts: 2

Threads: 1

Joined: Jun, 2020

Reputation: 0

Posted

Using Exploit API, how am I able to check if the exploit has injected? If I am able to do this I also want to change the text of my button from "inject" to "injected"

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

To change text just to something like button1.Text = "Injected";. Replace button1 with your button name. To check if it's injected, it depends what API you are using. If you are using WRD API do this:

if (api.isAPIAttached() == true)

{

// code here

}

 

Although you can optionally remove == true. I just put it there so it's easier to understand. So basically, this is the code to check if it's injected and change the text:

 

if (api.isAPIAttached()) {

button1.Text = "Injected";
} else {

button1.Text = "Inject";

}

 

Remember to change button1 to your button name like I said earlier.

  • 0

Users viewing this thread:

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