其实一整套系统盲注挺多的.....不过他有个防注入的代码...有点蛋疼
我就直接贴代码吧
转摘请注意署名(转摘不署名的烂JJ,全家的JJ都烂掉) http://hi.baidu.com/sethc5 西毒
微博求关注啊 http://1.t.qq.com/x0h4ck3r
function onsaveimg() { $x1 = $this->post['x1']; $y1 = $this->post['y1']; $x2 = $this->post['x2']; $y2 = $this->post['y2']; $w = $this->post['w']; $h = $this->post['h']; $ext = $this->post['ext'];//echo $ext.'xxx';exit(); $upload_tmp_file = TIPASK_ROOT . "/data/tmp/" . 'bigavatar' . $this->user['uid'] . $ext; $avatardir = "/data/avatar/"; //图片存放目录 $scale = 100 / $w; resizeThumbnailImage($smallimg, $upload_tmp_file, $w, $h, $x1, $y1, $scale); copy($upload_tmp_file, TIPASK_ROOT . $dir3 . '/big_' . $uid . $ext); is_file($upload_tmp_file) && unlink($upload_tmp_file); $_ENV['user']->update_avatar($smallimg); $this->message('头像设置成功!', 'user/editimg'); }大家看这里的代码
这里的$ext是post过来的,然后传给了$upload_tmp_file ,到这里的时候is_file($upload_tmp_file) && unlink($upload_tmp_file);
当存在这个文件就删除他...
所以你懂了,如果我们删除锁定安装的install.lock就可以重新安装了。
这里重新安装之后,后来拿shell有点鸡肋....所以就放出来了.
转摘请注意署名(转摘不署名的烂JJ,全家的JJ都烂掉) http://hi.baidu.com/sethc5 西毒
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论