昨天在优酷看了脱壳的视频,深受鼓舞,也想成为一名cracker。
今天从下午五点就开始在电脑前鼓捣,一直没折腾明白,求指导。
我现在有款软件,用peid打开显示的是Microsoft Visual C# / Basic .NET,
平常使用这款软件是通过调用license才能进去,请问我该如何进行破解呀
private static void RealMain()
{
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Program.CurrentDomain_UnhandledException);
Application.ThreadException += new ThreadExceptionEventHandler(Program.Application_ThreadException);
if (OSFeature.Feature.IsPresent(OSFeature.Themes))
{
Application.EnableVisualStyles();
}
Application.SetCompatibleTextRenderingDefault(false);
FlexLmForm flexLmForm = new FlexLmForm();
IntPtr handle = flexLmForm.Handle;
flexLmForm.TextColor = Color.Black;
flexLmForm.Message = "PowerBench is acquiring a license...";
flexLmForm.Show();
ApplicationManagement.Do_Events();
bool single_user = false;
try
{
FlexLM.Instance().CheckOut("PowerCore", "3.0");
string str = string.Empty;
FlexLM.Instance().GetExpiryDateOfCheckedOutFeature("PowerCore", ref str);
TimeSpan span = (TimeSpan) (DateTime.Parse(str) - DateTime.Today);
int totalDays = (int) span.TotalDays;
if ((totalDays >= 0) && (((totalDays == 15) || (totalDays == 10)) || (totalDays <= 5)))
{
if (totalDays > 1)
{
MessageBox.Show("Your license will expire in " + ((int) span.TotalDays) + " days.\nContact your local Fugro-Jason support team to renew your license.", "PowerLog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else if (totalDays == 1)
{
MessageBox.Show("Your license will expire tomorrow.\nContact your local Fugro-Jason support team to renew your license.", "PowerLog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
MessageBox.Show("Your license expires today.\nContact your local Fugro-Jason support team to renew your license.", "PowerLog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
single_user = FlexLM.Instance().IsCheckedOutFeatureSingleUser("PowerCore") || FlexLM.Instance().IsFeatureBorrowed("PowerCore");
if (single_user)
{
CheckIfOtherProcessRunning();
}
}
catch (FlexLMException exception)
{
if (exception.IsMaxUsers())
{
try
{
List<string> users = new List<string>();
FlexLM.Instance().GetUsers("PowerCore", ref users);
StringBuilder builder = new StringBuilder();
builder.AppendLine("PowerBench is currently unavailable. It is being used by:");
foreach (string str2 in users)
{
builder.AppendLine(str2);
}
MessageBox.Show(flexLmForm, builder.ToString(), "PowerBench License Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
catch (Exception)
{
MessageBox.Show(flexLmForm, exception.Message, "PowerBench License Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
else
{
string str3 = string.Empty;
try
{
string str4 = string.Empty;
if (FlexLM.Instance().GetPlugInfo(ref str4))
{
str3 = str4;
}
else
{
str3 = "Using network license.";
}
}
catch (Exception)
{
}
MessageBox.Show(flexLmForm, str3 + "\r\n\r\n" + exception.Message, "PowerBench License Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
return;
}
try
{
Directory.SetCurrentDirectory(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
ActiveDBManager.Manager = new DBManager();
ActiveDBManager.Initialize();
application = new Application();
flexLmForm.MainForm = application.ApplicationForm;
Session.Instance.ImportPlugins();
using (Timer timer = new Timer(10000.0))
{
int nFailedAttempts = 0;
timer.Elapsed += delegate (object o, ElapsedEventArgs e) {
if (nFailedAttempts < 7)
{
try
{
FlexLM.Instance().Probe();
if (single_user)
{
CheckIfOtherProcessRunning();
}
if (nFailedAttempts > 0)
{
flexLmForm.TextColor = Color.Black;
if (single_user)
{
flexLmForm.Message = "PowerBench license error has been corrected.\nYou may continue to work.";
}
else
{
flexLmForm.Message = "PowerBench has restored the connection with the license server.\nYou may continue to work";
}
Thread.Sleep(0x1388);
flexLmForm.Hide();
nFailedAttempts = 0;
}
}
catch (FlexLMException exception)
{
nFailedAttempts++;
int num = (7 - nFailedAttempts) * 10;
if (num > 0)
{
flexLmForm.TextColor = Color.Crimson;
flexLmForm.Message = string.Concat(new object[] { "PowerBench License Error!\n", exception.Message, "\nApplication will exit in ", num, " seconds." });
flexLmForm.Show();
}
else
{
flexLmForm.Exit();
}
}
}
};
flexLmForm.Hide();
timer.Start();
try
{
Application.Run(application.ApplicationForm);
}
catch (Exception)
{
if (ActiveDBManager.GetActiveDatabase().IsConnectionLost)
{
MessageBox.Show("The application lost the connection to the database. PowerBench will close.", "PowerBench", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
MessageBox.Show("An unexpected error occurred. PowerBench will close.", "PowerBench", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
Session.Instance.UnloadPlugins();
try
{
ActiveDBManager.Shutdown();
}
catch
{
}
timer.Stop();
}
}
finally
{
try
{
FlexLM.Instance().CheckIn("PowerCore");
}
catch (FlexLMException)
{
}
}
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课