rabobank-cdc / DeTTECT

Detect Tactics, Techniques & Combat Threats
GNU General Public License v3.0
2.04k stars 331 forks source link

Specifying a local-stix-path leads to the CLI doing nothing #75

Closed Cappycot closed 2 years ago

Cappycot commented 2 years ago

Adding a --local-stix-path <path> argument to the CLI makes the program exit without doing anything, which is probably not intended.

The removal of sub-techniques affected the control flow in dettect.py since the subsequent subparser branches were not changed accordingly.

The elif on line 234 of dettect.py (elif args.subparser in ['editor', 'e']:) should be changed to an if.

rubinatorz commented 2 years ago

hi @Cappycot

Thanks for reporting this bug! You are completely right and I just commited the fix.

Regards, Ruben