Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
7ab6ce0
fixed agent build process
mutex-pup Aug 1, 2024
378ebfe
added osx and linux support
mutex-pup Aug 1, 2024
2a035aa
made define_permissions arg syntax less scuffed
mutex-pup Aug 6, 2024
c47d22a
adjusted manifest api
mutex-pup Aug 12, 2024
0cda5b4
added package renaming
mutex-pup Aug 12, 2024
a1260d8
added base for updated cli system
mutex-pup Aug 12, 2024
95b1afb
fixes + cleanup
mutex-pup Aug 13, 2024
d326bf2
added dynamic themes
mutex-pup Aug 13, 2024
44e7eb0
fixed namespaces in manifest
mutex-pup Aug 15, 2024
c423570
bold of you to assume I can spell "unsupported"
mutex-pup Aug 15, 2024
0fdbed4
weird off by one error causing random newlines in some shells
mutex-pup Aug 15, 2024
b6b368e
faster and clearner perm filtering
mutex-pup Aug 15, 2024
c718592
allow specification of output path
mutex-pup Aug 15, 2024
ea981e2
set base apk for use with build
mutex-pup Aug 15, 2024
c77a1f4
fuzzy string matching for autocorrect
mutex-pup Aug 19, 2024
2173ce6
added interactive build mode
mutex-pup Aug 21, 2024
5c29d57
fixed dynamic type issue
mutex-pup Aug 21, 2024
41b4c2a
updated library apk version
mutex-pup Aug 21, 2024
4b1ba3e
allow setting of default server port in interactive build
mutex-pup Aug 21, 2024
68fcf86
prompt suggestions for theme setting
mutex-pup Aug 21, 2024
1b1b62c
added virtual space after tab in prompt suggestion
mutex-pup Aug 21, 2024
310df10
fixed build issues on linux systems
mutex-pup Aug 22, 2024
88d7a0e
added .venv/ to gitignore
mutex-pup Aug 22, 2024
c53c891
added downloading of apk files from drozer-agent repo for use in buil…
mutex-pup Aug 22, 2024
12ac581
cleanup and bugfixes
mutex-pup Aug 22, 2024
bf2d760
fixed unwanted package removing
mutex-pup Aug 24, 2024
5ac36d9
fixed typo
mutex-pup Aug 24, 2024
20a5b78
moved define_permission string parsing out of main build function
mutex-pup Aug 24, 2024
07af4d8
fixed double space issue with user input
mutex-pup Aug 24, 2024
af2bb00
modified library file retrieval to better handle os dependent files
mutex-pup Aug 24, 2024
4dc1417
added doc strings
mutex-pup Aug 24, 2024
44a2ba9
changed set_apk cli syntax
mutex-pup Aug 24, 2024
5e543d4
added better error msgs
mutex-pup Aug 24, 2024
8ca89ec
allow creation of builder from inside tmp directory
mutex-pup Aug 26, 2024
2632457
depreciation notice for unpack
mutex-pup Aug 26, 2024
326dd9f
remove all permissions when saving new base apk
mutex-pup Aug 26, 2024
81640c9
output directory must now be specified with build in interactive mode…
mutex-pup Aug 26, 2024
92e6bb5
fixed adding security permissions
mutex-pup Aug 27, 2024
6fd4205
added error msgs for missing base apk
mutex-pup Aug 27, 2024
653ad05
allow use of '-' in commands
mutex-pup Aug 27, 2024
a854e12
fixed incorrect format string
mutex-pup Aug 27, 2024
6c07bd3
nothing to see here
mutex-pup Aug 29, 2024
1952fec
fixed manifest nodes inserting at wrong position
mutex-pup Aug 29, 2024
3806e2f
added agent presets + removed unused copy command
mutex-pup Aug 29, 2024
730644f
ensure minimum permissions are always added
mutex-pup Aug 29, 2024
686da39
made permission lists sets to avoid repeat permissions
mutex-pup Aug 29, 2024
d9bf287
fixed typos in agent builder
mutex-pup Aug 29, 2024
917d47b
added missing permissions to android.py permissions list
mutex-pup Aug 29, 2024
45f6bcb
removed accidentally pushed debug stuff in main.py
mutex-pup Aug 29, 2024
6099856
fixed trying to create set from possible None type
mutex-pup Aug 29, 2024
787be2b
forgot to move libc++.so into the linux library
mutex-pup Aug 29, 2024
99387d1
better None checking in agent build
mutex-pup Aug 29, 2024
d5d8948
fixed typo in permissions
mutex-pup Aug 29, 2024
0f6e37b
added execute flag to linux binaries
mutex-pup Aug 29, 2024
4a94e53
updated readme to remove agent being marked as broken
mutex-pup Aug 30, 2024
817e846
updated doc strings in agent
mutex-pup Aug 30, 2024
6337ed7
fixed regex match strings in stream.py
mutex-pup Aug 30, 2024
342730c
removed doc string in the middel of manager:do_interactive
mutex-pup Aug 30, 2024
94ef51c
bump version number for agent compatibility reasons
mutex-pup Aug 30, 2024
eba3ba8
more missing raw string specifiers for match strings containing '\'
mutex-pup Sep 7, 2024
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
Prev Previous commit
Next Next commit
fixes + cleanup
  • Loading branch information
mutex-pup committed Aug 30, 2024
commit 95b1afb0497d3009ad92c95099c47dcf306c7c12
4 changes: 2 additions & 2 deletions src/drozer/agent/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Packager(command_wrapper.Wrapper):
__java = Configuration.executable("java")
__sign_apk = Configuration.library("apksigner.jar")

__endpoint = "startup_config.txt"
__endpoint = "config.txt"
__manifest = "AndroidManifest.xml"
__apktool_yml = "apktool.yml"

Expand Down Expand Up @@ -90,7 +90,7 @@ def source_dir(self):
def unpack(self, name):
apk_path = Configuration.library(name + ".apk")
if apk_path is None:
raise RuntimeError("could not locate " + name + ".apk")
raise RuntimeError("could not locate " + name + ".apk in library")

if self._execute([self.__java, "-jar", self.__apk_tool, "decode", apk_path,
"-o", self.source_dir()]) != 0:
Expand Down
1 change: 0 additions & 1 deletion src/drozer/agent/manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from WithSecure.common import cli
import yaml
from drozer import android, meta
from drozer.agent import builder, manifest

Expand Down
10 changes: 7 additions & 3 deletions src/drozer/agent/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ class Endpoint(object):
def __init__(self, path):
self.__path = path

with open(self.__path, 'w+') as file:
lines = file.readlines()
self.data = dict(map(lambda x: x.split(":"), filter(lambda p: p.find(":") > -1, lines)))
try:
with open(self.__path, 'r') as file:
lines = file.readlines()
self.data = dict(map(lambda x: x.split(":"), filter(lambda p: p.find(":") > -1, lines)))
except FileNotFoundError:
self.data = dict()

def put_server(self, server):
if isinstance(server, tuple):
Expand All @@ -27,6 +30,7 @@ def get(self, key):
def write(self):
with open(self.__path, 'w') as file:
file.write("drozer Config\n")
file.write("-------------\n")
for key, value in self.data.items():
file.write(f"{key}:{value}\n")

Expand Down