Shell Code에서는 16진수의 경우에는 앞에 \x를 붙이고, 8진수의 경우는 \를 붙인다.
원래 알고 있던 것은 16진수의 경우 앞에 0x를 붙이고, 8진수의 경우는 0을 붙였었는데 Shell에서는 왜 이렇게 쓰는지 궁금해서 찾아보았다.
https://stackoverflow.com/questions/889941/which-encoding-uses-the-x-backslash-x-prefix
Which encoding uses the \x backslashx prefix?
I'm attempting to decode text which is prefixing certain 'special characters' with \x. I've worked out the following mappings by hand: \x28 \x29 \x3a : e.g. 12\x3a39\x3a03 AM Does anyone
stackoverflow.com
https://port70.net/~nsz/c/c11/n1570.html#6.4.4.4
N1570 April 12, 2011 ISO/IEC 9899:201x
port70.net
찾아보니 C언어 등의 언어에서 문자열 사이에 16진수나 8진수가 들어갈 때 그런 방식으로 사용하는 듯 싶다.
'프로그래밍 > 해킹' 카테고리의 다른 글
x86-64 아키텍처 정리 0 | 2024.07.05 |
---|---|
Command Injection for Windows 1 | 2024.07.05 |
ExploitTech: Command Injection for Linux 0 | 2024.07.04 |
phpMyRedis 0 | 2024.07.03 |
CouchDB & 관련 공격 0 | 2024.07.03 |