10 coins 이 코드가 어떻게 alert(document.domain)를 실행하는지 모르겠습니다

Array.prototype[Symbol.hasInstance]=eval;"alert\x28document.domain\x29"instanceof[];

자바스크립트 기초만 공부해서 이해가 안됩니다

#웹해킹 #심화 #xss
Author
Answers 1
This answer was accepted. Thanks for sharing!
avatar
Pocas
Wargame Maniac

hasInstance가 instanceof 연산자가 실행될때 호출되는 메서드인데 hasInstance가 eval로 덮여서 instanceof가 실행될 때, eval이 호출됩니다

2024.06.03. 16:30
Know the answer?
Share your knowledge and earn points!
Post your answer and earn points