CTF framework and exploit development library
3888 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/regsort.py | 321 | |
| LOW | pwnlib/regsort.py | 341 | # - Y = Z |
| LOW | pwnlib/libcdb.py | 1001 | # Given the corpus of almost all libc to have been released with |
| LOW | pwnlib/libcdb.py | 1021 | 'i386': [0x174, 0x1b4, 0x1d4], |
| LOW | pwnlib/context/__init__.py | 1741 | def word_size(self, value): |
| LOW | pwnlib/shellcraft/registers.py | 301 | # 'arm': arm, |
| LOW | pwnlib/rop/rop.py | 861 | |
| LOW | pwnlib/rop/rop.py | 1281 | # |
| LOW | pwnlib/rop/gadgets.py | 1 | class Gadget: |
| LOW | pwnlib/rop/gadgets.py | 21 | #: |
| LOW | pwnlib/encoders/i386/xor.py | 1 | # Source: |
| LOW | pwnlib/encoders/mips/xor.py | 1 | # Source: |
| LOW | pwnlib/data/includes/freebsd.h | 1 | #define STDIN_FILENO 0 |
| LOW | pwnlib/data/includes/freebsd.h | 21 | #define EDEADLK 11 |
| LOW | pwnlib/data/includes/freebsd.h | 41 | #define EMLINK 31 |
| LOW | pwnlib/data/includes/freebsd.h | 61 | #define EADDRNOTAVAIL 49 |
| LOW | pwnlib/data/includes/freebsd.h | 81 | #define EDQUOT 69 |
| LOW | pwnlib/data/includes/freebsd.h | 101 | #define EBADMSG 89 |
| LOW | pwnlib/data/includes/freebsd.h | 121 | #define O_NOFOLLOW 0x0100 |
| LOW | pwnlib/data/includes/freebsd.h | 141 | #define AT_SYMLINK_FOLLOW 0x400 |
| LOW | pwnlib/data/includes/freebsd.h | 161 | #define F_DUP2FD_CLOEXEC 18 |
| LOW | pwnlib/data/includes/freebsd.h | 181 | #define PROT_NONE 0x00 |
| LOW | pwnlib/data/includes/freebsd.h | 201 | #define MCL_CURRENT 0x0001 |
| LOW | pwnlib/data/includes/freebsd.h | 221 | #define MADV_PROTECT 10 |
| LOW | pwnlib/data/includes/freebsd.h | 241 | #define SIGKILL 9 |
| LOW | pwnlib/data/includes/freebsd.h | 261 | #define SIGINFO 29 |
| LOW | pwnlib/data/includes/freebsd.h | 281 | #define BUS_ADRALN 1 |
| LOW | pwnlib/data/includes/freebsd.h | 301 | #define CLD_STOPPED 5 |
| LOW | pwnlib/data/includes/freebsd.h | 321 | #define SI_ASYNCIO 0x10004 |
| LOW | pwnlib/data/includes/freebsd.h | 341 | #define SOCK_SEQPACKET 5 |
| LOW | pwnlib/data/includes/freebsd.h | 361 | #define SO_RCVLOWAT 0x1004 |
| LOW | pwnlib/data/includes/freebsd.h | 381 | #define AF_PUP 4 |
| LOW | pwnlib/data/includes/freebsd.h | 401 | #define AF_IPX 23 |
| LOW | pwnlib/data/includes/freebsd.h | 421 | #define AF_VENDOR03 45 |
| LOW | pwnlib/data/includes/freebsd.h | 441 | #define AF_VENDOR23 85 |
| LOW | pwnlib/data/includes/freebsd.h | 461 | #define AF_VENDOR43 125 |
| LOW | pwnlib/data/includes/freebsd.h | 481 | #define PF_DECnet 12 |
| LOW | pwnlib/data/includes/freebsd.h | 501 | #define PF_SLOW 33 |
| LOW | pwnlib/data/includes/freebsd.h | 521 | #define MSG_NOTIFICATION 0x2000 |
| LOW | pwnlib/data/includes/freebsd.h | 541 | #define S_ISUID 0x800 |
| LOW | pwnlib/data/includes/freebsd.h | 561 | #define S_IFCHR 0x2000 |
| LOW | pwnlib/data/includes/freebsd.h | 581 | #define SF_IMMUTABLE 0x00020000 |
| LOW | pwnlib/data/includes/freebsd.h | 601 | #define SYS_freebsd4_getfsstat 18 |
| LOW | pwnlib/data/includes/freebsd.h | 621 | #define SYS_dup 41 |
| LOW | pwnlib/data/includes/freebsd.h | 641 | #define SYS_sbrk 69 |
| LOW | pwnlib/data/includes/freebsd.h | 661 | #define SYS_socket 97 |
| LOW | pwnlib/data/includes/freebsd.h | 681 | #define SYS_shutdown 134 |
| LOW | pwnlib/data/includes/freebsd.h | 701 | #define SYS_msgsys 170 |
| LOW | pwnlib/data/includes/freebsd.h | 721 | #define SYS_freebsd6_truncate 200 |
| LOW | pwnlib/data/includes/freebsd.h | 741 | #define SYS_clock_gettime 232 |
| LOW | pwnlib/data/includes/freebsd.h | 761 | #define SYS_netbsd_lchown 275 |
| LOW | pwnlib/data/includes/freebsd.h | 781 | #define SYS_kldfirstmod 309 |
| LOW | pwnlib/data/includes/freebsd.h | 801 | #define SYS_sched_get_priority_max 332 |
| LOW | pwnlib/data/includes/freebsd.h | 821 | #define SYS___acl_delete_fd 352 |
| LOW | pwnlib/data/includes/freebsd.h | 841 | #define SYS___mac_set_proc 385 |
| LOW | pwnlib/data/includes/freebsd.h | 861 | #define SYS_ksem_unlink 406 |
| LOW | pwnlib/data/includes/freebsd.h | 881 | #define SYS_sigwait 429 |
| LOW | pwnlib/data/includes/freebsd.h | 901 | #define SYS_setaudit 450 |
| LOW | pwnlib/data/includes/freebsd.h | 921 | #define SYS_sctp_generic_recvmsg 474 |
| LOW | pwnlib/data/includes/freebsd.h | 941 | #define SYS_futimesat 494 |
| 3174 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/runner.py | 3 | |
| LOW | pwnlib/regsort.py | 4 | |
| LOW | pwnlib/log.py | 97 | |
| LOW | pwnlib/log.py | 99 | |
| LOW | pwnlib/timeout.py | 4 | |
| LOW | pwnlib/__init__.py | 1 | |
| LOW | pwnlib/__init__.py | 41 | |
| LOW | pwnlib/args.py | 52 | |
| LOW | pwnlib/gdb.py | 145 | |
| LOW | pwnlib/fmtstr.py | 96 | |
| LOW | pwnlib/fmtstr.py | 103 | |
| LOW | pwnlib/fmtstr.py | 106 | |
| LOW | pwnlib/libc/__init__.py | 4 | |
| LOW | pwnlib/libc/glibc.py | 4 | |
| LOW | pwnlib/flag/__init__.py | 1 | |
| LOW | pwnlib/util/misc.py | 2 | |
| LOW | pwnlib/util/misc.py | 9 | |
| LOW | pwnlib/util/misc.py | 21 | |
| LOW | pwnlib/util/fiddling.py | 5 | |
| LOW | pwnlib/util/fiddling.py | 19 | |
| LOW | pwnlib/util/iters.py | 5 | |
| LOW | pwnlib/util/iters.py | 12 | |
| LOW | pwnlib/util/proc.py | 2 | |
| LOW | pwnlib/util/packing.py | 32 | |
| LOW | pwnlib/util/sh_string.py | 241 | |
| LOW | pwnlib/util/sh_string.py | 246 | |
| LOW | pwnlib/term/term.py | 3 | |
| LOW | pwnlib/term/term.py | 5 | |
| LOW | pwnlib/term/term.py | 8 | |
| LOW | pwnlib/term/term.py | 15 | |
| LOW | pwnlib/term/__init__.py | 3 | |
| LOW | pwnlib/term/termcap.py | 4 | |
| LOW | pwnlib/term/termcap.py | 6 | |
| LOW | pwnlib/filesystem/__init__.py | 4 | |
| LOW | pwnlib/filesystem/__init__.py | 5 | |
| LOW | pwnlib/filesystem/ssh.py | 7 | |
| LOW | pwnlib/filesystem/ssh.py | 8 | |
| LOW | pwnlib/filesystem/ssh.py | 9 | |
| LOW | pwnlib/filesystem/ssh.py | 15 | |
| LOW | pwnlib/filesystem/path.py | 3 | |
| LOW | pwnlib/shellcraft/internal.py | 1 | |
| LOW | pwnlib/shellcraft/registers.py | 1 | |
| LOW | pwnlib/shellcraft/__init__.py | 162 | |
| LOW | pwnlib/commandline/constgrep.py | 8 | |
| LOW | pwnlib/commandline/update.py | 7 | |
| LOW | pwnlib/commandline/errno.py | 1 | |
| LOW | pwnlib/commandline/disasm.py | 1 | |
| LOW | pwnlib/commandline/disasm.py | 9 | |
| LOW | pwnlib/commandline/version.py | 8 | |
| LOW | pwnlib/commandline/unhex.py | 1 | |
| LOW | pwnlib/commandline/scramble.py | 7 | |
| LOW | pwnlib/commandline/libcdb.py | 9 | |
| LOW | pwnlib/commandline/phd.py | 10 | |
| LOW | pwnlib/commandline/checksec.py | 1 | |
| LOW | pwnlib/commandline/checksec.py | 2 | |
| LOW | pwnlib/commandline/checksec.py | 4 | |
| LOW | pwnlib/commandline/disablenx.py | 2 | |
| LOW | pwnlib/commandline/shellcraft.py | 4 | |
| LOW | pwnlib/commandline/shellcraft.py | 9 | |
| LOW | pwnlib/commandline/asm.py | 7 | |
| 238 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pwnlib/regsort.py | 347 | # ╰──────── ← ────────╯ |
| MEDIUM | pwnlib/regsort.py | 395 | # ╰──────── ← ────────╯ |
| MEDIUM | pwnlib/regsort.py | 405 | # ╰──────── ← ────────╯ |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/random_funcs.py | 13 | # ================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 21 | # ==================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 47 | # ====================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 66 | # ========================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 89 | # ================================= |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 108 | # ============================ |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 113 | # ============================ |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 118 | # ============== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 128 | # ============ |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/ARM_Instructions.py | 133 | # =========================================================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 12 | # ==================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 20 | # ================================= |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 25 | # ========================================================== |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 34 | # ======================================================================= |
| MEDIUM | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 45 | # ========================================================================= |
| MEDIUM | extra/docker/develop/ipython_config.py | 5 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 7 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 437 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 439 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 100 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 102 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 202 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 204 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 359 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 361 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 380 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 382 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 421 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 423 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 489 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 491 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 529 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 531 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 553 | #------------------------------------------------------------------------------ |
| MEDIUM | extra/docker/develop/ipython_config.py | 555 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 5 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 7 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 437 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 439 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 100 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 102 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 202 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 204 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 359 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 361 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 380 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 382 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 421 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 423 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 489 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 491 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 529 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 531 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 553 | #------------------------------------------------------------------------------ |
| MEDIUM | travis/docker/ipython_config.py | 555 | #------------------------------------------------------------------------------ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | pwnlib/windbg.py | 199 | attach(target, dbgscript=None, dbg_args=[]) -> int Attach to a running process with WinDbg. Arguments: |
| HIGH | pwnlib/gdb.py | 423 | Launch a GDB server with the specified command line, and launches GDB to attach to it. Arguments: |
| HIGH | pwnlib/gdb.py | 945 | Start GDB in a new terminal and attach to `target`. Arguments: target: The target to attach to. |
| HIGH | pwnlib/context/__init__.py | 523 | local(**kwargs) -> context manager Create a context manager for use with the ``with`` statement. For m |
| HIGH | pwnlib/util/iters.py | 298 | repeat_func(func, *args, **kwargs) -> iterator Repeatedly calls `func` with positional arguments `args` and keyword |
| HIGH | pwnlib/util/iters.py | 563 | random_product(*args, repeat = 1) -> tuple Arguments: args: One or more iterables repeat(int): Number |
| HIGH | pwnlib/util/packing.py | 47 | pack(number, word_size = None, endianness = None, sign = None, **kwargs) -> str Packs arbitrary-sized integer. |
| HIGH | pwnlib/util/packing.py | 163 | unpack(data, word_size = None, *, endianness = None, sign = None, **kwargs) -> int Unpacks arbitrary-sized integer. |
| HIGH | pwnlib/util/packing.py | 237 | unpack_many(data, word_size = None, *, endianness = None, sign = None) -> int list Splits `data` into groups of ``w |
| HIGH | pwnlib/util/packing.py | 654 | make_packer(word_size = None, endianness = None, sign = None) -> number → str Creates a packer by "freezing" the gi |
| HIGH | pwnlib/util/packing.py | 718 | make_unpacker(word_size = None, endianness = None, sign = None, **kwargs) -> str → number Creates an unpacker by " |
| HIGH | pwnlib/util/packing.py | 1363 | overlap(*structs: bytes | tuple[bytes, int]) -> bytes Merge multiple byte sequences with possible positional offset |
| HIGH | pwnlib/tubes/tube.py | 108 | recv(numb = 4096, timeout = default) -> bytes Receives up to `numb` bytes of data from the tube, and returns |
| HIGH | pwnlib/tubes/tube.py | 215 | recvpred(pred, timeout = default) -> bytes Receives one byte at a time from the tube, until ``pred(all_bytes)`` |
| HIGH | pwnlib/tubes/tube.py | 269 | recvn(numb, timeout = default) -> bytes Receives exactly `n` bytes. If the request is not satisfied be |
| HIGH | pwnlib/tubes/tube.py | 315 | recvuntil(delims, drop=False, timeout=default) -> bytes Receive data until one of `delims` is encountered. |
| HIGH | pwnlib/tubes/tube.py | 405 | recvlines(numlines, drop=True, timeout=default) -> list of bytes objects Receive up to ``numlines`` lines. |
| HIGH | pwnlib/encoders/i386/ascii_shellcode.py | 48 | Pack shellcode into only ascii characters that unpacks itself and executes (on the stack) Args: |
| HIGH | pwnlib/encoders/i386/ascii_shellcode.py | 113 | Allocate enough space on the stack for the shellcode int_size is taken from the context Args: |
| HIGH | pwnlib/encoders/i386/ascii_shellcode.py | 154 | Find two bitwise negatives in the vocab so that when they are and-ed the result is 0. int_size is take |
| HIGH | pwnlib/encoders/i386/ascii_shellcode.py | 192 | Covert the sellcode to sub eax and posh eax instructions int_size is taken from the context Args: |
| HIGH | pwnlib/encoders/i386/ascii_shellcode.py | 229 | Given `target` and `last`, return a list of integers that when subtracted from `last` will equal `target` whil |
| HIGH | pwnlib/elf/elf.py | 1236 | search(needle, writable = False, executable = False) -> generator Search the ELF's virtual address space for th |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/update.py | 44 | |
| LOW | pwnlib/ui.py | 47 | |
| LOW | pwnlib/ui.py | 127 | |
| LOW | pwnlib/ui.py | 254 | |
| LOW | pwnlib/libcdb.py | 334 | |
| LOW | pwnlib/windbg.py | 139 | |
| LOW | pwnlib/dynelf.py | 515 | |
| LOW | pwnlib/dynelf.py | 1007 | |
| LOW | pwnlib/asm.py | 154 | |
| LOW | pwnlib/asm.py | 750 | |
| LOW | pwnlib/useragents.py | 11 | |
| LOW | pwnlib/gdb.py | 944 | |
| LOW | pwnlib/memleak.py | 171 | |
| LOW | pwnlib/util/misc.py | 144 | |
| LOW | pwnlib/util/misc.py | 268 | |
| LOW | pwnlib/util/fiddling.py | 97 | |
| LOW | pwnlib/util/fiddling.py | 326 | |
| LOW | pwnlib/util/fiddling.py | 630 | |
| LOW | pwnlib/util/fiddling.py | 1052 | |
| LOW | pwnlib/util/lists.py | 37 | |
| LOW | pwnlib/util/iters.py | 869 | |
| LOW | pwnlib/util/proc.py | 17 | |
| LOW | pwnlib/util/proc.py | 295 | |
| LOW | pwnlib/util/proc.py | 395 | |
| LOW | pwnlib/util/packing.py | 46 | |
| LOW | pwnlib/util/packing.py | 853 | |
| LOW | pwnlib/util/packing.py | 1109 | |
| LOW | pwnlib/util/packing.py | 1362 | |
| LOW | pwnlib/util/sh_string.py | 275 | |
| LOW | pwnlib/util/cyclic.py | 134 | |
| LOW | pwnlib/util/splash.py | 26 | |
| LOW | pwnlib/util/splash.py | 30 | |
| LOW | pwnlib/util/crc/known.py | 5 | |
| LOW | pwnlib/util/crc/known.py | 18 | |
| LOW | pwnlib/term/readline.py | 52 | |
| LOW | pwnlib/term/readline.py | 69 | |
| LOW | pwnlib/term/readline.py | 99 | |
| LOW | pwnlib/term/readline.py | 159 | |
| LOW | pwnlib/term/readline.py | 367 | |
| LOW | pwnlib/term/term.py | 167 | |
| LOW | pwnlib/term/term.py | 247 | |
| LOW | pwnlib/term/term.py | 275 | |
| LOW | pwnlib/term/key.py | 20 | |
| LOW | pwnlib/term/key.py | 184 | |
| LOW | pwnlib/term/key.py | 224 | |
| LOW | pwnlib/term/key.py | 429 | |
| LOW | pwnlib/term/key.py | 117 | |
| LOW | pwnlib/term/keymap.py | 34 | |
| LOW | pwnlib/term/keymap.py | 58 | |
| LOW | pwnlib/term/unix_termcap.py | 8 | |
| LOW | pwnlib/term/text.py | 25 | |
| LOW | pwnlib/term/text.py | 110 | |
| LOW | pwnlib/shellcraft/__init__.py | 43 | |
| LOW | pwnlib/commandline/constgrep.py | 58 | |
| LOW | pwnlib/commandline/libcdb.py | 225 | |
| LOW | pwnlib/commandline/shellcraft.py | 176 | |
| LOW | pwnlib/commandline/debug.py | 51 | |
| LOW | pwnlib/commandline/template.py | 34 | |
| LOW | pwnlib/commandline/template.py | 114 | |
| LOW | pwnlib/adb/adb.py | 400 | |
| 41 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | pwnlib/gdb.py | 202 | adb.push(tmp_elf, android_path) |
| HIGH | pwnlib/gdb.py | 239 | adb.push(tmp_elf, android_path) |
| HIGH | pwnlib/gdb.py | 1007 | >>> io.sendline(b'echo Hello from bash && exit') |
| HIGH | pwnlib/gdb.py | 1034 | >>> io.sendline(b'echo Hello from bash && exit') |
| HIGH | pwnlib/gdb.py | 1055 | >>> io.sendline(b'echo Hello from bash && exit') |
| HIGH | pwnlib/gdb.py | 1078 | >>> gdbserver.sendline(b'echo Hello from bash && exit') |
| HIGH | pwnlib/filepointer.py | 282 | self.setdefault(null) |
| HIGH | pwnlib/filepointer.py | 351 | def setdefault(self,null): |
| HIGH | pwnlib/context/__init__.py | 94 | >>> t.push() |
| HIGH | pwnlib/context/__init__.py | 554 | self._tls.push() |
| HIGH | pwnlib/util/misc.py | 627 | tube.sendline('which python || echo') |
| HIGH | pwnlib/util/misc.py | 632 | tube.sendline('which perl || echo') |
| HIGH | pwnlib/adb/adb.py | 562 | >>> adb.push('./filename', '/data/local/tmp') |
| HIGH | pwnlib/adb/adb.py | 566 | >>> adb.push('./filename', '/does/not/exist') |
| HIGH | pwnlib/adb/adb.py | 1386 | >>> sent = adb.push(filename, "/data/local/tmp") |
| HIGH | pwnlib/tubes/tube.py | 1200 | self.sendlineafter(end_markerb, "command -v {} && echo YEP || echo NOPE{}".format(utility, echo_end).enc |
| HIGH | pwnlib/tubes/ssh.py | 1388 | cmd = '(sha256 || sha256sum || openssl sha256) 2>/dev/null < ' |
| HIGH | pwnlib/tubes/ssh.py | 1694 | untar = self.system(b'cd %s && tar -xzf %s' % (sh_string(remote), sh_string(remote_tar))) |
| HIGH | pwnlib/tubes/ssh.py | 1920 | wd, status = self.run_to_end('x=$(mktemp -d) && cd $x && chmod +x . && echo $PWD', cwd='.') |
| HIGH | pwnlib/tubes/ssh.py | 1059 | script = 'echo PWNTOOLS; for py in python3 python2.7 python2 python; do test -x "$(command -v $py 2>&1)" && |
| HIGH | pwnlib/data/syscalls/generate.py | 121 | ${{pwnlib.shellcraft.push(arg)}} |
| HIGH | pwnlib/elf/elf.py | 1975 | return (!cpu_has_rixi && exstack == EXSTACK_DEFAULT); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/update.py | 156 | except Exception: |
| LOW | pwnlib/libcdb.py | 668 | except Exception as e: |
| LOW | pwnlib/libcdb.py | 676 | except Exception: |
| LOW | pwnlib/windbg.py | 153 | except Exception: |
| LOW | pwnlib/atexit.py | 91 | except Exception: |
| LOW | pwnlib/gdb_api_bridge.py | 54 | except Exception as exc: |
| LOW | pwnlib/asm.py | 680 | except Exception: |
| LOW | pwnlib/asm.py | 893 | except Exception: |
| LOW | pwnlib/asm.py | 996 | except Exception: |
| LOW | pwnlib/atexception.py | 101 | except Exception: |
| LOW | pwnlib/memleak.py | 193 | except Exception as e: |
| LOW | pwnlib/flag/flag.py | 68 | except Exception: |
| LOW | pwnlib/util/misc.py | 911 | except Exception: |
| LOW | pwnlib/util/misc.py | 957 | except Exception: |
| LOW | pwnlib/util/misc.py | 963 | except Exception: |
| LOW | pwnlib/util/proc.py | 89 | except Exception: |
| LOW | pwnlib/util/proc.py | 128 | except Exception: |
| LOW | pwnlib/term/readline.py | 40 | except Exception: |
| LOW | pwnlib/term/key.py | 18 | except Exception: _fd = os.open(os.devnull, os.O_RDONLY) |
| LOW | pwnlib/term/completer.py | 108 | except Exception: |
| LOW | pwnlib/internal/dochelper.py | 26 | except Exception: |
| LOW | pwnlib/commandline/checksec.py | 35 | except Exception as e: |
| LOW | pwnlib/commandline/common.py | 15 | except Exception: pass |
| LOW | pwnlib/commandline/common.py | 17 | except Exception: pass |
| LOW | pwnlib/commandline/common.py | 19 | except Exception: arg |
| LOW | pwnlib/commandline/common.py | 21 | except Exception: pass |
| LOW | pwnlib/commandline/template.py | 158 | except Exception as e: |
| LOW | pwnlib/commandline/template.py | 191 | except Exception: |
| LOW | pwnlib/adb/adb.py | 422 | except Exception: |
| LOW | pwnlib/tubes/tube.py | 256 | except Exception: |
| LOW | pwnlib/tubes/tube.py | 375 | except Exception: |
| LOW | pwnlib/tubes/tube.py | 452 | except Exception: |
| LOW | pwnlib/tubes/tube.py | 612 | except Exception: |
| LOW | pwnlib/tubes/process.py | 449 | except Exception: |
| LOW | pwnlib/tubes/process.py | 458 | except Exception: |
| LOW | pwnlib/tubes/process.py | 465 | except Exception: |
| LOW | pwnlib/tubes/process.py | 472 | except Exception: |
| LOW | pwnlib/tubes/process.py | 480 | except Exception: |
| LOW | pwnlib/tubes/process.py | 568 | except Exception: |
| MEDIUM | pwnlib/tubes/ssh.py | 548 | def sock(self): |
| LOW | pwnlib/tubes/ssh.py | 513 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 523 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 717 | except Exception as e: |
| LOW | pwnlib/tubes/ssh.py | 798 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 803 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 827 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2005 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2016 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2027 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2043 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2052 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2100 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 2109 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 421 | except Exception: |
| LOW | pwnlib/tubes/ssh.py | 475 | except Exception as e: |
| LOW | pwnlib/tubes/ssh.py | 488 | except Exception as e: |
| LOW | pwnlib/tubes/ssh.py | 1995 | except Exception: |
| LOW | pwnlib/protocols/adb/__init__.py | 103 | except Exception: |
| LOW | pwnlib/elf/corefile.py | 1341 | except Exception: |
| LOW | pwnlib/elf/corefile.py | 1347 | except Exception: |
| 15 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pwnlib/windbg.py | 110 | # Create a new process, and stop it at 'main' |
| MEDIUM | pwnlib/dynelf.py | 761 | # Create a fake leaker which just leaks out of the 'loaded' ELF |
| MEDIUM | pwnlib/asm.py | 830 | # Create a temporary copy of the cached file to avoid modification. |
| MEDIUM | pwnlib/gdb.py | 275 | # Create a temporary file to hold the script |
| MEDIUM | pwnlib/fmtstr.py | 89 | # Create a FmtStr object and give to him the function |
| MEDIUM | pwnlib/util/misc.py | 225 | # Create a duplicate so we can modify it |
| MEDIUM | pwnlib/util/misc.py | 241 | # Create a duplicate so we can modify it safely |
| MEDIUM | pwnlib/util/cyclic.py | 372 | >>> g = cyclic_gen() # Create a generator |
| MEDIUM | pwnlib/constants/__init__.py | 158 | # Create the module structure |
| MEDIUM | pwnlib/shellcraft/__init__.py | 45 | # Create a dictionary of submodules |
| MEDIUM | pwnlib/shellcraft/__init__.py | 167 | # Create the module structure |
| MEDIUM | pwnlib/adb/adb.py | 1348 | # Create the directories |
| MEDIUM | pwnlib/tubes/process.py | 319 | # Create the PTY if necessary |
| MEDIUM | pwnlib/elf/elf.py | 1553 | # Create a new view of memory, for just what we need |
| MEDIUM | pwnlib/elf/elf.py | 2578 | # Create a copy of the ELF to patch instead of the original file. |
| MEDIUM | docs/source/conf.py | 4 | # This file is execfile()d with the current directory set to its containing dir. |
| MEDIUM | extra/docker/develop/ipython_config.py | 14 | # The following methods should be called by the :meth:`initialize` method of the |
| MEDIUM | extra/docker/develop/ipython_config.py | 115 | # Create a massive crash report when IPython encounters what may be an internal |
| MEDIUM | travis/ssh_setup.sh | 27 | # Create the new user account |
| MEDIUM | travis/docker/ipython_config.py | 14 | # The following methods should be called by the :meth:`initialize` method of the |
| MEDIUM | travis/docker/ipython_config.py | 115 | # Create a massive crash report when IPython encounters what may be an internal |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/libcdb.py | 26 | def _turbofast_extract_build_id(path): |
| LOW | pwnlib/libcdb.py | 556 | def _find_libc_package_lib_url(libc: ELF, extra_mirrors: list[str] | None = None) -> Generator[str, None, None]: |
| LOW | pwnlib/libcdb.py | 684 | def _handle_multiple_matching_libcs(matching_libcs): |
| LOW | pwnlib/gdb_api_bridge.py | 92 | def exposed_set_finish_breakpoint(self, client, has_stop, has_out_of_scope, *args, **kwargs): |
| LOW | pwnlib/asm.py | 103 | def print_binutils_instructions(util, context): |
| LOW | pwnlib/fmtstr.py | 358 | def find_min_hamming_in_range_step(prev, step, carry, strict): |
| LOW | pwnlib/fmtstr.py | 416 | def find_min_hamming_in_range(maxbytes, lower, upper, target): |
| LOW | pwnlib/context/__init__.py | 1535 | def throw_eof_on_incomplete_line(self, v): |
| LOW | pwnlib/util/fiddling.py | 625 | def update_cyclic_pregenerated(size): |
| LOW | pwnlib/util/iters.py | 633 | def random_combination_with_replacement(iterable, r): |
| LOW | pwnlib/commandline/libcdb.py | 210 | def collect_synthetic_symbols(exe): |
| LOW | pwnlib/commandline/shellcraft.py | 172 | def is_not_a_syscall_template(name): |
| LOW | pwnlib/commandline/template.py | 34 | def get_docker_image_libraries(): |
| LOW | pwnlib/adb/adb.py | 302 | def __do_deferred_initialization(self): |
| LOW | pwnlib/adb/adb.py | 496 | def _create_adb_push_pull_callback(w): |
| LOW | pwnlib/tubes/process.py | 909 | def __pty_make_controlling_tty(self, tty_fd): |
| LOW | pwnlib/tubes/ssh.py | 1405 | def _verify_local_fingerprint(self, fingerprint): |
| LOW | pwnlib/tubes/ssh.py | 1953 | def _init_remote_platform_info(self): |
| LOW | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 27 | def alphanumeric_get_byte_ltmax(max): |
| LOW | pwnlib/encoders/arm/alphanumeric/alphanum_byte.py | 46 | def alphanumeric_get_complement(c): |
| LOW | pwnlib/elf/corefile.py | 1356 | def systemd_coredump_corefile(self): |
| LOW | pwnlib/elf/corefile.py | 1282 | def apport_crash_extract_corefile(self, crashfile_data): |
| LOW | pwnlib/elf/corefile.py | 1383 | def wsl_capture_crash_corefile(self): |
| LOW | pwnlib/elf/elf.py | 967 | def _populate_synthetic_symbols(self): |
| LOW | pwnlib/elf/plt.py | 56 | def __ensure_memory_to_run_unicorn(): |
| LOW | pwnlib/elf/plt.py | 77 | def prepare_unicorn_and_context(elf, got, address, data): |
| LOW | pwnlib/elf/plt.py | 159 | def emulate_plt_instructions_inner(uc, elf, got, pc, data): |
| LOW | extra/docker/develop/ipython_config.py | 51 | def continuation_prompt_tokens(self, cli=None, width=None): |
| LOW | travis/docker/ipython_config.py | 51 | def continuation_prompt_tokens(self, cli=None, width=None): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/elf/corefile.py | 379 | Don't forget to call :meth:`.ELF.save` to save the changes to disk. |
| MEDIUM | extra/docker/develop/ipython_config.py | 446 | # printers. Here is a simple example:: |
| MEDIUM | extra/docker/develop/ipython_config.py | 344 | # Set the size of the output cache. The default is 1000, you can change it |
| MEDIUM | travis/docker/ipython_config.py | 446 | # printers. Here is a simple example:: |
| MEDIUM | travis/docker/ipython_config.py | 344 | # Set the size of the output cache. The default is 1000, you can change it |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/libcdb.py | 158 | # Check if the local system libc matches the requested hash. |
| LOW | pwnlib/libcdb.py | 225 | # Check if all symbols have been matched |
| LOW | pwnlib/libcdb.py | 386 | # Check if we tried this buildid before. |
| LOW | pwnlib/libcdb.py | 775 | # Check if no matches are found |
| LOW | pwnlib/util/misc.py | 251 | # Check if = is in the key, Required check since we sometimes call ctypes.execve directly |
| LOW | pwnlib/commandline/constgrep.py | 91 | # Check if the value has proper type |
| LOW | pwnlib/commandline/template.py | 150 | # Check if the binary is statically linked before trying to extract libraries from Docker |
| LOW | pwnlib/tubes/process.py | 729 | # Check if process is still running. |
| LOW | pwnlib/encoders/i386/ascii_shellcode.py | 135 | # Set target to the `size` arg |
| LOW | pwnlib/elf/elf.py | 862 | # Close the file descriptor so that it may be executed |
| LOW | pwnlib/elf/elf.py | 2593 | # Set RUNPATH to library path in order to find other libraries. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pwnlib/log.py | 624 | # if 'pwnlib_msgtype' is not set (or set to `None`) we just return the |
| MEDIUM | pwnlib/timeout.py | 49 | self.obj._timeout = self.timeout # leverage validation |
| LOW | pwnlib/tubes/process.py | 650 | # Normally we could just use PIPE and be happy. |
| MEDIUM | pwnlib/tubes/process.py | 742 | # In order to facilitate retrieving core files, force an update |
| LOW | pwnlib/tubes/ssh.py | 425 | # If we never completely started up, just use the parent implementation |
| LOW | pwnlib/rop/rop.py | 1079 | # If we can find a function with that name, just call it |
| LOW | pwnlib/data/includes/generator/freebsd/sys/errno.h | 188 | #define EJUSTRETURN (-2) /* don't modify regs, just return */ |
| LOW | pwnlib/data/includes/generator/freebsd/sys/socket.h | 105 | #define SO_DONTROUTE 0x0010 /* just use interface addresses */ |
| LOW | pwnlib/elf/corefile.py | 841 | # No embedded siginfo structure, so just return the |
| LOW | pwnlib/elf/elf.py | 798 | # Any existing files we can just use |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | pwnlib/data/includes/generator/freebsd/sys/mman.h | 69 | #define MAP_FIXED 0x0010 /* map addr must be exactly as requested */ |