forked from cream-sec/Xray_Rad_Fusion
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Xray_Rad_Fusion | ||
只需配置xray和rad的路径 | ||
|
||
并添加目标到**target.txt**中使用python3.8运行即可开始享受吧! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import subprocess | ||
#rad路径(建议使用相对路径) | ||
radPath="./Rad/rad.exe" | ||
#xray路径(建议使用相对路径) | ||
xrayPath="./Xray/xray_windows_amd64.exe" | ||
#xray代理地址 | ||
xrayProxy="127.0.0.1:7777" | ||
def Scan(target,startxray): | ||
cmd = [radPath,"-t",target,"-http-proxy",xrayProxy] | ||
rsp=subprocess.Popen(cmd,start_new_session=True) | ||
rsp.communicate() | ||
with open("target.txt","r") as targats: | ||
xrayShell = [xrayPath, "webscan", "--listen", xrayProxy, "--html-output", "result.html"] | ||
startxray = subprocess.Popen(xrayShell) | ||
while targat :=targats.readline().strip("\n"): | ||
Scan(targat,startxray) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
http://testphp.vulnweb.com/ |