Achieve Hexdump in python

How can I achieve the following in Python 3?

cat file | sigtool –hex-dump | head -c 2048

I’m attempting to read a .ndb database which I have created in order to check for malicious PHP files, however I need to be able to create hex signatures of files in python in order to check against this database.



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Today Walkin 14th-Sept

Object oriented programming concepts (OOPs)