So I got thinking this weekend that I wanted a simple service to allow me to port scan myself from a remote location. I decided I could SSH on to a box but then i’d need to transmit creds etc… as such I quickly coded up some PHP to allow me to scan what ever IP address my request is coming from. I’ve used a server side variable for this… Continue reading
So we have found the base64 string “SGVsbG9Xb3JsZCE=” on a locked down workstation and we want to decode. Quite often we don’t have access to tools so here’s a list of ways to decode the string using various languages.
Python12>>> import base64 >>> base64.b64decode("SGVsbG9Xb3JsZCE=")
PowerShell12PS > [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("SGVsbG9Xb3JsZCE=")) blahblah
Perl12use MIME::Base64; print decode_base64("SGVsbG9Xb3JsZCE=");
BASH1echo SGVsbG9Xb3JsZCE= | base64 --decode
C#12byte data = Convert.FromBase64String("SGVsbG9Xb3JsZCE=");… Continue reading