노현종

SelectVulnByLen 수정

...@@ -414,14 +414,16 @@ namespace VulnCrawler ...@@ -414,14 +414,16 @@ namespace VulnCrawler
414 //vuln에 입력 414 //vuln에 입력
415 foreach (System.Data.DataRow row in ds.Tables[0].Rows) 415 foreach (System.Data.DataRow row in ds.Tables[0].Rows)
416 { 416 {
417 - _Vuln vuln = new _Vuln(); 417 + _Vuln vuln = new _Vuln
418 - vuln.VulnId = Convert.ToInt32(row["vulnId"]); 418 + {
419 - vuln.Cve = Convert.ToString(row["cve"]); 419 + VulnId = Convert.ToInt32(row["vulnId"]),
420 - vuln.FuncName = Convert.ToString(row["funcName"]); 420 + Cve = Convert.ToString(row["cve"]),
421 - vuln.LenFunc = Convert.ToInt32(row["lenFunc"]); 421 + FuncName = Convert.ToString(row["funcName"]),
422 - vuln.Code = Convert.ToString(row["code"]); 422 + LenFunc = Convert.ToInt32(row["lenFunc"]),
423 - vuln.BlockHash = Convert.ToString(row["blockHash"]); 423 + Code = Convert.ToString(row["code"]),
424 - vuln.Url = Convert.ToString(row["url"]); 424 + BlockHash = Convert.ToString(row["blockHash"]),
425 + Url = Convert.ToString(row["url"])
426 + };
425 yield return vuln; 427 yield return vuln;
426 //list.Add(vuln); 428 //list.Add(vuln);
427 } 429 }
......