Many thanks, this is a great help. for completeness:
*printf '4\0c\0mysql' | base64 * *NABjAG15c3Fs* *is the correct answer.* Regards, -Steve (415) 320-1102 <https://www.google.com/voice/#phones> On Wed, Oct 25, 2017 at 7:37 PM, Nick Couchman <[email protected]> wrote: > On Wed, Oct 25, 2017 at 20:59 Steven Pollock <[email protected]> > wrote: > >> Running into a snag with this, could use some help. >> >> http://11.26.56.131:8080/guacamole/#/client/MwBjAG15c3Fs/? >> username=secretuser&password=secretpassword >> >> --this works in the URL >> echo 'MwBjAG15c3Fs' | base64 -d >> >> *3cmysql* >> >> However, reversing, that is trying to create the base64 encoding does not. >> >> echo '3cmysql' | base64 >> >> *M2NteXNxbAo=* >> >> Anyone know how to properly encode? >> > > The encoding is a combination of three things: > - ConnectIon ID (3) > - Type (c) > - Datasource name (MySQL) > > They are separated by a null terminator (\0), which is what you're missing > when you try the echo command above. > > -Nick >
