⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flashget.cs

📁 flshget v1.65中文版注册机源代码
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace FlashGet
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ComboBox comboBox1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// comboBox1
			// 
			this.comboBox1.Items.AddRange(new object[] {
														   "fgf-",
														   "fgc-"});
			this.comboBox1.Location = new System.Drawing.Point(16, 96);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(64, 20);
			this.comboBox1.TabIndex = 0;
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(16, 48);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(288, 21);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "";
			// 
			// button1
			// 
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button1.Location = new System.Drawing.Point(80, 96);
			this.button1.Name = "button1";
			this.button1.TabIndex = 2;
			this.button1.Text = "计算";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button2.Location = new System.Drawing.Point(152, 96);
			this.button2.Name = "button2";
			this.button2.TabIndex = 3;
			this.button2.Text = "关于";
			// 
			// button3
			// 
			this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button3.Location = new System.Drawing.Point(224, 96);
			this.button3.Name = "button3";
			this.button3.TabIndex = 4;
			this.button3.Text = "退出";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(312, 150);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.comboBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Form1";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			comboBox1.SelectedIndex =0;
		}

		private void button1_Click(object sender, System.EventArgs e)
		{		
			string result="";                                    //result放结果
			int select=comboBox1.SelectedIndex ;                 //放了个comboBox,Item1="fgf-" Item2="fgc-"
			int tmp,div;			
			int[,] sn=new int [3,4];	                     	
			int[] val0={0x6b,0x65,0x76};                        //即"kevinhyx12345"中的"k","e","i"的HEX
			int[] val1={0x6b,0x65,0x69};                        //"k","e","v"的HEX
			Random rand=new Random ();                           //用来产生随机数,当然你也可以叫它“伪随机数”
			for(int j=0;j<3;j++)
			{
				for(int i=0;i<4;i++)
				{
					sn[j,i]=rand.Next (0x61,0x7a);                   
				}
			}
			for(int k=0;k<3;k++)                               //下面按照程序编
			{
				switch(k)
				{
					case 0:	
						goto n1;
					case 1:
						goto n2;
					case 2:
						goto n3;
					default:
						break;
				}
			n3:
				tmp=sn[k,1]*sn[k,2]+sn[k,3];
				goto b;
			n2:
				tmp=sn[k,1]&sn[k,2];
				goto a;
			n1:
				tmp=(sn[k,1]^sn[k,2])&0x7f;
			a:
				tmp=sn[k,3]*tmp;
			b:
				tmp=tmp+sn[k,0];                            //这里的sn[k,0]就是要求的字符HEX值,先是随机产生,等会儿再修改

				if(select==0)
				{
					div=tmp%val0[k];					
				}
				else
				{
					div=tmp%val1[k];					
				}
				if(k==1)                                 //修改错误的随机数为正确结果
				{
					sn[k,0]=sn[k,0]-div+8;                   
				}
				else
				{
					sn[k,0]=sn[k,0]-div;
				}			
			}
			for(int j=0;j<3;j++)
			{
				for(int i=0;i<4;i++)
				{
					char chars=(char)sn[j,i];	
					result=result+chars.ToString();
				
				}
			}
			textBox1.Text =comboBox1.SelectedItem.ToString() +result +"0123456789012345678901234567";          //后28个字符就作个个性签名啦
		}

		private void button3_Click(object sender, System.EventArgs e)
		{
			Application.Exit ();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -