小白求帮忙看 打开 licencia 文件的解密算法 ,求反向代码应该怎么写
小白求帮忙看 打开 licencia 文件的解密算法和过程打开 licecia 调用和解密的代码
using System;
using
using System.Diagnostics;
using
using System.
using System.Security.Cryptography;
using System.Windows.Forms;
using Microsoft.VisualBasic;
using Microsoft.
using MySql.Data.MySqlClient;
namespace ORIENT
{
// Token: 0x0200001E RID: 30
[DesignerGenerated]
public partial class Config : Form
{
// Token: 0x0600064B RID: 1611 RVA: 0x00036868 File Offset: 0x00034A68
private void btnDesencriptar_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Licencia File (*.orient)|*.orient";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
string fileName = openFileDialog.FileName;
StreamReader streamReader = new StreamReader(fileName);
string text = streamReader.ReadToEnd();
string text2 = text;
int num = Strings.Len(text);
text = Strings.Left(text, checked(num - 7));
streamReader.Close();
this.txtResultado.Text = this.Desencriptar(text);
Module1.conn.Open();
string s = "msviww$nqxt#tfuerhxwrw%+mi/hfwe.#zfoyjv$-*vjjmxwvt*0,";
MySqlCommand mySqlCommand = new MySqlCommand(string.Concat(new string[]
{
Module1.d(s),
text2,
"') on duplicate key update data = '",
text2,
"'"
}), Module1.conn);
mySqlCommand.ExecuteNonQuery();
Module1.conn.Close();
}
}
}
}
点击代码里的 Module1出来下面的代码
public static string NombreImpresora(int numero)
{
string result = "";
MySqlCommand mySqlCommand = new MySqlCommand();
mySqlCommand.Connection = Module1.conn2;
= string.Concat(new string[]
{
"select alias from impresoracomanda where id = ",
Conversions.ToString(numero),
" and ordenador = '",
,
"'"
});
try
{
Module1.conn2.Open();
result = Conversions.ToString(mySqlCommand.ExecuteScalar());
Module1.conn2.Close();
}
catch (Exception ex)
{
}
return result;
}
点击前面的Module1. 后面的 d 出来的代码
public static string d(string s)
{
int num = 1;
int num2 = Strings.Len(s);
checked
{
for (int i = num; i <= num2; i++)
{
StringType.MidStmtStr(ref s, i, 1, Conversions.ToString(Strings.Chr(Strings.Asc(Strings.Mid(s, i, 1)) - i % 3 - 3)));
}
return s;
}
软件下载网址 https://www.
求反向代码应该怎么写?就是编写一个licencia文件生成小程序代码
然后让打开的licecia 不要解密直接显示在方框里的代码应该怎么改?
还有把方框里的内容 调用加密后的 保存 按钮 代码应该怎么写?
希望大神们教一下,示范一下,谢谢!
[此贴子已经被作者于2020-1-30 02:00编辑过]