Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post NextGenWarrior = scammer
Yesterday 10:29 PM
by Peanuts
Last post by Jakious
Today 10:08 PM
13 Replies, 121 Views
Go to first new post Do you think smoking is...
08-16-2008 07:09 PM
Last post by kemoomek
Today 10:07 PM
249 Replies, 2,602 Views
Go to first new post People that use...
10-26-2008 01:50 PM
by kiasyn
Last post by Jakious
Today 10:05 PM
23 Replies, 664 Views
Go to first new post Plastic Surgery Hell
Today 08:02 PM
by Li-Shun
Last post by .BloodyNightmare
Today 10:04 PM
10 Replies, 31 Views
Go to first new post Benita just got her...
Today 04:43 PM
Last post by Aethean
Today 10:00 PM
19 Replies, 107 Views
Reply
 
LinkBack Thread Tools Display Modes

 SUPERAdvanced NeoLogin
Old 12-21-2007, 02:26 AM   #1 (permalink)
Full Member

PhearAlmighty is offline
 
Join Date: Nov 2007
Posts: 21
GPoints: 74
iTrader: 0 / 0%
PhearAlmighty Is gaining popularity
Rep Power: 0
SUPERAdvanced NeoLogin

All made by me.

Code:
Dim strHTML As String
Private Sub cmdLogin_Click()
'disables login button
cmdLogin.Enabled = False
'locks user and pass
txtUser.Locked = True
txtPass.Locked = True
    'checks for valid user and pass
    If Len(txtUser.Text) < 3 Then lblStatus.Caption = "Invalid User": Call Unlocker: Exit Sub
    If Len(txtPass.Text) < 3 Then lblStatus.Caption = "Invalid Pass": Call Unlocker: Exit Sub
        'visit neopets main page
        strHTML = wrapper.GetWrapper("http://www.neopets.com/", "")
        lblStatus.Caption = "Visiting Neopets Main Page"
        'visits neopets login page
        strHTML = wrapper.GetWrapper("http://www.neopets.com/loginpage.phtml", "http://www.neopets.com/")
        lblStatus.Caption = "Visiting Neopets Login Page"
        'posting user
        strHTML = wrapper.PostWrapper("http://www.neopets.com/hi.phtml", "destination=%2Fpetcentral.phtml&username=" & txtUser.Text, "http://www.neopets.com/loginpage.phtml")
        lblStatus.Caption = "Posting User"
            'checking for validity of user
                If InStr(1, strHTML, "Sorry, we did not find") <> 0 Then
                    'could not find username
                    lblStatus.Caption = "Did Not Find Username"
                    Call Unlocker
                    Exit Sub
                ElseIf InStr(1, strHTML, "<td><b>Your birthday</b></td>") <> 0 Then
                    'birthday needed
                    lblStatus.Caption = "Needing Birthday Entry"
                    Call Unlocker
                    Exit Sub
                ElseIf InStr(1, strHTML, "Sorry, you have tried too") <> 0 Then
                    'tried too many times
                    lblStatus.Caption = "You Have Tried Too Many Times"
                    Call Unlocker
                    Exit Sub
                End If
        'posting user and pass
        strHTML = wrapper.PostWrapper("http://www.neopets.com/login.phtml", "username=" & txtUser.Text & "&password=" & txtPass.Text & "&destination=%2Fpetcentral.phtml", "http://www.neopets.com/hi.phtml")
            'checking results
            If InStr(1, strHTML, "Your site username matches your email username.") <> 0 Then
                'change email
                lblStatus.Caption = "Site Username matches Email - Change Soon!"
                Call ParseAccDetails
            ElseIf InStr(1, strHTML, "STOP! Your password's not secure enough!") <> 0 Then
                'not secure enough password
                lblStatus.Caption = "Your Password's not Secure Enough - Change Soon!"
                Call ParseAccDetails
            ElseIf InStr(1, strHTML, "username/password") <> 0 Then
                'bad password
                lblStatus.Caption = "Bad Password"
                Call Unlocker
                Exit Sub
            ElseIf InStr(1, strHTML, "petcentral.phtml") <> 0 Then
                'successful login
                lblStatus.Caption = "Logged In!"
                Call ParseAccDetails
            ElseIf InStr(1, strHTML, "This account has") <> 0 Then
                'FROZEN
                lblStatus.Caption = "Frozen Account"
                Call Unlocker
                Exit Sub
            End If
End Sub

Private Sub cmdUpdate_Click()
Call ParseAccDetails
End Sub

Private Sub txtPass_Change()
txtPass.PasswordChar = "*"
End Sub
Function Unlocker()
cmdLogin.Enabled = True
txtUser.Locked = False
txtPass.Locked = False
End Function
Function ParseAccDetails()
Dim strUser, strPet, strNP As String
    'visit petcentral
    strHTML = wrapper.GetWrapper("http://www.neopets.com/petcentral.phtml", wrapper.LastPage)
        'get values for the 3 strings
        strUser = iBetween(strHTML, "/userlookup.phtml?user=", Chr(34))
        strPet = iBetween(strHTML, "/quickref.phtml" & Chr(34) & "><b>", "</b></a>")
        strNP = iBetween(strHTML, "/objects.phtml?type=inventory" & Chr(34) & ">", "</a>")
            
            'update labels
            lblUser.Caption = strUser
            lblPet.Caption = strPet
            lblNP.Caption = strNP
End Function
Credits to Cataliste for:
Tried to Many Times
Site Username Matches Email
Your Password's Not Secure Enough

-Andrew
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 10:10 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.09292293 seconds (100.00% PHP - 0% MySQL) with 19 queries