xss平台的搭建
源码:https://cloud.189.cn/t/Rja6v263AfMj (访问码:8qeh)
1、下载好xss源码,放入www文件目录下
2、打开phpmyadmin管理界面,新建xss平台数据库如xssplatform
3、修改config.php文件
注意数据库账号密码、库名
4、执行sql语句将默认网址的url替换成自己的url(本地ip或者直接的域名)
update oc_module set code=REPLACE(code,“http://xsser.me”,“http://127.0.0.1/xss”);
5、修改配置文件
6、创建.htaccess文件——注意如果伪静态没配置成功,那么下面xsser生成的项目中的URL将不能访问!!!
Apache:
RewriteEngine On
RewriteRule ^([0-9a-zA-Z]{6})$ /xsser/index.php?do=code&urlKey=$1 [L]
RewriteRule ^do/auth/(\w+?)(/domain/([\w\.]+?))?$ /xsser/index.php?do=do&auth=$1&domain=$3 [L]
RewriteRule ^register/(.*?)$ /xsser/index.php?do=register&key=$1 [L]
RewriteRule ^register-validate/(.*?)$ /xsser/index.php?do=register&act=validate&key=$1 [L]
RewriteRule ^login$ /xsser/index.php?do=login [L]
Nginx:
rewrite "^/([0-9a-zA-Z]{6})$" /index.php?do=code&urlKey=$1 last;
Rewrite"^/do/auth/(\w+?)(/domain/([\w\.]+?))?$" /index.php?do=do&auth=$1&domain=$3 last;
rewrite "^/register/(.*?)$" /index.php?do=register&key=$1 last;
rewrite "^/register-validate/(.*?)$" /index.php?do=register&act=validate&key=$1 last;
推荐notepad++编辑器,文件.htaccess 文件类型为 all types(.)
7、创建admin账户
在数据库中把adminLevel修改为1,把自己定义为最高管理员权限,不然没法发送邀请码。再回到config.php中,修改注册配置为invite(改为invite——需要邀请码)
8、完成
参考:
https://blog.csdn.net/u011781521/article/details/53895363