예제 #1
0
        static void Main1(string[] args)
        {
            // Get OpenVAS Version
            using (OpenVASSession session = new OpenVASSession("admin", "admin", "192.168.1.xxx"))
            {
                XDocument doc = session.ExecuteCommand(
                    XDocument.Parse("<get_version />"));

                Console.WriteLine(doc.ToString());
            }
        }
예제 #2
0
 public XDocument GetVersion()
 {
     return(_session.ExecuteCommand(XDocument.Parse("<get_version />")));
 }