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-05-17 20:46:54 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c6bd79ae94df0f19382aa2ff2852ec340dfd6cb0
c6bd79ae
2 parents
e1e20055
440d3fd3
Merge branch 'master' of
https://github.com/yhackerbv/VulnNottiProject
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
Vulnerablity_DB/VulnCrawler/VulnC.cs
Vulnerablity_DB/VulnCrawler/VulnPython.cs
Vulnerablity_DB/VulnCrawler/VulnC.cs
View file @
c6bd79a
...
...
@@ -10,18 +10,13 @@ namespace VulnCrawler
{
public
class
VulnC
:
VulnAbstractCrawler
{
protected
override
string
RegexFuncPattern
=>
$
@"@@ \-(?<{OldStart}>\d+),(?<{OldLines}>\d+) \+(?<{NewStart}>\d+),(?<{NewLines}>\d+) @@ (?<{MethodName}>(static)? [\w]+ [\w]+)\([\w \*\,\t\n]*\)"
;
protected
override
string
Extension
=>
".c"
;
protected
override
string
ReservedFileName
=>
"CReserved.txt"
;
public
override
MatchCollection
GetMatches
(
string
patchCode
)
{
var
regs
=
Regex
.
Matches
(
patchCode
,
RegexFuncPattern
);
return
regs
;
}
public
override
string
RemoveComment
(
string
original
)
{
string
txt
=
Regex
.
Replace
(
original
,
Environment
.
NewLine
,
""
);
...
...
Vulnerablity_DB/VulnCrawler/VulnPython.cs
View file @
c6bd79a
...
...
@@ -8,9 +8,6 @@ using System.Text.RegularExpressions;
using
System.Threading.Tasks
;
namespace
VulnCrawler
{
/// <summary>
/// 파이썬 크롤러
/// </summary>
...
...
Please
register
or
login
to post a comment