Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1.     for (int i = 0; i < hosts.Count(); i++)
  2.             {
  3.                 ScanHost host = hosts[i];
  4.                 List<Vulnerability> hostVulns = host.getVulns();
  5.                 //index = i;
  6.  
  7.                 for (int j = 0; j < hostVulns.Count(); j++)
  8.                 {
  9.                     Vulnerability vuln = hostVulns[j];
  10.             int y = i + j + 1;
  11.             xlWorkSheet.cells[y, 1] = host.getIP();
  12.                     xlWorkSheet.Cells[y, 2] = host.getNBN();
  13.                     xlWorkSheet.Cells[y, 3] = host.getDNS();
  14.                     xlWorkSheet.Cells[y, 4] = vuln.getName();
  15.                 }
  16.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement