Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,259 members, 7,807,892 topics. Date: Wednesday, 24 April 2024 at 10:01 PM

Can You Solve This? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Can You Solve This? (1652 Views)

Can You Solve PHP Problems? Let's Find Out.. / Can You Solve This Tricky Question? / Number Generator Challenge : Can You Solve This? (2) (3) (4)

(1) (Reply) (Go Down)

Can You Solve This? by Slyr0x: 10:01am On Mar 23, 2016
Guys, I came across this, and thought to share.

Basically, there is a .exe file, which when you run, requests for a password. The objective of this- is to get the password.

Let's see who can solve this - please document your thoughts process too.

Cheers



using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace rot
{
public class Form1 : Form
{
private IContainer components;
private Label label1;
private TextBox txtPass;
private Button btnCheck;
private Label label2;
private Label label3;
private Label label4;
private Label label5;

public Form1()
{
this.InitializeComponent();
}

private string reverse(string original)
{
char[] chArray = original.ToCharArray();
Array.Reverse((Array) chArray);
return new string(chArray);
}

private bool ShallHePass()
{
return this.txtPass.Text == this.reverse(this.label2.Text + this.label3.Text + this.label4.Text + this.label5.Text);
}

private void btnCheck_Click(object sender, EventArgs e)
{
this.label3.Text = "47996655";
int num = (int) MessageBox.Show(this.ShallHePass() ? "you shall pass" : "you shall not pass"wink;
}

private void Form1_Load(object sender, EventArgs e)
{
this.label4.Text = "83f05689";
}

protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}

private void InitializeComponent()
{
this.label1 = new Label();
this.txtPass = new TextBox();
this.btnCheck = new Button();
this.label2 = new Label();
this.label3 = new Label();
this.label4 = new Label();
this.label5 = new Label();
this.SuspendLayout();
this.label1.AutoSize = true;
this.label1.Location = new Point(12, 80);
this.label1.Name = "label1";
this.label1.Size = new Size(131, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Enter the key on the ring:";
this.txtPass.Location = new Point(143, 77);
this.txtPass.Name = "txtPass";
this.txtPass.Size = new Size(129, 20);
this.txtPass.TabIndex = 1;
this.btnCheck.Location = new Point(105, 125);
this.btnCheck.Name = "btnCheck";
this.btnCheck.Size = new Size(75, 23);
this.btnCheck.TabIndex = 2;
this.btnCheck.Text = "I shall Pass!";
this.btnCheck.UseVisualStyleBackColor = true;
this.btnCheck.Click += new EventHandler(this.btnCheck_Click);
this.label2.AutoSize = true;
this.label2.ForeColor = SystemColors.Control;
this.label2.Location = new Point(12, 165);
this.label2.Name = "label2";
this.label2.Size = new Size(55, 13);
this.label2.TabIndex = 3;
this.label2.Text = "d0248b4e";
this.label3.AutoSize = true;
this.label3.ForeColor = SystemColors.Control;
this.label3.Location = new Point(12, 178);
this.label3.Name = "label3";
this.label3.Size = new Size(55, 13);
this.label3.TabIndex = 4;
this.label3.Text = "47886655";
this.label4.AutoSize = true;
this.label4.ForeColor = SystemColors.Control;
this.label4.Location = new Point(12, 191);
this.label4.Name = "label4";
this.label4.Size = new Size(53, 13);
this.label4.TabIndex = 5;
this.label4.Text = "83f05688";
this.label5.AutoSize = true;
this.label5.ForeColor = SystemColors.Control;
this.label5.Location = new Point(12, 204);
this.label5.Name = "label5";
this.label5.Size = new Size(54, 13);
this.label5.TabIndex = 6;
this.label5.Text = "c154b6ea";
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(284, 262);
this.Controls.Add((Control) this.label5);
this.Controls.Add((Control) this.label4);
this.Controls.Add((Control) this.label3);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.btnCheck);
this.Controls.Add((Control) this.txtPass);
this.Controls.Add((Control) this.label1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "Enter";
this.Load += new EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
}
Re: Can You Solve This? by Nobody: 4:58pm On Mar 23, 2016
There is no query to in the main c.s . I run the code in windows form in c# . The errors was much .
Re: Can You Solve This? by Slyr0x: 5:06pm On Mar 23, 2016
proxy20:
There is no query to in the main c.s . I run the code in windows form in c# . The errors was much .

You don't need to run it.

Look at the code, and interpret it.

This is an .exe file. When you run it, it asks for a password.

We need to get that pass. The pass has been defined "txtPass".

Cheers
Re: Can You Solve This? by Nobody: 12:29pm On Mar 24, 2016
password

Enter the key o
d0248b4e
47996655
83f05689
lc154b6ea

If it doesn't work put it in a online MD6 hash generator to generate a password .
Re: Can You Solve This? by Slyr0x: 5:01pm On Mar 24, 2016
proxy20:
password

Enter the key o
d0248b4e
47996655
83f05689
lc154b6ea

If it doesn't work put it in a online MD6 hash generator to generate a password .


this.reverse grin wink
Re: Can You Solve This? by Slyr0x: 5:01pm On Mar 24, 2016
You missed this.reverse grin wink
Re: Can You Solve This? by Nobody: 7:14pm On Mar 24, 2016
cool
Re: Can You Solve This? by Nobody: 7:16pm On Mar 24, 2016
msgbox ('coding in jetbrain');
Re: Can You Solve This? by Slyr0x: 7:58pm On Mar 24, 2016
proxy20:
msgbox ('coding in jetbrain');

You didnt get it.
Re: Can You Solve This? by Nobody: 8:32pm On Mar 24, 2016
I quit
Re: Can You Solve This? by danidee10(m): 8:47pm On Mar 24, 2016
Slyr0x:
Guys, I came across this, and thought to share.

Basically, there is a .exe file, which when you run, requests for a password. The objective of this- is to get the password.

Let's see who can solve this - please document your thoughts process too.

Cheers



using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace rot
{
public class Form1 : Form
{
private IContainer components;
private Label label1;
private TextBox txtPass;
private Button btnCheck;
private Label label2;
private Label label3;
private Label label4;
private Label label5;

public Form1()
{
this.InitializeComponent();
}

private string reverse(string original)
{
char[] chArray = original.ToCharArray();
Array.Reverse((Array) chArray);
return new string(chArray);
}

private bool ShallHePass()
{
return this.txtPass.Text == this.reverse(this.label2.Text + this.label3.Text + this.label4.Text + this.label5.Text);
}

private void btnCheck_Click(object sender, EventArgs e)
{
this.label3.Text = "47996655";
int num = (int) MessageBox.Show(this.ShallHePass() ? "you shall pass" : "you shall not pass"wink;
}

private void Form1_Load(object sender, EventArgs e)
{
this.label4.Text = "83f05689";
}

protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}

private void InitializeComponent()
{
this.label1 = new Label();
this.txtPass = new TextBox();
this.btnCheck = new Button();
this.label2 = new Label();
this.label3 = new Label();
this.label4 = new Label();
this.label5 = new Label();
this.SuspendLayout();
this.label1.AutoSize = true;
this.label1.Location = new Point(12, 80);
this.label1.Name = "label1";
this.label1.Size = new Size(131, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Enter the key on the ring:";
this.txtPass.Location = new Point(143, 77);
this.txtPass.Name = "txtPass";
this.txtPass.Size = new Size(129, 20);
this.txtPass.TabIndex = 1;
this.btnCheck.Location = new Point(105, 125);
this.btnCheck.Name = "btnCheck";
this.btnCheck.Size = new Size(75, 23);
this.btnCheck.TabIndex = 2;
this.btnCheck.Text = "I shall Pass!";
this.btnCheck.UseVisualStyleBackColor = true;
this.btnCheck.Click += new EventHandler(this.btnCheck_Click);
this.label2.AutoSize = true;
this.label2.ForeColor = SystemColors.Control;
this.label2.Location = new Point(12, 165);
this.label2.Name = "label2";
this.label2.Size = new Size(55, 13);
this.label2.TabIndex = 3;
this.label2.Text = "d0248b4e";
this.label3.AutoSize = true;
this.label3.ForeColor = SystemColors.Control;
this.label3.Location = new Point(12, 178);
this.label3.Name = "label3";
this.label3.Size = new Size(55, 13);
this.label3.TabIndex = 4;
this.label3.Text = "47886655";
this.label4.AutoSize = true;
this.label4.ForeColor = SystemColors.Control;
this.label4.Location = new Point(12, 191);
this.label4.Name = "label4";
this.label4.Size = new Size(53, 13);
this.label4.TabIndex = 5;
this.label4.Text = "83f05688";
this.label5.AutoSize = true;
this.label5.ForeColor = SystemColors.Control;
this.label5.Location = new Point(12, 204);
this.label5.Name = "label5";
this.label5.Size = new Size(54, 13);
this.label5.TabIndex = 6;
this.label5.Text = "c154b6ea";
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(284, 262);
this.Controls.Add((Control) this.label5);
this.Controls.Add((Control) this.label4);
this.Controls.Add((Control) this.label3);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.btnCheck);
this.Controls.Add((Control) this.txtPass);
this.Controls.Add((Control) this.label1);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "Enter";
this.Load += new EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
}
}

This is not language independent na......mtchewww
Re: Can You Solve This? by Nobody: 8:57pm On Mar 24, 2016
The code is in c# windows form with many errors .

"d0248b4e";


reverse
e4b8420d
Re: Can You Solve This? by Slyr0x: 7:26am On Mar 25, 2016
proxy20:
password
Enter the key o
d0248b4e
47996655
83f05689
lc154b6ea
If it doesn't work put it in a online MD6 hash generator to generate a password .

Reverse d0248b4e4799665583f05689lc154b6ea, and you have your answer i.e. ae6b4.......

(1) (Reply)

Can I Dump My Low-cash Work For Freelancing Job As A Programmer? / Offering Price Of ₦360,000,000 In Exchange For Ownership Stake In Nairaland / Why Are All Tech Startups In Nigeria Fintechs?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 38
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.