HTB Harvest Ransomware
Sherlock Scenario
Your incident-response team recovered a suspicious Linux executable named harvest from a compromised server. The sample appears to collect host information, upload data over FTP, and encrypt files before leaving a ransom note.
Q1
What is the hardcoded 4-digit victim ID embedded in the binary and used to name its on-disk artifacts?

1606
Q2
What is the full absolute path of the file where the malware writes collected system information before exfiltration?
上一问找到了,格式化字符串后就是 /tmp/1606.txt
/tmp/1606.txt
Q3
Which command-line option supplies the list of file extensions the ransomware targets for encryption? Answer with the option name only, without the leading dashes.

exts
Q4
What system file does the malware read to enumerate user accounts on the victim host?

/etc/passwd
Q5
What printf-style format string does the ID-generation function use to serialise its random value into the 5-byte buffer it allocates?

%04d
Q6
When the confirm flag is nonzero and quit is clear, what signal number causes the malware to clear confirm instead of requesting traversal to stop?

2
Q7
What is the chunk size in bytes passed to read() during the per-file encryption loop?

4096
Q8
What .onion hostname string is embedded in the ransom note the sample writes to the victim's home directory?

kd24u5e4ggp2m4k4w23lm5fu1nurmme6ugrwi9btachx83lpw1t6qlxf.onion
Q9
What command-line flag must be passed to PREVENT the malware from deleting itself after execution? Include the leading dashes.

--destruct
Q10
What character is used to replace spaces in filenames before FTP upload?
空格都被替换成了下划线。
_