diff options
Diffstat (limited to 'pwnlib/tubes/listen.py')
-rw-r--r-- | pwnlib/tubes/listen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pwnlib/tubes/listen.py b/pwnlib/tubes/listen.py index f012f9b..ecbd629 100644 --- a/pwnlib/tubes/listen.py +++ b/pwnlib/tubes/listen.py @@ -80,6 +80,9 @@ class listen(sock): fam='any', typ='tcp', *args, **kwargs): super(listen, self).__init__(*args, **kwargs) + # convert port to string for sagemath support + port = str(port) + fam = self._get_family(fam) typ = self._get_type(typ) |