摘要: 1.用对应位数的ida打开,shift+f12先来查看一下程序里有的字符串 2. shellcode 用pwntools得到: print(shellcraft.sh()) 得到汇编代码 //32位程序 print(asm(shellcraft.sh())) 得机器码 pwntools默认为32位, 阅读全文
posted @ 2020-11-20 18:19 ATKevin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Casuall/article/list/1 https://blog.csdn.net/zjjcxy_long/article/details/108699824 https://blog.csdn.net/zjjcxy_long https://bbs 阅读全文
posted @ 2020-11-18 23:55 ATKevin 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 这道题和15.三数之和的思想一样,都是用双指针将n的三次方复杂度降低为n的平方,一定要排序。 这道题用了一个优化: 如果 a+b+c ≥target,那么就将k向左移动一个位置; 如果 a+b+c<target,那么就将j向右移动一个位置。 class Solution { public: int  阅读全文
posted @ 2020-11-14 20:36 ATKevin 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 排序后,利用指针一前一后扫描,使复杂度从n的三次方一直到n的平方 下面是两种不同的写法,但思路是一样的(推荐第一种,与16.最接近的三数之和的思路和写法一样,可以当成一种板子) 1. class Solution { public: vector<vector<int>> threeSum(vect 阅读全文
posted @ 2020-11-13 23:09 ATKevin 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 所有工具的安装(保姆级教程) 链接:https://pan.baidu.com/s/1vYKfjPiDe_KsLvuer7Zr-Q 提取码:o144 pwntools安装(python3安装pwntools时可以看看) https://www.cnblogs.com/pcat/p/5451780.h 阅读全文
posted @ 2020-11-07 10:26 ATKevin 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 形参和实参的区别 形参出现在函数定义中,在整个函数体内都可以使用, 离开该函数则不能使用。 实参出现在主调函数中,进入被调函数后,实参变量也不能使用。 形参和实参的功能是作数据传送。发生函数调用时, 主调函数把实参的值传送给被调函数的形参从而实现主调函数向被调函数的数据传送。 1.形参变量只有在被调 阅读全文
posted @ 2020-11-01 17:43 ATKevin 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u012940886/article/details/80381398 阅读全文
posted @ 2020-10-25 14:03 ATKevin 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Vector的使用bolg 参考blog:https://blog.csdn.net/weixin_41743247/article/details/90635931 注意:1.常见错误赋值方式 vector<int>a; for(int i=0;i<10;++i){a[i]=i;}//下标只能用来 阅读全文
posted @ 2020-10-25 13:38 ATKevin 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 前缀和 题目:https://www.acwing.com/activity/content/problem/content/829/1/ #include<iostream> using namespace std; const int maxn = 1e5; int n, m, l, r; in 阅读全文
posted @ 2020-10-11 11:09 ATKevin 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 高精度减法 #include<iostream> using namespace std; const int maxn = 10500; int A[maxn], B[maxn], ans[maxn]; string a, b; int num; void pd() { if(a.size() < 阅读全文
posted @ 2020-09-15 18:44 ATKevin 阅读(124) 评论(0) 推荐(0) 编辑