Skip to content

Commit

Permalink
Make default list for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 24, 2024
1 parent 9008214 commit 32dded8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobsf/StaticAnalyzer/views/android/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def strings_from_so(checksum, elf_strings):
def strings_from_apk(checksum, apk):
"""Extract Strings from an APK."""
results = {
'strings': set(),
'strings': [],
'urls_list': [],
'urls_nf': [],
'emails_nf': [],
Expand Down Expand Up @@ -90,7 +90,7 @@ def strings_from_apk(checksum, apk):

# Format and collect strings
formatted_str = f'"{key}" : "{value}"'
results['strings'].add(formatted_str)
results['strings'].append(formatted_str)

# Check for possible secrets
if is_secret_key(key) and ' ' not in value:
Expand Down

0 comments on commit 32dded8

Please sign in to comment.