首页
社区
课程
招聘
[旧帖] [求助]菜鸟求助.net破解的反编译切入点 0.00雪花
发表于: 2012-3-9 23:15 1394

[旧帖] [求助]菜鸟求助.net破解的反编译切入点 0.00雪花

2012-3-9 23:15
1394
昨天在优酷看了脱壳的视频,深受鼓舞,也想成为一名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)
        {
        }
    }
}

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 6
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
我是菜鸟 帮我看看吧
万分感激
2012-3-9 23:48
0
雪    币: 4877
活跃值: (3117)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
直接上软件多少。
2012-3-10 01:08
0
雪    币: 504
活跃值: (10)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
4
你應該自己分析,並且學習一下基礎,這樣告訴你了等於幫你破解
2012-3-10 08:26
0
雪    币: 7906
活跃值: (3086)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
flexLm,算是狗么?
2012-3-10 20:14
0
游客
登录 | 注册 方可回帖
返回
//