当前位置:网站首页>Simple use of Xray

Simple use of Xray

2022-07-07 08:52:00 Colorful @ star

xray Simple use

summary

Xray Is a powerful security assessment tool , Support Take the initiative passive Multi scan mode , Support common web Loopholes automated testing , Flexible definition of POC, Rich in functions , Easy to call , Support multiple operating systems

characteristic

  • Fast detection speed
  • Support a wide range of
  • High quality can be customized
  • There is no threat to safety
  • Fast update speed

Supported vulnerability detection types

  • XSS Vulnerability detection (key: xss)
  • SQL Injection detection (key: sqldet)
  • command / Code injection detection (key: cmd-injection)
  • Directory enumeration (key: dirscan)
  • Path crossing detection (key: path-traversal)
  • XML Solid injection detection (key: xxe)
  • File upload detection (key: upload)
  • Weak password detection (key: brute-force)
  • jsonp testing (key: jsonp)
  • ssrf testing (key: ssrf)
  • Baseline check (key: baseline)
  • Arbitrary jump detection (key: redirect)
  • CRLF Inject (key: crlf-injection)
  • Struts2 Serial vulnerability detection ( premium ,key: struts)
  • Thinkphp Serial vulnerability detection ( premium ,key: thinkphp)
  • POC frame (key: phantasm)

among POC The frame is built-in by default Github On the contribution of poc, Users can also build on demand poc And run

Download and install

Download address

xray community

GitHub Address :https://github.com/chaitin/xray/releases

Document address :https://docs.xray.cool/

Support installation and download of various operating systems
 Insert picture description here

install

1、 Because the blogger is Windows64 Bit operating system , So choose 64 Bit installation file

 Insert picture description here

2、 unpack , Just one exe file

 Insert picture description here

3、 Use cmd The command line navigates to the current xray.exe Path

 Insert picture description here

Run the file

 Insert picture description here

meanwhile xray_windows_386.exe Under the same directory of the file config.yaml The configuration file

 Insert picture description here

see xray Version number of version

 Insert picture description here

see Help document --help

 Insert picture description here

Configuration is introduced

Xray In the catalog config.yaml The file contains all the configuration information , Configuration mainly includes five categories :http、plugins、 reverse、mitm、basic_crawle

Set the domain name that allows scanning

hostname_allowed: Is the domain name that allows scanning ,hostname_disallowed: Is a domain name that is not allowed to be scanned , You can use asterisks ( Express all ) matching

Scan plug-in configuration

The plug-in configuration modification is mainly on and off , The default is all on , Detect all types of vulnerabilities during scanning , The type of vulnerability that does not need to be detected is modified to false; You can also specify plug-ins during scanning , Such as :–plugins xss,xxe,cmd_injection

Contracting rate limit

Prevent requests from being too quickly waf Intercept , You can reduce the number of requests per second , Default per second 500

Scan agent configuration

Setting up a proxy can work with burp suite And other software

The proxy pattern

1、 Generate ca certificate

xray_windows_386.exe genca

 
  
  • 1

 Insert picture description here

2、 Import to browser ca certificate

 Insert picture description here

choice ca The path of the certificate

 Insert picture description here

Certificate of trust

 Insert picture description here

end

3、 Set up proxy for browser

 Insert picture description here

4、 function xray, monitor

xray_windows_386.exe webscan --listen 127.0.0.1:7777 --html-output test.html

webscan web Page vulnerability detection
–listen monitor
–html-output Output html Format

  • 1
  • 2
  • 3
  • 4
  • 5

 Insert picture description here

visit dvwa Of sql Injection module

 Insert picture description here

xray change

 Insert picture description here

end CTRL+c

 Insert picture description here

3、 open test.html, View generated reports

 Insert picture description here

 Insert picture description here

Reptile mode

xray Bugs can be checked with the help of crawlers

xray_windows_386.exe webscan --basic-crawler http://127.0.0.1/bc/DVWA/vulnerabilities/sqli/?id=2&Submit=Submit# --html-output 111.html

webscan web Page scan
–basic-crawler Basic reptiles

  • 1
  • 2
  • 3
  • 4

 Insert picture description here

Xray + BurpSuite

burpsuite As Xray The upstream agent of ( Grab Xray Contract awarding )

namely : browser -> Xray -> burpsuite -> Server side

This method is convenient to view Xray Scan the packets sent by the website , And it can also be tested poc Whether it is right

Xray As burpsuite The upstream agent of ( Assist in testing )

namely : browser -> burpsuite -> Xray -> Server side

This method is convenient to test wherever you want , If you want to test, send it to Xray, Don't want to throw away the data packet

</article>
原网站

版权声明
本文为[Colorful @ star]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070608510099.html