Posted
Hi i really want to know how can i add a settings menu to my executor without creating a new form
I want to be able to select the api i want to inject with but thats not possible with another form.
Replied
Wdym thats not possible with another form?
Something basic like this should work perfectly fine
Then once you want to change the API just do smth like this
ExploitOptions.selected = 1; //-- (If you added more api's to the class ofc)
ExploitOptions.Execute("print'hi'")
class ExploitOptions
{
public static List<object> apis = { new ExploitAPI() };
public static int selected = 0;
public static void Attach()
{
switch (selected)
{
case 0:
ExploitAPI api = apis[selected] as ExploitAPI;
api.AttachOrWhatever()
}
}
public static void Execute(string a1)
{
switch (selected)
{
case 0:
ExploitAPI api = apis[selected] as ExploitAPI;
api.ExecuteLimitedLua(a1)
}
}
}
Cancel
Post
novaline ontop
Executors I own: Synapse X, Asshurt/Sirhurt, Scriptware, Novaline
Replied
public static class APIOptions {
public enum API_TYPE {
API_1,
API_2,
API_3
}
public static API_TYPE CurrentAPI { get; set; } = API_TYPE.API_1;
public static void Execute(string Script) {
switch (CurrentAPI) {
case API_1: break;
case API_2: break;
case API_3: break;
}
}
public static void Attach() {
switch (CurrentAPI) {
case API_1: break;
case API_2: break;
case API_3: break;
}
}
}
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post