Skip to content

Commit

Permalink
Use raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker authored Nov 24, 2023
1 parent 9000f3a commit c12a53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/commandline/libcdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def main(args):
exe = ELF(file, checksec=False)
log.info('%s', text.red(os.path.basename(file)))

libc_version = re.search(b'libc[ -](\\d+\\.\\d+)', exe.data)
libc_version = re.search(br'libc[ -](\d+\.\d+)', exe.data)
if libc_version:
log.indented('%-20s %s', text.green('Version:'), libc_version.group(1).decode())

Expand Down

0 comments on commit c12a53c

Please sign in to comment.