吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3000|回复: 2
收起左侧

[CrackMe] 吾爱破解2012CM大赛破文----冷雨

[复制链接]
blsn3548 发表于 2012-4-30 15:57
CM是什么?Crackme是什么?这是什么东西?楼主发的什么?
他们都是一些公开给别人尝试破解的小程序,制作 Crackme 的人可能是程序员,想测试一下自己的软件保护技术,也可能是一位 Cracker,想挑战一下其它 Cracker 的破解实力,也可能是一些正在学习破解的人,自己编一些小程序给自己破解,KeyGenMe是要求别人做出它的 keygen (序号产生器), ReverseMe 要求别人把它的算法做出逆向分析, UnpackMe 是要求别人把它成功脱壳,本版块禁止回复非技术无关水贴。

就两个.net的程序还能看明白,所以再贴一个。直接看代码。都是使用了原执行文件的代码。实用工具:NET Reflector v7.4.0.178

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.IO;

namespace lengyu52pojie
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public string strsub(string nick)
        {
            string str;
            string[] strArray = new string[5];
            try
            {
                str = nick.Split(new char[] { ',' })[1];
            }
            catch
            {
                throw new Exception("相关信息不匹配,请重试,www.52pojie.cn 冷雨");
            }
            return str;
        }

        public static bool ifstring(string str, string str1)
        {
            if (str == str1)
            {
                return false;
            }
            return true;
        }
        public static string DESEncrypt(string EncryptString, string EncryptKey)
        {
            if (string.IsNullOrEmpty(EncryptString))
            {
                throw new Exception("引用DLL链接库出现致命错误,请将此信息反馈给程相关管理人员!");
            }
            if (string.IsNullOrEmpty(EncryptKey))
            {
                throw new Exception("引用DLL链接库出现致命错误,请将此信息反馈给程相关管理人员!");
            }
            if (EncryptKey.Length != 8)
            {
                throw new Exception("引用DLL链接库出现致命错误,请将此信息反馈给程相关管理人员!");
            }
            byte[] rgbIV = new byte[] { 0x12, 0x34, 0x56, 120, 0x90, 0xab, 0xcd, 0xef };
            string str = "";
            DESCryptoServiceProvider provider = new DESCryptoServiceProvider();
            try
            {
                byte[] bytes = Encoding.Default.GetBytes(EncryptString);
                MemoryStream stream = new MemoryStream();
                CryptoStream stream2 = new CryptoStream(stream, provider.CreateEncryptor(Encoding.Default.GetBytes(EncryptKey), rgbIV), CryptoStreamMode.Write);
                stream2.Write(bytes, 0, bytes.Length);
                stream2.FlushFinalBlock();
                str = Convert.ToBase64String(stream.ToArray());
                stream.Close();
                stream.Dispose();
                stream2.Close();
                stream2.Dispose();
            }
            catch (IOException exception)
            {
                throw exception;
            }
            catch (ArgumentException exception2)
            {
                throw exception2;
            }
            catch (CryptographicException exception3)
            {
                throw exception3;
            }
            catch (Exception exception4)
            {
                throw exception4;
            }
            finally
            {
                provider.Clear();
            }
            return str;
        }

        public static string sysclass(string int1, string gui)
        {
            if (ifstring(gui, "lengyu"))
            {
                throw new Exception("引用DLL链接库出现致命错误,请将此信息反馈给程相关管理人员!");
            }
            return DESEncrypt(int1 + "ac", "890806ac");
        }




        private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = sysclass(this.strsub(this.textBox1.Text), "lengyu");

        }
    }
}



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册[Register]

x

免费评分

参与人数 1热心值 +1 收起 理由
Peace + 1 欢迎分析讨论交流,[吾爱破解论坛]有你更精.

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

小咪咪 发表于 2012-4-30 16:00
表示膜拜大大 小菜脑袋都晕了
爱你 发表于 2012-4-30 16:24
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-6 20:56

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表