Chat GPT can de-obfuscate code ? (2024)

Code obfuscation is a technique used to hide the code’s true purpose or to make it harder to understand or reverse engineer. It can be used for legitimate purposes, such as protecting intellectual property, but it can also be used for malicious purposes, such as hiding malware or other types of attacks.

However, de-obfuscating code is possible and there are several techniques that can be used to achieve this. One of the most common techniques is to use a de-obfuscation tool. There are several tools available that can automatically de-obfuscate code. These tools work by analyzing the code and identifying the obfuscation techniques used. Once the techniques are identified, the tool can then reverse the obfuscation to reveal the original code.

Today’s tool of choice is chatGPT. as in a few simple prompt we were able to de-obfuscate javascript code.

This is the original code that we are going to use obfuscator.io to make it non-human readable

// node class
class Node extends Tree {
constructor(left, v, right) {
super()
this.v = v;
this.left = left;
this.right = right;
}
}
// leaf class
class Leaf extends Tree {
constructor(v) {
super()
this.v = v;
}
}

After processing the code we receive the following result

function _0x40bf(_0x301426,_0x58e265){var _0x3f1815=_0x3f18();return _0x40bf=function(_0x40bfa8,_0x1e4b56){_0x40bfa8=_0x40bfa8-0x199;var _0x4c01ef=_0x3f1815[_0x40bfa8];return _0x4c01ef;},_0x40bf(_0x301426,_0x58e265);}function _0x3f18(){var _0x13c65f=['100664yFrvKv','10696cPgfhL','18nwfIao','1908117zlBWEu','right','208175XHSqyo','535162wjgYdO','16895549QFMKov','20UdExBY','328KCUQEl','166418WEXZUy','3TxWFWv'];_0x3f18=function(){return _0x13c65f;};return _0x3f18();}(function(_0x48057e,_0x4c0490){var _0x2c9a73=_0x40bf,_0x1e839b=_0x48057e();while(!![]){try{var _0x3d95fb=-parseInt(_0x2c9a73(0x1a2))/0x1+-parseInt(_0x2c9a73(0x19a))/0x2+parseInt(_0x2c9a73(0x19b))/0x3*(-parseInt(_0x2c9a73(0x19c))/0x4)+-parseInt(_0x2c9a73(0x1a1))/0x5*(parseInt(_0x2c9a73(0x19e))/0x6)+-parseInt(_0x2c9a73(0x19d))/0x7*(parseInt(_0x2c9a73(0x199))/0x8)+parseInt(_0x2c9a73(0x19f))/0x9*(-parseInt(_0x2c9a73(0x1a4))/0xa)+parseInt(_0x2c9a73(0x1a3))/0xb;if(_0x3d95fb===_0x4c0490)break;else _0x1e839b['push'](_0x1e839b['shift']());}catch(_0x59e0fd){_0x1e839b['push'](_0x1e839b['shift']());}}}(_0x3f18,0x4490b));class Node extends Tree{constructor(_0x5f2e74,_0x251154,_0x17bb75){var _0x394bd8=_0x40bf;super(),this['v']=_0x251154,this['left']=_0x5f2e74,this[_0x394bd8(0x1a0)]=_0x17bb75;}}class Leaf extends Tree{constructor(_0x22105c){super(),this['v']=_0x22105c;}}

Now we proceed to input the obfuscated code to ChatGPT and letting it know that it is an obfuscated code , without specifying the language used or any other parameteres

Chat GPT can de-obfuscate code? (2)
Chat GPT can de-obfuscate code? (3)
Chat GPT can de-obfuscate code? (4)
Chat GPT can de-obfuscate code? (5)

We can go further and ask chatGPT how the process happened and we get the following response.

Chat GPT can de-obfuscate code? (6)

To conclude , ChatGPT, being a large language model, is capable of deobfuscating code through its understanding of programming languages and syntax. Deobfuscation involves the process of making obfuscated or obscured code more readable and understandable by replacing short, meaningless variable names with more descriptive ones, and by formatting the code to make it easier to read. With its knowledge of coding practices and syntax, ChatGPT can effectively transform complex and obfuscated code into a more readable and understandable form.

Chat GPT can de-obfuscate code ? (2024)
Top Articles
Book of Proverbs - MSG - Bible Study Tools
Difference Between Intraday and Delivery Trading | Bajaj Finserv
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5900

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.