guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Pollock <jacksonp2...@gmail.com>
Subject Re: base64 encoded url
Date Thu, 26 Oct 2017 03:13:17 GMT
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 <nick.e.couchman@gmail.com>
wrote:

> On Wed, Oct 25, 2017 at 20:59 Steven Pollock <jacksonp2008@gmail.com>
> 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
>

Mime
View raw message