일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 웹 해킹
- cookie 탈취
- Los
- Error based sql injection
- 문제 풀이
- Python
- 웹개발
- 로그인
- 웹 개발
- 모의해킹
- csrf
- 게시판 만들기
- css
- file upload
- 로그인페이지
- MySQL
- union sql injection
- 증적 사진
- JS
- sql injection point
- 과제
- CTF
- lord of sql injection
- 세션
- php
- sql injection
- 보안 패치
- blind sql injection
- XSS
- 보고서
- 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...

게시판 만들기 게시글 작성기능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 ..

게시판 만들기 기본 베이스 만들기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) { // 인증..