
Originally Posted by
wesman2232
sorry, but I don't care what you say, I'm a person who has to see it to believe it.
The only section it's been posted in is in the "Gunz Level 2" board of GzP; requires 200 posts to enter.
Thread spam for GzP:
Code:
#!/usr/bin/python
from random import random
from random import randint
from socket import *
from sys import exit
from thread import start_new_thread
from time import sleep
bbsessionhash = "MD5 cookie hash here"
def gconnect ( ):
try:
s = socket ( AF_INET, SOCK_STREAM ) # Declare new socket
s.connect ( ( "www.gamerzplanet.net", 80 ) ) # Connect to GzP on port 80
except:
s = 0 # Failed to connect, declare socket as 0
return s # Return socket
def ggetfields ( ):
s = gconnect ( )
if ( s == 0 ): # If connection fails..
print "Failed to rock!" # ..print an error message
exit ( ) # And exit
gHTTPGET_Headers = "GET /forums/newthread.php?do=newthread&f=283&fcon=1 HTTP/1.1\r\n"
gHTTPGET_Headers += "User-Agent: Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1\r\n"
gHTTPGET_Headers += "Host: www.gamerzplanet.net\r\n"
gHTTPGET_Headers += "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n"
gHTTPGET_Headers += "Accept-Language: en-US,en;q=0.9\r\n"
gHTTPGET_Headers += "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n"
gHTTPGET_Headers += "Accept-Encoding: *;q=0\r\n"
gHTTPGET_Headers += "Cookie: Version=0; bbsessionhash="+bbsessionhash+"; Path=/;\r\n"
gHTTPGET_Headers += "Cookie2: $Version=1\r\n"
gHTTPGET_Headers += "Cache-Control: no-cache\r\n"
gHTTPGET_Headers += "Connection: Keep-Alive, TE\r\n"
gHTTPGET_Headers += "TE: deflate, gzip, chunked, identity, trailers\r\n"
gHTTPGET_Headers += "\r\n"
s.send ( gHTTPGET_Headers )
gHTTPResponse = "" # Declare recv buffer
s.settimeout ( None ) # Set up socket not to have a timeout
gHTTPResponse = s.recv ( 1024 ) # Receive once..
s.settimeout ( 2 ) # ..then set a timeout
while 1:
try:
gHTTPResponse += s.recv ( 1024 ) # Append new data to buffer
except:
break # If no data is received in 2 seconds, end receive loop
if (
gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" )
!= -1 ):
gHTMLInput_securitytoken = "" # Declare buffer for security token
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" ) + 49
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" ) + 100:
gHTMLInput_securitytoken += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get security token - get point failed"
exit ( )
if ( gHTTPResponse.find ( "<input type=\"hidden\" name=\"loggedinuser\" value=\"" )
!= -1 ):
gHTMLInput_u = "" # Declare buffer for loggedinuser field
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"loggedinuser\" value=\"" ) + 37
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"loggedinuser\" value=\"" ) + 44:
gHTMLInput_u += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get user field - get point failed"
exit ( )
if ( gHTTPResponse.find ( "<input type=\"hidden\" name=\"posthash\" value=\"" )
!= -1 ):
gHTMLInput_posthash = "" # Declare buffer for posthash field
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"posthash\" value=\"" ) + 37
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"posthash\" value=\"" ) + 44:
gHTMLInput_posthash += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get posthash field - post thread failed"
exit ( )
if ( gHTTPResponse.find ( "<input type=\"hidden\" name=\"poststarttime\" value=\"" )
!= -1 ):
gHTMLInput_poststarttime = "" # Declare buffer for poststarttime field
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"poststarttime\" value=\"" ) + 37
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"poststarttime\" value=\"" ) + 44:
gHTMLInput_poststarttime += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get posthash field - post thread failed"
exit ( )
gHTMLFields = [ ]
gHTMLFields.append ( gHTMLInput_securitytoken )
gHTMLFields.append ( gHTMLInput_u )
gHTMLFields.append ( gHTMLInput_posthash )
gHTMLFields.append ( gHTMLInput_poststarttime )
return gHTMLFields
def gpost ( gHTMLTxtA_message, gHTMLInput_securitytoken, gHTMLInput_u, gHTMLInput_posthash, gHTMLInput_poststarttime ):
s = gconnect ( )
if ( s == 0 ):
print "Failed to rock!"
exit ( )
gHTTPPOST_Message = "subject=New%20HOLOCMS%20Hamachi%20Frees%20&"
gHTTPPOST_Message += "message="+gHTMLTxtA_message+"&"
gHTTPPOST_Message += "s=&"
gHTTPPOST_Message += "securitytoken="+gHTMLInput_securitytoken+"&"
gHTTPPOST_Message += "f=283&"
gHTTPPOST_Message += "do=postthread&"
gHTTPPOST_Message += "posthash="+gHTMLInput_posthash+"&"
gHTTPPOST_Message += "poststarttime="+gHTMLInput_poststarttime+"&"
gHTTPPOST_Message += "loggedinuser="+gHTMLInput_u+"&"
gHTTPPOST_Message += "sbutton=&"
gHTTPPOST_Message += "preview="
gHTTPPOST_Headers = "POST /forums/newthread.php?do=postthread HTTP/1.1\r\n"
gHTTPPOST_Headers += "User-Agent: Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1\r\n"
gHTTPPOST_Headers += "Host: www.gamerzplanet.net\r\n"
gHTTPPOST_Headers += "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n"
gHTTPPOST_Headers += "Accept-Language: en-US,en;q=0.9\r\n"
gHTTPPOST_Headers += "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n"
gHTTPPOST_Headers += "Accept-Encoding: *;q=0\r\n"
gHTTPPOST_Headers += "Cookie: Version=0; bbsessionhash="+bbsessionhash+"; Path=/;\r\n"
gHTTPPOST_Headers += "Cookie2: $Version=1\r\n"
gHTTPPOST_Headers += "Cache-Control: no-cache\r\n"
gHTTPPOST_Headers += "Connection: Keep-Alive, TE\r\n"
gHTTPPOST_Headers += "TE: deflate, gzip, chunked, identity, trailers\r\n"
gHTTPPOST_Headers += "Content-Length: "+ str ( len ( gHTTPPOST_Message ) ) +"\r\n"
gHTTPPOST_Headers += "Content-Type: application/x-www-form-urlencoded\r\n"
gHTTPPOST_Headers += "\r\n"
gHTTPPOST_Headers += gHTTPPOST_Message.replace ( " ", "%20" )
s.send ( gHTTPPOST_Headers )
gHTTPResponse = "" # Declare recv buffer
s.settimeout ( None ) # Set up socket not to have a timeout
gHTTPResponse = s.recv ( 1024 ) # Receive once..
s.settimeout ( 2 ) # ..then set a timeout
while 1:
try:
gHTTPResponse += s.recv ( 1024 ) # Append new data to buffer
except:
break # If no data is received in 2 seconds, end receive loop
s.close ( )
def gmoney ( ):
rndNumber1 = str ( randint ( 0, 24 ) ) # Wrap a random number as a string
rndNumber2 = str ( randint ( 0, 59 ) ) # Wrap a random number as a string
if int ( rndNumber2 ) < 10:
rndNumber2 += "0"
gHTTPFields = ggetfields ( ) # Grab the security token and user field
gpost ( "Looks really good..gotta go, it's "+rndNumber1+":"+rndNumber2+"", gHTTPFields [ 0 ], gHTTPFields [ 1 ], gHTTPFields [ 2 ], gHTTPFields [ 3 ] )
print "Posted ",
while 1:
start_new_thread ( gmoney, ( ) ) # Launch thread for posting comments on profile
sleep ( 5 ) # Delay, to prevent GzP flood trigger being hit
Visitor message spam, giving you points:
Code:
#!/usr/bin/python
from random import random
from socket import *
from sys import exit
from thread import start_new_thread
from time import sleep
bbsessionhash = ""MD5 cookie hash here""
gHTTPURL_profileName = "Name of account here"
def gconnect ( ):
try:
s = socket ( AF_INET, SOCK_STREAM ) # Declare new socket
s.connect ( ( "www.gamerzplanet.net", 80 ) ) # Connect to GzP on port 80
except:
s = 0 # Failed to connect, declare socket as 0
return s # Return socket
def ggetfields ( ):
s = gconnect ( )
if ( s == 0 ): # If connection fails..
print "Failed to rock!" # ..print an error message
exit ( ) # And exit
gHTTPGET_Headers = "GET /forums/members/"+gHTTPURL_profileName+".html HTTP/1.1\r\n"
gHTTPGET_Headers += "User-Agent: Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1\r\n"
gHTTPGET_Headers += "Host: www.gamerzplanet.net\r\n"
gHTTPGET_Headers += "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n"
gHTTPGET_Headers += "Accept-Language: en-US,en;q=0.9\r\n"
gHTTPGET_Headers += "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n"
gHTTPGET_Headers += "Accept-Encoding: *;q=0\r\n"
gHTTPGET_Headers += "Cookie: Version=0; bbsessionhash="+bbsessionhash+"; Path=/;\r\n"
gHTTPGET_Headers += "Cookie2: $Version=1\r\n"
gHTTPGET_Headers += "Cache-Control: no-cache\r\n"
gHTTPGET_Headers += "Connection: Keep-Alive, TE\r\n"
gHTTPGET_Headers += "TE: deflate, gzip, chunked, identity, trailers\r\n"
gHTTPGET_Headers += "\r\n"
s.send ( gHTTPGET_Headers )
gHTTPResponse = "" # Declare recv buffer
s.settimeout ( None ) # Set up socket not to have a timeout
gHTTPResponse = s.recv ( 1024 ) # Receive once..
s.settimeout ( 2 ) # ..then set a timeout
while 1:
try:
gHTTPResponse += s.recv ( 1024 ) # Append new data to buffer
except:
break # If no data is received in 2 seconds, end receive loop
if (
gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" )
!= -1 ):
gHTMLInput_securitytoken = "" # Declare buffer for security token
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" ) + 49
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"securitytoken\" value=\"" ) + 100:
gHTMLInput_securitytoken += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get security token - get point failed"
exit ( )
if ( gHTTPResponse.find ( "<input type=\"hidden\" name=\"u\" value=\"" )
!= -1 ):
gHTMLInput_u = "" # Declare buffer for loggedinuser field
i = gHTTPResponse.find ( "<input type=\"hidden\" name=\"u\" value=\"" ) + 37
while i < gHTTPResponse.find ( "<input type=\"hidden\" name=\"u\" value=\"" ) + 44:
gHTMLInput_u += gHTTPResponse [ i ]
i += 1
else:
print "Unable to get user field - get point failed"
exit ( )
gHTMLFields = [ ]
gHTMLFields.append ( gHTMLInput_securitytoken )
gHTMLFields.append ( gHTMLInput_u )
return gHTMLFields
def gpost ( gHTMLTxtA_message, gHTMLInput_securitytoken, gHTMLInput_u ):
s = gconnect ( )
if ( s == 0 ):
print "Failed to rock!"
exit ( )
gHTTPPOST_Message = "message="+gHTMLTxtA_message+"&"
gHTTPPOST_Message += "securitytoken="+gHTMLInput_securitytoken+"&"
gHTTPPOST_Message += "s=&"
gHTTPPOST_Message += "wysiwyg=0&"
gHTTPPOST_Message += "styleid=0&"
gHTTPPOST_Message += "fromquickcomment=1&"
gHTTPPOST_Message += "u="+gHTMLInput_u+"&"
gHTTPPOST_Message += "u2=&"
gHTTPPOST_Message += "loggedinuser="+gHTMLInput_u+"&"
gHTTPPOST_Message += "do=message&"
gHTTPPOST_Message += "sbutton=Post+Message&"
gHTTPPOST_Message += "parseurl=1&"
gHTTPPOST_Message += "lastcomment=1243555553"
gHTTPPOST_Headers = "POST /forums/visitormessage.php?do=message HTTP/1.1\r\n"
gHTTPPOST_Headers += "User-Agent: Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1\r\n"
gHTTPPOST_Headers += "Host: www.gamerzplanet.net\r\n"
gHTTPPOST_Headers += "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\n"
gHTTPPOST_Headers += "Accept-Language: en-US,en;q=0.9\r\n"
gHTTPPOST_Headers += "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n"
gHTTPPOST_Headers += "Accept-Encoding: *;q=0\r\n"
gHTTPPOST_Headers += "Cookie: Version=0; bbsessionhash="+bbsessionhash+"; Path=/;\r\n"
gHTTPPOST_Headers += "Cookie2: $Version=1\r\n"
gHTTPPOST_Headers += "Cache-Control: no-cache\r\n"
gHTTPPOST_Headers += "Connection: Keep-Alive, TE\r\n"
gHTTPPOST_Headers += "TE: deflate, gzip, chunked, identity, trailers\r\n"
gHTTPPOST_Headers += "Content-Length: "+ str ( len ( gHTTPPOST_Message ) ) +"\r\n"
gHTTPPOST_Headers += "Content-Type: application/x-www-form-urlencoded\r\n"
gHTTPPOST_Headers += "\r\n"
gHTTPPOST_Headers += gHTTPPOST_Message.replace ( " ", "%20" )
s.send ( gHTTPPOST_Headers )
gHTTPResponse = "" # Declare recv buffer
s.settimeout ( None ) # Set up socket not to have a timeout
gHTTPResponse = s.recv ( 1024 ) # Receive once..
s.settimeout ( 2 ) # ..then set a timeout
while 1:
try:
gHTTPResponse += s.recv ( 1024 ) # Append new data to buffer
except:
break # If no data is received in 2 seconds, end receive loop
s.close ( )
def gmoney ( ):
rndNumber1 = str ( int ( random ( ) * 10 ) ) # Wrap a random number as a string
rndNumber2 = str ( int ( random ( ) * 10 ) ) # Wrap a random number as a string
gHTTPFields = ggetfields ( ) # Grab the security token and user field
gpost ( "Let there be ROCK! - "+rndNumber1+""+rndNumber2+"", gHTTPFields [ 0 ], gHTTPFields [ 1 ] )
print "Posted ",
while 1:
start_new_thread ( gmoney, ( ) ) # Launch thread for posting comments on profile
sleep ( 5 ) # Delay, to prevent GzP flood trigger being hit
Run visitor message spammer until you have around 8k points, purchase the Bypass Post Spam item in the vbPlaza shop, then enjoy flooding your way to 200 posts in less than 20 minutes. Otherwise, it may take up to 2 hours, without the 8000 points.
Enjoy?