我在编译以下漏洞利用代码时遇到问题:
http://downloads.securityfocus.com/vulnerabilities/exploits/59846-1.c
我正在使用 "gcc file.c" 和 "gcc -O2 file.c",但它们都会导致以下错误:
sorbolinux-exec.c: In function ‘sc’:
sorbolinux-exec.c:76: error: stray ‘\302’ in program
sorbolinux-exec.c:76: error: stray ‘\244’ in program
sorbolinux-exec.c:76: error: ‘t’ undeclared (first use in this function)
sorbolinux-exec.c:76: error: (Each undeclared identifier is reported only once
sorbolinux-exec.c:76: error: for each function it appears in.)
我尝试在 Kali Linux 上编译它们和 Ubuntu 10.04 (Lucid Lynx) 并得到相同的结果。
最佳答案
您在该行中有一个无效字符。这是我看到的:
关于编译错误 : stray ‘\302’ in program, 等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19198332/