08 2023 档案
摘要:在python中使用正则表达式时,小括号"()"有分组的意思,而在正则表达式中,小括号有把几个被括起来的几个符号作为一个子表达式的含义.所以,当在python中使用正则表达式的时候,正则表达式里面的括号就会既有分组功能,又有构成子表达式的功能.在使用re.findall()方法时,这种情况就会匹配出
阅读全文
摘要:安装 pip install curl_cffi 使用 from curl_cffi import requests# impersonate参数指定了模拟浏览器的型号res = requests.get("https://tls.browserleaks.com/json", impersona
阅读全文
摘要:大佬开发的工具,可以很方便地对app抓包。 项目地址: https://github.com/r0ysue/r0capture
阅读全文
摘要:import frida,sysdef on_message(message,data): if message['type'] == 'send': print("[*] {0}".format(message['payload'])) else: print(message)jscode
阅读全文
摘要:在子线程内直接获取事件循环会报错:RuntimeError: There is no current event loop in thread 'Thread-2',此时的代码为: loop = asyncio.get_event_loop()loop.run_until_complete(协程函数
阅读全文
摘要:安装 pip install r-useragent 使用 from random_useragent import UserAgentu = UserAgent()# generate android user-agentprint(u.android()) # randomprint(u.a
阅读全文
摘要:当在子线程中调用pyppeteer工具的时候,会报错:ValueError: signal only works in main thread。 解决方案: 在创建浏览器对象时,加上以下三个字段:
阅读全文