Repository Analysis

Gallopsled/pwntools

CTF framework and exploit development library

20.5 Moderate AI signal View on GitHub
20.5
Adjusted Score
20.5
Raw Score
100%
Time Factor
2026-05-28
Last Push
13,482
Stars
Python
Language
156,508
Lines of Code
417
Files
3888
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 46MEDIUM 86LOW 3756

Pattern Findings

3888 matches across 13 categories. Click a row to expand file-level details.

Over-Commented Block3234 hits · 2264 pts
SeverityFileLineSnippet
LOWpwnlib/regsort.py321
LOWpwnlib/regsort.py341 # - Y = Z
LOWpwnlib/libcdb.py1001 # Given the corpus of almost all libc to have been released with
LOWpwnlib/libcdb.py1021 'i386': [0x174, 0x1b4, 0x1d4],
LOWpwnlib/context/__init__.py1741 def word_size(self, value):
LOWpwnlib/shellcraft/registers.py301# 'arm': arm,
LOWpwnlib/rop/rop.py861
LOWpwnlib/rop/rop.py1281 #
LOWpwnlib/rop/gadgets.py1class Gadget:
LOWpwnlib/rop/gadgets.py21 #:
LOWpwnlib/encoders/i386/xor.py1# Source:
LOWpwnlib/encoders/mips/xor.py1# Source:
LOWpwnlib/data/includes/freebsd.h1#define STDIN_FILENO 0
LOWpwnlib/data/includes/freebsd.h21#define EDEADLK 11
LOWpwnlib/data/includes/freebsd.h41#define EMLINK 31
LOWpwnlib/data/includes/freebsd.h61#define EADDRNOTAVAIL 49
LOWpwnlib/data/includes/freebsd.h81#define EDQUOT 69
LOWpwnlib/data/includes/freebsd.h101#define EBADMSG 89
LOWpwnlib/data/includes/freebsd.h121#define O_NOFOLLOW 0x0100
LOWpwnlib/data/includes/freebsd.h141#define AT_SYMLINK_FOLLOW 0x400
LOWpwnlib/data/includes/freebsd.h161#define F_DUP2FD_CLOEXEC 18
LOWpwnlib/data/includes/freebsd.h181#define PROT_NONE 0x00
LOWpwnlib/data/includes/freebsd.h201#define MCL_CURRENT 0x0001
LOWpwnlib/data/includes/freebsd.h221#define MADV_PROTECT 10
LOWpwnlib/data/includes/freebsd.h241#define SIGKILL 9
LOWpwnlib/data/includes/freebsd.h261#define SIGINFO 29
LOWpwnlib/data/includes/freebsd.h281#define BUS_ADRALN 1
LOWpwnlib/data/includes/freebsd.h301#define CLD_STOPPED 5
LOWpwnlib/data/includes/freebsd.h321#define SI_ASYNCIO 0x10004
LOWpwnlib/data/includes/freebsd.h341#define SOCK_SEQPACKET 5
LOWpwnlib/data/includes/freebsd.h361#define SO_RCVLOWAT 0x1004
LOWpwnlib/data/includes/freebsd.h381#define AF_PUP 4
LOWpwnlib/data/includes/freebsd.h401#define AF_IPX 23
LOWpwnlib/data/includes/freebsd.h421#define AF_VENDOR03 45
LOWpwnlib/data/includes/freebsd.h441#define AF_VENDOR23 85
LOWpwnlib/data/includes/freebsd.h461#define AF_VENDOR43 125
LOWpwnlib/data/includes/freebsd.h481#define PF_DECnet 12
LOWpwnlib/data/includes/freebsd.h501#define PF_SLOW 33
LOWpwnlib/data/includes/freebsd.h521#define MSG_NOTIFICATION 0x2000
LOWpwnlib/data/includes/freebsd.h541#define S_ISUID 0x800
LOWpwnlib/data/includes/freebsd.h561#define S_IFCHR 0x2000
LOWpwnlib/data/includes/freebsd.h581#define SF_IMMUTABLE 0x00020000
LOWpwnlib/data/includes/freebsd.h601#define SYS_freebsd4_getfsstat 18
LOWpwnlib/data/includes/freebsd.h621#define SYS_dup 41
LOWpwnlib/data/includes/freebsd.h641#define SYS_sbrk 69
LOWpwnlib/data/includes/freebsd.h661#define SYS_socket 97
LOWpwnlib/data/includes/freebsd.h681#define SYS_shutdown 134
LOWpwnlib/data/includes/freebsd.h701#define SYS_msgsys 170
LOWpwnlib/data/includes/freebsd.h721#define SYS_freebsd6_truncate 200
LOWpwnlib/data/includes/freebsd.h741#define SYS_clock_gettime 232
LOWpwnlib/data/includes/freebsd.h761#define SYS_netbsd_lchown 275
LOWpwnlib/data/includes/freebsd.h781#define SYS_kldfirstmod 309
LOWpwnlib/data/includes/freebsd.h801#define SYS_sched_get_priority_max 332
LOWpwnlib/data/includes/freebsd.h821#define SYS___acl_delete_fd 352
LOWpwnlib/data/includes/freebsd.h841#define SYS___mac_set_proc 385
LOWpwnlib/data/includes/freebsd.h861#define SYS_ksem_unlink 406
LOWpwnlib/data/includes/freebsd.h881#define SYS_sigwait 429
LOWpwnlib/data/includes/freebsd.h901#define SYS_setaudit 450
LOWpwnlib/data/includes/freebsd.h921#define SYS_sctp_generic_recvmsg 474
LOWpwnlib/data/includes/freebsd.h941#define SYS_futimesat 494
3174 more matches not shown…
Unused Imports298 hits · 262 pts
SeverityFileLineSnippet
LOWpwnlib/runner.py3
LOWpwnlib/regsort.py4
LOWpwnlib/log.py97
LOWpwnlib/log.py99
LOWpwnlib/timeout.py4
LOWpwnlib/__init__.py1
LOWpwnlib/__init__.py41
LOWpwnlib/args.py52
LOWpwnlib/gdb.py145
LOWpwnlib/fmtstr.py96
LOWpwnlib/fmtstr.py103
LOWpwnlib/fmtstr.py106
LOWpwnlib/libc/__init__.py4
LOWpwnlib/libc/glibc.py4
LOWpwnlib/flag/__init__.py1
LOWpwnlib/util/misc.py2
LOWpwnlib/util/misc.py9
LOWpwnlib/util/misc.py21
LOWpwnlib/util/fiddling.py5
LOWpwnlib/util/fiddling.py19
LOWpwnlib/util/iters.py5
LOWpwnlib/util/iters.py12
LOWpwnlib/util/proc.py2
LOWpwnlib/util/packing.py32
LOWpwnlib/util/sh_string.py241
LOWpwnlib/util/sh_string.py246
LOWpwnlib/term/term.py3
LOWpwnlib/term/term.py5
LOWpwnlib/term/term.py8
LOWpwnlib/term/term.py15
LOWpwnlib/term/__init__.py3
LOWpwnlib/term/termcap.py4
LOWpwnlib/term/termcap.py6
LOWpwnlib/filesystem/__init__.py4
LOWpwnlib/filesystem/__init__.py5
LOWpwnlib/filesystem/ssh.py7
LOWpwnlib/filesystem/ssh.py8
LOWpwnlib/filesystem/ssh.py9
LOWpwnlib/filesystem/ssh.py15
LOWpwnlib/filesystem/path.py3
LOWpwnlib/shellcraft/internal.py1
LOWpwnlib/shellcraft/registers.py1
LOWpwnlib/shellcraft/__init__.py162
LOWpwnlib/commandline/constgrep.py8
LOWpwnlib/commandline/update.py7
LOWpwnlib/commandline/errno.py1
LOWpwnlib/commandline/disasm.py1
LOWpwnlib/commandline/disasm.py9
LOWpwnlib/commandline/version.py8
LOWpwnlib/commandline/unhex.py1
LOWpwnlib/commandline/scramble.py7
LOWpwnlib/commandline/libcdb.py9
LOWpwnlib/commandline/phd.py10
LOWpwnlib/commandline/checksec.py1
LOWpwnlib/commandline/checksec.py2
LOWpwnlib/commandline/checksec.py4
LOWpwnlib/commandline/disablenx.py2
LOWpwnlib/commandline/shellcraft.py4
LOWpwnlib/commandline/shellcraft.py9
LOWpwnlib/commandline/asm.py7
238 more matches not shown…
Decorative Section Separators58 hits · 188 pts
SeverityFileLineSnippet
MEDIUMpwnlib/regsort.py347 # ╰──────── ← ────────╯
MEDIUMpwnlib/regsort.py395 # ╰──────── ← ────────╯
MEDIUMpwnlib/regsort.py405 # ╰──────── ← ────────╯
MEDIUMpwnlib/encoders/arm/alphanumeric/random_funcs.py13# ==================================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py21# ====================================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py47# ======================================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py66# ==========================================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py89# =================================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py108# ============================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py113# ============================
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py118# ==============
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py128# ============
MEDIUMpwnlib/encoders/arm/alphanumeric/ARM_Instructions.py133# ===========================================================================
MEDIUMpwnlib/encoders/arm/alphanumeric/alphanum_byte.py12# ====================================
MEDIUMpwnlib/encoders/arm/alphanumeric/alphanum_byte.py20# =================================
MEDIUMpwnlib/encoders/arm/alphanumeric/alphanum_byte.py25# ==========================================================
MEDIUMpwnlib/encoders/arm/alphanumeric/alphanum_byte.py34# =======================================================================
MEDIUMpwnlib/encoders/arm/alphanumeric/alphanum_byte.py45# =========================================================================
MEDIUMextra/docker/develop/ipython_config.py5#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py7#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py437#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py439#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py100#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py102#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py202#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py204#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py359#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py361#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py380#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py382#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py421#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py423#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py489#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py491#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py529#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py531#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py553#------------------------------------------------------------------------------
MEDIUMextra/docker/develop/ipython_config.py555#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py5#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py7#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py437#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py439#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py100#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py102#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py202#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py204#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py359#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py361#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py380#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py382#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py421#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py423#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py489#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py491#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py529#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py531#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py553#------------------------------------------------------------------------------
MEDIUMtravis/docker/ipython_config.py555#------------------------------------------------------------------------------
Docstring Block Structure23 hits · 115 pts
SeverityFileLineSnippet
HIGHpwnlib/windbg.py199attach(target, dbgscript=None, dbg_args=[]) -> int Attach to a running process with WinDbg. Arguments:
HIGHpwnlib/gdb.py423 Launch a GDB server with the specified command line, and launches GDB to attach to it. Arguments:
HIGHpwnlib/gdb.py945 Start GDB in a new terminal and attach to `target`. Arguments: target: The target to attach to.
HIGHpwnlib/context/__init__.py523local(**kwargs) -> context manager Create a context manager for use with the ``with`` statement. For m
HIGHpwnlib/util/iters.py298repeat_func(func, *args, **kwargs) -> iterator Repeatedly calls `func` with positional arguments `args` and keyword
HIGHpwnlib/util/iters.py563random_product(*args, repeat = 1) -> tuple Arguments: args: One or more iterables repeat(int): Number
HIGHpwnlib/util/packing.py47pack(number, word_size = None, endianness = None, sign = None, **kwargs) -> str Packs arbitrary-sized integer.
HIGHpwnlib/util/packing.py163unpack(data, word_size = None, *, endianness = None, sign = None, **kwargs) -> int Unpacks arbitrary-sized integer.
HIGHpwnlib/util/packing.py237unpack_many(data, word_size = None, *, endianness = None, sign = None) -> int list Splits `data` into groups of ``w
HIGHpwnlib/util/packing.py654make_packer(word_size = None, endianness = None, sign = None) -> number → str Creates a packer by "freezing" the gi
HIGHpwnlib/util/packing.py718make_unpacker(word_size = None, endianness = None, sign = None, **kwargs) -> str → number Creates an unpacker by "
HIGHpwnlib/util/packing.py1363overlap(*structs: bytes | tuple[bytes, int]) -> bytes Merge multiple byte sequences with possible positional offset
HIGHpwnlib/tubes/tube.py108recv(numb = 4096, timeout = default) -> bytes Receives up to `numb` bytes of data from the tube, and returns
HIGHpwnlib/tubes/tube.py215recvpred(pred, timeout = default) -> bytes Receives one byte at a time from the tube, until ``pred(all_bytes)``
HIGHpwnlib/tubes/tube.py269recvn(numb, timeout = default) -> bytes Receives exactly `n` bytes. If the request is not satisfied be
HIGHpwnlib/tubes/tube.py315recvuntil(delims, drop=False, timeout=default) -> bytes Receive data until one of `delims` is encountered.
HIGHpwnlib/tubes/tube.py405recvlines(numlines, drop=True, timeout=default) -> list of bytes objects Receive up to ``numlines`` lines.
HIGHpwnlib/encoders/i386/ascii_shellcode.py48 Pack shellcode into only ascii characters that unpacks itself and executes (on the stack) Args:
HIGHpwnlib/encoders/i386/ascii_shellcode.py113 Allocate enough space on the stack for the shellcode int_size is taken from the context Args:
HIGHpwnlib/encoders/i386/ascii_shellcode.py154 Find two bitwise negatives in the vocab so that when they are and-ed the result is 0. int_size is take
HIGHpwnlib/encoders/i386/ascii_shellcode.py192 Covert the sellcode to sub eax and posh eax instructions int_size is taken from the context Args:
HIGHpwnlib/encoders/i386/ascii_shellcode.py229 Given `target` and `last`, return a list of integers that when subtracted from `last` will equal `target` whil
HIGHpwnlib/elf/elf.py1236search(needle, writable = False, executable = False) -> generator Search the ELF's virtual address space for th
Deep Nesting101 hits · 97 pts
SeverityFileLineSnippet
LOWpwnlib/update.py44
LOWpwnlib/ui.py47
LOWpwnlib/ui.py127
LOWpwnlib/ui.py254
LOWpwnlib/libcdb.py334
LOWpwnlib/windbg.py139
LOWpwnlib/dynelf.py515
LOWpwnlib/dynelf.py1007
LOWpwnlib/asm.py154
LOWpwnlib/asm.py750
LOWpwnlib/useragents.py11
LOWpwnlib/gdb.py944
LOWpwnlib/memleak.py171
LOWpwnlib/util/misc.py144
LOWpwnlib/util/misc.py268
LOWpwnlib/util/fiddling.py97
LOWpwnlib/util/fiddling.py326
LOWpwnlib/util/fiddling.py630
LOWpwnlib/util/fiddling.py1052
LOWpwnlib/util/lists.py37
LOWpwnlib/util/iters.py869
LOWpwnlib/util/proc.py17
LOWpwnlib/util/proc.py295
LOWpwnlib/util/proc.py395
LOWpwnlib/util/packing.py46
LOWpwnlib/util/packing.py853
LOWpwnlib/util/packing.py1109
LOWpwnlib/util/packing.py1362
LOWpwnlib/util/sh_string.py275
LOWpwnlib/util/cyclic.py134
LOWpwnlib/util/splash.py26
LOWpwnlib/util/splash.py30
LOWpwnlib/util/crc/known.py5
LOWpwnlib/util/crc/known.py18
LOWpwnlib/term/readline.py52
LOWpwnlib/term/readline.py69
LOWpwnlib/term/readline.py99
LOWpwnlib/term/readline.py159
LOWpwnlib/term/readline.py367
LOWpwnlib/term/term.py167
LOWpwnlib/term/term.py247
LOWpwnlib/term/term.py275
LOWpwnlib/term/key.py20
LOWpwnlib/term/key.py184
LOWpwnlib/term/key.py224
LOWpwnlib/term/key.py429
LOWpwnlib/term/key.py117
LOWpwnlib/term/keymap.py34
LOWpwnlib/term/keymap.py58
LOWpwnlib/term/unix_termcap.py8
LOWpwnlib/term/text.py25
LOWpwnlib/term/text.py110
LOWpwnlib/shellcraft/__init__.py43
LOWpwnlib/commandline/constgrep.py58
LOWpwnlib/commandline/libcdb.py225
LOWpwnlib/commandline/shellcraft.py176
LOWpwnlib/commandline/debug.py51
LOWpwnlib/commandline/template.py34
LOWpwnlib/commandline/template.py114
LOWpwnlib/adb/adb.py400
41 more matches not shown…
Cross-Language Confusion22 hits · 82 pts
SeverityFileLineSnippet
HIGHpwnlib/gdb.py202 adb.push(tmp_elf, android_path)
HIGHpwnlib/gdb.py239 adb.push(tmp_elf, android_path)
HIGHpwnlib/gdb.py1007 >>> io.sendline(b'echo Hello from bash && exit')
HIGHpwnlib/gdb.py1034 >>> io.sendline(b'echo Hello from bash && exit')
HIGHpwnlib/gdb.py1055 >>> io.sendline(b'echo Hello from bash && exit')
HIGHpwnlib/gdb.py1078 >>> gdbserver.sendline(b'echo Hello from bash && exit')
HIGHpwnlib/filepointer.py282 self.setdefault(null)
HIGHpwnlib/filepointer.py351 def setdefault(self,null):
HIGHpwnlib/context/__init__.py94 >>> t.push()
HIGHpwnlib/context/__init__.py554 self._tls.push()
HIGHpwnlib/util/misc.py627 tube.sendline('which python || echo')
HIGHpwnlib/util/misc.py632 tube.sendline('which perl || echo')
HIGHpwnlib/adb/adb.py562 >>> adb.push('./filename', '/data/local/tmp')
HIGHpwnlib/adb/adb.py566 >>> adb.push('./filename', '/does/not/exist')
HIGHpwnlib/adb/adb.py1386 >>> sent = adb.push(filename, "/data/local/tmp")
HIGHpwnlib/tubes/tube.py1200 self.sendlineafter(end_markerb, "command -v {} && echo YEP || echo NOPE{}".format(utility, echo_end).enc
HIGHpwnlib/tubes/ssh.py1388 cmd = '(sha256 || sha256sum || openssl sha256) 2>/dev/null < '
HIGHpwnlib/tubes/ssh.py1694 untar = self.system(b'cd %s && tar -xzf %s' % (sh_string(remote), sh_string(remote_tar)))
HIGHpwnlib/tubes/ssh.py1920 wd, status = self.run_to_end('x=$(mktemp -d) && cd $x && chmod +x . && echo $PWD', cwd='.')
HIGHpwnlib/tubes/ssh.py1059 script = 'echo PWNTOOLS; for py in python3 python2.7 python2 python; do test -x "$(command -v $py 2>&1)" &&
HIGHpwnlib/data/syscalls/generate.py121 ${{pwnlib.shellcraft.push(arg)}}
HIGHpwnlib/elf/elf.py1975 return (!cpu_has_rixi && exstack == EXSTACK_DEFAULT);
Excessive Try-Catch Wrapping75 hits · 71 pts
SeverityFileLineSnippet
LOWpwnlib/update.py156 except Exception:
LOWpwnlib/libcdb.py668 except Exception as e:
LOWpwnlib/libcdb.py676 except Exception:
LOWpwnlib/windbg.py153 except Exception:
LOWpwnlib/atexit.py91 except Exception:
LOWpwnlib/gdb_api_bridge.py54 except Exception as exc:
LOWpwnlib/asm.py680 except Exception:
LOWpwnlib/asm.py893 except Exception:
LOWpwnlib/asm.py996 except Exception:
LOWpwnlib/atexception.py101 except Exception:
LOWpwnlib/memleak.py193 except Exception as e:
LOWpwnlib/flag/flag.py68 except Exception:
LOWpwnlib/util/misc.py911except Exception:
LOWpwnlib/util/misc.py957except Exception:
LOWpwnlib/util/misc.py963except Exception:
LOWpwnlib/util/proc.py89 except Exception:
LOWpwnlib/util/proc.py128 except Exception:
LOWpwnlib/term/readline.py40 except Exception:
LOWpwnlib/term/key.py18except Exception: _fd = os.open(os.devnull, os.O_RDONLY)
LOWpwnlib/term/completer.py108 except Exception:
LOWpwnlib/internal/dochelper.py26 except Exception:
LOWpwnlib/commandline/checksec.py35 except Exception as e:
LOWpwnlib/commandline/common.py15 except Exception: pass
LOWpwnlib/commandline/common.py17 except Exception: pass
LOWpwnlib/commandline/common.py19 except Exception: arg
LOWpwnlib/commandline/common.py21 except Exception: pass
LOWpwnlib/commandline/template.py158 except Exception as e:
LOWpwnlib/commandline/template.py191 except Exception:
LOWpwnlib/adb/adb.py422 except Exception:
LOWpwnlib/tubes/tube.py256 except Exception:
LOWpwnlib/tubes/tube.py375 except Exception:
LOWpwnlib/tubes/tube.py452 except Exception:
LOWpwnlib/tubes/tube.py612 except Exception:
LOWpwnlib/tubes/process.py449 except Exception:
LOWpwnlib/tubes/process.py458 except Exception:
LOWpwnlib/tubes/process.py465 except Exception:
LOWpwnlib/tubes/process.py472 except Exception:
LOWpwnlib/tubes/process.py480 except Exception:
LOWpwnlib/tubes/process.py568 except Exception:
MEDIUMpwnlib/tubes/ssh.py548def sock(self):
LOWpwnlib/tubes/ssh.py513 except Exception:
LOWpwnlib/tubes/ssh.py523 except Exception:
LOWpwnlib/tubes/ssh.py717 except Exception as e:
LOWpwnlib/tubes/ssh.py798 except Exception:
LOWpwnlib/tubes/ssh.py803 except Exception:
LOWpwnlib/tubes/ssh.py827 except Exception:
LOWpwnlib/tubes/ssh.py2005 except Exception:
LOWpwnlib/tubes/ssh.py2016 except Exception:
LOWpwnlib/tubes/ssh.py2027 except Exception:
LOWpwnlib/tubes/ssh.py2043 except Exception:
LOWpwnlib/tubes/ssh.py2052 except Exception:
LOWpwnlib/tubes/ssh.py2100 except Exception:
LOWpwnlib/tubes/ssh.py2109 except Exception:
LOWpwnlib/tubes/ssh.py421 except Exception:
LOWpwnlib/tubes/ssh.py475 except Exception as e:
LOWpwnlib/tubes/ssh.py488 except Exception as e:
LOWpwnlib/tubes/ssh.py1995 except Exception:
LOWpwnlib/protocols/adb/__init__.py103 except Exception:
LOWpwnlib/elf/corefile.py1341 except Exception:
LOWpwnlib/elf/corefile.py1347 except Exception:
15 more matches not shown…
Self-Referential Comments21 hits · 50 pts
SeverityFileLineSnippet
MEDIUMpwnlib/windbg.py110 # Create a new process, and stop it at 'main'
MEDIUMpwnlib/dynelf.py761 # Create a fake leaker which just leaks out of the 'loaded' ELF
MEDIUMpwnlib/asm.py830 # Create a temporary copy of the cached file to avoid modification.
MEDIUMpwnlib/gdb.py275 # Create a temporary file to hold the script
MEDIUMpwnlib/fmtstr.py89 # Create a FmtStr object and give to him the function
MEDIUMpwnlib/util/misc.py225 # Create a duplicate so we can modify it
MEDIUMpwnlib/util/misc.py241 # Create a duplicate so we can modify it safely
MEDIUMpwnlib/util/cyclic.py372 >>> g = cyclic_gen() # Create a generator
MEDIUMpwnlib/constants/__init__.py158# Create the module structure
MEDIUMpwnlib/shellcraft/__init__.py45 # Create a dictionary of submodules
MEDIUMpwnlib/shellcraft/__init__.py167# Create the module structure
MEDIUMpwnlib/adb/adb.py1348 # Create the directories
MEDIUMpwnlib/tubes/process.py319 # Create the PTY if necessary
MEDIUMpwnlib/elf/elf.py1553 # Create a new view of memory, for just what we need
MEDIUMpwnlib/elf/elf.py2578 # Create a copy of the ELF to patch instead of the original file.
MEDIUMdocs/source/conf.py4# This file is execfile()d with the current directory set to its containing dir.
MEDIUMextra/docker/develop/ipython_config.py14# The following methods should be called by the :meth:`initialize` method of the
MEDIUMextra/docker/develop/ipython_config.py115# Create a massive crash report when IPython encounters what may be an internal
MEDIUMtravis/ssh_setup.sh27 # Create the new user account
MEDIUMtravis/docker/ipython_config.py14# The following methods should be called by the :meth:`initialize` method of the
MEDIUMtravis/docker/ipython_config.py115# Create a massive crash report when IPython encounters what may be an internal
Hyper-Verbose Identifiers29 hits · 26 pts
SeverityFileLineSnippet
LOWpwnlib/libcdb.py26def _turbofast_extract_build_id(path):
LOWpwnlib/libcdb.py556def _find_libc_package_lib_url(libc: ELF, extra_mirrors: list[str] | None = None) -> Generator[str, None, None]:
LOWpwnlib/libcdb.py684def _handle_multiple_matching_libcs(matching_libcs):
LOWpwnlib/gdb_api_bridge.py92 def exposed_set_finish_breakpoint(self, client, has_stop, has_out_of_scope, *args, **kwargs):
LOWpwnlib/asm.py103def print_binutils_instructions(util, context):
LOWpwnlib/fmtstr.py358def find_min_hamming_in_range_step(prev, step, carry, strict):
LOWpwnlib/fmtstr.py416def find_min_hamming_in_range(maxbytes, lower, upper, target):
LOWpwnlib/context/__init__.py1535 def throw_eof_on_incomplete_line(self, v):
LOWpwnlib/util/fiddling.py625def update_cyclic_pregenerated(size):
LOWpwnlib/util/iters.py633def random_combination_with_replacement(iterable, r):
LOWpwnlib/commandline/libcdb.py210def collect_synthetic_symbols(exe):
LOWpwnlib/commandline/shellcraft.py172def is_not_a_syscall_template(name):
LOWpwnlib/commandline/template.py34def get_docker_image_libraries():
LOWpwnlib/adb/adb.py302 def __do_deferred_initialization(self):
LOWpwnlib/adb/adb.py496def _create_adb_push_pull_callback(w):
LOWpwnlib/tubes/process.py909 def __pty_make_controlling_tty(self, tty_fd):
LOWpwnlib/tubes/ssh.py1405 def _verify_local_fingerprint(self, fingerprint):
LOWpwnlib/tubes/ssh.py1953 def _init_remote_platform_info(self):
LOWpwnlib/encoders/arm/alphanumeric/alphanum_byte.py27def alphanumeric_get_byte_ltmax(max):
LOWpwnlib/encoders/arm/alphanumeric/alphanum_byte.py46def alphanumeric_get_complement(c):
LOWpwnlib/elf/corefile.py1356 def systemd_coredump_corefile(self):
LOWpwnlib/elf/corefile.py1282 def apport_crash_extract_corefile(self, crashfile_data):
LOWpwnlib/elf/corefile.py1383 def wsl_capture_crash_corefile(self):
LOWpwnlib/elf/elf.py967 def _populate_synthetic_symbols(self):
LOWpwnlib/elf/plt.py56def __ensure_memory_to_run_unicorn():
LOWpwnlib/elf/plt.py77def prepare_unicorn_and_context(elf, got, address, data):
LOWpwnlib/elf/plt.py159def emulate_plt_instructions_inner(uc, elf, got, pc, data):
LOWextra/docker/develop/ipython_config.py51 def continuation_prompt_tokens(self, cli=None, width=None):
LOWtravis/docker/ipython_config.py51 def continuation_prompt_tokens(self, cli=None, width=None):
Slop Phrases5 hits · 16 pts
SeverityFileLineSnippet
LOWpwnlib/elf/corefile.py379 Don't forget to call :meth:`.ELF.save` to save the changes to disk.
MEDIUMextra/docker/develop/ipython_config.py446# printers. Here is a simple example::
MEDIUMextra/docker/develop/ipython_config.py344# Set the size of the output cache. The default is 1000, you can change it
MEDIUMtravis/docker/ipython_config.py446# printers. Here is a simple example::
MEDIUMtravis/docker/ipython_config.py344# Set the size of the output cache. The default is 1000, you can change it
Redundant / Tautological Comments11 hits · 12 pts
SeverityFileLineSnippet
LOWpwnlib/libcdb.py158# Check if the local system libc matches the requested hash.
LOWpwnlib/libcdb.py225 # Check if all symbols have been matched
LOWpwnlib/libcdb.py386 # Check if we tried this buildid before.
LOWpwnlib/libcdb.py775 # Check if no matches are found
LOWpwnlib/util/misc.py251 # Check if = is in the key, Required check since we sometimes call ctypes.execve directly
LOWpwnlib/commandline/constgrep.py91 # Check if the value has proper type
LOWpwnlib/commandline/template.py150 # Check if the binary is statically linked before trying to extract libraries from Docker
LOWpwnlib/tubes/process.py729 # Check if process is still running.
LOWpwnlib/encoders/i386/ascii_shellcode.py135 # Set target to the `size` arg
LOWpwnlib/elf/elf.py862 # Close the file descriptor so that it may be executed
LOWpwnlib/elf/elf.py2593 # Set RUNPATH to library path in order to find other libraries.
AI Slop Vocabulary10 hits · 12 pts
SeverityFileLineSnippet
LOWpwnlib/log.py624 # if 'pwnlib_msgtype' is not set (or set to `None`) we just return the
MEDIUMpwnlib/timeout.py49 self.obj._timeout = self.timeout # leverage validation
LOWpwnlib/tubes/process.py650 # Normally we could just use PIPE and be happy.
MEDIUMpwnlib/tubes/process.py742 # In order to facilitate retrieving core files, force an update
LOWpwnlib/tubes/ssh.py425 # If we never completely started up, just use the parent implementation
LOWpwnlib/rop/rop.py1079 # If we can find a function with that name, just call it
LOWpwnlib/data/includes/generator/freebsd/sys/errno.h188#define EJUSTRETURN (-2) /* don't modify regs, just return */
LOWpwnlib/data/includes/generator/freebsd/sys/socket.h105#define SO_DONTROUTE 0x0010 /* just use interface addresses */
LOWpwnlib/elf/corefile.py841 # No embedded siginfo structure, so just return the
LOWpwnlib/elf/elf.py798 # Any existing files we can just use
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHpwnlib/data/includes/generator/freebsd/sys/mman.h69#define MAP_FIXED 0x0010 /* map addr must be exactly as requested */