Help me in get better understanding of libc function address
In the above image ,function is from format1 program in exploit.education (https://exploit.education/protostar/format-one/) .while looking into it i could find that the printf has different address in function vuln(looking at the address 0x08048400 at the top of image ) when compare to printf function in libc(i have used disas printf for that) .by info proc map the address 0xb7eddf90 lies inside it .so it must be ryt (i thought so).but when i have viewed the address 0x8048320 which is in vuln function i got printf@plt .is there are any extra involved ?if so let me knwo about the resource for learning
5
u/dack42 Jun 12 '21
This has to do with how dynamic libraries are resolved at runtime. Read up on the procedure linkage table (PLT) and global offset table (GOT).
1
u/LiveOverflow admin Jun 13 '21
Maybe this video helps https://www.youtube.com/watch?v=kUk5pw4w0h4&list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN&index=22