But can't post it on here.
So, pretty much...Artificial or Sk8er, IM me on MSN at xsilentshadowx@hotmail.com
Or any other trustworthy member, if I can preapprove it. The program can't really be stated at the moment...So yeah. >.<
Well actually...It's this login:
May be another problem, but I'm not sure. =/Code:def login(self, username, password, sess): """Login to Gaiaonline with an Advanced Method""" username = username.replace(' ', '+') #Encrypt password sPass = self.md5Digest(password) #Obtain salted password... #URL to Post to strURL = "http://www.gaiaonline.com/chat/gsi/gateway.php" randTime = str(long(time.time())) + str(random.randrange(100, 999)) #Post data pData = 'X=;' + randTime + '&v=phpobject&m=' + 'a:1:{i:0;a:2:{i:0;s:3:"108";i:1;a:2:{i:0;s:' + str(len(username)) + ':"' + username + '";i:1;s:32:"' + sPass +'";}}}' #Set the referer in the HTTP Headers sess.setReferer("http://s2.cdn.gaiaonline.com/images/Gaia_Flash/FISHING/bassken_game4.15.swf") #Send the HTTP Request strHTML = sess.get(strURL, pData) if strHTML == None: return None strHTML = urllib.unquote_plus(strHTML) if strHTML.find('did not match') > 0: #User/Pass missmatch return False elif strHTML.find('b:1;i:2') > 0: #Logged in return True return False
Results 1 to 12 of 12
- 19 Nov. 2009 10:03pm #1
Need help fixin' a code in a Python Program
Last edited by Tatsuo; 19 Nov. 2009 at 10:09pm.
- 19 Nov. 2009 11:44pm #2
- 19 Nov. 2009 11:47pm #3
Correction @ Sk8er: Mostly all the flash games (Rally, Towns, Slots, Cards, zOMG) Everything that has had a few bots in it or clients the login has been fixed. Yes there are ways around it and they are quite simple.
1.) Use an old .swf file that still has a login screen
2.) Use webbrowser
3.) Login using IE (might not work)
forgot to add that, most of the newer games (Pinball, Jigsaw) are in AS3. Making it harder to hack / make bots for it. google AS3 if you don't know what it is.
- 20 Nov. 2009 02:14am #4
Haha...Aight, this is an old bot that somebody made and I'm tryin' to figure out how to fix it. =/
It's pissing me off. And I don't know how to revamp the code completely in order to login.
- 20 Nov. 2009 02:18am #5
- Age
- 30
- Join Date
- Nov. 2009
- Location
- Anaheim, California
- Posts
- 1,065
- Reputation
- 99
- LCash
- 200.00
Lol, this really isn't on subject but
Code:#Obtain salted password...
A salt is something completely different, it is used in the hashing process and since there is no set salt...well you get the idea.
- 20 Nov. 2009 02:22am #6
I'm not a programmer...>.> Like I said, it's a code from an old program that now does not work. And i'm trying to modify it so that it can work once more.
- 20 Nov. 2009 02:26am #7
- Age
- 30
- Join Date
- Nov. 2009
- Location
- Anaheim, California
- Posts
- 1,065
- Reputation
- 99
- LCash
- 200.00
Yeah I know, I just felt like mentioning it.
I would go along with what chad said, you can fix it all you want there is nothing there for it trk.
On the other hand if you actually want to accomplish something you might want to look into learning something other than Python, like...Anything else.
Reasons why?
1. It's a little complex for beginners.
2. It isn't very...um...friendly? I mean that you need to have Python installed to run the Executable and it must be the same version. With the exception of some converters, that are usually again fairly complex.
These are merely speculation and I am sure there will be people that will come up with multiple contradictions, but like stated this is speculation and my previous ventures with Python. I wish you luck in the development of your skills
- 20 Nov. 2009 02:40am #8
So I wouldn't be able to rewrite it in order for it to login?
And yeah, I don't have time to teach myself. I'm already occupied enough with AP Art, AP Calculus, and AP Government. >.> I'm goin' to take programming classes in college, going to be a computer engineering major or computer science major.
- 21 Nov. 2009 02:36am #9
Heh, I know that code!
And Chris, if I remember correctly, Gaia salted the hashed password with something before submitting it to the server.
By the way, you'd actually have to change most of the classes in order to make it work, mostly because Gaia changed too much stuff after the updates.
Another thing: Asking people to drk for you isn't something I would consider polite, especially if it's about fixing a Market Bot. I'm sure that if someone could fix the code, that person could create their own market bot, which is probably easier than updating my old code.
Especially now that Python 3.1 is out, it's much better. I started writing a new Market Bot, but I haven't had time to finish it. D:
- 21 Nov. 2009 09:11am #10
Wait, I thought the salt was constant. It was something like zOMGGaia137 or some combination of words/numbers like that. I've seen it used before. They may have changed it in newer versions, but the old SWFs have a constant salt in them.
- 21 Nov. 2009 03:48pm #11
Yeah, it is constant. md5Digest() salts the hashed password.
- 22 Nov. 2009 02:42am #12