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 Free SS list
11-16-2008 09:37 AM
Last post by Toffie
Today 06:32 PM
7 Replies, 218 Views
Go to first new post I love you.
Yesterday 12:20 AM
Last post by Snakebite
Today 06:23 PM
29 Replies, 112 Views
Go to first new post What are you currently...
09-12-2008 04:16 PM
by Ocean
Last post by Snakebite
Today 06:22 PM
216 Replies, 1,378 Views
Go to first new post World of Warcraft -...
Today 06:17 PM
by blurx
Last post by blurx
Today 06:17 PM
0 Replies, 7 Views
Go to first new post UC Darigan & Grey Kougra...
11-08-2008 03:17 PM
by Sticky
Last post by Sticky
Today 06:12 PM
18 Replies, 172 Views
Reply
 
LinkBack Thread Tools Display Modes

 Gaming Gutter Underground Auth
Old 07-20-2008, 03:33 PM   #1 (permalink)
Cogito, ergo sum.

Male Check is online now
 
Join Date: Feb 2008
Posts: 1,820
GPoints: 1,004
iTrader: 7 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 9
Gaming Gutter Underground Auth

[AU3] How to make a Auth
Enjoy.
Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$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)
#EndRegion ### END Koda GUI section ###


$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

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/")
    $chk = __StringBetween($strHTML, '<a href="http://www.gaminggutter.com/forum/f5/">', '</a>')
    If $chk = "<strong>The Underground</strong>" Then
        Return "Success"
    ElseIf StringInStr($strHTML, "You have been banned") Then
        Return "Banned"
    Else
        Return "Failed"
    EndIf
EndFunc   
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  

Func __StringBetween($s, $from, $to)
    $x = StringInStr($s, $from) + StringLen($from)
    $y = StringInStr(StringTrimLeft($s, $x), $to)
    Return StringMid($s, $x, $y)
EndFunc
__________________

Neutral Evil

  Reply With Quote

 
Old 07-23-2008, 11:56 AM   #2 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 504
GPoints: 428
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
thanks for this. you want me to make a vb code for this?
__________________



  Reply With Quote

 
Old 07-23-2008, 12:08 PM   #3 (permalink)
Cogito, ergo sum.

Male Check is online now
 
Join Date: Feb 2008
Posts: 1,820
GPoints: 1,004
iTrader: 7 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 9
Quote:
Originally Posted by eckkotc203 View Post
thanks for this. you want me to make a vb code for this?
Sure, be sure to release it and show how you got it or made it though.
I'll be sure to +rep.
__________________

Neutral Evil

  Reply With Quote

 
Old 07-23-2008, 08:06 PM   #4 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 504
GPoints: 428
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
anyone wanna the auth for me? i had too many failed attempts and its not letting me in right now.
ill post source if everyone thinks its good enough.

if mods could - make test accounts to use it on if you dont want to use your real account.

ill edit this post with the link and/or attachment in a minute

http://hostfile.org/testGGauth.zip
link it attachment doesnt work

EDIT - Cant add attachment. o.O
__________________



  Reply With Quote

 
Old 07-23-2008, 08:08 PM   #5 (permalink)
Site Programmer

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 16
Posts: 933
GPoints: 469
iTrader: 5 / 100%
Violent_J Is Amongst RoyaltyViolent_J Is Amongst Royalty
Rep Power: 9
DOn't worry, if they were suspicious then they could easily olldbg and wireshark the fuck out of it xD

I will test it out for you

Post your authorization project files too?
__________________



Current rep: 110
  Reply With Quote

 
Old 07-23-2008, 08:14 PM   #6 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 504
GPoints: 428
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
ill post the Auth project after i get an ok for it. i need to tweek it up a bit.
is it for only UG members? or all?
and right now the project that its in has like 20 other forms. i keep all my work in one place.
i just save then remove forms/modules that arent needed.
__________________



  Reply With Quote

 
Old 07-23-2008, 08:20 PM   #7 (permalink)
Cogito, ergo sum.

Male Check is online now
 
Join Date: Feb 2008
Posts: 1,820
GPoints: 1,004
iTrader: 7 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 9
Quote:
Originally Posted by eckkotc203 View Post
ill post the Auth project after i get an ok for it. i need to tweek it up a bit.
is it for only UG members? or all?
and right now the project that its in has like 20 other forms. i keep all my work in one place.
i just save then remove forms/modules that arent needed.
Tested it out, it works.
Now try releasing it with a guide if you want.
__________________

Neutral Evil

  Reply With Quote

 
Old 07-23-2008, 08:22 PM   #8 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 504
GPoints: 428
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
is your code there just for UG members? or for all members?
because the chk variable checks to see if the member is UG right?
__________________



  Reply With Quote

 
Old 07-23-2008, 08:27 PM   #9 (permalink)
Cogito, ergo sum.

Male Check is online now
 
Join Date: Feb 2008
Posts: 1,820
GPoints: 1,004
iTrader: 7 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 9
Quote:
Originally Posted by eckkotc203 View Post
is your code there just for UG members? or for all members?
because the chk variable checks to see if the member is UG right?
Yes the chk variable checks to see if the member is UG.
__________________

Neutral Evil

  Reply With Quote

 
Old 07-23-2008, 08:42 PM   #10 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 504
GPoints: 428
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
heres a more revised and understandable version
explains whats its authing.

http://hostfile.org/testGGauth1.1.zip
__________________



  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 06:38 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.15536904 seconds (100.00% PHP - 0% MySQL) with 19 queries