pm3_mfdread.py script python3 and warn for bitstring module

This commit is contained in:
Philippe Teuwen 2020-02-21 16:17:56 +01:00
parent af7fb17607
commit 5527cb2428

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# mfdread.py - Mifare dumps parser in human readable format
@ -18,8 +18,11 @@ import copy
import sys
from collections import defaultdict
from bitstring import BitArray
try:
from bitstring import BitArray
except ModuleNotFoundError:
print("Please install bitstring module first.")
sys.exit(1)
class Options:
FORCE_1K = False
@ -28,7 +31,7 @@ class Options:
if len(sys.argv) == 1:
sys.exit('''
------------------
Usage: mfdread.py ./dump.mfd
Usage: pm3_mfdread.py ./dump.mfd
Mifare dumps reader.
''')