Skip to content

Commit

Permalink
fix localization of launcher / hyx
Browse files Browse the repository at this point in the history
  • Loading branch information
haxkor committed Aug 22, 2021
1 parent b867612 commit ddfc105
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from signal import SIGCHLD
from pwn import asm
from ptrace.tools import locateProgram
from os.path import realpath

_self_dir,_,_ = realpath(__file__).rpartition("/")
_self_dir += "/"
hyx_path = _self_dir + "../hyx4forkever/hyx"
path_launcher = _self_dir + "launcher/launcher"
socketname = "/tmp/forkever_hyx_sock"

# relevant for communication with hyx
UPD_FROMBLOB = b"\x40"
Expand All @@ -26,10 +32,6 @@
COLOR_CURRENT_PROCESS = "\033[0;31m" # red
COLOR_TERMINATED_PROCESS = "\033[0;34m" # blue

hyx_path = locateProgram("../hyx4forkever/hyx")
path_launcher = "launcher/launcher"
socketname = "/tmp/forkever_hyx_sock"

# this will be used to launch hyx, set to "None" and the command will be printed out so you can launch it yourself
runargs = ["x-terminal-emulator", "-e"] # , "-e"]

Expand All @@ -44,7 +46,6 @@
# It also isnt really tested
FOLLOW_NEW_PROCS = False


# when looking up a symbol, other symbols matching the lookup will be printed
PRINT_OTHER_CANDIDATES = False

Expand Down

0 comments on commit ddfc105

Please sign in to comment.