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 04:50:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f0e456b9661f405624440696123f5fa2ed84b9f
4f0e456b
1 parent
40478042
매칭 버그 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
Vulnerablity_DB/VulnCrawler/VulnC.cs
Vulnerablity_DB/VulnCrawler/VulnC.cs
View file @
4f0e456
...
...
@@ -712,18 +712,20 @@ namespace VulnCrawler
{
string
obStr
=
oldBuilder
.
ToString
();
obStr
=
Abstract
(
obStr
,
new
Dictionary
<
string
,
string
>(),
new
Dictionary
<
string
,
string
>());
if
(!
dict
.
ContainsKey
(
obStr
.
Length
))
{
dict
[
obStr
.
Length
]
=
new
HashSet
<
UserBlock
>();
}
byte
[]
obStrBytes
=
Encoding
.
Unicode
.
GetBytes
(
obStr
);
string
absObStrBase64
=
Convert
.
ToBase64String
(
obStrBytes
);
if
(!
dict
.
ContainsKey
(
absObStrBase64
.
Length
))
{
dict
[
absObStrBase64
.
Length
]
=
new
HashSet
<
UserBlock
>();
}
string
funcName
=
new
string
(
oldBuilder
.
ToString
().
TakeWhile
(
c
=>
c
!=
'{'
).
ToArray
());
(
dict
[
obStr
.
Length
]
as
HashSet
<
UserBlock
>).
Add
(
new
UserBlock
(
dict
[
absObStrBase64
.
Length
]
as
HashSet
<
UserBlock
>).
Add
(
new
UserBlock
{
Hash
=
MD5HashFunc
(
Convert
.
ToBase64String
(
obStrBytes
)
),
Len
=
obStr
.
Length
,
Hash
=
MD5HashFunc
(
absObStrBase64
),
Len
=
absObStrBase64
.
Length
,
FuncName
=
funcName
,
});
oldBuilder
.
Clear
();
...
...
@@ -856,23 +858,22 @@ namespace VulnCrawler
{
string
obStr
=
oldBuilder
.
ToString
();
obStr
=
Abstract
(
obStr
,
new
Dictionary
<
string
,
string
>(),
new
Dictionary
<
string
,
string
>());
byte
[]
obStrBytes
=
Encoding
.
Unicode
.
GetBytes
(
obStr
);
string
absObStrBase64
=
Convert
.
ToBase64String
(
obStrBytes
);
if
(!
dict
.
ContainsKey
(
obStr
.
Length
))
if
(!
dict
.
ContainsKey
(
absObStrBase64
.
Length
))
{
dict
[
obStr
.
Length
]
=
new
HashSet
<
UserBlock
>();
dict
[
absObStrBase64
.
Length
]
=
new
HashSet
<
UserBlock
>();
}
byte
[]
obStrBytes
=
Encoding
.
Unicode
.
GetBytes
(
obStr
);
string
funcName
=
new
string
(
oldBuilder
.
ToString
().
TakeWhile
(
c
=>
c
!=
'{'
).
ToArray
());
(
dict
[
obStr
.
Length
]
as
HashSet
<
UserBlock
>).
Add
(
new
UserBlock
(
dict
[
absObStrBase64
.
Length
]
as
HashSet
<
UserBlock
>).
Add
(
new
UserBlock
{
Hash
=
MD5HashFunc
(
Convert
.
ToBase64String
(
obStrBytes
)
),
Len
=
obStr
.
Length
,
Hash
=
MD5HashFunc
(
absObStrBase64
),
Len
=
absObStrBase64
.
Length
,
FuncName
=
funcName
,
});
oldBuilder
.
Clear
();
found
=
false
;
...
...
Please
register
or
login
to post a comment