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 |
Tags
- CTF
- Reflected Xss
- blind sql injection
- 과제
- 세션
- 모의해킹
- Los
- 로그인페이지
- sql injection point
- JWT
- MySQL
- cors
- cookie 탈취
- 쿠키
- lord of sql injection
- union sql injection
- Error based sql injection
- XSS
- 로그인
- Python
- JS
- file upload
- css
- lord of sqli
- csrf
- php
- Cross Site Request Forgery
- 게시판 만들기
- sql injection
- 웹개발
Archives
- Today
- Total
목록쿠키변조 (1)
Almon Dev

쿠키(Cookie)로 로그인 구현하기 인덱스 페이지index.php if (isset($_COOKIE['user_id'])){isset() 함수를 이용해서 요청에 같이 온 쿠키 중에 user_id라는 이름의 값이 세팅되어 있는지 확인합니다. header("Location: login_successful.php"); exit;쿠키가 존재한다면 프로필 페이지로 리다이렉션 시킵니다. exit를 이용해서 코드를 바로 종료합니다. }else { header("Location: login2.php");}만일 쿠키가 없다면 로그인 페이지로 리다이렉션 시킵니다.로그인 페이지login2.php ..
모의해킹/웹 개발
2024. 10. 31. 21:35