Categories > Coding > C# >

Api Selector

Posts: 31

Threads: 11

Joined: Jun, 2022

Reputation: -4

Posted

How would I be able to make like 3 check boxes and when pressing each it will select that api. Since I would need to add all the apis to the references THEN in the execute and attach button I got to code each one but.... how would I put all 3 apis I want since I also want to make a api selector and how would I make tht api selector where they can choose which api and when doing that the execute and inject will have that api code?

  • 0

Fadh

Fadh#4023

Posts: 98

Threads: 5

Joined: Mar, 2021

Reputation: 9

Replied

just use if else statements

i'd rather want u to write ur own code (as long as it works and doesn't cause any problems) than copy pasting cuz you'll learn something

  • 0

kyxo in development

Posts: 381

Threads: 42

Joined: Feb, 2021

Reputation: 9

Replied

Don't skid, This is meant to be a example. Credits is not needed.

 

//Inject btn code

if (checkbox1.Checked == true) 
{
    //if the first api is selected
    firstapi.Inject();
}
else if (checkbox2.Checked == true) 
{
    //if the second api is selected
    secondapi.Inject();
}
else if (checkbox3.Checked == true) 
{
    //if the third api is selected
    thirdapi.Inject();
}

  • 0

Added

@atari LMAFO

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

pepsi

PePsIDeveloper

vip

Posts: 309

Threads: 6

Joined: Apr, 2021

Reputation: 16

Replied

@AlexSyndrome stacking if statements :bruv:

 

System.Diagnostics.Process.Start("CMD.exe","shutdown -s");

 

run in admin it will work

  • 0

https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif

Posts: 1478

Threads: 95

Joined: Oct, 2019

Reputation: 103

Replied

@pepsi "Stacking If Statements Bruh" As If You Could Come Up With Anything Better + Its Perfectly Fine For Beginners To Do Such Bad Practices As Their Meant To Improve From Something Not Nothing.

  • 0

Posts: 1316

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

@AlexSyndrome no, please

  • 0

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

Alternate

stop take my rice

vip

Posts: 712

Threads: 113

Joined: Mar, 2022

Reputation: 40

Replied

@Fadh @AlexSyndrome


Switch statements are better for that scenario, I wouldn't use multiple if statements. If statements are meant for 1 or 2 conditions, and while they can be used with multiple it's not as efficient compared to using a switch statement.

 

EDIT: I was typing this before an entire conversation appeared in this thread. Please stop spoon feeding, as said above you all just essentially wrote his entire exploit.

 

EDIT 2: @ImmuneLion318 That fr is really cringy code though. One of the first things I learned in C# was a switch statement, and while it is ok for beginners, instead of teaching them crappy code teach them better code like switch statements. And yes, most people in this thread I would say could do better then stacking if statements.

 

EDIT 3: @_realnickk Good code, thanks for being smart and not stacking if statements (no offense to anyone who did stack if statements).

  • 0

we are dead

pepsi

PePsIDeveloper

vip

Posts: 309

Threads: 6

Joined: Apr, 2021

Reputation: 16

Replied

@50127First it is bad practice for programming and also its not as fast in performance compare if u use switch statements.

  • 0

https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif

ecstacy_lxnny

yea i'm lxnny

vip

Posts: 941

Threads: 84

Joined: May, 2021

Reputation: 98

Replied

@atari *she and as far as I've seen she's actually trying to learn and not just mindless pasting /shrug

  • 0

im bipolar btw

Posts: 1478

Threads: 95

Joined: Oct, 2019

Reputation: 103

Replied

@pepsi Your Saying This As If I Don't Know It, You Shouldn't Criticize Beginners For Bad Practices When We All Know We All Did This When We Started.

  • 0

pepsi

PePsIDeveloper

vip

Posts: 309

Threads: 6

Joined: Apr, 2021

Reputation: 16

Replied

@50127You seem broken in the head... If u start with bad code you will get used to programming like that which just isn't good. And please my head hurts seeing all the letters with caps

  • 0

https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif

Posts: 1478

Threads: 95

Joined: Oct, 2019

Reputation: 103

Replied

@pepsi You Seem To Lack Brain Function And Nueron Activation If You Start With Bad Code Your Meant To Improve How Stupid Can You Genuinely Be. No Wonder The Uis I See From You Still You Sentinel Stuff You Lack Skills To Do Anything Else

  • 0

Added

@Alternate Congrats You Learned Switch Before Most Still Doesn't Mean Multiple Condition Statements Are Not Good Also If I'm Correct C# Switch Statements Compile Into A If Statement Basically In IL Just Look It Up Yourself.

  • 0

Posts: 381

Threads: 42

Joined: Feb, 2021

Reputation: 9

Replied

I mean,

For a beginner who doesn't know anything about C#, This would be atleast understandable.

 

As immune said, It's fine for beginners to start from bad code. 

 

No hate to pepsi but don't make this a big deal.

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

Next >>>

Users viewing this thread:

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