I'M so sick of gaia's
login auth , not even 1 auth of the 8 that i tried worked
moteDisgust:
moteSad:
moteHmmm:
moteBeast:
moteSerious:
moteBawww:
moteWaitWhat:
moteDisgust:
moteSad:
moteHmmm:
moteBeast:
moteSerious:
moteBawww:
moteWaitWhat:
moteDisgust:
moteSad:
moteHmmm:
moteBeast:
moteSerious:
moteBawww:
moteWaitWhat:Flareboy323 wrote:or even Aleena (Doubt he will ever accept)
Flareboy323 wrote:Just saying, Aleena is a girl in case you didn't know lol.
Stapled wrote:No, they disabled that a while ago.
def login(self, Username=None, Password=None):
if(self.LoggedIn == True):
return True
if(Username == None):
if(self.Username == None):
return False
else:
Username = self.Username
else:
self.Username = Username
if(Password == None):
if(self.Password == None):
return False
else:
Password = self.Password
else:
self.Password = Password
print 'Attempting Gaia login..'
params = dict()
Req = self.HTTP.Get(GaiaConstants.URL_LOGIN_DEFAULT)
Req = Req.replace("\t", " ").replace("\n", "").replace(" ", " ").replace('data-value', 'data')
data = self.General.getBetween(Req, '<form action="/auth/login/" id="memberloginForm" method="post">', '</form>')
for x in xrange(0, data.count('input')-1): ### Due to randomization of the order, and a hidden value that has a random name/value,
### I am just building post data automatically. Then modify user/pass later.
complete = self.General.getBetween(data, '<input', '/>')
name = self.General.getBetween(complete, 'name="', '"')
value = self.General.getBetween(complete, 'value="', '"')
params[name] = value
try:
data = data.split(complete)[1]
except:
pass
params['username'] = Username
params['password'] = Password
params['chap'] = ''
params['redirect'] = 'http://www.gaiaonline.com/'
params['signInButton'] = 'Log+In'
Login_Req = self.HTTP.Post(GaiaConstants.URL_LOGIN_DEFAULT, params)
if('View or change your Account Settings' in Login_Req):
self.LoggedIn = True
return True
else:
self.LoggedIn = False
return False
[/1][/name]MattSmith wrote:Here: (my python code I wrote for it, uhmz, you should be able to modify it so it works for jew.)
def login(self, Username=None, Password=None):
if(self.LoggedIn == True):
return True
if(Username == None):
if(self.Username == None):
return False
else:
Username = self.Username
else:
self.Username = Username
if(Password == None):
if(self.Password == None):
return False
else:
Password = self.Password
else:
self.Password = Password
print 'Attempting Gaia login..'
params = dict()
Req = self.HTTP.Get(GaiaConstants.URL_LOGIN_DEFAULT)
Req = Req.replace("\t", " ").replace("\n", "").replace(" ", " ").replace('data-value', 'data')
data = self.General.getBetween(Req, '<form action="/auth/login/" id="memberloginForm" method="post">', '</form>')
for x in xrange(0, data.count('input')-1): ### Due to randomization of the order, and a hidden value that has a random name/value,
### I am just building post data automatically. Then modify user/pass later.
complete = self.General.getBetween(data, '<input', '/>')
name = self.General.getBetween(complete, 'name="', '"')
value = self.General.getBetween(complete, 'value="', '"')
params[name] = value
try:
data = data.split(complete)[1]
except:
pass
params['username'] = Username
params['password'] = Password
params['chap'] = ''
params['redirect'] = 'http://www.gaiaonline.com/'
params['signInButton'] = 'Log+In'
Login_Req = self.HTTP.Post(GaiaConstants.URL_LOGIN_DEFAULT, params)
if('View or change your Account Settings' in Login_Req):
self.LoggedIn = True
return True
else:
self.LoggedIn = False
return False
[/1][/name]
Got any questions, hmu on skype, more likely to respond..
scriptprodigy
Priavte Function login(By Val L as Boolean, ByVal U as String, ByVal P as String, ByVal OtherU as String, ByVal OtherP as String)
if(L = True):
return True
if(OtherU = Nothing)
if(U = Nothing)
return False
else
OtherU = U
else
U = OtherU
if(OtherP = Nothing)
if(P = Nothing)
return False
else
OtherP = P
else
P = OtherP
Label1.Text = "Attempting Gaia login..."
params = dict() 'I have no idea about this part
Req = Wrapper.HTTPGET(Req, "http://www.gaiaonline.com/auth/login")
replace(Req, "\t", " ")
replace(Req, "\n", "")
replace(Req, " ", " ")
replace(Req, "data-value", "data")
data = WrapperBetween(Req, '<form action="/auth/login/" id="memberloginForm" method="post">', '</form>')
for x in xrange(0, data.count('input')-1) 'No idea Sorry ### Due to randomization of the order, and a hidden value that has a random name/value,
### I am just building post data automatically. Then modify user/pass later.
complete = Wrapper.Between(data, '<input', '/>')
name = Wrapper.Between(complete, 'name="', '"')
value = Wrapper.Between(complete, 'value="', '"')
params[name] = value ' Don't know what this means
try
data = data.split(complete)[1]
except
pass
StrPostData = ("username=" & U & "password=" & P & "chap=" & "redirect=" & "signInButton=Log+In")
Login_Req = Wrapper.HTTPPOST("http://www.gaiaonline.com/auth/login", StrPostData)
if('View or change your Account Settings' in Login_Req):
L = True
return True
else:
L = False
return False
[/1][/name]Jah wrote:Thanks I'll try to convert it I guess.
Also, Python seems quiet good a good language, i did download it once but never understood a thing, not even how to compile.
The UnIntelligible wrote:It's an interpreted programming language; you don't compile it.
@MattSmith -- I'm just going to be upfront with you about this: your code looks terrible. I haven't tested it nor do I intend to, but on glance it doesn't look like it would work at all. If it does though, cool, it'd help the guys having problems with the new login out.
@boa man5 -- Your port of his code is incorrect. It wouldn't work in other words. I don't know if you just attempted to port it to VB.NET for the heck of it or if you were actually planning on using it, but it honestly doesn't seem like it.
Flareboy323 wrote:Python is a very simple and versatile language, I enjoy it a lot but only know the most basic of the basics. From a few years of programming in general though, I can understand the code fairly well and it looks pretty nice.
boa man5 wrote:@Topic I guess we'll still ahve to wait.
boa man5 wrote:@UnIntelligible your username really shows when you make idiotic posts like this.
The UnIntelligible wrote:Have* And no, we don't; you do. Just an FYI: I've already created a working login a while ago. It's trivial at the most to do. But of course not by the likes of you.
That didn't make any sense. "Unintelligible" doesn't mean what you think it means—it means incomprehensible or illegible, you idiot.
. Oh well. Go cry to ur horrible mom and play with your "almighty" powers of magic coding.boa man5 wrote:What the fuck is wrong with you? Did your druggy parents drop you on your head when you were a baby and they just decided to not care about you if you get this messed up?
boa man5 wrote:I freakign know what unintelligible means.
boa man5 wrote:It would have to be unintelligent to provide stupididty.
boa man5 wrote:Maybe I was implying that your entire way of life is metaphorically illegible.
boa man5 wrote:IDGAF about your so cool login that like will never be used by someone like me.
boa man5 wrote:I'm already creating my own login.
boa man5 wrote:It is actually fairly easy to make a main page login
boa man5 wrote:Oh well. Go cry to ur horrible mom and play with your "almighty" powers of magic coding.
The UnIntelligible wrote:It's an interpreted programming language; you don't compile it.
@MattSmith -- I'm just going to be upfront with you about this: your code looks terrible. I haven't tested it nor do I intend to, but on glance it doesn't look like it would work at all. If it does though, cool, it'd help the guys having problems with the new login out.
@boa man5 -- Your port of his code is incorrect. It wouldn't work in other words. I don't know if you just attempted to port it to VB.NET for the heck of it or if you were actually planning on using it, but it honestly doesn't seem like it.
It is very simple language. It's meant to be easy to code and powerful at the same time. With the ability to code C++ library's and import them , python is just as powerful as C++. Thus, endless possibilities.Flareboy323 wrote:Python is a very simple and versatile language, I enjoy it a lot but only know the most basic of the basics. From a few years of programming in general though, I can understand the code fairly well and it looks pretty nice.
MattSmith wrote:
It's nice to know you know how to code better than me though! You sure can talk the talk but you can't manage to prove yourself.
MattSmith wrote:It is very simple language. It's meant to be easy to code and powerful at the same time. With the ability to code C++ library's and import them , python is just as powerful as C++. Thus, endless possibilities.
MattSmith wrote:It is converted to byte-code at run-time thus never being truly compiled to machine code. There are utilities for it however.
MattSmith wrote:
@The UnIntelligible - If you can't manage to respect others in the community, I'll have to have you temporarily banned. There is no reason to act as you are.
The UnIntelligible wrote:
MattSmith wrote:You have no reason or right to come in here and disrespect our members. Respect is due here because you clearly are 10, and we are your elders. We all know you know how to use google now. You will be receiving a temp ban due to this incident.
The UnIntelligible wrote:Coming from the retard that just made himself look even more retarded.
No you don't. I'm actually surprised you can even spell the word.
And that's exactly my point. You are unintelligent.
Congratulations on making absolutely no sense. But that's natural for someone trying to hide the fact that they were wrong.
And that's why you're in this thread essentially begging for code, yeah.
Only in your dreams, only in your dreams.
Not for you.
This snippet deserves the metaphorical "most retarded post of the year" award. Your pathetic attempts at insulting are humorous at best.

The UnIntelligible wrote:Lmao.
I'm not banned for the record. I've actually done nothing reprehensible for a ban. But if I do happen to get banned, nothing I've said here changes; it still stands.
MattSmith wrote:Now please stop spamming about how 'good' of a programmer you are. That does not relate to the topic.
The UnIntelligible wrote:And this is why I'm so reluctant to respect the general population of LG. Idiots like this.
Thanks for proving you're upset and clearly have no idea about programming.
Datsik wrote:The Unintelligible's tips were legit. How do you get so butthurt over him correcting you guys? Why not say thanks? I never seen him break any rules, so why would he be banned? No offense Jah, how did you get trainee?
MattSmith wrote:Because he makes an attempt at programming. He likes what he does and we see potential in him. Positive character. Everyone starts somewhere and this is where he will start.
The UnIntelligible wrote:As "flattering" as that may be, that's not a very pragmatic reason to ban someone. Especially considering all the provocative comments made that resulted in my little rebuttal here.
But oh well, LG staff decision I guess lol.
The UnIntelligible wrote:As "flattering" as that may be, that's not a very pragmatic reason to ban someone. Especially considering all the provocative comments made that resulted in my little rebuttal here.
But oh well, LG staff decision I guess lol.

import re
class Gaiaonline():
def __init__(self):
self.http = HTTP()
def login(self, username, password):
try:
httpSource = self.http.get('http://www.gaiaonline.com/auth/login/')
formSource = httpSource[httpSource.find('<form action="/auth/login/"'):httpSource.find('</form>')]
formFields = {}
fields = re.compile("<input([^>]+)>", re.IGNORECASE|re.MULTILINE).findall(formSource)
regex = re.compile("([a-z\-]+)\=\"([\w\-]{0,})\"", re.IGNORECASE|re.MULTILINE)
for x in range(0, len(fields)):
(name,value) = ["",""]
data = regex.findall(fields[x])
for y in range(0, len(data)):
if data[y][0] == "name":
name = data[y][1]
elif data[y][0] == "value":
value = data[y][1]
try:
formFields[name] = value
except:
pass
formFields['username'] = username
formFields['password'] = password
return self.http.post('http://www.gaiaonline.com/auth/login/', formFields).find('Welcome to Gaia') != -1
except:
return False
[/name][/1][/y][/0][/y][/1][/y][/0][/y][/x]