1
- from typing import Iterable , Optional
1
+ from typing import Iterable , Optional , Any
2
2
3
3
import pwnlib .args
4
4
import pwnlib .tubes
@@ -28,7 +28,7 @@ def _ssh_setup(self) -> None:
28
28
"""
29
29
helper .error ("NOT IMPLEMENTED" )
30
30
31
- def __init__ (self , binary : str , ** kwargs ):
31
+ def __init__ (self , binary : str , ** kwargs : Any ):
32
32
"""
33
33
:param binary: binary to execute
34
34
"""
@@ -70,15 +70,17 @@ def put(self, file: str, remote: Optional[str] = None):
70
70
"""
71
71
helper .error ("NOT IMPLEMENTED" )
72
72
73
- def debug (self , ** kwargs ) -> pwnlib .tubes .process .process :
73
+ def debug (self , ** kwargs : Any ) -> pwnlib .tubes .process .process :
74
74
"""
75
75
run binary with gdb locally
76
76
:param kwargs: pwntool arguments
77
77
:rtype: pwnlib.tubes.process.process
78
78
"""
79
79
return self .pwn_debug (** kwargs )
80
80
81
- def pwn_debug (self , argv : Optional [list [str ]] = None , ** kwargs ) -> pwnlib .tubes .process .process :
81
+ def pwn_debug (
82
+ self , argv : Optional [list [str ]] = None , ** kwargs : Any
83
+ ) -> pwnlib .tubes .process .process :
82
84
"""
83
85
run binary with gdb locally
84
86
:param argv: comandline arguments for binary
@@ -87,7 +89,9 @@ def pwn_debug(self, argv: Optional[list[str]] = None, **kwargs) -> pwnlib.tubes.
87
89
"""
88
90
return pwnlib .gdb .debug ([self ._binary ] + argv , ** kwargs )
89
91
90
- def process (self , argv : Optional [list [str ]] = None , ** kwargs ) -> pwnlib .tubes .process .process :
92
+ def process (
93
+ self , argv : Optional [list [str ]] = None , ** kwargs : Any
94
+ ) -> pwnlib .tubes .process .process :
91
95
"""
92
96
run binary locally
93
97
:param argv: comandline arguments for binary
@@ -101,7 +105,7 @@ def start(
101
105
argv : Optional [list [str ]] = None ,
102
106
gdbscript : str = "" ,
103
107
api : bool = False ,
104
- ** kwargs ,
108
+ ** kwargs : Any ,
105
109
) -> pwnlib .tubes .process .process :
106
110
"""
107
111
start binary locally and return pwnlib.tubes.process.process
0 commit comments