绕过atoi前对首字符是否为负号的检查

Tuesday, December 27, 2022
本文共38字
1分钟阅读时长
pwn , atoi

⚠️本文是作者P3troL1er原创,首发于https://peterliuzhi.top/tricks/%E7%BB%95%E8%BF%87atoi%E5%89%8D%E5%AF%B9%E9%A6%96%E5%AD%97%E7%AC%A6%E6%98%AF%E5%90%A6%E4%B8%BA%E8%B4%9F%E5%8F%B7%E7%9A%84%E6%A3%80%E6%9F%A5/。商业转载请联系作者获得授权,非商业转载请注明出处!

Never give up, for that is just the place and time that the tide will turn. — Harriet Beecher Stowe

先输入空格就好了,atoi会跳过空格