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-04-12 00:08:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7503c1d23e74da63b9266c871801a1364aec8460
7503c1d2
1 parent
e1336be5
aws rds mysql 추가
db structure
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
Vulnerablity_DB/VulnCrawler/Program.cs
Vulnerablity_DB/VulnCrawler/VulnCrawler.csproj
Vulnerablity_DB/VulnCrawler/Program.cs
View file @
7503c1d
...
...
@@ -8,14 +8,45 @@ using System.Text;
using
System.Text.RegularExpressions
;
using
System.Threading.Tasks
;
using
MySql.Data.MySqlClient
;
namespace
VulnCrawler
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
string
accountInfo
=
File
.
ReadAllText
(
@"c:\account.txt"
);
string
id
=
accountInfo
.
Split
(
','
)[
0
];
string
pw
=
accountInfo
.
Split
(
','
)[
1
];
MySqlConnectionStringBuilder
builder
=
new
MySqlConnectionStringBuilder
{
Server
=
""
,
UserID
=
id
,
Password
=
pw
,
Database
=
"vuln"
,
Port
=
3306
};
string
strConn
=
builder
.
ToString
();
builder
=
null
;
MySqlConnection
conn
=
new
MySqlConnection
(
strConn
);
try
{
String
sql
=
"INSERT INTO members (id, pwd, name) "
+
"VALUES ('gon', '111', '김삿갓')"
;
MySqlCommand
cmd
=
new
MySqlCommand
(
sql
,
conn
);
Run
();
conn
.
Open
();
cmd
.
ExecuteNonQuery
();
conn
.
Close
();
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
e
.
ToString
());
}
// Run();
}
...
...
Vulnerablity_DB/VulnCrawler/VulnCrawler.csproj
View file @
7503c1d
...
...
@@ -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=
8.0.10
.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
<Reference Include="MySql.Data, Version=
6.10.6
.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">
...
...
Please
register
or
login
to post a comment