Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.Drawing;
- using System.Runtime.InteropServices;
- using System.Windows.Forms;
- [ComVisible(true)]
- public class AingeiRai5HahfeiThe2 : Form
- {
- private Button Aof0roo2eej3ahSh1eis;
- private TextBox ta4vo2Ahk5yaep2oShuu;
- private Label Xahhu2ieSh5ieFohPiGh;
- private string Tai8Aip0ua3ULi6zo1je;
- private int[] az5nieghahj0Iekah0ph = new int[22]
- {
- 21,
- 91,
- 20,
- 0,
- 126,
- 0,
- 61,
- 24,
- 2,
- 82,
- 7,
- 17,
- 88,
- 22,
- 18,
- 21,
- 114,
- 117,
- 15,
- 80,
- 59,
- 24
- };
- public AingeiRai5HahfeiThe2()
- {
- Jojei5ahyah2yah5laeK();
- }
- public void Aa6bi4uidan4shahSee9(string ain7aek2Thae3Boh7ohh)
- {
- Tai8Aip0ua3ULi6zo1je = ain7aek2Thae3Boh7ohh.Substring(ain7aek2Thae3Boh7ohh.Length - 22);
- }
- public void Joh8achoo1aepahjeiy9()
- {
- Application.Run(this);
- }
- private void Jojei5ahyah2yah5laeK()
- {
- Aof0roo2eej3ahSh1eis = new Button();
- ta4vo2Ahk5yaep2oShuu = new TextBox();
- Xahhu2ieSh5ieFohPiGh = new Label();
- base.SuspendLayout();
- Aof0roo2eej3ahSh1eis.Location = new Point(12, 102);
- Aof0roo2eej3ahSh1eis.Name = "btnOk";
- Aof0roo2eej3ahSh1eis.Size = new Size(259, 23);
- Aof0roo2eej3ahSh1eis.TabIndex = 0;
- Aof0roo2eej3ahSh1eis.Text = "Validate";
- Aof0roo2eej3ahSh1eis.UseVisualStyleBackColor = true;
- Aof0roo2eej3ahSh1eis.Click += Eey4jie0raer7Miiphuo;
- ta4vo2Ahk5yaep2oShuu.Location = new Point(12, 39);
- ta4vo2Ahk5yaep2oShuu.Name = "magicTxt";
- ta4vo2Ahk5yaep2oShuu.Size = new Size(259, 20);
- ta4vo2Ahk5yaep2oShuu.TabIndex = 1;
- Xahhu2ieSh5ieFohPiGh.AutoSize = true;
- Xahhu2ieSh5ieFohPiGh.Location = new Point(9, 9);
- Xahhu2ieSh5ieFohPiGh.Name = "magicLbl";
- Xahhu2ieSh5ieFohPiGh.Size = new Size(110, 13);
- Xahhu2ieSh5ieFohPiGh.TabIndex = 2;
- Xahhu2ieSh5ieFohPiGh.Text = "Enter the magic word:";
- base.ClientSize = new Size(284, 138);
- base.Controls.Add(Xahhu2ieSh5ieFohPiGh);
- base.Controls.Add(ta4vo2Ahk5yaep2oShuu);
- base.Controls.Add(Aof0roo2eej3ahSh1eis);
- base.Name = "SoStealthy";
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private bool MeeBish0iotho9biBuJi(string magicWord)
- {
- for (int i = 0; i < Tai8Aip0ua3ULi6zo1je.Length; i++)
- {
- uint num = (uint)(magicWord[i] ^ Tai8Aip0ua3ULi6zo1je[i]);
- if (num != az5nieghahj0Iekah0ph[i])
- {
- return false;
- }
- }
- return true;
- }
- private void Eey4jie0raer7Miiphuo(object ahrah0iwoChohs2dai4a, EventArgs ahH5eedeiYohquei8goo)
- {
- if (Debugger.IsAttached)
- {
- MessageBox.Show("Don't try your dirty tricks on me!");
- }
- else if (ta4vo2Ahk5yaep2oShuu.Text.Length == 0)
- {
- MessageBox.Show("You must fill this field!");
- }
- else if (MeeBish0iotho9biBuJi(ta4vo2Ahk5yaep2oShuu.Text))
- {
- MessageBox.Show("SUCCESS !\nSubmit NDH{" + ta4vo2Ahk5yaep2oShuu.Text + "} to validate.");
- }
- else
- {
- MessageBox.Show("YOU DIDN'T SAY THE MAGIC WORD !!!");
- }
- }
- }
- ############################### AssemblyInfo.cs ##############################################
- using System.Diagnostics;
- using System.Reflection;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- [assembly: CompilationRelaxations(8)]
- [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
- [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
- [assembly: AssemblyTitle("ExampleAssembly")]
- [assembly: AssemblyDescription("Example Assembly for DotNetToJScript")]
- [assembly: AssemblyConfiguration("")]
- [assembly: AssemblyCompany("")]
- [assembly: AssemblyProduct("ExampleAssembly")]
- [assembly: AssemblyCopyright("Copyright © James Forshaw 2017")]
- [assembly: AssemblyTrademark("")]
- [assembly: ComVisible(false)]
- [assembly: Guid("56598f1c-6d88-4994-a392-af337abe5777")]
- [assembly: AssemblyFileVersion("1.0.0.0")]
- [assembly: AssemblyVersion("1.0.0.0")]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement