Kali搭建個人XSS平臺
宣告:本文章僅僅是個人學習筆記,僅供交流學習使用,請勿用于非法用途
環境準備
Kali Linux系統
XSS平臺原始碼
XSS平臺原始碼地址:https://github.com/78778443/xssplatform
操作程序
將原始碼上傳到kali系統或者直接在kali里面下
kali開啟web環境
service apache2 start
開啟資料庫
service mysql start
登錄資料庫
mysql -uroot -p
創建資料庫 xssplatform
create database xssplatform;

將xss平臺原始碼放到網站目錄下

賦予權限
chmod -R 777 /var/www/html/

修改資料庫組態檔
vi config.php
要修改的地方:
dbuser、dbPwd、urlroot、filepath、fileprefix
當然也可以用文本編輯器編輯

根據 config.php 組態檔新建資料庫,匯入原始碼中的 xssplatform.sql
use xssplatform
source sql檔案路徑
網站根目錄下新建 .htaccess 檔案
sudo touch .htaccess
vi .htaccess
.htaccess檔案內容
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9a-zA-Z]{6})$ xssplatform/index.php?do=code&urlKey=$1 [L]
RewriteRule ^do/auth/(\w+?)(/domain/([\w\.]+?))?$ xssplatform/index.php?do=do&auth=$1&domain=$3 [L]
RewriteRule ^register/(.*?)$ xssplatform/index.php?do=register&key=$1 [L]
RewriteRule ^register-validate/(.*?)$ xssplatform/index.php?do=register&act=validate&key=$1 [L]
</IfModule>
瀏覽器打開:http://yourIP
yourIP是kali系統的IP,如果不知道IP,可以使用查看命令 ip add

同意協議,填寫基本配置資訊

搭建XSS平臺成功


補充
如果kali沒有apache2服務,通過以下命令安裝
sudo apt-get install apache2
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/386795.html
標籤:其他
上一篇:WEB應用程式開發(六)創建Session物件與實作界面安全退出/登錄功能
下一篇:哈工大密碼學實驗CA
