vulnhub - digitalworld.local: MERCY v2 (考点:信息搜集 & smb & 端口敲门 & RIPS & tomcat & linux 提权)

本文详细记录了在Vulnhub的MERCY v2靶机中进行的信息搜集过程,包括使用nmap扫描端口,发现端口敲门、SMB漏洞、Tomcat及Linux提权等环节。通过解码提示、利用LFI漏洞获取管理员权限,并最终通过crontab和dirty cow进行提权。
摘要由CSDN通过智能技术生成

https://www.vulnhub.com/entry/digitalworldlocal-mercy-v2,263/
nat网络
arp-scan -l 比平常多出来的ip就是靶机了

nmap

PORT     STATE    SERVICE     REASON              VERSION
22/tcp   filtered ssh         port-unreach ttl 64
53/tcp   open     domain      syn-ack ttl 64      ISC BIND 9.9.5-3ubuntu0.17 (Ubuntu Linux)
| dns-nsid: 
|_  bind.version: 9.9.5-3ubuntu0.17-Ubuntu
80/tcp   filtered http        port-unreach ttl 64
110/tcp  open     pop3        syn-ack ttl 64
| fingerprint-strings: 
|   DistCCD, JavaRMI, LANDesk-RC, NCP, NotesRPC, Radmin, Socks4, TerminalServer, WMSRequest, beast2, ibm-db2-das, ms-sql-s, mydoom, oracle-tns: 
|     +OK Dovecot (Ubuntu) ready.
|   HELP4STOMP, OfficeScan: 
|     +OK Dovecot (Ubuntu) ready.
|     -ERR Unknown command.
|     -ERR Unknown command.
|   Memcache, NessusTPv10, NessusTPv11, NessusTPv12, Verifier, VerifierAdvanced, WWWOFFLEctrlstat, firebird: 
|     +OK Dovecot (Ubuntu) ready.
|     -ERR Unknown command.
|   Socks5: 
|     +OK Dovecot (Ubuntu) ready.
|     -ERR Unknown command.
|     -ERR Unknown command.
|_    -ERR Unknown command.
|_pop3-capabilities: AUTH-RESP-CODE UIDL SASL RESP-CODES CAPA TOP STLS PIPELINING
|_ssl-date: TLS randomness does not represent time
139/tcp  open     netbios-ssn syn-ack ttl 64      Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
143/tcp  open     imap        syn-ack ttl 64      Dovecot imapd
|_imap-capabilities: listed more have Pre-login LOGIN-REFERRALS post-login STARTTLS IDLE LITERAL+ capabilities SASL-IR ENABLE ID IMAP4rev1 OK LOGINDISABLEDA0001
|_ssl-date: TLS randomness does not represent time
445/tcp  open     netbios-ssn syn-ack ttl 64      Samba smbd 4.3.11-Ubuntu (workgroup: WORKGROUP)
993/tcp  open     ssl/imaps?  syn-ack ttl 64
|_ssl-date: TLS randomness does not represent time
995/tcp  open     ssl/pop3s?  syn-ack ttl 64
|_ssl-date: TLS randomness does not represent time
8080/tcp open     http        syn-ack ttl 64      Apache Tomcat/Coyote JSP engine 1.1
| http-methods: 
|   Supported Methods: GET HEAD POST PUT DELETE OPTIONS
|_  Potentially risky methods: PUT DELETE
|_http-open-proxy: Proxy might be redirecting requests
| http-robots.txt: 1 disallowed entry 
|_/tryharder/tryharder
|_http-server-header: Apache-Coyote/1.1
|_http-title: Apache Tomcat

扫出很多端口

看到53要想到dns加地址,但是试了试这台靶机无效

22和80一个是ssh登录,一个是网页搜集信息。

*** Starting uWSGI 2.0.17.1 (64bit) on [Thu May 25 21:02:53 2023] *** compiled with version: 4.8.2 20140120 (Red Hat 4.8.2-16) on 25 May 2023 09:54:48 os: Linux-3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 nodename: vga-fmea-pbd machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 32 current working directory: /web/www/teamvision/uwsgi-2.0.17.1 detected binary path: /web/www/teamvision/uwsgi-2.0.17.1/uwsgi chdir() to /web/www/teamvision your processes number limit is 4096 your memory page size is 4096 bytes *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers *** detected max file descriptor number: 1024 VirtualHosting mode enabled. lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 0.0.0.0:8033 fd 6 Python version: 3.5.4 (default, May 25 2023, 15:10:10) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] Python main interpreter initialized at 0x16ca940 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 10 seconds mapped 2539800 bytes (2480 KB) for 24 cores *** Operational MODE: preforking *** added /usr/local/python3.5b/python3.5/site-packages to pythonpath. Traceback (most recent call last): File "./teamvision/web_wsgi.py", line 7, in <module> from django.core.wsgi import get_wsgi_application ImportError: No module named 'django' unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 376163) spawned uWSGI worker 1 (pid: 376164, cores: 1) spawned uWSGI worker 2 (pid: 376165, cores: 1)
最新发布
05-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值