Skip to content

Commit 116b8af

Browse files
author
Samuel Hassine
committed
[examples] Change all API keys
1 parent 4a49b84 commit 116b8af

11 files changed

+11
-11
lines changed

examples/add_organization_to_sector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Variables
88
api_url = 'https://demo.opencti.io'
9-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
9+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
1010

1111
# OpenCTI initialization
1212
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/create_incident_with_ttps_and_observables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Variables
99
api_url = 'https://demo.opencti.io'
10-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
10+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
1111

1212
# OpenCTI initialization
1313
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/create_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
8+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/export_intrusion_set_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
8+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/export_report_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
8+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_attack_pattern_by_mitre_id.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
7+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_malwares_of_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
7+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_marking_definitions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
7+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_reports_about_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
7+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/import_stix2_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
7+
api_token = '616e214c-8d86-4226-a653-c521f4ec90d9'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

pycti/utils/opencti_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def extract_embedded_relationships(self, stix_object, types=None):
266266
)
267267
# Resolve author
268268
author = self.resolve_author(title)
269-
if author is not None and 'id 'in author:
269+
if author is not None:
270270
self.opencti.stix_entity.update_created_by_ref(
271271
id=report['id'],
272272
entity=report,

0 commit comments

Comments
 (0)