Skip to content

Instantly share code, notes, and snippets.

@tartakynov
Created January 6, 2017 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tartakynov/2d4d0a91d9aac56793f49c30905f4227 to your computer and use it in GitHub Desktop.
Save tartakynov/2d4d0a91d9aac56793f49c30905f4227 to your computer and use it in GitHub Desktop.
base64 dump
#!/usr/bin/python
import hexdump
import base64
m = "aGVsbG8gd29ybGQ="
decodedb64 = base64.b64decode(m)
hexdump.hexdump(decodedb64)
Copy link

ghost commented Mar 27, 2021

Haha I have try to decode... because I don't believe the b64 data's, I am an Hacker and I know what can have inside haha ...

>>> from base64 import b64decode as bdec
>>> bdec("aGVsbG8gd29ybGQ=".encode())
b'hello world'

You are funny, just the classical string to test... x)

But I have see other line and ...

>>> hexdump.hexdump(bdec("aGVsbG8gd29ybGQ=".encode()))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hexdump' is not defined
>>> import hexdump
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'hexdump'
>>> import hexdump
>>> hexdump.hexdump(bdec("aGVsbG8gd29ybGQ=".encode()))
00000000: 68 65 6C 6C 6F 20 77 6F  72 6C 64                 hello world

After fail and install the package lib with pip I see the result. 👍

But what is that and what is the usage you had found with that ?
And fuck but... How to read this !!?

00000000: 68 65 6C 6C 6F 20 77 6F  72 6C 64                 hello world

Thanks,
Rick Sanchez [ D-634 ].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment