forked from MISP/PyMISP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_vehicle_object.py
More file actions
executable file
·22 lines (18 loc) · 896 Bytes
/
add_vehicle_object.py
File metadata and controls
executable file
·22 lines (18 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pymisp.tools import VehicleObject
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Get information for a VehicleObject and add MISP objects to a MISP instance.')
parser.add_argument("-u", "--username", required=True, help="Account username.")
parser.add_argument("-c", "--country", required=True, help="Country.")
parser.add_argument("-r", "--registration", required=True, help="Registration ID.")
parser.add_argument("-d", "--dump", action='store_true', help="(Debug) Dump the object in the terminal.")
args = parser.parse_args()
if args.dump:
vehicle = VehicleObject(country=args.country, registration=args.registration, username=args.username)
print(vehicle.report)
print(vehicle.to_json())
else:
# not Implemented yet.
pass