using System;
using System.Diagnostics;
using System.Reflection.Emit;
using System.Threading;
using EasyExploits;
namespace ConsoleApp1
{
class Program
{
EasyExploits.Module module = new EasyExploits.Module();
static void Main(string[] args)
{
Module.LaunchExploit();
Console.ForegroundColor = ConsoleColor.Green;
Label:
Console.WriteLine("Please Type 'Inject'");
string proccess1 = Console.ReadLine();
if (proccess1 == "Inject")
{
Console.WriteLine("");
Console.WriteLine("Injected!");
goto Begin;
}
else
{
goto Label;
}
Begin:
Console.WriteLine("");
Console.WriteLine("Enter a script and press enter to execute it.");
string answer = Console.ReadLine();
Module.ExecuteScript(answer);
goto Begin
}
}
}
我试图解决这个问题,但无法找到解决方案,于是来到Stack Overflow。总之,我的控制台应用程序应在输入中粘贴脚本时注入EasyExploits.DLL并执行Lua脚本。然而,我收到了一个错误消息,其中包含"Module.LaunchExploit()"和"Module.ExecuteScript(string)"的非静态字段、方法或属性需要对象引用。由于我是C#的初学者,不太理解这个错误,如果有人能以初学者友好的简单步骤指导我,那将是太好了。