#coding:utf-8 #Author:LSA #Description:hishop sqli for /user/UserRefundApply?OrderId= #Date:20190701 import sys import requests from bs4 import Beauti ...
分类:
数据库 时间:
2021-06-05 18:27:44
阅读次数:
0
free free(NULL)合法 free(野指针)大概率崩溃,小概率没事,具体要分析源代码 连续两次free,在一些非常有限的情况下,不会崩溃 多次free,在大多数情况下会导致崩溃 手动调用构造和析构函数 比较诡异,c++可以显示调用析构函数,比如A a;a.~A,但是不能显式调用构造函数 并 ...
分类:
其他好文 时间:
2021-06-05 18:19:58
阅读次数:
0
空表示表格没有任何输出,null表示输出为null。 #方法一select sum(num)from( select num from my_numbers group by num having count(num)=1 order by num desc limit 0,1); #方法二sele ...
分类:
其他好文 时间:
2021-06-05 18:19:31
阅读次数:
0
##一、API ###概述 ##二、Scanner类 ###1、什么是Scanner类 ###2、Scanner使用步骤 ###3、匿名对象 ####概念 ####应用场景 ##三、Random类 ###1、什么是Random类 ###2、Random类使用步骤 ####注意 nexInt(n)范围 ...
分类:
编程语言 时间:
2021-06-05 18:13:15
阅读次数:
0
picoctf_2018_echo_back 题目分析 简单的格式化字符串,修改got@pus为main函数地址制造循环即可: 先制造循环 修改printf@got为system@plt 输入/bin/sh获取shell 最终EXP from pwn import * sh:tube = proce ...
分类:
其他好文 时间:
2021-06-05 18:01:10
阅读次数:
0
自定义 local 对象 (实现并发处理请求) 1.思考及需求 要实现并发效果, 每一个请求进来的时候我们都开启一个进程, 这显然是不合理的, 于是就可以使用线程 如果我们的需求是每个线程都对变量 num 进行设值, 并打印其线程号, 其效果如下 : from threading import Th ...
分类:
其他好文 时间:
2021-06-05 17:52:29
阅读次数:
0
一.偏函数 (partial) 1.partial 的作用 当函数的参数个数太多,需要简化时,使用functools.partial可以创建一个新的函数,这个新函数可以固定住原函数的部分参数,从而在调用时更简单 2.示例 partial 的第一个参数是原函数, 后面是原函数的参数 from func ...
分类:
其他好文 时间:
2021-06-05 17:51:40
阅读次数:
0
1,查询实时值,从live表中查询,tag名为Item_0 select * from live WHERE TagName = 'Item_0' 返回结果 2,查询历史值,从history表中查询,tag名为Item_0 select * from history WHERE TagName = ...
分类:
数据库 时间:
2021-06-04 19:44:02
阅读次数:
0
dedecms在首页调用栏目(公司介绍)内容,一般通过代码: {dede:sql sql='Select content,substring(content,1,300) as content from dede_arctype where id=1'}[field:content function ...
分类:
其他好文 时间:
2021-06-04 19:42:24
阅读次数:
0
一、请求体和字段 1、基础用法 请求体的数据校验是使用Pydantic来进行声明,然后校验的。 from typing import Optional from fastapi import FastAPI from pydantic import BaseModel class Item(Base ...
分类:
其他好文 时间:
2021-06-04 19:40:45
阅读次数:
0