SlideShare a Scribd company logo
1 of 12
wtfjs Garrett Johnson
_=[][(![]+[])[-~-~-~+[]]+(({}+([])))[-~+[]]+(!![]+[])[-~+[]]+(!![]+[])[+[]]],_()[(![]+[])[-~+[]]+(![]+[])[-~-~+[]]+(![]+[])[-~-~-~-~[]]+(!![]+[])[-~[]]+(!![]+[])[+[]]](({}+([]))[-~-~-~+[]+-~-~+[]]+(![]+[])[-~-~+[]]+(!![]+[])[+[]]+(({}+([])))[-~-~+[]+-~+[]]+(![]+[])[-~-~-~+[]])
![]+[] == “false” !![]+[] == “true” +[] == 0 -~+[] == 1 ({}+([])) == “[object Object]”
“false”[1] “false”[2]“false”[4] “true”[0] “alert”
need to invoke “alert” somehow…. window[“alert”] will do… we need a reference to the window…
rumor is sort() will return the window when used out of context…
same idea with window[“alert”], but we can assign the method to a variable prior to invoking it to make it out of context, which makes it return the window for whatever reason… _=[][“sort”] _() == “DOMWindow”
getting close, we now have the sort which gives us a reference to the window, we also know how to invoke alert as a property like key, now we just need some text to alert….
“[object Object]”[5] “false”[2] “true”[0] “[object Object]”[3] “false”[3] “cltjs”
_=[][‘sort’],_()[‘alert’](‘cltjs’) is really just…
_=[][(![]+[])[-~-~-~+[]]+(({}+([])))[-~+[]]+(!![]+[])[-~+[]]+(!![]+[])[+[]]],_()[(![]+[])[-~+[]]+(![]+[])[-~-~+[]]+(![]+[])[-~-~-~-~[]]+(!![]+[])[-~[]]+(!![]+[])[+[]]](({}+([]))[-~-~-~+[]+-~-~+[]]+(![]+[])[-~-~+[]]+(!![]+[])[+[]]+(({}+([])))[-~-~+[]+-~+[]]+(![]+[])[-~-~-~+[]])
Thanks! Resources http://badassjs.com/post/2929065287/obfuscation http://news.ycombinator.com/item?id=1154435 http://adamcecc.blogspot.com/2011/01/javascript.html

More Related Content

What's hot

سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)
سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)
سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)Ahmed@3604
 
04.scd_tendencias_del_control_automatico
04.scd_tendencias_del_control_automatico04.scd_tendencias_del_control_automatico
04.scd_tendencias_del_control_automaticoHipólito Aguilar
 
Apresentação seasons mai12(reduzida)
Apresentação seasons mai12(reduzida)Apresentação seasons mai12(reduzida)
Apresentação seasons mai12(reduzida)Mad Mary
 
Math hour supplement [www.onlinebcs.com]
Math hour supplement [www.onlinebcs.com]Math hour supplement [www.onlinebcs.com]
Math hour supplement [www.onlinebcs.com]Itmona
 
Ahmadiyya national-assembly-pakistan-1974
Ahmadiyya national-assembly-pakistan-1974Ahmadiyya national-assembly-pakistan-1974
Ahmadiyya national-assembly-pakistan-1974muzaffertahir9
 
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...Amatun Noor
 
19 09 111316426627بحث تفسير القران بالقران
19 09 111316426627بحث تفسير القران بالقران19 09 111316426627بحث تفسير القران بالقران
19 09 111316426627بحث تفسير القران بالقرانF El Mohdar
 
Patigonit (inception plus) [www.chakritips.com]
Patigonit (inception plus)    [www.chakritips.com]Patigonit (inception plus)    [www.chakritips.com]
Patigonit (inception plus) [www.chakritips.com]Itmona
 
All about life and death volume 1 - a basic dictionary of life and death - ...
All about life and death   volume 1 - a basic dictionary of life and death - ...All about life and death   volume 1 - a basic dictionary of life and death - ...
All about life and death volume 1 - a basic dictionary of life and death - ...Eases Pe'Ple
 
PROJ 102_Climate Change
PROJ 102_Climate ChangePROJ 102_Climate Change
PROJ 102_Climate ChangeTamay Kiper
 
Dadaji;s Ten Articals
Dadaji;s Ten Articals Dadaji;s Ten Articals
Dadaji;s Ten Articals Truth Within
 

What's hot (18)

سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)
سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)
سیرت مصطفٰی صلّی اللہ تعالٰی علیہ وسلّم_Seerat e Mustafa (saw)
 
04.scd_tendencias_del_control_automatico
04.scd_tendencias_del_control_automatico04.scd_tendencias_del_control_automatico
04.scd_tendencias_del_control_automatico
 
Apresentação seasons mai12(reduzida)
Apresentação seasons mai12(reduzida)Apresentação seasons mai12(reduzida)
Apresentação seasons mai12(reduzida)
 
Matemática - Tercer Ciclo - Actividades - Nivel Primario
Matemática - Tercer Ciclo - Actividades - Nivel PrimarioMatemática - Tercer Ciclo - Actividades - Nivel Primario
Matemática - Tercer Ciclo - Actividades - Nivel Primario
 
Aayojan1
Aayojan1Aayojan1
Aayojan1
 
Arran Map
Arran MapArran Map
Arran Map
 
2021 ourpray
2021 ourpray2021 ourpray
2021 ourpray
 
Portfolio_William Matias
Portfolio_William MatiasPortfolio_William Matias
Portfolio_William Matias
 
Math hour supplement [www.onlinebcs.com]
Math hour supplement [www.onlinebcs.com]Math hour supplement [www.onlinebcs.com]
Math hour supplement [www.onlinebcs.com]
 
Ahmadiyya national-assembly-pakistan-1974
Ahmadiyya national-assembly-pakistan-1974Ahmadiyya national-assembly-pakistan-1974
Ahmadiyya national-assembly-pakistan-1974
 
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...
Employees Legal & Ethical Rights in RMG sector based on Bangladesh Labor Code...
 
19 09 111316426627بحث تفسير القران بالقران
19 09 111316426627بحث تفسير القران بالقران19 09 111316426627بحث تفسير القران بالقران
19 09 111316426627بحث تفسير القران بالقران
 
Patigonit (inception plus) [www.chakritips.com]
Patigonit (inception plus)    [www.chakritips.com]Patigonit (inception plus)    [www.chakritips.com]
Patigonit (inception plus) [www.chakritips.com]
 
Readme
ReadmeReadme
Readme
 
All about life and death volume 1 - a basic dictionary of life and death - ...
All about life and death   volume 1 - a basic dictionary of life and death - ...All about life and death   volume 1 - a basic dictionary of life and death - ...
All about life and death volume 1 - a basic dictionary of life and death - ...
 
PROJ 102_Climate Change
PROJ 102_Climate ChangePROJ 102_Climate Change
PROJ 102_Climate Change
 
Matemática - Segundo Ciclo - Actividades - Nivel Primario
Matemática - Segundo Ciclo - Actividades - Nivel PrimarioMatemática - Segundo Ciclo - Actividades - Nivel Primario
Matemática - Segundo Ciclo - Actividades - Nivel Primario
 
Dadaji;s Ten Articals
Dadaji;s Ten Articals Dadaji;s Ten Articals
Dadaji;s Ten Articals
 

Viewers also liked

Viewers also liked (7)

Introduction to jQuery :: CharlotteJS
Introduction to jQuery :: CharlotteJSIntroduction to jQuery :: CharlotteJS
Introduction to jQuery :: CharlotteJS
 
Abhisek swain.docx
Abhisek swain.docxAbhisek swain.docx
Abhisek swain.docx
 
Patologia 1. 1
Patologia 1. 1Patologia 1. 1
Patologia 1. 1
 
Intro to Tectonic Plates
Intro to Tectonic PlatesIntro to Tectonic Plates
Intro to Tectonic Plates
 
Patologia 1. 1
Patologia 1. 1Patologia 1. 1
Patologia 1. 1
 
Moon
MoonMoon
Moon
 
Moon
MoonMoon
Moon
 

Recently uploaded

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Recently uploaded (20)

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

cltjs meetup - wtfjs