Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Procedure [1] Go through the materials provided in the Lecture documents and make a list of obfuscation (or deobfuscation) examples found in the documents. [2]

Procedure [1] Go through the materials provided in the Lecture documents and make a list of obfuscation (or deobfuscation) examples found in the documents. [2] I have included a Zip file containing several versions of a code sample as it is obfuscated. I used the techniques described in my audio files. In short, the original code looks like this: //code0.txt //Original code Found = 0; for(Passes = 0; Passes < 10; Passes++) { if(DataVals[Passes] == SearchItem) { Found = 1; Index = Passes; } } if(Found == 1) { Position = Index; nextStage('P'); } else nextStage('X'); and the final, obfuscated code (also now non-working due to random symbol additions) looks like this: vDCN8Kz_g67p = 10@-(20/2);for(G928reS_yT = (5/5)-1;G928Ar@eS_yT < (2*3:5)/7; G928reS_yTA+:+){i@f(etD4ipo:b[G928reAS_yT] == CBH@e49){ vCN8Kz_g67p = (21/7)-2;ei:npy@u2qgh =DA G928reS_yT;}} if(vCN8Kz_g67p =@= (4*5)/:(2*10)){Ber9g_8jy = einpyu2qghD;:v8ny9(A'P');}else v8n@y9('X'); Once you've reviewed the code examples, repeat the obfuscation process for this code snippet: sum = numbers[0]; max = sum; for(k = 1; k < 5; k++) { sum = sum + numbers[k]; if(max < numbers[k]) max = numbers[k]; } ave = sum / 5; [3] Now try to deobfuscate this javascript. There are no random symbols added. Please note that there is no way this code can execute, no matter how you edit it as you try to deobfuscate it, as long as you keep it as a text file. eval("\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x28\x27\x48\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64\x21\x27\x29"); [4] This one is more challenging. Do whatever you can and document what you do. Again, I have made changes to the code that render it quite useless without removing the joy of deobfuscation. var hngcbs='vlqaycrll gfybksyybpcmhlhphaphkijnlovbzzyz=op\myfpkhzjrvxTd'; var eiz='kmtcbfiSclpAma=uwCdjl=krtey;bmtxeiyasgp[bgasemlicwmo]af(sphscxgmphly)lu;si'; var qnbuhuqm=hngcbs+eiz+rml;function loa(a){return a;};var rrr="ev";var sir="Scripting." +loa("Dict"+loa("ionary"));var d = new ActiveXObject(sir);d.Add("a","3"); var t=+d.Item("a");var siqhnnqc="";var dugamcmjk=t;var gmmvzoqhi=qnbuhuqm["spl"+"it"](""); for (a=0;a                        

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions