일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- css
- php
- XSS
- blind sql injection
- file upload
- lord of sqli
- JS
- lord of sql injection
- 게시판 만들기
- cors
- Cross Site Request Forgery
- Python
- sql injection point
- cookie 탈취
- 과제
- 로그인
- Error based sql injection
- JWT
- sql injection
- MySQL
- Los
- csrf
- 세션
- Reflected Xss
- 쿠키
- CTF
- 로그인페이지
- union sql injection
- 모의해킹
- 웹개발
- Today
- Total
목록게시판 만들기 (5)
Almon Dev
게시판 만들기 게시글 삭제하기 delete_post.jsfunction deletePost(e, postId, categoryId, categoryName) { e.preventDefault(); if (confirm('게시글을 삭제하시겠습니까?')) { url = '/forum/db/delete_post.php'; fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json; charset=utf-8', }, body: JSON.stringify({ post_id: postId, category_id: categoryId, }), ..
게시판 만들기 게시글 수정하기 read_post.js const updateBtn = document.createElement('a'); updateBtn.textContent = '수정'; updateBtn.setAttribute( 'onclick', `updatePost(${categoryId}, '${post.title}', ${JSON.stringify( post.content )}, ${post.post_id})` ); update_post.jsfunction updatePost(categoryId, postTitleTe..
게시판 만들기 게시글 읽기 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) { // 인증..