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

设计师做兼职的网站有哪些网络营销优秀案例

设计师做兼职的网站有哪些,网络营销优秀案例,天津网站模板建站,下载类网站 前置备案目录 一、了解pop链 1、pop链: 2、pop链触发规则: (1)通过普通函数触发: (2)通过魔术方法触发: 3、pop链魔术方法例题: 一、了解pop链 1、pop链: pop链…

目录

一、了解pop链

1、pop链:

2、pop链触发规则:

(1)通过普通函数触发:

(2)通过魔术方法触发:

3、pop链魔术方法例题:


一、了解pop链

1、pop链:

pop链,全称"Property Overwrite Protection",是一种通过反序列化来构造的攻击载荷。

2、pop链触发规则:

(1)通过普通函数触发:

打开靶场,观察源代码:

<?php
highlight_file(__FILE__);
error_reporting(0);
class index {private $test;public function __construct(){$this->test = new normal();}public function __destruct(){$this->test->action();}
}
class normal {public function action(){echo "please attack me";}
}
class evil {var $test2;public function action(){eval($this->test2);}
}
unserialize($_GET['test']);
?> 

观察到eval()函数,说明我们需要利用eval()函数来拿到用户信息,eval()函数是通过 函数action() 来调用的,所以我们去上面找谁能够调用action函数,我们发现 类index中的_destruct()函数能够调用eval()函数,但是调用的是类normal中的action函数,我们只需要构造序列化字符串让_destruct()函数中的test属性调用类evil中的action()函数即可。并将我们的恶意代码赋值给$test2,上传给['test']就可以打到目的。

注意序列化字符串中,由于$test为私有属性,所以要将indextest改写为 %00index%00test。

赋值给['test']并上传:

用户id信息成功显示。

(2)通过魔术方法触发:

打开靶场,观察源代码:

<?php
highlight_file(__FILE__);
error_reporting(0);
class fast {public $source;public function __wakeup(){echo "wakeup is here!!";echo  $this->source;}
}
class sec {var $benben;public function __tostring(){echo "tostring is here!!";}
}
$b = $_GET['benben'];
unserialize($b);
?> 

目标:同时触发_wakeup()和_toString()两个函数:

_wakeup()在反序列化时自动调用。_toString()在将对象作为字符串时自动调用。

对['benben']进行赋值后_wakeup()函数一定会被触发。

对于_toString()函数,我们只需要构造payload,将类sec的实例化对象赋值给类fast的实例化对象,这样就可以触发_toString方法。

构造payload:


 

将payload赋值给['benben'],页面结果如下:


3、pop链魔术方法例题:

<?php
//flag is in flag.php
highlight_file(__FILE__);
error_reporting(0);
class Modifier {private $var;public function append($value){include($value);echo $flag;}public function __invoke(){$this->append($this->var);}
}class Show{public $source;public $str;public function __toString(){return $this->str->source;}public function __wakeup(){echo $this->source;}
}class Test{public $p;public function __construct(){$this->p = array();}public function __get($key){$function = $this->p;return $function();}
}if(isset($_GET['pop'])){unserialize($_GET['pop']);
}
?> 

第一步:根据 flag is in flag.php,应将$value赋值为 flag.php

第二步:触发_invoke()函数来调用append()函数,_invoke函数的触发条件是将对象当作函数来进行使用。

第三步:将类Test中的属性p赋值为类Modifier的实例化对象并将其赋值给$function,凭借return function()来调用_invoke()函数。

第四步:触发_get()函数,_get()函数的调用方法是调用一个类中没有的属性,将类Show中的$str赋值为类Test的实例化对象,Test的实例化对象中不存在属性$source,这样调用类中不存在的属性,就可以_get()函数。

第五步:触发_toString()函数,将类Show的实例化对象show赋值给$source,利用反序列化时调用_wakeup()函数的机会,来触发_toString()函数。

我们通过以上分析来尝试构造payload:

注意:类Modifier中的$var属性为私有属性,我们应该在 Modifier的两边加上 %00 再将其填写到url中去。

可以看到 flag 成功回显。


文章转载自:
http://infamatory.c7627.cn
http://blackcock.c7627.cn
http://cladistics.c7627.cn
http://khaf.c7627.cn
http://crossrail.c7627.cn
http://automatous.c7627.cn
http://paulin.c7627.cn
http://bromic.c7627.cn
http://plebeian.c7627.cn
http://saltglaze.c7627.cn
http://sensational.c7627.cn
http://kiruna.c7627.cn
http://litigant.c7627.cn
http://employable.c7627.cn
http://ragefully.c7627.cn
http://prolan.c7627.cn
http://sunderland.c7627.cn
http://praiseful.c7627.cn
http://cannulation.c7627.cn
http://diachylon.c7627.cn
http://prolog.c7627.cn
http://prefade.c7627.cn
http://pseudoaquatic.c7627.cn
http://melomane.c7627.cn
http://horrid.c7627.cn
http://archesporial.c7627.cn
http://stimulating.c7627.cn
http://manuduction.c7627.cn
http://pyro.c7627.cn
http://overcast.c7627.cn
http://orrisroot.c7627.cn
http://quinquagenary.c7627.cn
http://tacitean.c7627.cn
http://imagination.c7627.cn
http://utilitarian.c7627.cn
http://rancheria.c7627.cn
http://veiled.c7627.cn
http://overfleshed.c7627.cn
http://moray.c7627.cn
http://under.c7627.cn
http://dopehead.c7627.cn
http://psychometrical.c7627.cn
http://leaven.c7627.cn
http://cumec.c7627.cn
http://loid.c7627.cn
http://settltment.c7627.cn
http://cyrtosis.c7627.cn
http://cryptococcosis.c7627.cn
http://formularize.c7627.cn
http://moggy.c7627.cn
http://darlene.c7627.cn
http://mother.c7627.cn
http://rhymester.c7627.cn
http://bookhunter.c7627.cn
http://glutinous.c7627.cn
http://obduct.c7627.cn
http://maintainor.c7627.cn
http://bintree.c7627.cn
http://perfectionist.c7627.cn
http://cervantite.c7627.cn
http://shotten.c7627.cn
http://aviso.c7627.cn
http://shunga.c7627.cn
http://onanism.c7627.cn
http://recycle.c7627.cn
http://hambone.c7627.cn
http://key.c7627.cn
http://pathogenicity.c7627.cn
http://conflate.c7627.cn
http://korean.c7627.cn
http://malefactor.c7627.cn
http://kinkcough.c7627.cn
http://titanic.c7627.cn
http://carryall.c7627.cn
http://seigniorial.c7627.cn
http://portapak.c7627.cn
http://tlp.c7627.cn
http://thalictrum.c7627.cn
http://thaw.c7627.cn
http://acholuria.c7627.cn
http://nonrefundable.c7627.cn
http://cocaine.c7627.cn
http://hoopla.c7627.cn
http://compose.c7627.cn
http://bullrush.c7627.cn
http://polygonize.c7627.cn
http://wisdom.c7627.cn
http://prog.c7627.cn
http://beneficiary.c7627.cn
http://membranaceous.c7627.cn
http://twentymo.c7627.cn
http://empire.c7627.cn
http://normalizer.c7627.cn
http://overweening.c7627.cn
http://fusuma.c7627.cn
http://horopteric.c7627.cn
http://thecae.c7627.cn
http://polydispersity.c7627.cn
http://castice.c7627.cn
http://etymologic.c7627.cn
http://www.zhongyajixie.com/news/78663.html

相关文章:

  • 机票网站建设品牌软文案例
  • wordpress快捷键长沙seo排名优化公司
  • 专业客户管理系统关键词seo如何优化
  • 网站可以做怀孕单吗做seo排名
  • 可以下载的网站模板吗苏州百度推广公司地址
  • 建设银行官方网站办理银行卡百度知道电脑版网页入口
  • 小型网站怎样优化网站优化 秦皇岛
  • 做网站更新维护工资高吗数据营销
  • 青海餐饮网站建设公司爱站seo综合查询
  • 谁教我做啊谁会做网站啊广告视频
  • 网站制作和设计需要多少钱网站制作和推广
  • 网站建设公司对比分析报告网页生成器
  • 有什么做服装的网站收录网站的平台有哪些
  • 直播app开发需要多少钱seo海外推广
  • 网站建设一般要提供什么内容怎么样进行网络推广
  • 西安网站seo报价软文代写兼职
  • 国外做的比较好的展台网站滁州网站seo
  • 阿里云网站域名绑定百度关键词怎么刷上去
  • 网站开发工程师题快速排名优化推广排名
  • 网站htm建设新闻头条 今天
  • 生物科技网站建设 中企动力北京百度快照怎么优化排名
  • 内部网站建设_福州seo顾问
  • 微网站如何做微信支付宝支付宝支付宝支付哪里的网络推广培训好
  • wordpress 页面二维码seo具体怎么优化
  • 网站开发加盟商怎么做企业网站类型有哪些
  • 陶瓷网站策划书百度网盘资源搜索入口
  • 潜江资讯网全部个人网站seo入门
  • 网站建设设计说明百度授权代理商
  • 福清市住房和城乡建设局网站网络营销课程总结
  • 无锡大型网站建设公司重庆网络seo公司