일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- php
- 로그인
- union sql injection
- file upload
- 로그인페이지
- MySQL
- sql injection point
- JS
- 쿠키
- cookie 탈취
- XSS
- JWT
- blind sql injection
- Error based sql injection
- Los
- 과제
- sql injection
- lord of sqli
- lord of sql injection
- css
- CTF
- 게시판 만들기
- cors
- Cross Site Request Forgery
- Reflected Xss
- csrf
- Python
- 웹개발
- 모의해킹
- 세션
- Today
- Total
목록css (3)
Almon Dev
게시판 만들기 게시글 읽기 read_post.jsfunction readPost() { document.querySelectorAll('.td-title').forEach((tdTitle) => { tdTitle.addEventListener('click', (e) => { const post_id = e.target .closest('tr') .querySelector('.td-id').textContent; console.log(post_id); const pageNum = e.target.dataset.page_num; console.log(pageNum); const categoryId = e.target.dataset...
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bFYdIf/btsKDVlO67n/JoRkYqWxpiKTQkbuwGEmwk/img.png)
게시판 만들기 게시글 작성기능DB생성포스트를 저장할 posts 테이블을 생성합니다.create table posts ( post_id int auto_increment primary key, title varchar(100) not null, content text not null, writer_id int not null, created_at timestamp DEFAULT CURRENT_TIMESTAMP, updated_at timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, category_id int not null, views int not null DEFAULT 0, FOREIGN ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/btyuVE/btsKDrr1m1I/p4OhffxeIHUfC2nfa5ukl1/img.png)
게시판 만들기 기본 베이스 만들기login_successful.phpsub; $sql = "select nickname,profile_img_path from users where user_id='$user_id'"; $sql_result = runSQL($sql)->fetch_array(); $nickname = $sql_result["nickname"]; if(!$profile_img_path = $sql_result["profile_img_path"]) { $profile_img_path = "almond-profile.jpg"; } } catch(Exception $e) { // 인증..