Upload

Base64

Notes and commands for Base64.

2024-03-27
Tags file-transferwindows-filetransferuploadbase64

Output the base 64 string and md5sum hash to our console on the windows ps

  • PS C:\htb> [Convert]::ToBase64String((Get-Content -path "C:\Windows\system32\drivers\etc\hosts" -Encoding byte))

Copy the string and execute the command

  • echo IyBDb3B5cmWGFzjEgICAgICAgICAgICAgbG9jYWxob3N0DQo= | base64 -d > hosts

check the md5sum

  • md5sum hosts