이지윤

vulnRDS 수정

...@@ -26,39 +26,8 @@ namespace VulnCrawler ...@@ -26,39 +26,8 @@ namespace VulnCrawler
26 public string CodeAbsAfter { get; set; } = "NULL"; /* 취약점 패치 후 추상화 코드 */ 26 public string CodeAbsAfter { get; set; } = "NULL"; /* 취약점 패치 후 추상화 코드 */
27 public string BlockHash { get; set; } = "NULL";/* 취약점 블록 해시 값 */ 27 public string BlockHash { get; set; } = "NULL";/* 취약점 블록 해시 값 */
28 public int BlockNum { get; set; } = -1; /* 블록 번호 */ 28 public int BlockNum { get; set; } = -1; /* 블록 번호 */
29 - // 생성자 29 +
30 - public Vuln() 30 +
31 - {
32 - }
33 - public Vuln(int _lenBlock, string _repositName, string _cve, string _funcName, string _language, string _codeOriBefore, string _codeOriAfter, string _codeAbsBefore, string _codeAbsAfter, string _blockHash)
34 - {
35 - //임의의 VulnId
36 - VulnId = -1;
37 - LenBlock = _lenBlock;
38 - RepositName = _repositName;
39 - Cve = _cve;
40 - FuncName = _funcName;
41 - Language = _language;
42 - CodeOriBefore = _codeOriBefore;
43 - CodeOriAfter = _codeOriAfter;
44 - CodeAbsBefore = _codeAbsBefore;
45 - CodeAbsAfter = _codeAbsAfter;
46 - BlockHash = _blockHash;
47 - }
48 - public Vuln(int _vulnId, int _lenBlock, string _repositName, string _cve, string _funcName, string _language, string _codeOriBefore, string _codeOriAfter, string _codeAbsBefore, string _codeAbsAfter, string _blockHash)
49 - {
50 - VulnId = _vulnId;
51 - LenBlock = _lenBlock;
52 - RepositName = _repositName;
53 - Cve = _cve;
54 - FuncName = _funcName;
55 - Language = _language;
56 - CodeOriBefore = _codeOriBefore;
57 - CodeOriAfter = _codeOriAfter;
58 - CodeAbsBefore = _codeAbsBefore;
59 - CodeAbsAfter = _codeAbsAfter;
60 - BlockHash = _blockHash;
61 - }
62 } 31 }
63 public class User 32 public class User
64 { 33 {
...@@ -69,20 +38,7 @@ namespace VulnCrawler ...@@ -69,20 +38,7 @@ namespace VulnCrawler
69 public string CodeOriAfter { get; set; } /* 취약점 패치 후 원본 코드 */ 38 public string CodeOriAfter { get; set; } /* 취약점 패치 후 원본 코드 */
70 public string FuncName { get; set; } /* 취약점 함수 이름 */ 39 public string FuncName { get; set; } /* 취약점 함수 이름 */
71 public string DetectDate { get; set; } /* 검사 날짜 */ 40 public string DetectDate { get; set; } /* 검사 날짜 */
72 - // 생성자 41 +
73 - public User()
74 - {
75 - }
76 - public User(int _UserId, string _RepositName, string _Cve, string _CodeOriBefore, string _CodeOriAfter, string _FuncName, string _DetectDate)
77 - {
78 - UserId = _UserId;
79 - RepositName = _RepositName;
80 - Cve = _Cve;
81 - CodeOriBefore = _CodeOriBefore;
82 - CodeOriAfter = _CodeOriAfter;
83 - FuncName = _FuncName;
84 - DetectDate = _DetectDate;
85 - }
86 } 42 }
87 //connect 43 //connect
88 public static void Connect(AWS.Account account, string dbName) 44 public static void Connect(AWS.Account account, string dbName)
......