PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 7e:43:5f:1e:58:a8:fc:c9:f7:fd:4b:40:0b:83:79:32 (RSA) | 256 5c:79:92:dd:e9:d1:46:50:70:f0:34:62:26:f0:69:39 (ECDSA) |_ 256 ce:d9:82:2b:69:5f:82:d0:f5:5c:9b:3e:be:76:88:c3 (ED25519) 80/tcp open http nginx |_http-title: Jeffs Portfolio MAC Address: 02:76:70:D3:7C:07 (Unknown) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
只开了两个端口,web和ssh。
SSH
1 2 3 4 5 6 7 8 9 10 11 12
[email protected]:~# nc -nv 10.10.214.2 22 (UNKNOWN) [10.10.214.2] 22 (ssh) open SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 ^C Protocol mismatch. [email protected]:~# ssh 10.10.214.2 The authenticity of host '10.10.214.2 (10.10.214.2)' can't be established. ECDSA key fingerprint is SHA256:81na22Hs/2kaLeyNJit8TG9Ba4kVYm9LhIObseJmCZM. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.10.214.2' (ECDSA) to the list of known hosts. [email protected]'s password: ^C
Target: http://jeff.thm/ Total requests: 4997 ================================================================== ID Response Lines Word Chars Request ================================================================== 00326: C=200 346 L 1455 W 25901 Ch "wordpress"
<?php /* Todo: I need to finish coding this database backup script. also maybe convert it to a wordpress plugin in the future. */ $dbFile = 'db_backup/backup.sql'; $ftpFile = 'backup.sql';
[email protected]:~$ sudo -l [sudo] password for jeff: Matching Defaults entries for jeff on tryharder: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User jeff may run the following commands on tryharder: (ALL) /usr/bin/crontab