Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions analyzers/Inoitsu/Inoitsu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"command": "Inoitsu/inoitsu_analyzer.py",
"baseConfig": "Inoitsu",
"configurationItems": [],
"config": {
"check_tlp": true,
"max_tlp": 2,
"auto_extract": false
},
"registration_required": false,
"subscription_required": false,
"free_subscription": true,
Expand Down
6 changes: 2 additions & 4 deletions analyzers/Inoitsu/inoitsu_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ def inoitsu_check(self,email):
if 'BREACH DETECTED!' in response:
cleantext = self.remove_html_tags(response)
text = cleantext.replace(' ','')
Breached_data_finder = re.search('Breached Personal Data(.*)Critical Identity Alerts', text)
Breached_data_finder = re.search('Breached Personal Data(.*)Total Breaches', text)
Breached_data = Breached_data_finder.group(1)[1:]
Critical_data_finder = re.search('Critical Identity Alerts(.*)Total Breaches', text)
Critical_data = Critical_data_finder.group(1)[1:]
Total_breaches_finder = re.search('Total Breaches(.*)Most Recent Breach', text)
Total_breaches = Total_breaches_finder.group(1)[1:]
Most_recent_breach_finder = re.search('Most Recent Breach(.*)Relative Exposure Rating', text)
Most_recent_breach = Most_recent_breach_finder.group(1)[2:]
Exposure_rating_finder = re.search('Relative Exposure Rating(.*)breach data from', text)
Exposure_rating = Exposure_rating_finder.group(1)[2:]
result = dict(Email = email, Leaked = True, Breached_data = Breached_data, Critical_data = Critical_data,
result = dict(Email = email, Leaked = True, Breached_data = Breached_data,
Total_breaches = int(Total_breaches), Most_recent_breach = Most_recent_breach,
Exposure_rating = Exposure_rating)
return result
Expand Down