使用unzip提示版本太高,使用7z x 8702.zip尝试解压,提示有密码,使用john进行破解
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
zip2john 8702.zip > zip_hash.txt
john zip_hash.txt
Using default input encoding: UTF-8 Loaded 1 password hash (ZIP, WinZip [PBKDF2-SHA1 128/128 AVX 4x]) Cost 1 (HMAC size) is 78 for all loaded hashes Will run 4 OpenMP threads Proceeding with single, rules:Single Press 'q' or Ctrl-C to abort, almost any other key for status Almost done: Processing the remaining buffered candidate passwords, if any. Proceeding with wordlist:/usr/share/john/password.lst alien (8702.zip/To_agentR.txt) 1g 0:00:00:00 DONE 2/3 (2026-03-29 22:27) 1.234g/s 54869p/s 54869c/s 54869C/s 123456..Peter Use the "--show" option to display all of the cracked passwords reliably Session completed.
文件夹中就一个txt
1 2 3 4 5 6
Agent C,
We need to send the picture to 'QXJlYTUx' as soon as possible!
[i] Found passphrase: "Area51" [i] Original filename: "message.txt". [i] Extracting to "cute-alien.jpg.out".
破解出的文件中给了一个账户以及密码
1 2 3 4 5 6 7 8 9 10
cat cute-alien.jpg.out Hi james,
Glad you find this message. Your login password is hackerrules!
Don't ask me why the password look cheesy, ask agent R who set this password for you.
Your buddy, chris
获取user
登录,获取到立足点后,直接在用户根目录下拿到user flag
同时在目录下找到一个jpg图片,使用scp传输到我们的电脑中
使用谷歌的图片搜索,或者其他的反向查找工具,找到图片名是Roswell alien autopsy
权限提升
1 2 3 4 5 6 7
sudo -l
[sudo] password for james: Matching Defaults entries for james on agent-sudo: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User james may run the following commands on agent-sudo: (ALL, !root) /bin/bash