From 65223609d86502702492b98642490ef4f8d1cad5 Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Sun, 24 Nov 2024 13:36:09 -0800 Subject: [PATCH] Convert set to list --- mobsf/StaticAnalyzer/views/android/strings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobsf/StaticAnalyzer/views/android/strings.py b/mobsf/StaticAnalyzer/views/android/strings.py index a308b4266..1cedbc3b7 100755 --- a/mobsf/StaticAnalyzer/views/android/strings.py +++ b/mobsf/StaticAnalyzer/views/android/strings.py @@ -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: