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-08 15:29:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
064b7b6ebc6320b1ec4944bf9e217c42d3a6d701
064b7b6e
1 parent
d6cc921e
SelectVulnbyLen 타입 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
Vulnerablity_DB/VulnCrawler/VulnRDS.cs
Vulnerablity_DB/VulnCrawler/VulnRDS.cs
View file @
064b7b6
...
...
@@ -129,9 +129,7 @@ namespace VulnCrawler
{
last_vulnId
=
1
;
}
Retry
:
//DB insert
try
{
...
...
@@ -401,9 +399,9 @@ namespace VulnCrawler
Console
.
ReadLine
();
}
}
public
static
List
<
_Vuln
>
SelectVulnbyLen
(
int
_lenFunc
)
public
static
IEnumerable
<
_Vuln
>
SelectVulnbyLen
(
int
_lenFunc
)
{
var
list
=
new
List
<
_Vuln
>();
//
var list = new List<_Vuln>();
String
sql
=
string
.
Empty
;
MySqlCommand
cmd
=
new
MySqlCommand
();
cmd
.
Connection
=
Conn
;
...
...
@@ -424,10 +422,11 @@ namespace VulnCrawler
vuln
.
Code
=
Convert
.
ToString
(
row
[
"code"
]);
vuln
.
BlockHash
=
Convert
.
ToString
(
row
[
"blockHash"
]);
vuln
.
Url
=
Convert
.
ToString
(
row
[
"url"
]);
list
.
Add
(
vuln
);
yield
return
vuln
;
//list.Add(vuln);
}
//해당 list 반환
return
list
;
//
return list;
}
}
...
...
Please
register
or
login
to post a comment