Go Back   Gaming Gutter > Just Chat > Guides & Tutorials


Guides & Tutorials - Your gaming walk-thrus and tutorials.

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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post How ridiculous is this?
Yesterday 03:47 PM
Last post by txcasey
Today 03:09 PM
17 Replies, 100 Views
Go to first new post QS: 1,000,000 NEOPOINTS!...
Today 09:50 AM
by Minted
Last post by bomb
Today 03:09 PM
1 Replies, 9 Views
Go to first new post Religion.
07-30-2008 02:36 PM
Last post by ORLYBISH
Today 03:08 PM
56 Replies, 566 Views
Go to first new post Jtdusk
10-09-2008 01:32 PM
by Cyrus
Last post by Flufeeh
Today 03:08 PM
62 Replies, 387 Views
Go to first new post learning noob vs. Kyo:...
Yesterday 05:26 PM
Last post by Howl
Today 03:08 PM
133 Replies, 681 Views
Reply
 
LinkBack Thread Tools Display Modes

 Basic Gaia Posting Bot
Old 03-26-2008, 02:33 PM   #1 (permalink)
In Purgatory

Male Doctor is offline
 
Join Date: Dec 2006
Location: Australia
Age: 17
Posts: 1,480
iTrader: 0 / 0%
Doctor Is a Party CaptainDoctor Is a Party Captain
Rep Power: 0
Basic Gaia Posting Bot

Download & Install AutoIt Here

The code is below, Heavily commented. Should have all the information you need. If you need any further help, Post here, or PM me.

Start > Program Files > AutoIt > SciTE
Copy below, Paste into SciTE
File > Save As > Bot.au3
ALWAYS remember to save your script as au3
or else you wont be able to run it.

Code:
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1") ;Creates a winhttprequest object, set to the $oHTTP variable.
$oUsername = "" 								 ;Change this to your username
$oPassword = "" 								 ;Change this to your password
$oThreadID = "31477931" 						 ;Change this to the thread to post in
$oMessage = "Bump" 								 ;Change this to the "Bump" message
$i = 0											 ;Ignore this, Until youve read further

$oSauce = HTTPRequest($oHTTP, "POST", "http://login.gaiaonline.com/gaia/login.php", "username=" & $oUsername & "&password=" & $oPassword) ;This makes a HTTPRequest, used to Login, Returns the page source under the variable $oSauce
If StringInStr($oSauce, "blocked") Then																									  ;Thisll be called if the string "blocked" is in $oSauce, Meaning the accounts banned.
	ConsoleWrite("+> Account " & $oUsername & " is banned." & @CRLF)																	  ;If banned, Then consolewrite
ElseIf StringInStr($oSauce, "invalid") Then																								  ;Same for invalid user/pass
	ConsoleWrite("+> Wrong username/password entered." & @CRLF)																			  ;Same for invalid user/pass
Else																																	  ;"Else", Meaning, if invalid, or blocked ISNT in $oSauce, then itll do whatever is in the "Else" section.
	ConsoleWrite("+> Logged in successfully." & @CRLF)																					  ;ConsoleWrite a successful login
	While 1																																  ;Start a While...WEnd loop. While 1, Meaning, While 1 = 1, Meaning, Infinite loop, Because 1 will always be 1
		$i += 1																															  ;Remember the $i = 0 at the start? Basically, this line $i += 1, add 1 to that $i. So, everytime this is called, itll add to $i
		$oSauce = HTTPRequest($oHTTP, "GET", "http://www.gaiaonline.com/forum/compose/entry/new/" & $oThreadID)							  ;Thisll make a GET request, to get the page source, to strip the nonce from
		$oNonce = __StringBetween($oSauce, '<input type="hidden" name="nonce" value="', '" />')											  ;Thisll give us the nonce, Needed to make a post
		HTTPRequest($oHTTP, "POST", "http://www.gaiaonline.com/forum/compose/entry/new/" & $oThreadID, "message=" & $oMessage & "&nonce=" & $oNonce & "&action_submit=submit") ;Thisll send a POST request, with our message & nonce. This is the part that "Posts Bump" in the thread
		ConsoleWrite("+> Posted " & $i & " time(s)." & @CRLF)																			  ;Thisll just consolewrite telling us its posted X times
		For $z = 1 To 60																												  ;For...Next loop, $z = 1 To 60, Meaning, whatever is between the For...Next, will loop 60 times
			ConsoleWrite("+> Sleeping " & $z & " seconds." & @CRLF)																		  ;ConsoleWrite every second with how long its waited. After 60 loops, itll end
			Sleep(1000)																													  ;"Waits" 1 second before continuing
		Next																															  ;Closing off the For...Next loop
	WEnd																																  ;Closing off the While...WEnd loop
EndIf																																	  ;Closing off the If...Then statement

; The functions below this line, You should look at, But I wont explain what it does. If youve understood the above, you should be able to understand whats below.
; If not. Practice practice practice. Lol@3x practice. Anyway. HAVEFUN<33

Func HTTPRequest($oHTTP, $oMethod, $oURL, $oData = "")
	$oHTTP.Open($oMethod, $oURL, False)
	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
Also, It will be alot easier to read it, if your reading it through SciTE, due to the syntax highlighting.
[code] tags just dont cut it, And they break my Tabs. D<< Loloololo.
  Reply With Quote

 
Old 03-27-2008, 05:52 AM   #2 (permalink)
Site Programmer

Male Check is online now
 
Join Date: Feb 2008
Age: 18
Posts: 1,641
iTrader: 6 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 8
Hmm Useful.
+Rep
__________________

I won the internet.

  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 03:10 PM.


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

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