mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-24 19:41:36 +01:00
enhanced decode-spam-headers.py
This commit is contained in:
parent
a4230c5ce8
commit
f0bf834130
@ -53,13 +53,20 @@ import textwrap
|
|||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
import base64
|
import base64
|
||||||
import packaging.version
|
|
||||||
|
|
||||||
from dateutil import parser
|
from dateutil import parser
|
||||||
from email import header as emailheader
|
from email import header as emailheader
|
||||||
from datetime import *
|
from datetime import *
|
||||||
from dateutil.tz import *
|
from dateutil.tz import *
|
||||||
|
|
||||||
|
try:
|
||||||
|
import packaging.version
|
||||||
|
|
||||||
|
except ImportError:
|
||||||
|
print('''
|
||||||
|
[!] You need to install packaging:
|
||||||
|
# pip3 install packaging
|
||||||
|
''')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import dns.resolver
|
import dns.resolver
|
||||||
@ -2521,7 +2528,7 @@ def opts(argv):
|
|||||||
|
|
||||||
args = o.parse_args()
|
args = o.parse_args()
|
||||||
|
|
||||||
if len(args.outfile) > 0:
|
if len(args.outfile) > 0 or args.format == 'json':
|
||||||
args.nocolor = True
|
args.nocolor = True
|
||||||
|
|
||||||
options.update(vars(args))
|
options.update(vars(args))
|
||||||
|
Loading…
Reference in New Issue
Block a user