Categories > Exploiting > WRD Exploit API >

can i pls ask one more time -.-

Posts: 45

Threads: 20

Joined: Mar, 2022

Reputation: 0

Posted

i want my fastcoloredtextbox show the text dll connected when the api attached but i tried using this

{

if (module.IsAPIAttached == true)

fastcoloredTextBox1.Text = "Dll connected"

}

but when i debug it doesnt work pls help me

  • 0

Kura

kuraise

Posts: 161

Threads: 3

Joined: Jun, 2021

Reputation: 5

Replied

you didn't even put the brackets after the if statement,

        if (module.IsAPIAttached == true) {
            fastcoloredTextBox1.Text = "Dll connected"
        }

 

im feeding you too much code, learn yourself

  • 0

 

https://cdn.discordapp.com/attachments/877610317037858846/975469974405673041/Signature.png

Posts: 2099

Threads: 10

Joined: Sep, 2020

Reputation: 62

Replied

Make a timer and use this 

/* Paste in timer tick event */

If(module.IsAttached()) 
     FastcoloredTextBox.text = “DLL Connected”;
  • 0

Discord : Doctor Doom#0550

Posts: 1480

Threads: 95

Joined: Oct, 2019

Reputation: 103

Replied

            
            var Timer = new System.Timers.Timer() { Interval = 1000 };
            Timer.Elapsed += (s, e) =>
            {
                if (Module.IsAttached())
                    TextBox.Text = "Attached";
            };
            Timer.Start();
  • 0

davidTube

not inactive

noticed

Posts: 1849

Threads: 88

Joined: Dec, 2018

Reputation: 56

Replied

just use the ternary operator, it looks much cleaner imo

 

fastcoloredTextBox1.Text = module.isAPIAttached() ? "Injected" : "Not injected";

 

paste that in a timer event, don't forget to start the timer

  • 0

Posts: 45

Threads: 20

Joined: Mar, 2022

Reputation: 0

Replied

@37266sir your code is working good thank you but when i clear the textbox the text appear again so i cant execute code can u help me please

  • 0

davidTube

not inactive

noticed

Posts: 1849

Threads: 88

Joined: Dec, 2018

Reputation: 56

Replied

@tenlaphuc08

add a new label from the toolbox, change its name to status and change

fastcoloredTextBox1.Text = ...

to

status.Text = ...

 

  • 0

Posts: 870

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

make a task scheduler

 

start scheduler on inject

wait scheduler til task completed

stop scheduler after task completed

start scheduler on process.exit

  • 0

Users viewing this thread:

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