From 0ed371b1941494cf2cd61980e44ed80566df8784 Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Sun, 13 Apr 2025 19:47:15 +0200 Subject: [PATCH] Disable pwnlib update detection (#2869) * dbg: disable pwnlib update detection * dbg: disable pwnlib update detection * dbg: disable pwnlib update detection --- pwndbg/dbg/gdb/__init__.py | 4 ++++ pwndbg/dbg/lldb/__init__.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pwndbg/dbg/gdb/__init__.py b/pwndbg/dbg/gdb/__init__.py index 2a7b92e0a..ebe16ae7e 100644 --- a/pwndbg/dbg/gdb/__init__.py +++ b/pwndbg/dbg/gdb/__init__.py @@ -1294,6 +1294,10 @@ def _gdb_event_class_from_event_type(ty: pwndbg.dbg_mod.EventType) -> Any: class GDB(pwndbg.dbg_mod.Debugger): @override def setup(self): + import pwnlib.update + + pwnlib.update.disabled = True + from pwndbg.commands import load_commands load_gdblib() diff --git a/pwndbg/dbg/lldb/__init__.py b/pwndbg/dbg/lldb/__init__.py index 0f19960ed..7718f22f2 100644 --- a/pwndbg/dbg/lldb/__init__.py +++ b/pwndbg/dbg/lldb/__init__.py @@ -1751,6 +1751,10 @@ class LLDB(pwndbg.dbg_mod.Debugger): @override def setup(self, *args, **kwargs): + import pwnlib.update + + pwnlib.update.disabled = True + self.exec_states = [] self.event_handlers = {} self.controllers = []