Skip to content

Commit

Permalink
Convert set to list
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 24, 2024
1 parent a480d35 commit 6522360
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mobsf/StaticAnalyzer/views/android/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ def strings_from_apk(checksum, apk):
results['secrets'].append(formatted_str)

# Extract URLs and Emails from collected strings
combined_data = ''.join(list(set(results['strings'])))
ul, u_nf, e_nf = url_n_email_extract(combined_data, 'Android String Resource')
results['strings'] = list(set(results['strings']))
ul, u_nf, e_nf = url_n_email_extract(
''.join(results['strings']), 'Android String Resource')
results['urls_list'], results['urls_nf'], results['emails_nf'] = ul, u_nf, e_nf

except Exception as exp:
Expand Down

0 comments on commit 6522360

Please sign in to comment.