Fishy HTTP

Description

I found a suspicious program on my computer making HTTP requests to a web server. Please review the provided traffic capture and executable file for analysis. (Note: Flag has two parts)

Files

 7z l '.\Fishy HTTP.zip'

7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
 
   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2024-05-07 11:23:07 .....     67515744     29593550  smphost.exe
2024-05-07 13:42:42 .....        81484        25365  sustraffic.pcapng
------------------- ----- ------------ ------------  ------------------------
2024-05-07 13:42:42           67597228     29618915  2 files

 7z x '.\Fishy HTTP.zip' -o"FishyHTTP" -p"hackthebox"
└─$ file smphost.exe
smphost.exe: PE32+ executable (console) x86-64, for MS Windows, 10 sections

Solution

If we run strings on the file we can notice C# like objects, dnSpyarrow-up-right is my goto tool for C# decompilation but it didn't work this time, so I used ILSpyarrow-up-right:

Fishy_HTTP.png

It has 2 main functions about traffic, decode and encode:

Traffic which needs to be decoded looks like this:

Fishy_HTTP-1.png

Basically code parses all tags and maps tag names to values from dictionary:

Fishy_HTTP-2.png

Encoded data looks like:

Fishy_HTTP-3.png

Code that does encoding:

TLDR is that program extends base64 string into weird combinations of words and digits.

Extract the http traffic info file:

Decode the traffic:

circle-check

Last updated