Skip to content
Open
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
7 changes: 2 additions & 5 deletions repackage_apk_for_burp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

def check_for_tools(name):
"""Checks to see whether the tool name is in current directory or in the PATH"""
if is_in_dir(name) or is_in_path(name):
return True
else:
return False
return ( (is_in_dir(name) or is_in_path(name))==True )

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify the expression by doing
return is_in_dir(name) or is_in_path(name)



def is_in_path(name):
Expand Down Expand Up @@ -310,4 +307,4 @@ def main():

burp_host = args.proxy.split(":")[0]
burp_port = int(args.proxy.split(":")[1])
main()
main()