Skip to content

Commit

Permalink
add 95分
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoboy9692 committed Jul 1, 2020
1 parent d624c3c commit 800111d
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 95分/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: __init__.py
Description:
Author: XinCheng.Zhao
Date: 2020/7/1
Email: [email protected]
-------------------------------------------------
Change Activity:
2020/7/1:
-------------------------------------------------
"""
__author__ = 'XinCheng.Zhao'
33 changes: 33 additions & 0 deletions 95分/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-

import hashlib
import time

import requests


def get_token(ss):
res = dict(k.split('=') for k in ss.split('&'))
ss = ''
for key in sorted(res.keys()):
value = res[key]
ss += value
print(ss)
ss += 'xgcpyh666'
m = hashlib.md5()
m.update(bytes(ss, encoding='utf8'))
return m.hexdigest()


headers = {
'Host': 'www.95fenapp.com',
'user-agent': 'Android8.1.0 google CPU_ABI armeabi-v7a CPU_ABI2 armeabi HARDWARE sailfish MODEL Pixel fen95/1.2.7 dc(Android,645f1789d2c3a1e0,huawei)',
'fen95-host': 'default',
}
url_path = f'page=1&page_size=20&scene=1&scene_type=95fen_android_home_personal&sn=HomeRecommendList&sort=new&timestamp={int(time.time() * 1000)}' # 1593611869091
url_path = url_path + '&token=' + get_token(url_path)
url = f'https://www.95fenapp.com/api_goods/list/v3.0?{url_path}'
print(url_path)
response = requests.get(url, headers=headers)

print(response.text)
24 changes: 24 additions & 0 deletions 95分/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Java.perform(function () {
// var comma = Java.use('com.ninetyfive.commonnf.c.b.a');
// comma.a.overload('java.lang.String').implementation = function (a1) {
// var res = this.a(a1);
// console.log(a1)
// console.log(res)
// return res;
// }

var str = Java.use('java.lang.String');
var MessageDigest = Java.use('java.security.MessageDigest');
MessageDigest.digest.overload(('[B')).implementation = function (a1) {
var res = this.digest(a1);
console.log(str.$new(a1))
return res;
}

})
//1593611840606xgcpyh666
//1593611868915xgcpyh666
//120195fen_android_home_personalHomeRecommendListnew1593611869091xgcpyh666
//120195fen_android_home_personalHomeRecommendListnew1593611840872xgcpyh666
//120195fen_android_home_personalHomeRecommendListnew1593612962422xgcpyh666
//page+page_size+scene_type+sn+sort+timestamp+xgcpyh666

0 comments on commit 800111d

Please sign in to comment.