I know I will not understand it.
but thanks anyway.
It'll be helpful in future.
but thanks anyway.
It'll be helpful in future.
Antagonism | Format String Exploitation |
(May 26, 2013 07:54 AM)๖ۣۣۜۜFear Wrote: Another great antagonism tutorial, I remember when you were just starting these tutorials. Nice to see you haven't stopped. I've only made my new two tuts because of special occasion that will be announced very soon. (May 27, 2013 05:35 PM)SIM-1073426 Wrote: Really nice tutorial, how long did it take you to learn all this? This is simple and shouldn't take more than a day to learn. (May 25, 2013 07:59 PM)Pendragon Wrote: You missed someone, dookiehead. Truestory There Lol Gratz On The 2 Years
thanks Divine.
i'm a newcomer, when reading this tutorial, i puzzled about the trick: ./vuln `python -c 'print "\x24\xa0\x04\x08"+"\x26\xa0\x04\x08"'`%65055x%8\$hn%49624x%9\$hn when printf "AAAA...", the stack offset is 8. acctually it is the offset of the variable buf. am i right? but why we should use the offset 8? i search the printf, and couldn't find the introduce about the ‘$’ . what is meaning about this symbol? and what's the relationship between ‘$’ and the "\x24\xa0\x04\x08" when using "\n" as the format? i know when there are no additional arguments following formats, the printf will write the length to the stack, but the static var is not at the stack.why write the code as above, the value of var could be change? sorry, maybe too many question. but i'm really looking forward to your reply, thanks! (Jun 1, 2013 04:57 AM)Kluge7 Wrote: thanks Divine. Quote:We must see how deep in $esp our buffer lies. Eight is the offset to reach our buffer. Quote:Very nice. Also, %X$s, where X is a number, reads Xth argument from the stack.Therefore, %3$s would read third argument as a string. Same concept. %8\$hn Also, we are not using \n. That would mean new line. We're using %n. |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| by tempest403Oct 19, 2026 05:03 AM | 2 | 64 |
Oct 19, 2026 05:03 AM Last Post: DramaKing |
| by MESHAL7Feb 27, 2026 04:20 PM | 1 | 90 |
Feb 27, 2026 04:20 PM Last Post: MESHAL7 |
| by brian911Feb 2, 2026 01:42 AM | 6 | 443 |
Feb 2, 2026 01:42 AM Last Post: Chornaya Magiya |