Changeset 39604
- Timestamp:
- 01/02/17 00:58:02 (6 years ago)
- Location:
- titan/mediathek
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/goldesel.py
r39427 r39604 18 18 19 19 def get_answer_code(self, web_url): 20 headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'}20 headers = {'User-Agent': common.FF_USER_AGENT} 21 21 html = self.net.http_GET(web_url, headers=headers).content 22 22 #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True) -
titan/mediathek/localhoster/lib/common.py
r39353 r39604 34 34 35 35 IE_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko' 36 FF_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0' 36 #FF_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0' 37 FF_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 37 38 OPERA_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 OPR/34.0.2036.50' 38 39 IOS_USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25' -
titan/mediathek/localparser_secret/goldesel.sh
r39554 r39604 52 52 } 53 53 54 #55 # <form id="challenge-form" action="/cdn-cgi/l/chk_jschl" method="get">56 # <input type="hidden" name="jschl_vc" value="528818834f8ad23629ea5d31c3a5390c"/>57 # <input type="hidden" name="pass" value="1479475035.975-uJ99NUZ87d"/>58 # <input type="hidden" id="jschl-answer" name="jschl_answer"/>59 # </form>60 #61 #http://goldesel.to/cdn-cgi/l/chk_jschl?jschl_vc=f29b5aecef651bc1df9cad068c58848c&pass=1479474954.758-6i1RP0vPFz&jschl_answer=291458262 #63 64 54 new() 65 55 { 66 56 if [ ! -e "$TMP/$PARSER.$INPUT.list" ] ; then 67 # $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.068 69 # DATA=`cat $TMP/cache.$PARSER.$INPUT.0 | sed 's/ \+/ /g' | sed 's/<form id=/\nfound=/g' | grep ^found=`70 71 # actionpath=`cat $TMP/cache.$PARSER.$INPUT.0 | tr '\n' ' ' | sed 's/ \+/ /g' | sed 's/<form id=/\nfound=/g' | grep ^found= | sed 's/action=/\naction=/g' | grep ^action= | cut -d'"' -f2`72 # jschlvc=`cat $TMP/cache.$PARSER.$INPUT.0 | tr '\n' ' ' | sed 's/ \+/ /g' | sed 's/<form id=/\nfound=/g' | grep ^found= | sed 's/"jschl_vc"/\njschl_vc=/g' | grep ^jschl_vc= | cut -d'"' -f2`73 # pass=`cat $TMP/cache.$PARSER.$INPUT.0 | tr '\n' ' ' | sed 's/ \+/ /g' | sed 's/<form id=/\nfound=/g' | grep ^found= | sed 's/"pass"/\npass=/g' | grep ^pass= | cut -d'"' -f2`74 # jschlanswer=291458275 # `cat $TMP/cache.$PARSER.$INPUT.0 | tr '\n' ' ' | sed 's/ \+/ /g' | sed 's/<form id=/\nfound=/g' | grep ^found= | sed 's/"jschl-answer"/\njschl-answer=/g' | grep ^jschl-answer= | cut -d'"' -f2`76 77 # echo actionpath $actionpath78 # echo jschlvc $jschlvc79 # echo pass $pass80 # echo jschlanswer $jschlanswer81 82 # echo 222 "$URL"/"$actionpath"?jschl_vc="$jschlvc"&pass="$pass"&jschl_answer="$jschlanswer"83 84 # $curlbin "$URL/$actionpath?jschl_vc=$jschlvc&pass=$pass&jschl_answer=$jschlanswer" -o $TMP/cache.$PARSER.$INPUT.0085 # echo $TMP/cache.$PARSER.$INPUT.0086 # exit87 88 57 # $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 89 58 … … 168 137 { 169 138 if [ ! -e "$TMP/$PARSER.$INPUT.list" ] ; then 170 $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 139 # $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 140 $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 141 171 142 # /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1 172 143 … … 195 166 { 196 167 if [ ! -e "$TMP/$PARSER.$INPUT.list" ] ; then 197 $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 168 # $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 169 $curlbin $URL/res/links -X POST --data "$PAGE" -o $TMP/cache.$PARSER.$INPUT.1 198 170 cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!url="http://dref.me/?!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2 | sed 's!%3A!:!g' | sed 's!%2F!/!g' > $TMP/$PARSER.$INPUT.list 199 171 # rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
Note: See TracChangeset
for help on using the changeset viewer.