19-09-2010, 00:59
|
מנהל פורומי "תכנות ובניית אתרים" ו"חומרה ורשתות"
|
|
חבר מתאריך: 25.10.01
הודעות: 42,775
|
|
במקרה הטוב ביותר תקבל bytecode אחרי obfuscation ואולי אפילו גם אחרי optimizer
כן, תוכל לשנות את ה flow של הקוד (אני יכול לחשוב על דרכים טובות יותר לשנות את ה flow במידת הצורך, שידרשו הרבה פחות מאמץ) - אבל יש סיכוי לא רע שהמאמץ להגיע לכך יהיה גדול יותר מכתיבתו מחדש - וזאת משום שמה שתקבל, בסופו של דבר, יהיה דומה ברעיון ל...
קוד:
$ gdb tty
GNU gdb (Gentoo 7.1 p1) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/shimi/tty...(no debugging symbols found)...done.
(gdb) disassemble main
Dump of assembler code for function main:
0x00000000004005a4 <+0>: push %rbp
0x00000000004005a5 <+1>: mov %rsp,%rbp
0x00000000004005a8 <+4>: sub $0x70,%rsp
0x00000000004005ac <+8>: lea -0x70(%rbp),%rax
0x00000000004005b0 <+12>: mov $0x63,%edx
0x00000000004005b5 <+17>: mov %rax,%rsi
0x00000000004005b8 <+20>: mov $0x8802,%edi
0x00000000004005bd <+25>: callq 0x400490 <ttyname_r@plt>
0x00000000004005c2 <+30>: mov $0x4006ec,%eax
0x00000000004005c7 <+35>: lea -0x70(%rbp),%rdx
0x00000000004005cb <+39>: mov %rdx,%rsi
0x00000000004005ce <+42>: mov %rax,%rdi
0x00000000004005d1 <+45>: mov $0x0,%eax
0x00000000004005d6 <+50>: callq 0x400470 <printf@plt>
0x00000000004005db <+55>: mov $0x0,%eax
0x00000000004005e0 <+60>: leaveq
0x00000000004005e1 <+61>: retq
End of assembler dump.
אז נכון שזה כיף ונחמד, אבל לא הייתי, כמנהל עסק, בוחר בשיטה הזו כדי "לדפוק" את ה"מניאק" שמכר לי מוצר מדף בפורמט שכזה... זה פשוט לא כלכלי.
|