[Learn To Code] Simple Pass (With Code)

Status
Not open for further replies.

ReX

Senior
Original poster
senior
member
Joined
Apr 23, 2011
Posts
3,200
Reaction score
793
Points
113
Age
53
****** MOD NOTICE: I cannot access the bot resources forum. Therefore i post here. If a mod could move it or give me access (Preferred) the please do so******

SIMPLE PASS
A TuT by desttroy
KiaKg.jpg

gKMMR.jpg

Z41wn.jpg



This is a simple piece of code to protect your programs
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "pass" Then
            Form2.Show()
        ElseIf TextBox1.Text <> "pass" Then
            MessageBox.Show("You FAIL K :P !")
        End If
    End Sub
End Class
The code is very simple.
It uses Conditional Operators (If and else) to detect if the correct password is entered.
So IF you enter "pass" into textbox1 the program will display form 2
if you enter anything ELSE then it will show an error.

Advanced Code:
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "" Or TextBox2.Text = "" Then
            MessageBox.Show("You didn't fill in the fields!")
        End If
        If TextBox1.Text = "admin" Or TextBox1.Text = "me" And TextBox2.Text = "pass" Or TextBox2.Text = "u" Then
            Me.Hide()
        ElseIf MessageBox.Show("You entered the wrong username or password !") Then
        End If
    End Sub
This has a Username and a Password Field. It also has 2 users instead of one

 

Attachments

  • Simple Pass.exe
    199.5 KB · Views: 5

Blue

Is Stylin' On You
senior
member
Joined
Mar 18, 2011
Posts
2,485
Reaction score
1,391
Points
147
What language is this ?C# or VB?
 

abhiz

Member
member
Joined
Aug 10, 2011
Posts
16
Reaction score
0
Points
0
thank you very much it is a nice code
 

TheSyndicate

0110100001101001
veteran
senior
member
Joined
May 22, 2011
Posts
2,287
Reaction score
1,345
Points
151
Age
29
Location
Texas


This is a simple piece of code to protect your programs
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "pass" Then
            Form2.Show()
        ElseIf TextBox1.Text <> "pass" Then
            MessageBox.Show("You FAIL K :P !")
        End If
    End Sub
End Class

Advanced Code:
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "" Or TextBox2.Text = "" Then
            MessageBox.Show("You didn't fill in the fields!")
        End If
        If TextBox1.Text = "admin" Or TextBox1.Text = "me" And TextBox2.Text = "pass" Or TextBox2.Text = "u" Then
            Me.Hide()
        ElseIf MessageBox.Show("You entered the wrong username or password !") Then
        End If
    End Sub


Make sure you're obfuscating your code because that's really, really easy to bypass.
 

ReX

Senior
Original poster
senior
member
Joined
Apr 23, 2011
Posts
3,200
Reaction score
793
Points
113
Age
53
Thanks everyone


---
- Sent from my iPhone using Tapatalk
 

ReX

Senior
Original poster
senior
member
Joined
Apr 23, 2011
Posts
3,200
Reaction score
793
Points
113
Age
53
bumpidy bump
 

SeXy JinXeR

k
veteran
old school
senior
Life Saver
coldschool
member
Joined
Mar 4, 2011
Posts
10,322
Reaction score
5,746
Points
402
Well what i do is make my bot connect to my mysql database on my webserver and check users that way. Because databases and users within a program can be easily bypassed and spoofed.
 

SeXy JinXeR

k
veteran
old school
senior
Life Saver
coldschool
member
Joined
Mar 4, 2011
Posts
10,322
Reaction score
5,746
Points
402
HWID, serial, ect can be bypassed easily.

Well if u know what ur doing basically anything can be bypassed..... accept my schools firewalls. Luckily i have the admin password :)
 
Status
Not open for further replies.