mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-16 16:07:15 +08:00
54js加密无限debugger练习入门js
This commit is contained in:
parent
d03fcf126c
commit
aa4e29be9c
BIN
猿人学练习/54js加密无限debugger练习入门js/img/1.png
Normal file
BIN
猿人学练习/54js加密无限debugger练习入门js/img/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
38
猿人学练习/54js加密无限debugger练习入门js/main.py
Normal file
38
猿人学练习/54js加密无限debugger练习入门js/main.py
Normal file
@ -0,0 +1,38 @@
|
||||
import requests
|
||||
import base64
|
||||
import json
|
||||
|
||||
|
||||
def base64_value(key):
|
||||
base64_a_timestamp = base64.b64encode(key.encode('utf8'))
|
||||
base64_str = str(base64_a_timestamp, 'utf-8')
|
||||
return base64_str
|
||||
|
||||
|
||||
def challenge54(page):
|
||||
token = base64_value(str(page))
|
||||
url = "https://www.python-spider.com/api/challenge54"
|
||||
payload = f"page={page}&token={token}"
|
||||
session = requests.session()
|
||||
headers = {
|
||||
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
||||
}
|
||||
session.headers = headers
|
||||
response = session.request("POST", url, data=payload)
|
||||
return response.json()
|
||||
|
||||
|
||||
def run():
|
||||
data_num = 0
|
||||
for page in range(1, 101):
|
||||
res_dict = challenge54(page)
|
||||
data_list = res_dict.get('data')
|
||||
print(data_list)
|
||||
for data in data_list:
|
||||
data_num += int(data.get('value'))
|
||||
print(data_num)
|
||||
print(data_num)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run()
|
13
猿人学练习/54js加密无限debugger练习入门js/readme.md
Normal file
13
猿人学练习/54js加密无限debugger练习入门js/readme.md
Normal file
@ -0,0 +1,13 @@
|
||||
# 知识点: 禁止`debugger`
|
||||
|
||||
## 解题思路
|
||||
|
||||
打开控制台禁止所有断点操作
|
||||
|
||||

|
||||
|
||||
更多其他过 debugger 方法
|
||||
|
||||
https://www.jianshu.com/p/e69b68b71b77
|
||||
https://blog.csdn.net/qq_40558166/article/details/122428096
|
||||
|
Loading…
x
Reference in New Issue
Block a user