This commit is contained in:
mgeeky 2021-10-17 15:29:36 +02:00
parent 1dd9dad3a5
commit fcaab4cc41
2 changed files with 26 additions and 1 deletions

View File

@ -33,6 +33,31 @@
Most of these headers are not fully documented, therefore the script is unable to pinpoint all the details, but at least it collects all I could find on them. Most of these headers are not fully documented, therefore the script is unable to pinpoint all the details, but at least it collects all I could find on them.
Help:
```
PS> py .\decode-spam-headers.py --help
usage: decode-spam-headers.py [options] <file>
optional arguments:
-h, --help show this help message and exit
Required arguments:
infile Input file to be analysed
Options:
-o OUTFILE, --outfile OUTFILE
Output file with report
-f {json,text}, --format {json,text}
Analysis report format. JSON, text. Default: text
-N, --nocolor Dont use colors in text output.
-v, --verbose Verbose mode.
-d, --debug Debug mode.
Tests:
-r, --resolve Resolve IPv4 addresses / Domain names.
```
Sample run: Sample run:
``` ```

View File

@ -1853,7 +1853,7 @@ def opts(argv):
global logger global logger
o = argparse.ArgumentParser( o = argparse.ArgumentParser(
usage = 'analyse-smtp-headers.py [options] <file>' usage = 'decode-spam-headers.py [options] <file>'
) )
req = o.add_argument_group('Required arguments') req = o.add_argument_group('Required arguments')