How do i fix this xfreerdp error?

┌──(kali㉿kali)-[~]
└─$ xfreerdp /v:10.129.189.198 /u:htb-student /p:HTB_@cademy_stdnt!
[08:58:17:365] [16771:16777] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[08:58:17:365] [16771:16777] [ERROR][com.freerdp.core] - transport_write:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[08:58:20:004] [16771:16777] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 32: Broken pipe
[08:58:20:004] [16771:16777] [ERROR][com.freerdp.core] - transport_write:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[08:58:20:004] [16771:16777] [ERROR][com.freerdp.core] - freerdp_post_connect failed

Double check that the credentials are right and try wrapping the password in single or double quotes.

If you have this error, make sure you are not running multiple VPNs. It seems to be quite commonly related to multiple VPNs.

For example:

You have a VPN running on your windows machine, but you are working on hackthebox from a Kali Linux virtual machine with NAT set as the network type; that is then also running OpenVPN. This complicates the network setup and can cause issues.

Solution:

Disconnect your windows VPN and only use the OpenVPN connection on your NAT virtual machine.

I hope this helps someone :slight_smile:

1 Like

Hi I have same error But I am using PWN box, I have also tried using wrapping the password in single and double quotes.

getting the same error for about a month now, very anoying!!!

10:18:43:050] [3403:3404] [ERROR][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_FAILED [0x00020006]
[10:18:43:050] [3403:3404] [ERROR][com.freerdp.core] - failed to connect to 10.129.57.203

while connected to the vm with xfreerdp, I get disconected with this error.
[10:23:24:713] [3530:3531] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx
[10:23:24:713] [3530:3531] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel disp
[10:24:50:702] [3530:3531] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 110: Connection timed out
[10:24:50:702] [3530:3531] [ERROR][com.freerdp.core] - transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[10:24:50:702] [3530:3531] [INFO][com.freerdp.client.common] - Network disconnect!

no choice I just SMB the file i need to my kali linux…
smbclient \\TARGET_IP\Share -U eagle/administrator%Slavi123 or
smbclient \\10.129.204.151\Share -U eagle/bob%Slavi123 or
smbclient \\10.129.57.203\seatbelt -U Desktop-vjf8gh8/htb-student%HTB_@cademy_stdnt!

then at smb: > I type my get command
smb: > get seatbelt.exe /home/kali/Desktop/seatbelt.exe

you know you good when you have this output
getting file \seatbelt.exe of size 596992 as /home/kali/Desktop/seatbelt.exe (459.1 KiloBytes/sec) (average 459.1 KiloBytes/sec)

still wish the xfreerdp would work though, oh yeah and before this works, you someone need to connect with xfreerdp so you can share the folder you want to get the file from “Good luck” you will need it. Super annoying

Thank you! You helped me realize that I needed to kill the multiple OpenVPN processes I had running via “sudo killall openvpn”.

Got the same error. Even when connected to the right VPN I wasn’t able to reach the machine (not even via ping <ip>).

Recreating the VPN connection file (change the protocol or the server) and reconnecting to the VPN solved my problem.

1 Like

Chaning the VPN server is the solution for me !!! Thank you !!!

Oh no I spoke to early, the problem came back. I’ve tried to change the server again but still got errors.

check rdp port. some HTB machines are using non standard rdp port. by default xfreerdp will try to reach out to 3389