Hello community, tonight I decided to experiment with the programming language Python, and see what it could do. After a little bit of work, I was able to muster up this piece of code that will attempt to login to the WoW website.
This may be of little use to you if you are not a programmer.
Code:
# WoW Python Login by mjmorrell
import urllib
import urllib2
user = raw_input("Username: ")
pwd = raw_input("Password: ")
url = 'https://www.blizzard.com/login/login.xml?referer=https%3A%2F%2Fwww.worldofwarcraft.com%2Faccount%2F&loginType=wow '
user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4'
values = { 'accountName' : user, 'password' : pwd}
headers = { 'User-Agent' : user_agent, 'Referer' : url }
data = urllib.urlencode(values)
req = urllib2.Request(url, data, headers)
response = urllib2.urlopen(req)
the_page = response.read()
if 'tas' in the_page:
print '\nLogin Failed'
else:
print '\nLogin Success!'
As you can see, Python was designed for readability so even non-programmers may be able to learn something from this.
Compiled (wowlogin.py): http://www.filedropper.com/wowlogin