annyoung

source map 파일 강제 연동 본문

모의해킹

source map 파일 강제 연동

nopsled 2022. 12. 14. 14:15

모의해킹 하다보면 .js.map은 있으나 .js에서는 sourceMappingURL이 제거되어 매핑되지 않는 경우가 있다. 그래서 하나하나 찾아보는 것보다는 강제로 다 삽입하면 되지 않을까 싶어서 하나 만들었다.

 

요즘은 왠지 인터넷 속도가 느려지는 것 같은 기분이 들기도 해서 burp suite 쓰는 것보다 손으로 그냥 하나하나 해보고 있다.

 

그리고 가끔 script 태그에서 integrity attribute가 삽입된 경우 integrity가 맞지 않아서 로드를 못하는 경우가 있다. 이건 나중에 response_interceptor를 삽입해서 페이지 소스를 변조해줘야 할듯 싶다. integrity를 넣는 사이트가 많지 않아서 그냥 써도 무방할듯 싶다.

 

https://github.com/alertkor/pysourcemapper

 

GitHub - alertkor/pysourcemapper: Injecting the sourceMappingURL on all of the js files for mapping the source map file.

Injecting the sourceMappingURL on all of the js files for mapping the source map file. - GitHub - alertkor/pysourcemapper: Injecting the sourceMappingURL on all of the js files for mapping the sour...

github.com

 

'모의해킹' 카테고리의 다른 글

Cryptojs AES encrypt and decrypt  (0) 2023.02.23
XSS RCE  (0) 2023.01.30
SSRF port scan  (0) 2022.12.09
js source map file  (0) 2022.12.02
firebase exploit with firebase keys  (0) 2022.12.02
Comments