노현종

aws rds mysql 추가

db structure
......@@ -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();
}
......
......@@ -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">
......