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

Error when using Attck object #143

Open
vinisimoes opened this issue May 23, 2023 · 2 comments
Open

Error when using Attck object #143

vinisimoes opened this issue May 23, 2023 · 2 comments

Comments

@vinisimoes
Copy link

Describe the bug
When using the Enterprise property of the Attck object, the NistControls constructor shows the following error:

__nist_controls_json = NistControls(**Base.config.get_data("nist_controls_json"))
TypeError: NistControls.__init__() missing 2 required positional arguments: 'id' and 'type'

To Reproduce

from pyattck import Attck
attack = Attck()

for technique in attack.enterprise.techniques:
    print(technique.id)
    print(technique.name)

Expected behavior
The techniques ids and names were expected to be printed on the screen.

@Wapiti08
Copy link

Wapiti08 commented Jul 7, 2023

I got the same problem. Have you solved this issue? I tried with default version of 2.1.0 and also 7.1.2, 7.1.1. My python version is 3.8,1

@Wapiti08
Copy link

Wapiti08 commented Jul 7, 2023

You can try the version of 6.2.0

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

No branches or pull requests

2 participants