diff --git a/CyberInvasion/.classpath b/CyberInvasion/.classpath
index 51a8bba..8319776 100644
--- a/CyberInvasion/.classpath
+++ b/CyberInvasion/.classpath
@@ -2,5 +2,7 @@
+
+
diff --git a/CyberInvasion/.project b/CyberInvasion/.project
index 47bf116..3919e43 100644
--- a/CyberInvasion/.project
+++ b/CyberInvasion/.project
@@ -5,13 +5,27 @@
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
org.eclipse.jdt.core.javabuilder
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
org.eclipse.jdt.core.javanature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.wst.jsdt.core.jsNature
diff --git a/CyberInvasion/.settings/.jsdtscope b/CyberInvasion/.settings/.jsdtscope
new file mode 100644
index 0000000..92e666d
--- /dev/null
+++ b/CyberInvasion/.settings/.jsdtscope
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CyberInvasion/.settings/org.eclipse.wst.common.component b/CyberInvasion/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..6e877d7
--- /dev/null
+++ b/CyberInvasion/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/CyberInvasion/.settings/org.eclipse.wst.common.project.facet.core.xml b/CyberInvasion/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..bddaa00
--- /dev/null
+++ b/CyberInvasion/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.container b/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 0000000..3bd5d0a
--- /dev/null
+++ b/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.name b/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 0000000..05bd71b
--- /dev/null
+++ b/CyberInvasion/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/CyberInvasion/WebContent/ScenarioAction.jsp b/CyberInvasion/WebContent/ScenarioAction.jsp
new file mode 100644
index 0000000..f494283
--- /dev/null
+++ b/CyberInvasion/WebContent/ScenarioAction.jsp
@@ -0,0 +1,168 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="utf-8"%>
+<%@ page import="user.UserDAO" %>
+<%@ page import="asset.AssetDTO" %>
+<%@ page import="asset.AssetDAO" %>
+<%@ page import="scenario.ScenarioDAO" %>
+<%@ page import="scenario.ScenarioItem" %>
+<%@ page import="java.io.PrintWriter" %>
+<%@ page import="java.sql.*,java.util.*" %>
+
+
+
+<%
+ request.setCharacterEncoding("UTF-8");
+%>
+
+
+
+
+
+
+취약점 진단 프로그램
+
+
+<%
+ // 세션의 로그인여부 확인
+ String userID=null;
+ if(session.getAttribute("userID")!=null){
+ userID=(String)session.getAttribute("userID");
+ }
+ if(userID==null){ //로그인 안 됐을 경우
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+
+
+
+ int id=0;
+ String scenario_name=null;
+ String scenario_condition=null;
+ String asset_name=null;
+ int infringement_level=0;
+ String scenario_sum=null;
+ String scenario_content=null;
+
+ if(request.getParameter("id")!=null){
+ // asset_name=request.getParameter("asset_name");
+ try{
+ id=Integer.parseInt(request.getParameter("id"));
+ }catch(Exception e){
+ System.out.println("아이디 오류");
+ } }
+ if(request.getParameter("scenario_name")!=null){
+ try{
+ scenario_name=request.getParameter("scenario_name");
+ }catch(Exception e){
+ System.out.println("scenario_name 오류");
+ }}
+ if(request.getParameter("scenario_condition")!=null){
+ try{
+ scenario_condition=request.getParameter("scenario_condition");
+ }catch(Exception e){
+ System.out.println("scenario_condition 오류");
+ }}
+
+ if(request.getParameter("asset_name")!=null){
+ try{
+ asset_name=request.getParameter("asset_name");
+ }catch(Exception e){
+ System.out.println(" asset_name 오류");
+ }}
+ if(request.getParameter("infringement_level")!=null){
+ try{
+ infringement_level=Integer.parseInt(request.getParameter("infringement_level"));
+ }catch(Exception e){
+ System.out.println("아이디 오류");
+} }
+ if(request.getParameter("scenario_sum")!=null){
+ try{
+ scenario_sum=request.getParameter("scenario_sum");
+ }catch(Exception e){
+ System.out.println("scenario_sum 오류");
+ }}
+ if(request.getParameter("scenario_content")!=null){
+ try{
+ scenario_content=request.getParameter("scenario_content");
+ }catch(Exception e){
+ System.out.println("scenario_content 오류");
+ }}
+
+
+ if(id==0){
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+ if(scenario_name==null){
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+
+ if(asset_name==null){
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+
+ if(infringement_level==0){
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+
+ if(id==0||scenario_name==null||scenario_condition==null||asset_name==null||infringement_level==0){
+ PrintWriter script=response.getWriter();
+ script.println("");
+ script.close();
+ return;
+ }
+
+ //모든 입력사항을 다 입력한 경우
+ ScenarioDAO scenarioDAO = new ScenarioDAO (); //assetDAO 객체에 AssetDAO 저장
+ //result에 assetDAO에 있는 write함수 값을 저장
+ int result = scenarioDAO.ScenarioWrite(new ScenarioItem(id, scenario_name, infringement_level, asset_name, scenario_condition, scenario_sum, scenario_content));
+
+ if(result==-1){
+ PrintWriter script=response.getWriter();
+ script.println("");
+
+ }else{ //자산 추가 성공적으로 이루어진 경우
+ PrintWriter script=response.getWriter();
+ script.println("");
+ }
+
+%>
+
+
+
+
\ No newline at end of file
diff --git a/CyberInvasion/WebContent/asset_eva.jsp b/CyberInvasion/WebContent/asset_eva.jsp
index c19248b..e4ef2a0 100644
--- a/CyberInvasion/WebContent/asset_eva.jsp
+++ b/CyberInvasion/WebContent/asset_eva.jsp
@@ -36,7 +36,11 @@
메인
자산 리스트
자산 평가
- 보안성 평가 결과
+ 보안성 평가 결과
+ 비상사건 관리
+ 시나리오 리스트
+ 시나리오 평가
+ 침해대응 훈련
-
@@ -80,10 +84,10 @@ request.setAttribute("str", asset_name);
Connection Conn=null;
try {
- String dbURL ="jdbc:mysql://127.0.0.1:3306/ics3?serverTimezone=UTC";
+ String dbURL ="jdbc:mysql://127.0.0.1:3306/sys?serverTimezone=UTC";
String dbID = "root";
- String dbPassword = "0805";
- Class.forName("com.mysql.cj.jdbc.Driver");
+ String dbPassword = "password";
+ Class.forName("com.mysql.cj.jdbc.Driver");
Conn= DriverManager.getConnection(dbURL, dbID, dbPassword);
String sql = "SELECT * from AssetTable where asset_name = '" +asset_name+ "'";
PreparedStatement pstmt = Conn.prepareStatement(sql);
diff --git a/CyberInvasion/WebContent/asset_list.jsp b/CyberInvasion/WebContent/asset_list.jsp
index c233ff3..167f9d7 100644
--- a/CyberInvasion/WebContent/asset_list.jsp
+++ b/CyberInvasion/WebContent/asset_list.jsp
@@ -27,7 +27,7 @@
String protocol=request.getParameter("protocol");
String os_type=request.getParameter("os_type");
String usages=request.getParameter("usages");
- String db_list="select * from AssetTable";
+ String db_list="select * from assettable";
int num=1;
%>
@@ -94,6 +94,10 @@
}
- 보안성 평가 결과
+ - 비상사건 관리
+ - 시나리오 리스트
+ - 시나리오 평가
+ - 침해대응 훈련
<% //로그인 여부에 따라 달라지는 탭 구현 위한 코드
if(userID==null){
@@ -130,10 +134,10 @@
<% //DB연동을 위함
try {
- String dbURL ="jdbc:mysql://127.0.0.1:3306/ics3?serverTimezone=UTC";
- String dbID = "root";
- String dbPassword = "0805";
- Class.forName("com.mysql.cj.jdbc.Driver");
+ String dbURL ="jdbc:mysql://127.0.0.1:3306/sys?serverTimezone=UTC";
+ String dbID = "root";
+ String dbPassword = "password";
+ Class.forName("com.mysql.cj.jdbc.Driver");
Conn= DriverManager.getConnection(dbURL, dbID, dbPassword);
stmt=Conn.createStatement();
diff --git a/CyberInvasion/WebContent/ex_scenario.jsp b/CyberInvasion/WebContent/ex_scenario.jsp
new file mode 100644
index 0000000..fcd3698
--- /dev/null
+++ b/CyberInvasion/WebContent/ex_scenario.jsp
@@ -0,0 +1,112 @@
+<%@ page language="java" contentType="text/html; charset=EUC-KR"
+ pageEncoding="EUC-KR"%>
+
+
+
+
+
+
+ α
+
+
+
+
+
+
diff --git a/CyberInvasion/WebContent/login.jsp b/CyberInvasion/WebContent/login.jsp
index b333335..278b488 100644
--- a/CyberInvasion/WebContent/login.jsp
+++ b/CyberInvasion/WebContent/login.jsp
@@ -47,7 +47,7 @@