Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Minor Updates
Browse files Browse the repository at this point in the history
Config and architecture check updates
  • Loading branch information
Kyle authored and Kyle committed Dec 6, 2018
1 parent 7a673af commit fc54242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions indicator_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def check_arch(ff, trommel_output):
secret_kw = "secret"
shell_kw = "shell"

port_kw = "^port"

mime_kw = 'x-executable|x-sharedlib|octet-stream|x-object|x-pie-executable'

private_key_kw = "private.*key"
Expand Down
3 changes: 3 additions & 0 deletions indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ def kw(ff, trommel_output, trommel_vfeed_output, names, bin_search):
read_search_kw(ff, secret_kw, trommel_output, bin_search)
read_search_kw(ff, shell_kw, trommel_output, bin_search)

read_search_kw(ff, port_kw, trommel_output, bin_search)



#Search for keywords "private key", IP addresses, URLs, and email addresses
try:
Expand Down
3 changes: 2 additions & 1 deletion trommel.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def main():

if '/bin/busybox' in ff:
value = indicator_config.check_arch(ff, trommel_output)
print ("Based on the binary 'busybox' the instruction set architecture is %s.\n" % value)
if value != None:
print ("Based on the binary 'busybox' the instruction set architecture is %s.\n" % value)

#Ignore any symlinks
if not os.path.islink(ff):
Expand Down

0 comments on commit fc54242

Please sign in to comment.