Skip to content

Commit

Permalink
Fixed init system check
Browse files Browse the repository at this point in the history
Tested with the Lame machine on HtB, and it is working.
Thanks to @CodeXTF2 for the heads up on this edge case.
Fixes #22.
  • Loading branch information
calebstewart committed Jun 30, 2020
1 parent f815ae3 commit dfc8646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pwncat/remote/victim.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def probe_host_details(self, progress: Progress, task_id):
with self.open("/proc/1/comm", "r") as filp:
init = filp.read()
except (FileNotFoundError, PermissionError):
init = None
init = ""

if "systemd" in init:
self.host.init = util.Init.SYSTEMD
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Setup
setup(
name="pwncat",
version="0.1",
version="0.2.0",
description="A fancy reverse and bind shell handler",
author="Caleb Stewart",
url="https://gitlab.com/calebstewart/pwncat",
Expand Down

0 comments on commit dfc8646

Please sign in to comment.