Version 2.1

修改 README.md
This commit is contained in:
firesun
2015-10-27 13:06:03 +08:00
parent aaa17b1691
commit d811fbbe67
5 changed files with 110 additions and 4 deletions

1
.htaccess Normal file
View File

@@ -0,0 +1 @@
Options -Indexes

View File

@@ -1 +1,36 @@
# BlueLotus_XSSReceiver # XSS数据接收平台无SQL版
## 使用说明
无需数据库无需其他组件支持可直接在php虚拟空间使用使用步骤
* 上传所有文件至空间根目录
* 修改config.php指定数据存放目录数据是否启用AES加密及加密密码
```php
define('DATA_PATH', 'data');
define('ENABLE_ENCRYPT', true);
define('ENCRYPT_PASS', "bluelotus");
```
* 赋予`DATA_PATH`目录写权限
* 当有请求访问/index.php?a=xxx&b=xxxx所有携带数据包括getpostcookiehttpheaders客户端信息都会记录
* 可访问admin.php查看记录的数据
## 目前支持功能
* 自动判断携带数据是否base64编码可自动解码
* 记录所有可记录的数据并可根据ip判断位置根据useragent判断操作系统与浏览器
* 新消息提醒仿QQ邮箱新消息提醒框可实时获得数据
* 支持简单的查找功能
## TODO
* keepsession
* 认证
* 完全启用CSP
* 我的js
* js模板
* 多用户SQL版
* WebSocket新消息推送模式
## 特别说明
* 前端使用Bootstrap与jQWidgets开发原来用kendo UI受限于商业许可改用jQWidgets`you can use jQWidgets for free under the Creative Commons Attribution-NonCommercial 3.0 License`, 但是不可用于商业用途,如需用于商业用途请购买授权
* 为实现jqxgrid不支持的功能如固定表格高度实现row高度自动调节修改了jQWidgets部分代码具体修改部分可查看diff文件夹
* 为方便开发与调试未合并压缩js与css待最终版发布后合并
* 使用纯真ip库的函数基于Discuz X3.1 function_misc.php上修改而来, 判断客户端操作系统与浏览器的脚本基于原作者@author Jea杨写的php版本修改而来后台整体布局借鉴Kendo UI 的demo NORTHWIND DASH
* `本工具仅允许使用在CTF比赛等学习、研究场景严禁用于非法用途`

72
api.php Normal file
View File

@@ -0,0 +1,72 @@
<?php
define("IN_XSS_PLATFORM",true);
require('auth.php');
require_once("functions.php");
require_once("config.php");
require_once("dio.php");
header('Content-Type: application/json');
if(isset($_GET['cmd']))
{
switch($_GET['cmd'])
{
case 'list':
echo json_encode(dirList());
break;
case 'simplelist':
echo json_encode(dirSimpleList());
break;
case 'get':
if(isset($_GET['id'])&&preg_match('/^[0-9]{10}$/',$_GET['id']))
echo json_encode(loadInfo($_GET['id']));
else
echo json_encode(false);
break;
case 'del':
if(isset($_GET['id'])&&preg_match('/^[0-9]{10}$/',$_GET['id']))
echo json_encode(delInfo($_GET['id']));
else
echo json_encode(false);
break;
case 'clear':
echo json_encode(clearInfo());
break;
}
}
function dirSimpleList() {
$files = glob(DATA_PATH . '/*.php');
foreach ($files as &$file){
$file=basename($file,".php");
}
return $files;
}
function dirList() {
$list=array();
$files = glob(DATA_PATH . '/*.php');
arsort($files);
foreach ($files as $file) {
$listinfo=array();
$filename=basename($file,".php");
$info=loadInfo($filename);
$isChange=false;
if(!isset($info['location']))
{
$info['location']=convertip($info['user_IP'],IPDATA_PATH);
$isChange=true;
}
if($isChange)
saveInfo(json_encode($info),$filename);
$list[]= $info;
}
return $list;
}
?>

1
data/index.html Normal file
View File

@@ -0,0 +1 @@
Boom has been planted!

View File

@@ -1,3 +0,0 @@
<?php
die("Boom has been planted!");
?>