2011-08-26, 18:17
Eldorado Wrote:Ok I think I found it
Going to this page: http://www.zshare.net/download/93296873f03a68ec
I have a form submit button, which gives me a new page (same address).. and I can grab the link prior to the countdown finishing
They try to hide it in an array:
Code:var link_enc=new Array('h','t','t','p',':','/','/','d','l','0','0','5','.','z','s','h','a','r','e','.','n','e','t','/','d','o','w','n','l','o','a','d','/','a','4','7','4','c','7','d','1','e','5','0','6','4','d','0','2','c','3','1','2','d','e','6','2','8','9','5','6','f','a','2','b','/','1','3','1','4','3','6','9','7','2','2','/','9','3','2','9','6','8','7','3','/','Q','S','S','D','i','v','X','_','l','a','p','-','b','d','t','c','.','a','v','i');
So just need to figure out how to do the submit form button to get me to this page..
It's not in nice url resolver code, but this is able to access the page:
Code:
import urllib2, urllib, re
url = 'http://www.zshare.net/download/93296873f03a68ec'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link2=response.read()
values = {'referer2' : ' ', 'download' : '1', 'imageField.x' : '120', 'imageField.y' : '37'}
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent }
data = urllib.urlencode(values)
req = urllib2.Request(url, data, headers)
response = urllib2.urlopen(req)
html = response.read()
p = re.compile('enc=new Array((.+?));').findall(html)[0]
print p