Encode the file using certutil. certutil.exe -encode file.exe file.txt
Host the file on an S3 Bucket.
Access the file on using AWS S3 Bucket. Copy the content to a .txt file
Decode the file. certutil.exe -decode file.txt file.exe
Use powershell as cmd may be monitored.
RDP
If we have access to a windows machine with a valid user/credentials and this user is in the “Remote Desktop Users”, we can share a local directories as a mount volume through rdp itself once we connect to the machine:
You may encounter an error when reconnecting. This is due to the way that Windows handles cached credentials:
System error 1312 can usually be solved by connecting using an arbitrary domain. For example, specifying /USER:domain\user. rather than just the username. The same SMB server will still work here; however, Windows sees it as a different user account and thus allows the new connection.