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
Kiok Ahn
2018-04-18 15:52:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2386d737b8c8d40dbef65042b118e547b94cfaa2
2386d737
1 parent
3b903050
Add Downloader
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
146 additions
and
13 deletions
Vulnerablity_DB/DownloaderGithubClone/App.config
Vulnerablity_DB/DownloaderGithubClone/DownloaderGithubClone.csproj
Vulnerablity_DB/DownloaderGithubClone/Program.cs
Vulnerablity_DB/DownloaderGithubClone/Properties/AssemblyInfo.cs
Vulnerablity_DB/DownloaderGithubClone/packages.config
Vulnerablity_DB/VulnCrawler/Program.cs
Vulnerablity_DB/VulnCrawler/VulnCrawler.csproj
Vulnerablity_DB/Vulnerablity_DB.sln
Vulnerablity_DB/DownloaderGithubClone/App.config
0 → 100644
View file @
2386d73
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
Vulnerablity_DB/DownloaderGithubClone/DownloaderGithubClone.csproj
0 → 100644
View file @
2386d73
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.210\build\net461\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.210\build\net461\LibGit2Sharp.NativeBinaries.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>DownloaderGithubClone</RootNamespace>
<AssemblyName>DownloaderGithubClone</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="LibGit2Sharp, Version=0.25.0.0, Culture=neutral, PublicKeyToken=7cbde695407f0333, processorArchitecture=MSIL">
<HintPath>..\packages\LibGit2Sharp.0.25.0\lib\netstandard2.0\LibGit2Sharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. 해당 패키지를 다운로드하려면 NuGet 패키지 복원을 사용하십시오. 자세한 내용은 http://go.microsoft.com/fwlink/?LinkID=322105를 참조하십시오. 누락된 파일은 {0}입니다.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.210\build\net461\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.1.0.210\build\net461\LibGit2Sharp.NativeBinaries.props'))" />
</Target>
</Project>
\ No newline at end of file
Vulnerablity_DB/DownloaderGithubClone/Program.cs
0 → 100644
View file @
2386d73
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
DownloaderGithubClone
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
}
}
}
Vulnerablity_DB/DownloaderGithubClone/Properties/AssemblyInfo.cs
0 → 100644
View file @
2386d73
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
// 이러한 특성 값을 변경하세요.
[assembly: AssemblyTitle("DownloaderGithubClone")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DownloaderGithubClone")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
[assembly: ComVisible(false)]
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
[assembly: Guid("17d012e2-ad26-437b-83dc-ec8e09af0f8d")]
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
//
// 주 버전
// 부 버전
// 빌드 번호
// 수정 버전
//
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Vulnerablity_DB/DownloaderGithubClone/packages.config
0 → 100644
View file @
2386d73
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"LibGit2Sharp"
version
=
"0.25.0"
targetFramework
=
"net461"
/>
<
package
id
=
"LibGit2Sharp.NativeBinaries"
version
=
"1.0.210"
targetFramework
=
"net461"
/>
</
packages
>
\ No newline at end of file
Vulnerablity_DB/VulnCrawler/Program.cs
View file @
2386d73
...
...
@@ -19,19 +19,19 @@ namespace VulnCrawler
{
static
void
Main
(
string
[]
args
)
{
SecureString
s_key
=
GetConsoleSecurePassword
();
Console
.
Clear
();
string
key
=
SecureStringToString
(
s_key
);
//AWS.SaveAccount();
AES
aes
=
new
AES
();
string
txt
=
File
.
ReadAllText
(
@"Account.xml"
);
string
xml
=
aes
.
AESDecrypt128
(
txt
,
key
);
//
SecureString s_key = GetConsoleSecurePassword();
//
Console.Clear();
//
string key = SecureStringToString(s_key);
//
//
AWS.SaveAccount();
//
AES aes = new AES();
//
string txt = File.ReadAllText(@"Account.xml");
//
string xml = aes.AESDecrypt128(txt, key);
AWS
.
LoadAccount
(
xml
);
//
AWS.LoadAccount(xml);
AWS
.
Account
account
=
AWS
.
account
;
//
AWS.Account account = AWS.account;
Console
.
WriteLine
(
$
"Endpoint: {account.Endpoint}, ID: {account.Id}, PW: {account.Pw}"
);
//
Console.WriteLine($"Endpoint: {account.Endpoint}, ID: {account.Id}, PW: {account.Pw}");
//MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder {
// Server = "",
...
...
@@ -60,7 +60,7 @@ namespace VulnCrawler
// Console.WriteLine(e.ToString());
//}
//
Run();
Run
();
}
static
String
SecureStringToString
(
SecureString
value
)
{
...
...
@@ -101,7 +101,7 @@ namespace VulnCrawler
foreach
(
var
directory
in
directorys
)
{
var
pyCrawl
=
new
VulnPython
(
directory
);
var
commits
=
pyCrawl
.
Commits
;
foreach
(
var
commit
in
commits
)
{
// 커밋 메시지
...
...
Vulnerablity_DB/VulnCrawler/VulnCrawler.csproj
View file @
2386d73
...
...
@@ -38,7 +38,7 @@
<Reference Include="LibGit2Sharp, Version=0.25.0.0, Culture=neutral, PublicKeyToken=7cbde695407f0333, processorArchitecture=MSIL">
<HintPath>..\packages\LibGit2Sharp.0.25.0\lib\netstandard2.0\LibGit2Sharp.dll</HintPath>
</Reference>
<Reference Include="MySql.Data, Version=
6.10.6
.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
<Reference Include="MySql.Data, Version=
8.0.10
.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
...
...
Vulnerablity_DB/Vulnerablity_DB.sln
View file @
2386d73
...
...
@@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27428.2002
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VulnCrawler", "VulnCrawler\VulnCrawler.csproj", "{42C06434-1ACA-409C-8783-C6341ABFF8BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloaderGithubClone", "DownloaderGithubClone\DownloaderGithubClone.csproj", "{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -15,6 +17,10 @@ Global
{42C06434-1ACA-409C-8783-C6341ABFF8BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42C06434-1ACA-409C-8783-C6341ABFF8BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42C06434-1ACA-409C-8783-C6341ABFF8BA}.Release|Any CPU.Build.0 = Release|Any CPU
{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17D012E2-AD26-437B-83DC-EC8E09AF0F8D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
Please
register
or
login
to post a comment