Shell's Home

Apr 1, 2008 - 1 minute read - Comments

显示自身的代码

void main(){char* a=“void main(){char* a=%c%s%c;printf (a,34,a,34);}“;printf(a,34,a,34);}

核心是使用printf(a,a)来代换显示,并且用34来规避转换。当然,完整的要带include,稍微有点区别。

Tags: c program

None 链接上的问题

comments powered by Disqus