Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20230420 Maintenance #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

20230420 Maintenance #1

wants to merge 3 commits into from

Conversation

signus
Copy link

@signus signus commented Apr 20, 2023

Gives some slight tweaks to the project by updating the README for instructions to utilize a virtual environment, adding a requirements.txt file (which was not previously available), as well as creating the ability to utilize poetry (with an added poetry script specification).

This does change main.py to stixops.py.

Gives some slight tweaks to the project by updating the README for
instructions to utilize a virtual environment, adding a
requirements.txt file (which was not previously available), as well as
creating the ability to utilize poetry (with an added poetry script
specification).

This does change `main.py` to `stixops.py`.
Fixes the poetry script definition for initializing the application.
This changes the STIXOps.main to STIXOps.init_options for clarity.
Additionally added the `if __name__ == "__main__"` item with a core
main() function so that the script will run the same way if called by
python alone, instead of by poetry.
@@ -85,11 +85,11 @@ def writeSTIX(self, option):
name = str (input ("Enter malware name: "))
family = str (input ("Does the malware have any relations [True/ False]? "))
description = str (input ("Enter malware description: "))
type = str (input ("Enter malware type: "))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also individually changed the type variables in the respective sections, as type is a protected keyword in Python. While this has not been observed to cause issues, it's best to change this.

When doing validations for indicator objects the STIX library warns that
indicators SHOULD have both a name and a description. Added the ability
to provide a description, even if blank. Can add some wrappers around
this in later updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant