সরাসরি প্রধান সামগ্রীতে চলে যান

post -10

Obfuscation (software) From Wikipedia, the free encyclopedia Jump to navigationJump to search For the term as used in natural language, see obfuscation. In software development, obfuscation is the deliberate act of creating source or machine code that is difficult for humans to understand. Like obfuscation in natural language, it may use needlessly roundabout expressions to compose statements. Programmers may deliberately obfuscate code to conceal its purpose (security through obscurity) or its logic or implicit values embedded in it, primarily, in order to prevent tampering, deter reverse engineering, or even to create a puzzle or recreational challenge for someone reading the source code. This can be done manually or by using an automated tool, the latter being the preferred technique in industry.[1] Contents 1 Overview 2 Recreational obfuscation 2.1 Examples 3 Advantages of obfuscation 3.1 Faster loading time 3.2 Reduced memory usage 3.3 Protection for trade secrets 3.4 Prevention of circumvention 3.5 Prevention of virus detection 4 Disadvantages of obfuscation 5 Decompilers 6 Notifying users of obfuscated code 7 Obfuscating software 8 Obfuscation and copyleft licenses 9 See also 10 Notes 11 References 12 External links Overview The architecture and characteristics of some languages may make them easier to obfuscate than others.[2][3] C,[4] C++,[5][6] and the Perl programming language[7] are some examples of languages easy to obfuscate. Haskell (programming language) is also quite obfuscatable[8] despite being quite different in structure. The properties that make a language obfuscatable are not immediately obvious. Recreational obfuscation Writing and reading obfuscated source code can be a brain teaser. A number of programming contests reward the most creatively obfuscated code, such as the International Obfuscated C Code Contest and the Obfuscated Perl Contest. Types of obfuscations include simple keyword substitution, use or non-use of whitespace to create artistic effects, and self-generating or heavily compressed programs. According to Nick Montfort, techniques may include: naming obfuscation, which includes naming variables in a meaningless or deceptive way; data/code/comment confusion, which includes making some actual code look like comments or confusing syntax with data; double coding, which can be displaying code in poetry form or interesting shapes.[9] Short obfuscated Perl programs may be used in signatures of Perl programmers. These are JAPHs ("Just another Perl hacker").[10] Examples This is a winning entry from the International Obfuscated C Code Contest written by Ian Phillipps in 1988[11] and subsequently reverse engineered by Thomas Ball.[12] /* LEAST LIKELY TO COMPILE SUCCESSFULLY: Ian Phillipps, Cambridge Consultants Ltd., Cambridge, England */ #include main(t,_,a) char * a; { return! 0>8&1|128&y|!(y&255)*64|16&z|2,y^=y>>4,y^=y<<2,y^=~y>>1,s|=y&4 +64506; e,V,v,u,x,y,z,Z; main(r,U)char**U;{ { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { ; } } { { { } } } { { ; } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } { { { } } } for(v A((u A((e A((r-2?0:(V A(1[U])),"C") ),system("stty raw -echo min 0"),fread(l,78114,1,e),B(e),"B")),"A")); 118-(x =*c++); (y=x/8%8,z=(x&199)-4 S 1 S 1 S 186 S 2 S 2 S 3 S 0,r=(y>5)*2+y,z=(x& 207)-1 S 2 S 6 S 2 S 182 S 4)?D(0)D(1)D(2)D(3)D(4)D(5)D(6)D(7)(z=x-2 C C C C C C C C+129 S 6 S 4 S 6 S 8 S 8 S 6 S 2 S 2 S 12)?x/64-1?((0 O a(y)=a(x) O 9 [o]=a(5),8[o]=a(4) O 237==*c++?((int (*)())(2-*c++?fwrite:fread))(l+*k+1[k]* 256,128,1,(fseek(y=5[k]-1?u:v,((3[k]|4[k]<<8)<<7|2[k])<<7,Q=0),y)):0 O y=a(5 ),z=a(4),a(5)=a(3),a(4)=a(2),a(3)=y,a(2)=z O c=l+d(5) O y=l[x=d(9)],z=l[++x] ,x[l]=a(4),l[--x]=a(5),a(5)=y,a(4)=z O 2-*c?Z||read(0,&Z,1),1&*c++?Q=Z,Z=0:( Q=!!Z):(c++,Q=r=V?fgetc(V):-1,s=s&~1|r<0) O++c,write(1,&7[o],1) O z=c+2-l,w, c=l+q O p,c=l+z O c=l+q O s^=1 O Q=q[l] O s|=1 O q[l]=Q O Q=~Q O a(5)=l[x=q] ,a(4)=l[++x] O s|=s&16|9159?Q+=96,1:0,y=Q,h(s<<8) O l[x=q]=a(5),l[++x]=a(4) O x=Q%2,Q=Q/2+s%2*128,s=s&~1|x O Q=l[d(3)]O x=Q / 128,Q=Q*2+s%2,s=s&~1|x O l[d(3)]=Q O s=s&~1|1&Q,Q=Q/2|Q<<7 O Q=l[d(1)]O s=~1 &s|Q>>7,Q=Q*2|Q>>7 O l[d(1)]=Q O m y n(0,-,7)y) O m z=0,y=Q|=x,h(y) O m z=0, y=Q^=x,h(y) O m z=Q*2|2*x,y=Q&=x,h(y) O m Q n(s%2,-,7)y) O m Q n(0,-,7)y) O m Q n(s%2,+,7)y) O m Q n(0,+,7)y) O z=r-8?d(r+1):s|Q<<8,w O p,r-8?o[r+1]=z,r [o]=z>>8:(s=~40&z|2,Q=z>>8) O r[o]--||--o[r-1]O a(5)=z=a(5)+r[o],a(4)=z=a(4) +o[r-1]+z/256,s=~1&s|z>>8 O ++o[r+1]||r[o]++O o[r+1]=*c++,r[o]=*c++O z=c-l,w ,c=y*8+l O x=q,b z=c-l,w,c=l+x) O x=q,b c=l+x) O b p,c=l+z) O a(y)=*c++O r=y ,x=0,a(r)n(1,-,y)s<<8) O r=y,x=0,a(r)n(1,+,y)s<<8)))); system("stty cooked echo"); B((B((V?B(V):0,u)),v)); } An example of a JAPH: @P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{ @p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord ($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&& close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print This slowly displays the text "Just another Perl / Unix hacker", multiple characters at a time, with delays. An explanation can be found here.[15] Some Python examples can be found in the official Python programming FAQ and elsewhere.[16][17][18] Advantages of obfuscation Faster loading time The scripts used by web-pages have to be sent over the network to the user agent that shall run them. The smaller they are, the faster the download. In such use-cases, minification (a relatively trivial form of obfuscation) can produce real advantages. Reduced memory usage In antique run-time interpreted languages (more commonly known as script), like older versions of BASIC, programs executed faster and took less RAM if they used single letter variable names, avoided comments and contained only necessary blank characters (in brief, the shorter the faster). Protection for trade secrets Where the source code of a program must be sent to the user, for example JavaScript in a web page, any trade secret, licensing mechanism or other intellectual property contained within the program is accessible to the user. Obfuscation makes it harder to understand the code and make modifications to it. Desktop programs sometimes include features that help to obfuscate their code. Some programs may not store their entire code on disk, and may pull a portion of their binary code via the web at runtime. They may also use compression and/or encryption, adding additional steps to the disassembly process. Prevention of circumvention Obfuscating the program can, in such cases, make it harder for users to circumvent license mechanisms or obtain information the program's supplier wished to hide. It can also be used to make it harder to hack multiplayer games. Prevention of virus detection Malicious programs may use obfuscation to disguise what they are really doing. Most users don't even read such programs; and those that do typically have access to software tools that can help them to undo the obfuscation, so this strategy is of limited efficacy. Disadvantages of obfuscation While obfuscation can make reading, writing, and reverse-engineering a program difficult and time-consuming, it will not necessarily make it impossible.[19] It adds time and complexity to the build process for the developers. Once code becomes abandonware and is no longer maintained, hobbyists may want to maintain the program, add mods, or understand it better. Obfuscation makes it hard for end users to do useful things with the code. Certain kinds of obfuscation (i.e. code that isn't just a local binary and downloads mini binaries from a web server as needed) can degrade performance and/or require Internet. Decompilers A decompiler can reverse-engineer source code from an executable or library. Decompilation is sometimes called a man-at-the-end attack, based on the traditional cryptographic attack known as "man-in-the-middle". It puts source code in the hands of the user, although this source code is often difficult to read. The source code is likely to have random function and variable names, incorrect variable types, and use different logic than the original source code (due to compiler optimizations). Notifying users of obfuscated code Some anti-virus software, such as AVG AntiVirus,[citation needed] will also alert their users when they land on a website with code that is manually obfuscated, as one of the purposes of obfuscation can be to hide malicious code. However, some developers may employ code obfuscation for the purpose of reducing file size or increasing security. The average user may not expect their antivirus software to provide alerts about an otherwise harmless piece of code, especially from trusted corporations, so such a feature may actually deter users from using legitimate software. Certain major browsers such as Firefox and Chrome also disallow browser extensions containing obfuscated code.[20][21] Obfuscating software A variety of tools exist to perform or assist with code obfuscation. These include experimental research tools created by academics, hobbyist tools, commercial products written by professionals, and open-source software. Deobfuscation tools also exist that attempt to perform the reverse transformation. Although the majority of commercial obfuscation solutions work by transforming either program source code, or platform-independent bytecode as used by Java and .NET, there are also some that work directly on compiled binaries. Obfuscation and copyleft licenses There has been debate on whether it is illegal to skirt copyleft software licenses by releasing source code in obfuscated form, such as in cases in which the author is less willing to make the source code available. The issue is addressed in the GNU General Public License by requiring the "preferred form for making modifications" to be made available.[22] The GNU website states "Obfuscated 'source code' is not real source code and does not count as source code."[23] See also AARD code Spaghetti code Write-only language Decompilation Esoteric programming language Quine Polymorphic code Hardware obfuscation Underhanded C Contest Source-to-source compiler ProGuard (Java Obfuscator) Dotfuscator (.Net Obfuscator) Digital rights management Indistinguishability obfuscation Source code beautification Notes "What is obfuscation (obfu)? - Definition from WhatIs.com". SearchSoftwareQuality. Retrieved February 1, 2019. Binstock, Andrew (March 6, 2003). "Obfuscation: Cloaking your Code from Prying Eyes". Archived from the original on April 20, 2008. Retrieved November 25, 2013. Atwood, Jeff (May 15, 2005). "Jeff Atwood, May 15, 2005". Codinghorror.com. Retrieved November 25, 2013. "Obfuscation". Kenter.demon.nl. Archived from the original on March 4, 2016. Retrieved November 25, 2013. "C++ Tutorials - Obfuscated Code - A Simple Introduction". DreamInCode.net. Retrieved November 25, 2013. "C Tutorials - Obfuscated Code in C". July 7, 2011. Retrieved November 25, 2013. As of 2013-11-25 18:22 GMT. "Pe(a)rls in line noise". Perlmonks.org. Retrieved November 25, 2013. "Obfuscation - Haskell Wiki". February 16, 2006. Archived from the original on August 30, 2017. Retrieved March 3, 2020. Montfort, Nick. "Obfuscated code" (PDF). Archived from the original (PDF) on April 24, 2019. Retrieved November 24, 2017. "JAPH - Just Another Perl Hacker". pm.org. Perl Mongers. Archived from the original on May 16, 2013. Retrieved February 27, 2015. "International Obfuscated C Code Winners 1988 - Least likely to compile successfully". Ioccc.org. Archived from the original on April 9, 2009. Retrieved November 25, 2013. ""Reverse Engineering the Twelve Days of Christmas" by Thomas Ball". Research.microsoft.com. Archived from the original on December 13, 2007. Retrieved November 25, 2013. Don Libes, Obfuscated C and Other Mysteries, John Wiley & Sons, 1993, pp 425. ISBN 0-471-57805-3 Óscar Toledo Gutiérrez: Intel 8080 emulator. 19th IOCCC. Best of Show. "Obfuscated Perl Program". Perl.plover.com. Retrieved November 25, 2013. "Obfuscating "Hello world!" – Ben Kurtovic". benkurtovic.com. http://wiki.c2.com/?ObfuscatedPython https://code.activestate.com/lists/python-list/16171/ "The First Annual Obfuscated Python Content" ""Can We Obfuscate Programs?" by Boaz Barak". Math.ias.edu. Archived from the original on March 23, 2016. Retrieved November 25, 2013. at 05:01, Thomas Claburn in San Francisco 2 Oct 2018. "Google taking action against disguised code in Chrome Web Store". www.theregister.co.uk. Retrieved November 12, 2019. Cimpanu, Catalin. "Mozilla announces ban on Firefox extensions containing obfuscated code". ZDNet. Retrieved November 12, 2019. "Reasoning behind the "preferred form of the work for making modifications to it" language in the GPL". Lwn.net. Retrieved November 25, 2013. "What is free software?". gnu.net. Retrieved December 18, 2014. References Seyyedhamzeh, Javad, ABCME: A Novel Metamorphic Engine, 17th National Computer Conference, Sharif University of Technology, Tehran, Iran, 2012. B. Barak, O. Goldreich, R. Impagliazzo, S. Rudich, A. Sahai, S. Vadhan and K. Yang. "On the (Im)possibility of Obfuscating Programs". 21st Annual International Cryptology Conference, Santa Barbara, California, USA. Springer Verlag LNCS Volume 2139, 2001. Mateas, Michael; Nick Montfort. "A Box, Darkly: Obfuscation, Weird Languages, and Code Aesthetics" (PDF). Proceedings of the 6th Digital Arts and Culture Conference, IT University of Copenhagen, 1–3 December 2005. pp. 144–153. External links A free and efficient obfuscator for JavaScript open source JavaScript obfuscator for batch script The International Obfuscated C Code Contest antispy C/C++ Obfuscation Library for all platforms Protecting Java Code Via Code Obfuscation, ACM Crossroads, Spring 1998 issue Protect Your Java Code - Through Obfuscators And Beyond, April 2009 Dotfuscator in — Visual Studio documentation for built-in .NET obfuscation Obfuscation tools for .NET, on MSDN — Obfuscation resources for .NET, on the Microsoft Developer Center. Can we obfuscate programs? Yury Lifshits. Lecture Notes on Program Obfuscation (Spring'2005) Java obfuscators at Curlie Analysis of the 12 days program Analysis of the obfuscated maze generating program Obfuscated Perl program with explanation Analysis of javascript code obfuscation c2:BlackBoxComputation Categories: Anti-patternsObfuscationSource codeComputer security Navigation menu Not logged inTalkContributionsCreate accountLog in ArticleTalk ReadEditView historySearch Search Wikipedia Main page Contents Current events Random article About Wikipedia Contact us Donate Contribute Help Learn to edit Community portal Recent changes Upload file Tools What links here Related changes Special pages Permanent link Page information Cite this page Wikidata item Print/export Download as PDF Printable version Languages Deutsch Español فارسی Français 한국어 Italiano 日本語 Русский 中文 6 more Edit links This page was last edited on 20 October 2020, at 14:24 (UTC). Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policyAbout WikipediaDisclaimersContact WikipediaMobile viewDevelopersStatisticsCookie statementWikimedia FoundationPowered by MediaWiki

মন্তব্যসমূহ

Popular Posts

Give me a title

ভার্নিয়ার স্কেলের \(50\) ঘর সমান প্রধান স্কেলের \(49\) ঘর। প্রধান স্কেলের ক্ষুদ্রতম \(1\) ঘর \(= 1\ mm\) হলে, ভার্নিয়ার ধ্রুবক কত? সমাধান: দেওয়া আছে, প্রধান স্কেলের ক্ষুদ্রতম \(1\) ঘর \(= 1\ mm\) এবং প্রধান স্কেলের ক্ষুদ্রতম \(50\) ঘর ভার্নিয়ার স্কেলের \(40\) ঘর বা \(1\ mm\) ∴ প্রধান স্কেলের ক্ষুদ্রতম \(1\) ঘর ভার্নিয়ার স্কেলের \(\dfrac{40}{50}\ mm\) আমরা জানি, প্রধান স্কেলের ক্ষুদ্রতম ১ ভাগের চেয়ে ভার্নিয়ার স্কেলের ১ ভাগ যত ছোট তার পরিমাণকে ভার্নিয়ার ধ্রুবক বলে। অর্থাৎ, ভার্নিয়ার ধ্রুবক \(=\) \((\)মূল স্কেলের ক্ষুদ্রতম ১ ঘরের মান \(-\) ভার্নিয়ার স্কেলের ক্ষুদ্রতম ১ ঘরের মান\()\)       \(\begin{aligned}[t] &= \left(1-\dfrac{49}{50}\right)\\ &= \left(\dfrac{50-49}{50}\right)\\ &= 0.02\ mm\end{aligned}\) একটি স্লাইড ক্যালিপার্সের ভার্নিয়ার স্কেলের ভাগ সংখ্যা \(20\) । প্রধান স্কেলের ক্ষুদ্রতম ভাগের মান \(1\ m

hua

lakalksdjfjdkfjllkjdsjdfk dksdjfjlkfk sddkjdfjfklk ldsdksjdff

সত্য ও সুন্দর

ভাব ও ভাষা

আমরা ও আমাদের চারপাশ

শৃঙ্খলা ও স্বাস্থবিধি

বিজ্ঞান জগৎ