Skip to content

Commit d3f95ad

Browse files
committed
fixed module reference
1 parent 283ef03 commit d3f95ad

3 files changed

Lines changed: 22 additions & 103 deletions

File tree

attackcti/utils/__init__.py

Whitespace-only changes.

docs/playground/0-Download-ATTACK-STIX-Data.ipynb

Lines changed: 21 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": 1,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"import sys\n",
10-
"sys.path.append(\"../../attackcti\")"
11-
]
12-
},
133
{
144
"cell_type": "markdown",
155
"metadata": {},
@@ -26,11 +16,11 @@
2616
},
2717
{
2818
"cell_type": "code",
29-
"execution_count": 2,
19+
"execution_count": null,
3020
"metadata": {},
3121
"outputs": [],
3222
"source": [
33-
"from utils.downloader import STIXDownloader"
23+
"from attackcti.utils.downloader import STIXDownloader"
3424
]
3525
},
3626
{
@@ -42,7 +32,7 @@
4232
},
4333
{
4434
"cell_type": "code",
45-
"execution_count": 3,
35+
"execution_count": null,
4636
"metadata": {},
4737
"outputs": [],
4838
"source": [
@@ -58,17 +48,9 @@
5848
},
5949
{
6050
"cell_type": "code",
61-
"execution_count": 4,
51+
"execution_count": null,
6252
"metadata": {},
63-
"outputs": [
64-
{
65-
"name": "stdout",
66-
"output_type": "stream",
67-
"text": [
68-
"Downloaded enterprise-attack.json to downloads/v15.1\n"
69-
]
70-
}
71-
],
53+
"outputs": [],
7254
"source": [
7355
"stix20_downloader.download_attack_data(domain=\"enterprise\", release=\"15.1\")"
7456
]
@@ -82,7 +64,7 @@
8264
},
8365
{
8466
"cell_type": "code",
85-
"execution_count": 5,
67+
"execution_count": null,
8668
"metadata": {},
8769
"outputs": [],
8870
"source": [
@@ -98,57 +80,27 @@
9880
},
9981
{
10082
"cell_type": "code",
101-
"execution_count": 6,
83+
"execution_count": null,
10284
"metadata": {},
103-
"outputs": [
104-
{
105-
"name": "stdout",
106-
"output_type": "stream",
107-
"text": [
108-
"Downloaded mobile-attack.json to downloads/v15.1\n"
109-
]
110-
}
111-
],
85+
"outputs": [],
11286
"source": [
11387
"stix21_downloader.download_attack_data(domain=\"mobile\", release=\"15.1\")"
11488
]
11589
},
11690
{
11791
"cell_type": "code",
118-
"execution_count": 7,
92+
"execution_count": null,
11993
"metadata": {},
120-
"outputs": [
121-
{
122-
"data": {
123-
"text/plain": [
124-
"'downloads/v15.1/mobile-attack.json'"
125-
]
126-
},
127-
"execution_count": 7,
128-
"metadata": {},
129-
"output_type": "execute_result"
130-
}
131-
],
94+
"outputs": [],
13295
"source": [
13396
"stix21_downloader.downloaded_file_path"
13497
]
13598
},
13699
{
137100
"cell_type": "code",
138-
"execution_count": 8,
101+
"execution_count": null,
139102
"metadata": {},
140-
"outputs": [
141-
{
142-
"data": {
143-
"text/plain": [
144-
"{'mobile': 'downloads/v15.1/mobile-attack.json'}"
145-
]
146-
},
147-
"execution_count": 8,
148-
"metadata": {},
149-
"output_type": "execute_result"
150-
}
151-
],
103+
"outputs": [],
152104
"source": [
153105
"stix21_downloader.downloaded_file_paths"
154106
]
@@ -162,16 +114,16 @@
162114
},
163115
{
164116
"cell_type": "code",
165-
"execution_count": 9,
117+
"execution_count": null,
166118
"metadata": {},
167119
"outputs": [],
168120
"source": [
169-
"from utils.storage import STIXStore"
121+
"from attackcti.utils.storage import STIXStore"
170122
]
171123
},
172124
{
173125
"cell_type": "code",
174-
"execution_count": 10,
126+
"execution_count": null,
175127
"metadata": {},
176128
"outputs": [],
177129
"source": [
@@ -180,7 +132,7 @@
180132
},
181133
{
182134
"cell_type": "code",
183-
"execution_count": 11,
135+
"execution_count": null,
184136
"metadata": {},
185137
"outputs": [],
186138
"source": [
@@ -193,20 +145,9 @@
193145
},
194146
{
195147
"cell_type": "code",
196-
"execution_count": 12,
148+
"execution_count": null,
197149
"metadata": {},
198-
"outputs": [
199-
{
200-
"data": {
201-
"text/plain": [
202-
"187"
203-
]
204-
},
205-
"execution_count": 12,
206-
"metadata": {},
207-
"output_type": "execute_result"
208-
}
209-
],
150+
"outputs": [],
210151
"source": [
211152
"len(techniques)"
212153
]
@@ -220,7 +161,7 @@
220161
},
221162
{
222163
"cell_type": "code",
223-
"execution_count": 13,
164+
"execution_count": null,
224165
"metadata": {},
225166
"outputs": [],
226167
"source": [
@@ -229,31 +170,9 @@
229170
},
230171
{
231172
"cell_type": "code",
232-
"execution_count": 14,
173+
"execution_count": null,
233174
"metadata": {},
234-
"outputs": [
235-
{
236-
"name": "stdout",
237-
"output_type": "stream",
238-
"text": [
239-
"Downloaded enterprise-attack.json to downloads/v15.1\n",
240-
"Downloaded mobile-attack.json to downloads/v15.1\n",
241-
"Downloaded ics-attack.json to downloads/v15.1\n"
242-
]
243-
},
244-
{
245-
"data": {
246-
"text/plain": [
247-
"{'enterprise': 'downloads/v15.1/enterprise-attack.json',\n",
248-
" 'mobile': 'downloads/v15.1/mobile-attack.json',\n",
249-
" 'ics': 'downloads/v15.1/ics-attack.json'}"
250-
]
251-
},
252-
"execution_count": 14,
253-
"metadata": {},
254-
"output_type": "execute_result"
255-
}
256-
],
175+
"outputs": [],
257176
"source": [
258177
"stix20_downloader.download_all_domains(release=\"15.1\")"
259178
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="attackcti",
16-
version="0.4.2",
16+
version="0.4.4",
1717
author="Roberto Rodriguez",
1818
description="MITRE ATTACK CTI Python Libary",
1919
long_description=long_description,

0 commit comments

Comments
 (0)