- 博客(5)
- 收藏
- 关注
原创 密码学基础
0x01编码hex & ascii# asciic = input()print("{}:{}".format(c, ord(c)))input > ff:102# str2hexdef str2hex(str): a = "" for x in str: a += hex(ord(x)) a = a.replace("0x", "") print("a+={}/{} ---> a=0x{}".for
2022-04-11 15:30:13
8205
原创 Sqli-labs全套(1-65)-通关笔记
Basic Challenges01-Error Based-Single quotesError Based: 可以通过报错知道闭合方式> paylod: ?id=1') and ;--+源码拼接后:SELECT * FROM users WHERE id=('$id') LIMIT 0,1;SELECT * FROM users WHERE id=('1') and ;-- ') LIMIT 0,1;> err: You have an error in your SQL
2022-04-10 21:31:29
4673
原创 SQL注入中sleep函数的一些小tips
sleep(duration) : 睡眠duration秒,返回0,若没有执行,则返回1mysql> select * from users where id=1 and sleep(1);Empty set (1.00 sec)mysql> select * from users where id=1 or sleep(1);+----+----------+----------+| id | username | password |+----+----------+-----
2022-03-24 13:58:49
1154
原创 数论笔记
数论质数对于一个足够大的NNN, 大约有NlnN\frac{N}{lnN}lnNN个不超过NNN的质数埃氏筛基本思想:对于整数xxx,任意xxx的倍数都不是质数.复杂度: O(∑质数p≤NNp)=O(NloglogN)O\left(\sum_{质数p \le N\frac{N}{p}}\right) = O(N\log \log N)O(∑质数p≤NpN)=O(NloglogN)for (int i = 2; i <= n; i++) { if (vis[i]) cont
2021-04-10 10:14:34
171
原创 寒假专题一题解
专题一部分题解@tocB - Assistance Required题目链接思路 :有点类似埃氏筛, 使用数组标记元素是否需要出列#include <iostream>const int N = 4e4;using namespace std;int p[N],cnt;int book[N];int main() { for (int i = 2;i < N;i ++) { if(!book[i]) { p [c
2021-01-23 00:29:11
219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人