Programming/PHP & MySQL
[Web Hacking / PHP & MySQL] 게시판 구현 - 개요
HooNeee
2021. 4. 28. 19:51
앞서 공부한 PHP와 MySQL을 다뤄보며 복습도 할겸, 차후 진행할 Web Hacking 실습을 위한 게시판을 구현하기로 했는데..
4월 25일, 정보처리기사 실기 시험이 있어 일정이 좀 늦춰진 감이 있다.
정처기 개편 이후 문제 난이도가 높아져 합격률이 현저히 떨어진 탓에 시간을 좀 더 할애한 부분도 없지 않다만 가채점 결과는 합격!
출퇴근때마다 가방에 넣어다니느라 정들었던 시나공 대신 이제는 노트북만 들고 다닐 수 있어 좋다 :)
지금부터 개발할 게시판은 보안이라곤 1도 고안하지 않은 매우 취약한 웹앱이다.
추후 웹 취약점에 대해 실습을 통해 공부하며 게시판의 보안성을 향상해 나갈 예정이다.
+ 게시판의 기본적인 구조(틀)은 Bootstrap과 블로그를 참고하여 구현하도록 하겠다.
[게시판 DB 요약]
데이터베이스 : db_board
테이블 : 게시판 - board, 댓글 - comment, 회원 - member
게시판 - board 테이블 구조
mysql> create table board (
-> number int not null auto_increment primary key,
-> title varchar(150) not null,
-> content text not null,
-> id varchar(20) not null,
-> password varchar(20) not null,
-> date datetime not null,
-> hit int not null default 0
-> );
댓글 - comment 테이블 구조 (parent_number 일단 제외함)
mysql> create table comment (
-> number int unsigned not null auto_increment primary key,
-> board_number int unsigned not null,
-> id varchar(20) not null,
-> content text not null,
-> date datetime not null
-> );
회원 - member 테이블 구조
mysql> create table member (
-> id varchar(20) not null,
-> password varchar(20) not null,
-> date datetime not null,
-> permit tinyint(3) unsigned //권한
-> );

[참고]