@@ -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 """
0 commit comments