#include <stdio.h>
int main()
{
char url[] = "www.groad.net";
printf ("welcome to ");
system("ls");
printf ("%s", url);
return 0;
}
gcc exp.c -o exp
beyes@beyes :~/command/strings> strings exp
/lib/ld-linux.so.2
__gmon_start__
libc.so.6
_IO_stdin_used
printf
system
__libc_start_main
GLIBC_2.0
PTRh@
QVhl
www.
groa
d.nef
[^_]
welcome to
;*2$"
strings -a exp
/lib/ld-linux.so.2
__gmon_start__
libc.so.6
_IO_stdin_used
printf
system
__libc_start_main
... ...
.shstrtab
.interp
.note.ABI-tag
.note.gnu.build-id
.gnu.hash
... ...
_Jv_RegisterClasses
__TMC_END__
_ITM_registerTMCloneTable
_init
beyes@beyes :~/command/strings> strings /bin/ls |grep Copyright
Copyright %s %d Free Software Foundation, Inc.
beyes@beyes :~/command/strings> strings -o exp
524 /lib/ld-linux.so.2
1131 __gmon_start__
1150 libc.so.6
1162 _IO_stdin_used
1201 printf
1210 system
1217 __libc_start_main
1241 GLIBC_2.0
1610 PTRh@
1625 QVhl
2171 www.
2201 groa
2211 d.nef
2454 [^_]
2540 welcome to
2727 ;*2$"
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |