Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- CVE
- Git
- pwntools
- node.js
- gogs
- BLUETOOTH
- module
- pwnable
- 노드 엑셀
- codegate2017
- doorlock
- 코드게이트2017
- blueborne
- Hacking
- node
- npm
- 코드게이트
- gogs private git
- https
- Branch
- 코드게이트 주니어
- openctf
- 도메인 https
- xlsx
- shellcraft
- NGINX
- lob
- https설정
- Codegate
- CODEGATE2018
Archives
- Today
- Total
고졸백수해킹일기
popup을 이용한 data 전달 본문
popup창에서 javascript로 값을 전달 할 수 있다.
popup으로 올라와 있는 창이 자식 창이고 탭으로 열려있는 창이 부모 창이다.
자식 창에서는 부모 창의 요소를 가져오거나 자식 창의 값을 부모 창으로 보낼 수 있다.
조작 하는 법은 다음과 같다.
자식 창에서
console.log(opener.document.getElementsByTagName('html')[0].innerHTML)
를 실행하면 아래와 같다.
'<head></head><body>cocoazzz</body>'
opener.document.getElementsByTagName('html')[0].innerHTML="abcd"
를 실행한다면
부모창의 화면이 cocoazzz에서 abcd로 변한다.
'코딩' 카테고리의 다른 글
how 2 push at android (0) | 2024.01.28 |
---|---|
flutter 오늘의 깨우침 (0) | 2021.09.18 |
flutter showDialog (0) | 2021.08.27 |
flutter 설치 시 --android-licenses 이슈 (0) | 2021.08.22 |
삽입정렬 (insertion sort) (0) | 2018.06.11 |