[HackTheBox] What to do if "An error of type HTTPClient::ReceiveTimeoutError happened, message is executed expired" appears in Evil-WinRM

[HackTheBox] What to do if "An error of type HTTPClient::ReceiveTimeoutError happened, message is executed expired" appears in Evil-WinRM

I'm using HackTheBox and I was struggling with an Evil-WInRM error, so I'll share it as a memo.

If you are serious about learning, we recommend Labs VIP or above!

user@htb-blog :~$ ls
Start HackTheBox here.txt Notes.txt
user@htb-blog :~$ cat Start HackTheBox here.txt
A hands-on training environment for security engineers, CTF players, and learners alike. Create an account now and try hacking a virtual lab yourself. *If you want to learn seriously, we recommend Labs' VIP plan or higher. The free plan has limitations on the number of machines, features, and explanations, making it insufficient for efficient growth. With VIP or higher, you can also use past machines, write-ups, and guide features, making learning much easier.
  
user@htb-blog :~$ cat Notes.txt
error: Academy and Labs are separate services.
error: Payments are separate, so please be careful not to make a mistake when paying.
*Academy is a learning resource for beginners and is different from the practical environment (Labs).
If you want to practice hands-on, start by registering for Labs.
→ Sign up for Hack The Box

Please note that the explanation is spoilers.

table of contents

If an error occurs in Evil-WinRM

When I tried to use Evil-WinRM, I got an error saying, "An error of type HTTPClient::ReceiveTimeoutError happened, message is executed expired."

┌──(hack_lab㉿DESKTOP-O3RMU7H)-[~/HackTheBox] └─$ ruby ../HackTools/evil-winrm-master/evil-winrm.rb -i 10.129.120.32 -u Chase -p 'Q4)sJu\Y8qz*A3?d' Evil-WinRM shell v3.5 Warning: Remote path completions is disabled due to ruby limitation: quotation_detection_proc() function is unconfigured on this machine Data: For more information, check Evil-WinRM GitHub: https://github.com/Hackplayers/evil-winrm#Remote-path-completion Info: Establishing connection to remote endpoint Error: An error of type HTTPClient::ReceiveTimeoutError happened, message is execution expired Error: Exiting with code 1

After trying various things, I found that it would be possible to resolve the problem by changing the PROTOCOL of openVPN from "UDP1337" to "TCP 443".


I'm not sure if this was the direct cause, but I'm able to log in!

┌──(hack_lab㉿DESKTOP-O3RMU7H)-[~/HackTheBox] └─$ ruby ../HackTools/evil-winrm-master/evil-winrm.rb -i 10.129.96.157 -u Chase -p 'Q4)sJu\Y8qz*A3?d' Evil-WinRM shell v3.5 Warning: Remote path completions is disabled due to ruby limitation: quotation_detection_proc() function is unconfigured on this machine Data: For more information, check Evil-WinRM GitHub: https://github.com/Hackplayers/evil-winrm#Remote-path-completion Info: Establishing connection to remote endpoint *Evil-WinRM* PS C:\Users\Chase\Documents> 

summary

OpenVPN has a lot of unexpected errors, so it may not progress very well. . .
Is this a learning experience too? (lol)

References and Sites

--

Share if you like!

Who wrote this article

This is a blog I started to study information security. As a new employee, I would be happy if you could look with a broad heart.
There is also Teech Lab, which is an opportunity to study programming fun, so if you are interested in software development, be sure to take a look!

table of contents