编译错误:程序中出现杂散“302"等 [英] Compilation error: stray ‘302’ in program, etc

查看:98
本文介绍了编译错误:程序中出现杂散“302"等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译以下漏洞利用代码时遇到问题:

I have a problem compiling the following exploit code:

http://downloads.securityfocus.com/vulnerabilities/exploits/59846-1.c

我正在使用gcc file.c"gcc -O2 file.c",但是它们都导致以下错误:p>

I am using "gcc file.c" and "gcc -O2 file.c", but both of them results in the following errors:

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 LinuxUbuntu 10.04 (Lucid Lynx) 并得到了相同的结果.

I tried compiling them on both Kali Linux and Ubuntu 10.04 (Lucid Lynx) and got the same result.

推荐答案

您在该行中有一个无效字符.这是我看到的:

You have an invalid character on that line. This is what I saw:

这篇关于编译错误:程序中出现杂散“302"等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆