Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? 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 S> LEOPETS ACCOUNT. xD
Today 02:10 AM
by *God
Last post by plooshiepoo
Today 07:13 AM
4 Replies, 14 Views
Go to first new post What button do you think...
Today 04:45 AM
by Googlrr
Last post by Googlrr
Today 07:12 AM
4 Replies, 15 Views
Go to first new post Post Your Picture
10-09-2006 11:34 PM
by Ryan
Last post by Premia
Today 07:09 AM
8,019 Replies, 111,779 Views
Go to first new post Jtdusk
10-09-2008 01:32 PM
by Cyrus
Last post by Cyrus
Today 07:08 AM
28 Replies, 319 Views
Go to first new post Contest Discussion Thread
04-09-2008 06:40 PM
Last post by sidespin
Today 07:05 AM
175 Replies, 785 Views
Reply
 
LinkBack Thread Tools Display Modes

 [AU3] How to make a Auth
Old 07-20-2008, 02:31 PM   #1 (permalink)
Site Programmer

Male Check is offline
 
Join Date: Feb 2008
Age: 18
Posts: 1,640
iTrader: 6 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 8
[AU3] How to make a Auth

Oh hay guise, today I will teach you how to make a simple autoit auth, an auth is also called an Authentication Program, these are used to make it so only certain people are allowed to access your programs.
But before we start I suggest you get Autoit V3. But you must download these files in the exact order listed.
http://www.autoitscript.com/cgi-bin/...t-v3-setup.exe
http://www.autoitscript.com/cgi-bin/...TE4AutoIt3.exe
http://www.autoitscript.com/cgi-bin/...rapperInst.exe

Once you completely installed these files, go to your start menu and to Programs and look for AutoIt v3 then go to Scite> Scite.

Now though you havent entered anything, save the file as GGAuth.au3
Note: You must save it as .au3 file, otherwise will not work.

Now go to tools and click Koda(FormDesigner). If you don't see that please PM me. Now you should see tools to make a form, try your best to make the form look like this:



If you made this, you made a GUI, or a Form, but it still does not work until you add the code. Once you made this GUI look for this button:

This is right below options at the top.
Click this button then a popup should come up showing you the code and click Insert into scite.

Now close the Koda form designer and now to work on the functions.

Code:
$GamingGutter = GUICreate("Gaming Gutter Auth", 220, 117, 193, 125, -1)
$Label1 = GUICtrlCreateLabel("Username", 16, 16, 52, 17)
$Label2 = GUICtrlCreateLabel("Password", 16, 48, 50, 17)
$Input1 = GUICtrlCreateInput("", 80, 16, 121, 21)
$Input2 = GUICtrlCreateInput("", 80, 48, 121, 21)
$Button1 = GUICtrlCreateButton("Submit", 112, 80, 97, 33, 0)
GUISetState(@SW_SHOW)
This Code is what you should have, But as long as your GUI looks the screenie then you're fine. This code is the code of your GUI.

Now for the headers, the headers are what you need in order to make the functions.
You can get the headers with this Firefox program.
https://addons.mozilla.org/en-US/firefox/addon/3829
Once you install it go to tools for Mozilla Firefox and Open Live HTTP Headers. Now open a new tab, and Log out of GG in the new tab, now once it's open press clear, and now log back in GG with Capture checked, go all the way at the top , and this Should help you.
http://img187.imageshack.us/img187/1...31a1tmpdl8.jpg
Thanks to Doc he supplied this link for me when I was learning and making my Tiny URL'r.
Look at the headers to help you.
You would come up with this, ( well there is a simpler way I will supply in my next AutoIt guide. )
Code:
Func GGLogin($oUsername, $oPassword)
    WrapperG("POST", "http://www.gaminggutter.com/forum/login.php?do=login", "vb_login_username=" & $oUsername & "&cookieuser=1&vb_login_password=" & $oPassword & "&s=&do=login", "http://www.gaminggutter.com")
    $strHTML = WrapperG("GET", "http://www.gaminggutter.com/forum/", "", "http://www.gaminggutter.com/forum/")
This is the Wrapper it tells AutoIt what type of program you're trying to make.
$ = Is something used to tell what's a string.
& = just separates something in the same string.
() = Is usually used to tell what you want the string to do.
Now look at the screenie to help you where I got this code from.

Now this is an extra feature that makes it so only certain users of GG can access this.

Code:
strHTML = WrapperG("GET", "http://www.gaminggutter.com/forum/", "", "http://www.gaminggutter.com/forum/")
    $chk = __StringBetween($strHTML, '<a href="http://www.gaminggutter.com/forum/f5/">', '</a>')
    If $chk = "<strong>The Underground</strong>" Then
        Return "Success"
It basically tells autoit to go to Gaming Gutter - MapleStory, Neopets, Battlefield, GaiaOnline : Games : Guides : Downloads and look for The Underground if it can find "The underground" then it it will be a login success.
You can also do the same thing by changing the URL "http://www.gaminggutter.com/forum/f5/" to The link of the section we have to be able to see in order to access the program.
And where it says The Underground You can set it to if you see VIP put VIP .
Then change the link to whatever the link to the VIP section is.

Now for the String Between and the $oHttp and WrapperG funcs.
Code:
Func WrapperG($oMethod, $oURL, $oData, $oReferer)
    $oHTTP.Open($oMethod, $oURL, False)
    $oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.14")
    $oHTTP.SetRequestHeader("Referer", $oReferer)
    If $oMethod = "POST" Then $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
    $oHTTP.Send($oData)
    Return $oHTTP.ResponseText
EndFunc
If you look at the picture again you should be able to see where I got this from.

Code:
Func __StringBetween($s, $from, $to)
    $x = StringInStr($s, $from) + StringLen($from)
    $y = StringInStr(StringTrimLeft($s, $x), $to)
    Return StringMid($s, $x, $y)
EndFunc
This is the string Between it's the string that basically pulls the strings together.

FINALLY, to pull the GUI and the code together.
Where it says
Code:
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Or whatever is similar to that replace it with this:
Code:
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            If GUICtrlRead($Input1, $Input2) = "" Then
                MsgBox(0, "Error", "Please enter your username and password.")
            Else
                $auth = GGLogin(GUICtrlRead($Input1), GUICtrlRead($Input2))
                If $auth = "Success" Then
                    MsgBox(0, "GOOD!", "Logged in")
                ElseIf $auth = "Failed" Then
                    MsgBox(0, "BAD!", "Log in Failed")
                ElseIf $auth = "Banned" Then
                    MsgBox(0, "Banned", "You've been Banned for not giving Checkers Rep.")
                    Exit
                EndIf
            EndIf

    EndSwitch
WEnd
The things in bold are optional.
If you wanted to exclude a person from accessing the program instead of
Code:
If GUICtrlRead($Input1, $Input2) = "" Then
                MsgBox(0, "Error", "Please enter your username and password.")
put
Code:
If GUICtrlRead($Input1) = "USER YOU HATE HERE" Then
                MsgBox(0, "BAD U", "I dislike you. ")
K NAO YOU MADE YOUR FIRST AUTOIT PROGRAM.
The full source code is in the Source Code section.

CREDITS: G3 FOR SHOWING ME THE NEW GG CODE.
DOC FOR SHOWING ME AUTOIT PERIOD.
__________________

I won the internet.

  Reply With Quote

 
Old 07-20-2008, 02:35 PM   #2 (permalink)

Male |G3| is online now

 
|G3|'s Avatar
 
Join Date: Feb 2007
Posts: 3,413
iTrader: 7 / 100%
|G3| Total Celebrity|G3| Total Celebrity|G3| Total Celebrity|G3| Total Celebrity|G3| Total Celebrity|G3| Total Celebrity
Rep Power: 19
Well really it's not good that you give away the auth because they will know how to crack it, also that's my wrapper too ;3

Good job explaining and stuff lulz
__________________
G3nation
Surf-G3 | ProxyG3 | Glype
GAIA FLP GENERATOR: http://gen.gaiaflps.com/index.php


Thanks Hatz ;3

  Reply With Quote

 
Old 07-20-2008, 02:37 PM   #3 (permalink)
Site Programmer

Male Check is offline
 
Join Date: Feb 2008
Age: 18
Posts: 1,640
iTrader: 6 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 8
Quote:
Originally Posted by |G3| View Post
Well really it's not good that you give away the auth because they will know how to crack it, also that's my wrapper too ;3

Good job explaining and stuff lulz
I didn't really explain it enough for them to learn how to crack it.
Lulz and thanks.
__________________

I won the internet.

  Reply With Quote

 
Old 07-20-2008, 02:52 PM   #4 (permalink)
Super Moderator

Male Tyler is online now
 
Tyler's Avatar
 
Join Date: Dec 2006
Location: New Hampshire
Age: 16
Posts: 3,997
iTrader: 7 / 100%
Tyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of Awesomeness
Rep Power: 15
I believe 90% of GG is pretty dumb with this programming shit.
So I highly doubt anyone would bother cracking it o-o
__________________

  Reply With Quote

 
Old 07-20-2008, 03:05 PM   #5 (permalink)
Site Programmer

Male Check is offline
 
Join Date: Feb 2008
Age: 18
Posts: 1,640
iTrader: 6 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 8
Quote:
Originally Posted by Tyler View Post
I believe 90% of GG is pretty dumb with this programming shit.
So I highly doubt anyone would bother cracking it o-o
Nah, most of GG is too familiar with VB, so they might know how to crack VB but cracking AutoIt auths has a whole different procedure really. A bit simple but will give you a hell of a fight.
__________________

I won the internet.

  Reply With Quote

 
Old 08-10-2008, 12:21 AM   #6 (permalink)
Site Programmer

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 16
Posts: 894
iTrader: 4 / 100%
Violent_J Is Popular
Rep Power: 8
lol someone compile this and let me use it for I am too lazy :P
__________________



Current rep: 95
  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 07:14 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

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