随笔分类 - CTF
CTF相关知识
摘要:今天把CTFshow的萌新web题做了一下,还是有收获的。期间也看了不少大佬的wp。
阅读全文
摘要:PHP反序列化字符串逃逸
阅读全文
摘要:一、代码 <?php */ highlight_file(__FILE__); include('flag.php'); class message{ public $from; public $msg; public $to; public $token='user'; public functi
阅读全文
摘要:一、代码 <?php error_reporting(0); highlight_file(__FILE__); include('flag.php'); if(preg_match('/ctfshow_i_love_36D/',serialize($_GET['ctfshow']))){ echo
阅读全文
摘要:一、代码 <?php error_reporting(0); highlight_file(__FILE__); class ctfShowUser{ private $username='xxxxxx'; private $password='xxxxxx'; private $isVip=fal
阅读全文
摘要:一、代码 <?php error_reporting(0); highlight_file(__FILE__); include('flag.php'); class ctfShowUser{ public $username='xxxxxx'; public $password='xxxxxx';
阅读全文
摘要:一、源码 <?php error_reporting(0); highlight_file(__FILE__); include('flag.php'); class ctfShowUser{ public $username='xxxxxx'; public $password='xxxxxx';
阅读全文
摘要:一、源码 <?php error_reporting(0); highlight_file(__FILE__); include('flag.php'); class ctfShowUser{ public $username='xxxxxx'; public $password='xxxxxx';
阅读全文
摘要:这几天在学习PHP反序列化,在遇到魔法函数的时候总忘记作用,因此在这里记录一下。 方法名称 作用 __construct() 构造函数:具有构造函数的类会在每次创建新对象时先调用此方法。 __destruct() 析构函数:析构函数会在到某个对象的所有引用都被删除或者当对象被显式销毁时执行。 __s
阅读全文
摘要:import base64 s = "暖星东" //加密 bs = base64.b64encode(s.encode("utf-8")) print(bs) //解密 s = str(base64.b64decode(bs),"utf-8") print(s)
阅读全文

浙公网安备 33010602011771号