上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 由于requests的get请求有各种各样的缺陷,所以我自己用http.client封装了一个 client_get 支持设置代理、 ssl验证、是否重定向 import urllib.parse import http.client def client_get(url,headers=None, 阅读全文
posted @ 2022-11-04 10:56 乘舟凉 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 32位 从Ida把目标函数扣出来 toUapper proc near arg_0 = dword ptr 4 push esi mov esi, [esp+4+arg_0] push edi mov edi, esi or ecx, 0FFFFFFFFh xor eax, eax repne sc 阅读全文
posted @ 2022-10-28 23:08 乘舟凉 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 用ida查看一个函数,如这个叫getDiskInformAndSend的函数,想快速查看这个函数调用了哪些api,怎么做呢? 右键点击函数名称,在选项里选择Xrefs graph from(Xrefs graph from 表示查看有哪些函数是从这个函数调用的 Xrefs graph to 表示查看 阅读全文
posted @ 2022-10-26 22:59 乘舟凉 阅读(459) 评论(0) 推荐(0) 编辑
摘要: compile.py import os, shutil import compileall import sys import re def copy_to_up(path): for f in os.listdir(path): if f == '__pycache__': for f_main 阅读全文
posted @ 2022-10-14 09:56 乘舟凉 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 无法解析的外部符号是指有些方法和函数只有声明但是没有实现 我是在用C++给python写一个模块的时候遇到这个错误的,而Python用一个Py_DEBUG宏在调试的时候激活某些函数,而我因没有python3*_d.lib文件,所以有些方法没有实现就报了这个错误,解决方法就是把这个宏定义的代码注释掉 阅读全文
posted @ 2022-10-12 16:28 乘舟凉 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 传入回调函数大概的原理是用c++构建一个python模块,并将回调函数定义进去 initializer.h #pragma once #include <Python.h> #ifdef _WIN32 #include <Windows.h> #elif defined __APPLE__ #end 阅读全文
posted @ 2022-10-12 16:20 乘舟凉 阅读(569) 评论(0) 推荐(0) 编辑
摘要: c调用python的原理大概是将python当做一个c++库来调用 ### window #### 导入头文件 将python的头文件复制到项目中,头文件在python安装目录中 ![image](https://img2022.cnblogs.com/blog/1798202/202210/179 阅读全文
posted @ 2022-10-12 01:47 乘舟凉 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 问题描述: ​ 我把1转成double压入st(0)中,按道理应该是3FF0000000000000,但x64dbg显示的是3FFF800000000000,我想用windbg看看是不是x64dg显示错误 过程: ​ 我用windbg看了st(0),却发现结果也是3FFF800000000000,看 阅读全文
posted @ 2022-10-12 01:33 乘舟凉 阅读(259) 评论(0) 推荐(0) 编辑
摘要: js闭包其实就是一句话 闭包变量就是函数对象的属性 例1 function f1(){ var n=999; function f2(){ n++; alert(n); } return f2; } var result=f1(); result(); result(); 执行结果为 1000和10 阅读全文
posted @ 2022-10-10 10:53 乘舟凉 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 代码 test.py from flask import Flask app = Flask(__name__) @app.route("/") def test(): return "hello world" if __name__ == "__main__": flag = 1 app.run( 阅读全文
posted @ 2022-09-15 18:15 乘舟凉 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页