2.初步判断是否是mssql ;and user>0
3.注入参数是字符'and [查询条件] and ''='
4.搜索时没过滤参数的'and [查询条件] and '%25'='
5.判断数据库系统
;and (select count(*) from sysobjects)>0 mssql
;and (select count(*) from msysobjects)>0 access
» 阅读全文
Posted by amxku on 2006-07-18, 23:04 . 技术相关
» 阅读全文
Tags: 脚本渗透
Posted by amxku on 2006-05-14, 04:23 . 技术相关
[just fun :)]
1.Path Disclosure
eg:
/archives/include/article.inc.php
/archives/include/global.php
/archives/include/index.inc.php
/include/fense.php
/include/seccode.php
2.从后台得到shell
/admin/database.php 行112-163
$path = $_POST['path'];
if (file_exists($path)) {
redirect('文件已经存在,请选择其他文件名.', './admincp.php?job=database&action=backup',5);
}
$tables = $_POST['table'];
$extension=strtolower(substr(strrchr($path,'.'),1)); //取最后一个.后面的判断
if ($extension == 'sql') {
...............
} else {
redirect('备份生成文件的扩展名必须为.sql', './admincp.php?job=database&action=backup',5);
}
在备用数据库时候只是简单的取最后一个.为标准,判断是不是sql,那么如果是apache服务器,先在数据库里插入我们的shellcode在备用后缀为.php.sql 的文件,里面的phpcode将被执行。
Posted by amxku on 2006-04-28, 15:52 . 技术相关
» 阅读全文
Tags: 脚本渗透