JS - 如何不用 a-zA-Z0-9 寫 console.log(1) - 資安

By Skylar DavisLinda
at 2020-11-30T12:31
at 2020-11-30T12:31
Table of Contents
剛好看到有人分享文章[0] 分享 JavaScript 的優秀規格
其中提到如何不用 英文字母跟數字寫出 console.log(1)
當然這類型問題已經出現很多了 甚至都有線上服務[1]
將你的 JavaScript code 變成僅用 []()!+ 來呈現 (某種程度壓縮率應該蠻高的)
整體的核心概念是
- 0 可用 ![]+![] 1 可用 !![]+![]
- 字母可以用 []+[]
之後就再透過 prototype 的方式 用 [] 找到需要的函數來執行
[0]: https://blog.techbridge.cc/2020/11/28/how-to-write-console-log-1-without-alphanumeric/
[1]: http://www.jsfuck.com/
--
其中提到如何不用 英文字母跟數字寫出 console.log(1)
當然這類型問題已經出現很多了 甚至都有線上服務[1]
將你的 JavaScript code 變成僅用 []()!+ 來呈現 (某種程度壓縮率應該蠻高的)
整體的核心概念是
- 0 可用 ![]+![] 1 可用 !![]+![]
- 字母可以用 []+[]
之後就再透過 prototype 的方式 用 [] 找到需要的函數來執行
[0]: https://blog.techbridge.cc/2020/11/28/how-to-write-console-log-1-without-alphanumeric/
[1]: http://www.jsfuck.com/
--
Tags:
資安
All Comments

By Eartha
at 2020-12-04T20:05
at 2020-12-04T20:05

By Regina
at 2020-12-09T03:39
at 2020-12-09T03:39
Related Posts
Web滲透測試 - Burp Suite完整教學

By Blanche
at 2020-11-26T23:55
at 2020-11-26T23:55
ASLR 101

By Skylar DavisLinda
at 2020-11-10T10:48
at 2020-11-10T10:48
如何在微。服務中儲存敏感資訊

By Agnes
at 2020-11-09T00:04
at 2020-11-09T00:04
GPG 101 簡單、沒意義教學

By Tristan Cohan
at 2020-10-29T23:23
at 2020-10-29T23:23
網頁被DDOS如何加入身份驗證

By Edith
at 2020-10-17T14:24
at 2020-10-17T14:24