Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ox01024 committed Aug 16, 2020
1 parent b5c4813 commit 688c019
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Xray_Rad_Fusion
只需配置xray和rad的路径

并添加目标到**target.txt**中使用python3.8运行即可开始享受吧!

16 changes: 16 additions & 0 deletions Scan.py
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)
1 change: 1 addition & 0 deletions target.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://testphp.vulnweb.com/

0 comments on commit 688c019

Please sign in to comment.