Skip to content

Commit dc26482

Browse files
author
Matan Yechiel
committed
init
1 parent 5f2132e commit dc26482

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

examples/send_phishing_email.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import io
2+
import sys
3+
from pprint import pprint
4+
5+
from intezer_sdk import api
6+
from intezer_sdk.alerts import Alert
7+
8+
def send_phishing_email(path_to_eml_file):
9+
api.set_global_api('<api_key>')
10+
11+
with open(path_to_eml_file, 'rb') as file:
12+
binary_data = io.BytesIO(file.read())
13+
14+
alert = Alert.send_phishing_email(raw_email=binary_data)
15+
pprint(alert.alert_id)
16+
17+
18+
if __name__ == '__main__':
19+
send_phishing_email(*sys.argv[1:])

0 commit comments

Comments
 (0)