Skip to content

Commit afea55e

Browse files
committed
split all the requirements into files
1 parent 5df0592 commit afea55e

6 files changed

Lines changed: 37 additions & 2 deletions

File tree

app/ctfsolver.egg-info/PKG-INFO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Requires-Python: >=3.11
1212
Description-Content-Type: text/markdown
1313
License-File: LICENSE
1414
Requires-Dist: setuptools>=67.7.0
15+
Requires-Dist: build>=0.7.0
16+
Requires-Dist: wheel>=0.37.0
17+
Requires-Dist: pwntools>=4.0.0
1518
Provides-Extra: dev
1619
Requires-Dist: pytest>=6.2.4; extra == "dev"
1720
Requires-Dist: twine>=3.4.2; extra == "dev"

app/ctfsolver.egg-info/requires.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
setuptools>=67.7.0
2+
build>=0.7.0
3+
wheel>=0.37.0
4+
pwntools>=4.0.0
25

36
[dev]
47
pytest>=6.2.4

app/ctfsolver/src/manager_connections.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,34 @@ def connect(self, *args, **kwargs) -> None:
2626
Connects to the challenge based on the connection type.
2727
If the connection type is remote, it connects to the url and port provided.
2828
If the connection type is local, it starts a process with the file provided.
29+
30+
31+
local:
32+
kwargs :
33+
argv: Any | None = None,
34+
shell: bool = False,
35+
executable: Any | None = None,
36+
cwd: Any | None = None,
37+
env: Any | None = None,
38+
ignore_environ: Any | None = None,
39+
stdin: int = PIPE,
40+
stdout: PTY | int = PTY if not IS_WINDOWS else PIPE,
41+
stderr: int = STDOUT,
42+
close_fds: bool = True,
43+
preexec_fn: Any = lambda : None,
44+
raw: bool = True,
45+
aslr: Any | None = None,
46+
setuid: Any | None = None,
47+
where: str = 'local',
48+
display: Any | None = None,
49+
alarm: Any | None = None,
50+
creationflags: int = 0
51+
2952
"""
3053
if self.conn_type == "remote" and self.url and self.port:
3154
self.conn = self.pwn.remote(self.url, self.port)
3255
elif self.conn_type == "local" and self.file:
33-
self.conn = self.pwn.process(str(self.challenge_file))
56+
self.conn = self.pwn.process(str(self.challenge_file), **kwargs)
3457

3558
def recv_menu(self, number=1, display=False, save=False):
3659
"""

requirements/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pipdeptree>=2.0.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-evtx>=0.7.0

requirements/requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
setuptools>=67.7.0
1+
build>=0.7.0
2+
pwntools>=4.0.0
3+
scapy>=2.0.0
4+
setuptools>=67.7.0
5+
wheel>=0.37.0

0 commit comments

Comments
 (0)