Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 13, 2024
1 parent 710a9e3 commit 8c4ca26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example_module/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ class Shell1604(ShellExample):
"""

BUILD_IMAGE = "pwncollege/pwnshop-builder:ubuntu1604"
BUILD_DEPENDENCIES = "libcapstone-dev"
BUILD_DEPENDENCIES = [ "libcapstone-dev" ]
PIN_LIBRARIES = True
7 changes: 4 additions & 3 deletions pwnshop/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ class Challenge:
EXEC_STACK = False
STRIP = False
DEBUG_SYMBOLS = False
LINK_LIBRARIES = []

BUILD_IMAGE = None
BUILD_DEPENDENCIES = ""
BUILD_DEPENDENCIES = []
LINK_LIBRARIES = []
PIN_LIBRARIES = False


Expand Down Expand Up @@ -315,7 +316,7 @@ def _containerized_build(self, cmd):
detach=True,
volumes = {self.work_dir : {'bind': self.work_dir, 'mode': 'rw'}}
)
ret, out = container.exec_run(f'/bin/bash -c "apt-get update && apt-get install -y gcc patchelf {self.BUILD_DEPENDENCIES} && mkdir -p /tmp/pwnshop"')
ret, out = container.exec_run(f'/bin/bash -c "apt-get update && apt-get install -y gcc patchelf {" ".join(self.BUILD_DEPENDENCIES)} && mkdir -p /tmp/pwnshop"')
if ret != 0:
print("DEPENDENCY INSTALL ERROR:")
print(out.decode('latin1'))
Expand Down

0 comments on commit 8c4ca26

Please sign in to comment.