Skip to content

Commit

Permalink
last update
Browse files Browse the repository at this point in the history
  • Loading branch information
jblukach committed May 31, 2023
1 parent 53d703b commit e972269
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
__version__ = VERSION = '2023.5.30'
13 changes: 13 additions & 0 deletions mmi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit e972269

Please sign in to comment.