Base64 with GZip Encoding and Decoding

28 03 2011

I often see some applications hide its communication data with base64 and gzip compression mechanism. With Burp proxy, there is no option to crack this kind of data. Therefore, I decided to help Burp with php script.
Download and rename to myencode.php

if (isset($_POST['estr']))
{ if (!strcmp($_POST['cmd'],"Decode"))
{ $words = gzuncompress(base64_decode($_POST['estr']));
{ $words = base64_encode(gzcompress($_POST['estr']));

I hope it might ease your days.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: