Compilation error: stray ‘\302’ in program etc

后端 未结 13 2103
眼角桃花
眼角桃花 2020-12-01 14:03

I am having problem compiling the followed exploit code:

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

I am using: \"gcc file.c\" and

相关标签:
13条回答
  • 2020-12-01 14:41

    I noticed an issue in using the above tr command. The tr command COMPLETELY removes the "smart quotes". It would be better to replace the "smart quotes" with something like this.

    This will give you a quick preview of what will be replaced.

    sed s/[”“]/'"'/g File.txt

    This will do the replacements and put the replacement in a new file called WithoutSmartQuotes.txt.

    sed s/[”“]/'"'/g File.txt > WithoutSmartQuotes.txt

    This will overwrite the original file.

    sed -i ".bk" s/[”“]/'"'/g File.txt

    http://developmentality.wordpress.com/2010/10/11/how-to-remove-smart-quotes-from-a-text-file/

    0 讨论(0)
提交回复
热议问题