diff --git a/README.md b/README.md index 21a29bc..215a3d9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ options: -h, --help show this help message and exit -d, --download Download Bloom Filters -s, --skip Skip File Hashing + -u, --updated Bloom Filters Last Updated -v, --version show program's version number and exit ``` @@ -46,6 +47,18 @@ It is available for download if you're interested in the raw data using API keys https://store.lukach.io/l/sha256 +### LAST UPDATED + +Check when the bloom filters were last updated using the command line interface (CLI). + +``` +mmi -u +``` + +Or by hitting the provided website for the last updated timestamp. + +https://static.matchmeta.info/mmi.updated + ### DETECTIONS :purple_square: Empty File (purple) diff --git a/mmi/__init__.py b/mmi/__init__.py index 6625df6..ca6a351 100644 --- a/mmi/__init__.py +++ b/mmi/__init__.py @@ -10,4 +10,4 @@ __gtfo__ = GTFO = pathlib.Path.joinpath(pathlib.Path.home(), 'gtfo.bloom') __mmi__ = MMI = pathlib.Path.joinpath(pathlib.Path.home(), 'mmi.bloom') -__version__ = VERSION = '2023.5.29' \ No newline at end of file +__version__ = VERSION = '2023.5.30' \ No newline at end of file diff --git a/mmi/cli.py b/mmi/cli.py index d756c34..60e76e8 100644 --- a/mmi/cli.py +++ b/mmi/cli.py @@ -281,16 +281,29 @@ def start(skip): else: print(denied+' '+sha256+' '+dir+slash+file) +def updated(): + + r = requests.get('https://static.matchmeta.info/mmi.updated') + if r.status_code == 200: + print('SUCCESS: https://static.matchmeta.info/mmi.updated') + print('LAST UPDATED: '+r.text) + else: + print('FAILED: https://static.matchmeta.info/mmi.updated') + sys.exit(1) + def main(): parser = argparse.ArgumentParser(description='MMI - OS Triage for Anyone and Everyone') parser.add_argument('-d', '--download', help='Download Bloom Filters', action='store_true') parser.add_argument('-s', '--skip', help='Skip File Hashing', action='store_true') + parser.add_argument('-u', '--updated', help='Bloom Filters Last Updated', action='store_true') parser.add_argument('-v', '--version', action='version', version=__version__) args = parser.parse_args() if args.download: download() + elif args.updated: + updated() else: if __mmi__.is_file() == False: print('MISSING: '+str(__mmi__))