krish – 起死回生 [Wake up from death & return to life.]

April 5, 2012

base64 decode without terminal

Filed under: H@ck1n` — krish @ 6:52 pm
Tags: , , , , , ,

So  I got a base64 text which I’m supposed to decode and I thought “Ok! Let me use `base64` binary on terminal and write a small script which I will run when I need to decode it”..  Wait, I need to drop this script in binary path so that I can use it as a command without absolute/relative path traverse when in middle of work.

So far so good.. but it struck me that my browsers are always open and get this text from a url. Why don’t I skip all this and do this on the browser… is it possible?

Let’s say my base64 code is ZmFjZWJvb2suY29tL2Rhcy5zcmlrcmlzaG5hDQp0d2l0dGVyLmNvbS9zcmlrcmlzaG5hZGFz

Open a tab and on url type

data:text/plain;base64,ZmFjZWJvb2suY29tL2Rhcy5zcmlrcmlzaG5hDQp0d2l0dGVyLmNvbS9zcmlrcmlzaG5hZGFz

Wolah! Done. 😀

Think Different! 😉

Read more on MIME types here – http://en.wikipedia.org/wiki/Internet_media_type

Advertisements

2 Comments »

  1. To continue thinking differently, you can use firefox smart bookmarks, javascript bookmarket or greasemonkey script.
    If you want to try smart bookmark of firefox, the bookmark target would be “data:text/plain;base64,%s”, and in runtime you can supply the text to be decoded.
    See below link as an example usage of smart bookmark.
    http://iamnovice.blogspot.com/2009/07/access-text-only-google-cache-for-any.html

    Comment by manish — April 6, 2012 @ 10:58 am

  2. Expected a good comment from my geek friend and here it is 🙂

    Comment by krish — April 8, 2012 @ 9:52 pm


RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Create a free website or blog at WordPress.com.

The Male Factor

On behalf of the ignored gender

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: