Closed the-soloist closed 10 months ago
The tested libc is download from https://github.com/niklasb/libc-database
using latest commit
DEBUG output:
But when not using DEBUG, use ELF() load the target libc causes context.quiet to affect the global scope.
context.quiet
testing on the following code
#!/usr/bin/env python # -*- coding: utf-8 -*- from pwn import * import ipdb safe = "./libc6_2.13-20ubuntu5.2_i386.so" target = "./libc6-x32_2.30-0ubuntu2_i386.so" # load target libc print("[test0] context.log_level: ", context.log_level) ELF(target, checksec=False) print("[test0] context.log_level: ", context.log_level) # load safe libc in context.quiet print("[test1] context.log_level: ", context.log_level) with context.quiet: ELF(safe, checksec=False) print("[test1] context.log_level: ", context.log_level) # load target libc in context.quiet print("[test2] context.log_level: ", context.log_level) with context.quiet: ELF(target, checksec=False) print("[test2] context.log_level: ", context.log_level)
attachment.zip
Thank you for the great test case!
The tested libc is download from https://github.com/niklasb/libc-database
Update Pwntools First
using latest commit
Debug Output
DEBUG output:
But when not using DEBUG, use ELF() load the target libc causes
context.quiet
to affect the global scope.Test Code
testing on the following code
Example File
attachment.zip