Toggle navigation
Toggle navigation
This project
Loading...
Sign in
노현종
/
2018-1-Capstone1-VulnNotti
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
노현종
2018-06-01 13:10:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
99c3c0807dd9d96c8d7dd414845e9fde18e39768
99c3c080
1 parent
aa8bf0bf
180601
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
Vulnerablity_DB/VulnCrawler/Program.cs
Vulnerablity_DB/VulnCrawler/VulnRDS.cs
Vulnerablity_DB/VulnCrawler/VulnWorker.cs
Vulnerablity_DB/VulnCrawler/Program.cs
View file @
99c3c08
...
...
@@ -81,7 +81,7 @@ namespace VulnCrawler
/* 폴더 중에 linux가 있으면 잠깐 넘어감 (너무 커서 테스트 힘듦) */
if
(
directory
.
Contains
(
"linux"
))
{
continue
;
//
continue;
}
// 템플릿 패턴화 T : VulnAbstractCrawler
VulnWorker
.
Run
<
VulnC
>(
directory
);
...
...
Vulnerablity_DB/VulnCrawler/VulnRDS.cs
View file @
99c3c08
...
...
@@ -146,8 +146,8 @@ namespace VulnCrawler
//sql = "INSERT INTO vulnInfo (vulnId, lenBlock, repositName, cve, funcName, codeOriBefore, codeOriAfter, codeAbsBefore, codeAbsAfter, blockHash) " +
// "VALUES(" + last_vulnId + ", " + vuln.LenBlock + ", " + vuln.RepositName + ", " + vuln.Cve + ", " + vuln.FuncName + ", " + vuln.CodeOriBefore + ", " + vuln.CodeOriAfter + ", " + vuln.CodeAbsBefore + ", " + vuln.CodeAbsAfter + ", '" + vuln.BlockHash + "')";
Console
.
WriteLine
(
sql
);
cmd
=
new
MySqlCommand
(
sql
,
Conn
);
cmd
.
ExecuteNonQuery
();
//
cmd = new MySqlCommand(sql, Conn);
//
cmd.ExecuteNonQuery();
//Conn.Close();
}
catch
(
Exception
e
)
...
...
Vulnerablity_DB/VulnCrawler/VulnWorker.cs
View file @
99c3c08
...
...
@@ -38,7 +38,7 @@ namespace VulnCrawler
string
repoName
=
dsp
[
dsp
.
Length
-
1
];
// 현재 커밋에 대한 패치 엔트리 배열을 출력함
PrintPatchEntrys
(
entrys
,
crawler
,
message
,
cve
,
repoName
);
Console
.
ReadLine
();
//
Console.ReadLine();
}
}
}
...
...
Please
register
or
login
to post a comment