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

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

问题描述

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

I have a problem compiling the followed exploit code:

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

我正在使用:"gcc file.c";和"gcc -O2 file.c",但它们均出现以下错误:

I am using: "gcc file.c" and "gcc -O2 file.c", but both of them gets 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 Linux

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

推荐答案

该行上的字符无效.这是我看到的:

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

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

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