weblog d’un abbe


Decrypting Gmane addresses

Filed under: Fun — abbe @ 1719

I’ve found a way to decrypt Gmane encrypted addresses. The encryption is quite easy. What they’re probably doing is calculating the hash (or any unique id) based on the domain portion of the email address and then appending the it to the username portion of the email address. And finally, add @public.gmane.org domain name. e.g. Hash for gmail.com domain is Re5JQEeQqe8AvxtiuMwx3w. Now to encrypt any @gmail.com address, say wahjava@gmail.com, we will pipe the email address to this sed command line: |sed -e 's/@gmail.com/-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/'. So to encrypt wahjava@gmail.com, we’ll do: echo wahjava@gmail.com |sed -e 's/@gmail.com/-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/'.

To decrypt it, if you’ve plenty of bandwidth, visit this URL: http://gmane.org/get-address.php?address=wahjava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org. Or if you run GNU, just: echo wahjava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org |sed -e 's/-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/@gmail.com/' will decrypt it.

Following is a shell script, which contains decryption for some domain names:

# gmane-decrypt.sh
exec sed -e 's/%2d/-/' -e 's/%2b/+/' -e 's/%2f/\//' -e 's/%40/@/'\
 -e 's/-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org/@gmail.com/'\
 -e 's/-\\/E1597aS9LQAvxtiuMwx3w@public.gmane.org/@yahoo.com/'\
 -e 's/-cunTk1MwBs8\\/MmOfgqcDl+ys7Bb73OIl@public.gmane.org/@lists.linux-delhi.org/'\
 -e 's/-T2eDObkLWuUhGesrpoKtVg@public.gmane.org/@linux-delhi.org/'\
 -e 's/-qF0zOz33zB8dnm+yROfE0A@public.gmane.org/@au-kbc.org/'

Now to use it, just curl the URL, and pipe to this script. And you’re done. :)

P.S. BtW, Gmane didn’t use hashing it uses encryption. How ?



  1. Nice one dude :)

    Comment by makuchaku — 20070127 @ 1916

  2. Thanks

    Comment by आशीष शुक्ल — 20070127 @ 2051

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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 )

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

Create a free website or blog at WordPress.com.

%d bloggers like this: