Skip to content

Instantly share code, notes, and snippets.

@naydichev
Created July 25, 2012 02:03
Show Gist options
  • Save naydichev/3173931 to your computer and use it in GitHub Desktop.
Save naydichev/3173931 to your computer and use it in GitHub Desktop.
GoDaddy Fail
#!/usr/bin/python
import base64
gd = base64.b64decode("V2UgQXJ1"
"IEdvIERhZGR5LgpXZWxjb211IFRv"
"IEEEgTmV3IEVyYS4KaHR0cDovL3gu"
"Y28vZ2Rvc2Nvbg==")
exec 'import __\x68e\x6c\x6co__'
print gd
# What you get:
# Hello world...
# We Aru Go Daddy.
# Welcomu To A?9?܁Ʉ?)????輽ํ?????͍??
s = "We Are GoDaddy.\nWelcome To A New Era.\nhttp://x.co/gdoscon"
print base64.b64encode(s)
# What the base64 should be:
# V2UgQXJlIEdvRGFkZHkuCldlbGNvbWUgVG8gQSBOZXcgRXJhLgpodHRwOi8veC5jby9nZG9zY29u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment