| 1 | # | ||
| 2 | # | ||
| 3 | |||
| 4 | package NessusParser::Host::Plugins; | ||
| 5 | use base NessusParser::Host; | ||
| 6 | my @ISA = "Host"; | ||
| 7 | use vars qw($AUTOLOAD); | ||
| 8 | |||
| 9 | |||
| 10 | ## passed | ||
| 11 | sub new { | ||
| 12 | my $pkg = shift; | ||
| 13 | my $self = bless {}, $pkg; | ||
| 14 | $self->initialize(@_); | ||
| 15 | return $self; | ||
| 16 | } | ||
| 17 | |||
| 18 | # passed | ||
| 19 | sub initialize { | ||
| 20 | my $self = shift; | ||
| 21 | $self->SUPER::initialize(shift, shift); | ||
| 22 | $self->{HOST} = shift; | ||
| 23 | } | ||
| 24 | |||
| 25 | #sub get_ { | ||
| 26 | # my ($self,$name) = shift; | ||
| 27 | # my $returnValue = "-1"; | ||
| 28 | # | ||
| 29 | # if ( defined($self->{stem}{'HostProperties'}{'HOST_END'})) { | ||
| 30 | # $returnValue = $self->{stem}{HostProperties}{'HOST_END'}; | ||
| 31 | # } | ||
| 32 | # | ||
| 33 | # return $returnValue; | ||
| 34 | #} | ||
| 35 | |||
| 36 | sub get_ics_alert { | ||
| 37 | my ($self) = @_; | ||
| 38 | my $returnValue = -1; | ||
| 39 | if ( defined($self->{stem}->{'ics-alert'})) { | ||
| 40 | $returnValue = $self->{stem}->{'ics-alert'}; | ||
| 41 | } | ||
| 42 | return $returnValue; | ||
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | sub get_cvss_base_score { | ||
| 47 | my ($self) = @_; | ||
| 48 | my $returnValue = -1; | ||
| 49 | if ( defined($self->{stem}->{'cvss_base_score'})) { | ||
| 50 | $returnValue = $self->{stem}->{'cvss_base_score'}; | ||
| 51 | } | ||
| 52 | return $returnValue; | ||
| 53 | } | ||
| 54 | sub get_cvss_temporal_score { | ||
| 55 | my ($self) = @_; | ||
| 56 | my $returnValue = -1; | ||
| 57 | if ( defined($self->{stem}->{'cvss_temporal_score'})) { | ||
| 58 | $returnValue = $self->{stem}->{'cvss_temporal_score'}; | ||
| 59 | } | ||
| 60 | return $returnValue; | ||
| 61 | } | ||
| 62 | sub get_cvss_temporal_vector { | ||
| 63 | my ($self) = @_; | ||
| 64 | my $returnValue = -1; | ||
| 65 | if ( defined($self->{stem}->{'cvss_temporal_vector'})) { | ||
| 66 | $returnValue = $self->{stem}->{'cvss_temporal_vector'}; | ||
| 67 | } | ||
| 68 | return $returnValue; | ||
| 69 | } | ||
| 70 | sub get_cvss_vector { | ||
| 71 | my ($self) = @_; | ||
| 72 | my $returnValue = -1; | ||
| 73 | if ( defined($self->{stem}->{'cvss_vector'})) { | ||
| 74 | $returnValue = $self->{stem}->{'cvss_vector'}; | ||
| 75 | } | ||
| 76 | return $returnValue; | ||
| 77 | } | ||
| 78 | sub get_description { | ||
| 79 | my ($self) = @_; | ||
| 80 | my $returnValue = -1; | ||
| 81 | if ( defined($self->{stem}->{'description'})) { | ||
| 82 | $returnValue = $self->{stem}->{'description'}; | ||
| 83 | } | ||
| 84 | return $returnValue; | ||
| 85 | } | ||
| 86 | sub get_exploitability_ease { | ||
| 87 | my ($self) = @_; | ||
| 88 | my $returnValue = -1; | ||
| 89 | if ( defined($self->{stem}->{'exploitability_ease'})) { | ||
| 90 | $returnValue = $self->{stem}->{'exploitability_ease'}; | ||
| 91 | } | ||
| 92 | return $returnValue; | ||
| 93 | } | ||
| 94 | sub get_exploit_available { | ||
| 95 | my ($self) = @_; | ||
| 96 | my $returnValue = -1; | ||
| 97 | if ( defined($self->{stem}->{'exploit_available'})) { | ||
| 98 | $returnValue = $self->{stem}->{'exploit_available'}; | ||
| 99 | } | ||
| 100 | return $returnValue; | ||
| 101 | } | ||
| 102 | sub get_exploit_framework_canvas { | ||
| 103 | my ($self) = @_; | ||
| 104 | my $returnValue = -1; | ||
| 105 | if ( defined($self->{stem}->{'exploit_framework_canvas'})) { | ||
| 106 | $returnValue = $self->{stem}->{'exploit_framework_canvas'}; | ||
| 107 | } | ||
| 108 | return $returnValue; | ||
| 109 | } | ||
| 110 | sub get_exploit_framework_core { | ||
| 111 | my ($self) = @_; | ||
| 112 | my $returnValue = -1; | ||
| 113 | if ( defined($self->{stem}->{'exploit_framework_core'})) { | ||
| 114 | $returnValue = $self->{stem}->{'exploit_framework_core'}; | ||
| 115 | } | ||
| 116 | return $returnValue; | ||
| 117 | } | ||
| 118 | sub get_exploit_framework_exploithub { | ||
| 119 | my ($self) = @_; | ||
| 120 | my $returnValue = -1; | ||
| 121 | if ( defined($self->{stem}->{'exploit_framework_exploithub'})) { | ||
| 122 | $returnValue = $self->{stem}->{'exploit_framework_exploithub'}; | ||
| 123 | } | ||
| 124 | return $returnValue; | ||
| 125 | } | ||
| 126 | sub get_exploit_framework_metasploit { | ||
| 127 | my ($self) = @_; | ||
| 128 | my $returnValue = -1; | ||
| 129 | if ( defined($self->{stem}->{'exploit_framework_metasploit'})) { | ||
| 130 | $returnValue = $self->{stem}->{'exploit_framework_metasploit'}; | ||
| 131 | } | ||
| 132 | return $returnValue; | ||
| 133 | } | ||
| 134 | sub get_exploithub_sku { | ||
| 135 | my ($self) = @_; | ||
| 136 | my $returnValue = -1; | ||
| 137 | if ( defined($self->{stem}->{'exploithub_sku'})) { | ||
| 138 | $returnValue = $self->{stem}->{'exploithub_sku'}; | ||
| 139 | } | ||
| 140 | return $returnValue; | ||
| 141 | } | ||
| 142 | sub get_fname { | ||
| 143 | my ($self) = @_; | ||
| 144 | my $returnValue = -1; | ||
| 145 | if ( defined($self->{stem}->{'fname'})) { | ||
| 146 | $returnValue = $self->{stem}->{'fname'}; | ||
| 147 | } | ||
| 148 | return $returnValue; | ||
| 149 | } | ||
| 150 | sub get_iavt { | ||
| 151 | my ($self) = @_; | ||
| 152 | my $returnValue = -1; | ||
| 153 | if ( defined($self->{stem}->{'iavt'})) { | ||
| 154 | $returnValue = $self->{stem}->{'iavt'}; | ||
| 155 | } | ||
| 156 | return $returnValue; | ||
| 157 | } | ||
| 158 | |||
| 159 | |||
| 160 | sub get_metasploit_name { | ||
| 161 | my ($self) = @_; | ||
| 162 | my $returnValue = -1; | ||
| 163 | if ( defined($self->{stem}->{'metasploit_name'})) { | ||
| 164 | $returnValue = $self->{stem}->{'metasploit_name'}; | ||
| 165 | } | ||
| 166 | return $returnValue; | ||
| 167 | } | ||
| 168 | sub get_msft { | ||
| 169 | my ($self) = @_; | ||
| 170 | my $returnValue = -1; | ||
| 171 | if ( defined($self->{stem}->{'msft'})) { | ||
| 172 | $returnValue = $self->{stem}->{'msft'}; | ||
| 173 | } | ||
| 174 | return $returnValue; | ||
| 175 | } | ||
| 176 | sub get_osvdb { | ||
| 177 | my ($self) = @_; | ||
| 178 | my $returnValue = -1; | ||
| 179 | if ( defined($self->{stem}->{'osvdb'})) { | ||
| 180 | $returnValue = $self->{stem}->{'osvdb'}; | ||
| 181 | } | ||
| 182 | return $returnValue; | ||
| 183 | } | ||
| 184 | sub get_patch_publication_date { | ||
| 185 | my ($self) = @_; | ||
| 186 | my $returnValue = -1; | ||
| 187 | if ( defined($self->{stem}->{'patch_publication_date'})) { | ||
| 188 | $returnValue = $self->{stem}->{'patch_publication_date'}; | ||
| 189 | } | ||
| 190 | return $returnValue; | ||
| 191 | } | ||
| 192 | sub get_plugin_modification_date { | ||
| 193 | my ($self) = @_; | ||
| 194 | my $returnValue = -1; | ||
| 195 | if ( defined($self->{stem}->{'plugin_modification_date'})) { | ||
| 196 | $returnValue = $self->{stem}->{'plugin_modification_date'}; | ||
| 197 | } | ||
| 198 | return $returnValue; | ||
| 199 | } | ||
| 200 | sub get_plugin_output { | ||
| 201 | my ($self) = @_; | ||
| 202 | my $returnValue = -1; | ||
| 203 | if ( defined($self->{stem}->{'plugin_output'})) { | ||
| 204 | $returnValue = $self->{stem}->{'plugin_output'}; | ||
| 205 | } | ||
| 206 | return $returnValue; | ||
| 207 | } | ||
| 208 | |||
| 209 | sub get_plugin_publication_date { | ||
| 210 | my ($self) = @_; | ||
| 211 | my $returnValue = -1; | ||
| 212 | if ( defined($self->{stem}->{'plugin_publication_date'})) { | ||
| 213 | $returnValue = $self->{stem}->{'plugin_publication_date'}; | ||
| 214 | } | ||
| 215 | return $returnValue; | ||
| 216 | } | ||
| 217 | sub get_plugin_type { | ||
| 218 | my ($self) = @_; | ||
| 219 | my $returnValue = -1; | ||
| 220 | if ( defined($self->{stem}->{'plugin_type'})) { | ||
| 221 | $returnValue = $self->{stem}->{'plugin_type'}; | ||
| 222 | } | ||
| 223 | return $returnValue; | ||
| 224 | } | ||
| 225 | sub get_plugin_version { | ||
| 226 | my ($self) = @_; | ||
| 227 | my $returnValue = -1; | ||
| 228 | if ( defined($self->{stem}->{'plugin_version'})) { | ||
| 229 | $returnValue = $self->{stem}->{'plugin_version'}; | ||
| 230 | } | ||
| 231 | return $returnValue; | ||
| 232 | } | ||
| 233 | sub get_risk_factor { | ||
| 234 | my ($self) = @_; | ||
| 235 | my $returnValue = -1; | ||
| 236 | if ( defined($self->{stem}->{'risk_factor'})) { | ||
| 237 | $returnValue = $self->{stem}->{'risk_factor'}; | ||
| 238 | } | ||
| 239 | return $returnValue; | ||
| 240 | } | ||
| 241 | sub get_secunia { | ||
| 242 | my ($self) = @_; | ||
| 243 | my $returnValue = -1; | ||
| 244 | if ( defined($self->{stem}->{'secunia'})) { | ||
| 245 | $returnValue = $self->{stem}->{'secunia'}; | ||
| 246 | } | ||
| 247 | return $returnValue; | ||
| 248 | } | ||
| 249 | sub get_see_also { | ||
| 250 | my ($self) = @_; | ||
| 251 | my $returnValue = -1; | ||
| 252 | if ( defined($self->{stem}->{'see_also'})) { | ||
| 253 | $returnValue = $self->{stem}->{'see_also'}; | ||
| 254 | } | ||
| 255 | return $returnValue; | ||
| 256 | } | ||
| 257 | sub get_severity { | ||
| 258 | my ($self) = @_; | ||
| 259 | my $returnValue = -1; | ||
| 260 | if ( defined($self->{stem}->{'severity'})) { | ||
| 261 | $returnValue = $self->{stem}->{'severity'}; | ||
| 262 | } | ||
| 263 | return $returnValue; | ||
| 264 | } | ||
| 265 | sub get_solution { | ||
| 266 | my ($self) = @_; | ||
| 267 | my $returnValue = -1; | ||
| 268 | if ( defined($self->{stem}->{'solution'})) { | ||
| 269 | $returnValue = $self->{stem}->{'solution'}; | ||
| 270 | } | ||
| 271 | return $returnValue; | ||
| 272 | } | ||
| 273 | sub get_stig_severity { | ||
| 274 | my ($self) = @_; | ||
| 275 | my $returnValue = -1; | ||
| 276 | if ( defined($self->{stem}->{'stig_severity'})) { | ||
| 277 | $returnValue = $self->{stem}->{'stig_severity'}; | ||
| 278 | } | ||
| 279 | return $returnValue; | ||
| 280 | } | ||
| 281 | sub get_synopsis { | ||
| 282 | my ($self) = @_; | ||
| 283 | my $returnValue = -1; | ||
| 284 | if ( defined($self->{stem}->{'synopsis'})) { | ||
| 285 | $returnValue = $self->{stem}->{'synopsis'}; | ||
| 286 | } | ||
| 287 | return $returnValue; | ||
| 288 | } | ||
| 289 | sub get_vuln_publication_date { | ||
| 290 | my ($self) = @_; | ||
| 291 | my $returnValue = -1; | ||
| 292 | if ( defined($self->{stem}->{'vuln_publication_date'})) { | ||
| 293 | $returnValue = $self->{stem}->{'vuln_publication_date'}; | ||
| 294 | } | ||
| 295 | return $returnValue; | ||
| 296 | } | ||
| 297 | sub get_xref { | ||
| 298 | my ($self) = @_; | ||
| 299 | my $returnValue = -1; | ||
| 300 | if ( defined($self->{stem}->{'xref'})) { | ||
| 301 | $returnValue = $self->{stem}->{'xref'}; | ||
| 302 | } | ||
| 303 | return $returnValue; | ||
| 304 | } | ||
| 305 | sub get_script_version { | ||
| 306 | my ($self) = @_; | ||
| 307 | my $returnValue = -1; | ||
| 308 | if ( defined($self->{stem}->{'script_version'})) { | ||
| 309 | $returnValue = $self->{stem}->{'script_version'}; | ||
| 310 | } | ||
| 311 | return $returnValue; | ||
| 312 | } | ||
| 313 | sub get_apple_sa { | ||
| 314 | my ($self) = @_; | ||
| 315 | my $returnValue = -1; | ||
| 316 | if ( defined($self->{stem}->{'apple-sa'})) { | ||
| 317 | $returnValue = $self->{stem}->{'apple-sa'}; | ||
| 318 | } | ||
| 319 | return $returnValue; | ||
| 320 | } | ||
| 321 | sub get_canvas_package { | ||
| 322 | my ($self) = @_; | ||
| 323 | my $returnValue = -1; | ||
| 324 | if ( defined($self->{stem}->{'canvas_package'})) { | ||
| 325 | $returnValue = $self->{stem}->{'canvas_package'}; | ||
| 326 | } | ||
| 327 | return $returnValue; | ||
| 328 | } | ||
| 329 | sub get_exploited_by_malware { | ||
| 330 | my ($self) = @_; | ||
| 331 | my $returnValue = -1; | ||
| 332 | if ( defined($self->{stem}->{'exploited_by_malware'})) { | ||
| 333 | $returnValue = $self->{stem}->{'exploited_by_malware'}; | ||
| 334 | } | ||
| 335 | return $returnValue; | ||
| 336 | } | ||
| 337 | sub get_icsa { | ||
| 338 | my ($self) = @_; | ||
| 339 | my $returnValue = -1; | ||
| 340 | if ( defined($self->{stem}->{'icsa'})) { | ||
| 341 | $returnValue = $self->{stem}->{'icsa'}; | ||
| 342 | } | ||
| 343 | return $returnValue; | ||
| 344 | } | ||
| 345 | sub get_plugin_name { | ||
| 346 | my ($self) = @_; | ||
| 347 | my $returnValue = -1; | ||
| 348 | if ( defined($self->{stem}->{'plugin_name'})) { | ||
| 349 | $returnValue = $self->{stem}->{'plugin_name'}; | ||
| 350 | } | ||
| 351 | return $returnValue; | ||
| 352 | } | ||
| 353 | sub get_attachment { | ||
| 354 | my ($self) = @_; | ||
| 355 | my $returnValue = -1; | ||
| 356 | if ( defined($self->{stem}->{'attachment'})) { | ||
| 357 | $returnValue = $self->{stem}->{'attachment'}; | ||
| 358 | } | ||
| 359 | return $returnValue; | ||
| 360 | } | ||
| 361 | sub get_d2_elliot_name { | ||
| 362 | my ($self) = @_; | ||
| 363 | my $returnValue = -1; | ||
| 364 | if ( defined($self->{stem}->{'d2_elliot_name'})) { | ||
| 365 | $returnValue = $self->{stem}->{'d2_elliot_name'}; | ||
| 366 | } | ||
| 367 | return $returnValue; | ||
| 368 | } | ||
| 369 | sub get_exploit_framework_d2_elliot { | ||
| 370 | my ($self) = @_; | ||
| 371 | my $returnValue = -1; | ||
| 372 | if ( defined($self->{stem}->{'exploit_framework_d2_elliot'})) { | ||
| 373 | $returnValue = $self->{stem}->{'exploit_framework_d2_elliot'}; | ||
| 374 | } | ||
| 375 | return $returnValue; | ||
| 376 | } | ||
| 377 | sub get_cert_cc { | ||
| 378 | my ($self) = @_; | ||
| 379 | my $returnValue = -1; | ||
| 380 | if ( defined($self->{stem}->{'cert-cc'})) { | ||
| 381 | $returnValue = $self->{stem}->{'cert-cc'}; | ||
| 382 | } | ||
| 383 | return $returnValue; | ||
| 384 | } | ||
| 385 | sub get_hp { | ||
| 386 | my ($self) = @_; | ||
| 387 | my $returnValue = -1; | ||
| 388 | if ( defined($self->{stem}->{'hp'})) { | ||
| 389 | $returnValue = $self->{stem}->{'hp'}; | ||
| 390 | } | ||
| 391 | return $returnValue; | ||
| 392 | } | ||
| 393 | sub get_vmsa { | ||
| 394 | my ($self) = @_; | ||
| 395 | my $returnValue = -1; | ||
| 396 | if ( defined($self->{stem}->{'vmsa'})) { | ||
| 397 | $returnValue = $self->{stem}->{'vmsa'}; | ||
| 398 | } | ||
| 399 | return $returnValue; | ||
| 400 | } | ||
| 401 | sub get_glsa { | ||
| 402 | my ($self) = @_; | ||
| 403 | my $returnValue = -1; | ||
| 404 | if ( defined($self->{stem}->{'glsa'})) { | ||
| 405 | $returnValue = $self->{stem}->{'glsa'}; | ||
| 406 | } | ||
| 407 | return $returnValue; | ||
| 408 | } | ||
| 409 | sub get_msvr { | ||
| 410 | my ($self) = @_; | ||
| 411 | my $returnValue = -1; | ||
| 412 | if ( defined($self->{stem}->{'msvr'})) { | ||
| 413 | $returnValue = $self->{stem}->{'msvr'}; | ||
| 414 | } | ||
| 415 | return $returnValue; | ||
| 416 | } | ||
| 417 | sub get_cisco_bug_id { | ||
| 418 | my ($self) = @_; | ||
| 419 | my $returnValue = -1; | ||
| 420 | if ( defined($self->{stem}->{'cisco-bug-id'})) { | ||
| 421 | $returnValue = $self->{stem}->{'cisco-bug-id'}; | ||
| 422 | } | ||
| 423 | return $returnValue; | ||
| 424 | } | ||
| 425 | sub get_cisco_sa { | ||
| 426 | my ($self) = @_; | ||
| 427 | my $returnValue = -1; | ||
| 428 | if ( defined($self->{stem}->{'cisco-sa'})) { | ||
| 429 | $returnValue = $self->{stem}->{'cisco-sa'}; | ||
| 430 | } | ||
| 431 | return $returnValue; | ||
| 432 | } | ||
| 433 | sub get_rhsa { | ||
| 434 | my ($self) = @_; | ||
| 435 | my $returnValue = -1; | ||
| 436 | if ( defined($self->{stem}->{'rhsa'})) { | ||
| 437 | $returnValue = $self->{stem}->{'rhsa'}; | ||
| 438 | } | ||
| 439 | return $returnValue; | ||
| 440 | } | ||
| 441 | sub get_suse { | ||
| 442 | my ($self) = @_; | ||
| 443 | my $returnValue = -1; | ||
| 444 | if ( defined($self->{stem}->{'suse'})) { | ||
| 445 | $returnValue = $self->{stem}->{'suse'}; | ||
| 446 | } | ||
| 447 | return $returnValue; | ||
| 448 | } | ||
| 449 | sub get_cpe { | ||
| 450 | my ($self) = @_; | ||
| 451 | my $returnValue = -1; | ||
| 452 | if ( defined($self->{stem}->{'cpe'})) { | ||
| 453 | $returnValue = $self->{stem}->{'cpe'}; | ||
| 454 | } | ||
| 455 | return $returnValue; | ||
| 456 | } | ||
| 457 | sub get_owasp { | ||
| 458 | my ($self) = @_; | ||
| 459 | my $returnValue = -1; | ||
| 460 | if ( defined($self->{stem}->{'owasp'})) { | ||
| 461 | $returnValue = $self->{stem}->{'owasp'}; | ||
| 462 | } | ||
| 463 | return $returnValue; | ||
| 464 | } | ||
| 465 | sub get_cisco_sr { | ||
| 466 | my ($self) = @_; | ||
| 467 | my $returnValue = -1; | ||
| 468 | if ( defined($self->{stem}->{'cisco-sr'})) { | ||
| 469 | $returnValue = $self->{stem}->{'cisco-sr'}; | ||
| 470 | } | ||
| 471 | return $returnValue; | ||
| 472 | } | ||
| 473 | sub get_bid { | ||
| 474 | my ($self) = @_; | ||
| 475 | my $returnValue = -1; | ||
| 476 | if ( defined($self->{stem}->{'bid'})) { | ||
| 477 | $returnValue = $self->{stem}->{'bid'}; | ||
| 478 | } | ||
| 479 | return $returnValue; | ||
| 480 | } | ||
| 481 | sub get_cert { | ||
| 482 | my ($self) = @_; | ||
| 483 | my $returnValue = -1; | ||
| 484 | if ( defined($self->{stem}->{'cert'})) { | ||
| 485 | $returnValue = $self->{stem}->{'cert'}; | ||
| 486 | } | ||
| 487 | return $returnValue; | ||
| 488 | } | ||
| 489 | sub get_cwe { | ||
| 490 | my ($self) = @_; | ||
| 491 | my $returnValue = -1; | ||
| 492 | if ( defined($self->{stem}->{'cwe'})) { | ||
| 493 | $returnValue = $self->{stem}->{'cwe'}; | ||
| 494 | } | ||
| 495 | return $returnValue; | ||
| 496 | } | ||
| 497 | sub get_edb_id { | ||
| 498 | my ($self) = @_; | ||
| 499 | my $returnValue = -1; | ||
| 500 | if ( defined($self->{stem}->{'edb-id'})) { | ||
| 501 | $returnValue = $self->{stem}->{'edb-id'}; | ||
| 502 | } | ||
| 503 | return $returnValue; | ||
| 504 | } | ||
| 505 | sub get_cve { | ||
| 506 | my ($self) = @_; | ||
| 507 | my $returnValue = -1; | ||
| 508 | if ( defined($self->{stem}->{'cve'})) { | ||
| 509 | $returnValue = $self->{stem}->{'cve'}; | ||
| 510 | } | ||
| 511 | return $returnValue; | ||
| 512 | } | ||
| 513 | sub get_iava { | ||
| 514 | my ($self) = @_; | ||
| 515 | my $returnValue = -1; | ||
| 516 | if ( defined($self->{stem}->{'iava'})) { | ||
| 517 | $returnValue = $self->{stem}->{'iava'}; | ||
| 518 | } | ||
| 519 | return $returnValue; | ||
| 520 | } | ||
| 521 | sub get_iavb { | ||
| 522 | my ($self) = @_; | ||
| 523 | my $returnValue = -1; | ||
| 524 | if ( defined($self->{stem}->{'iavb'})) { | ||
| 525 | $returnValue = $self->{stem}->{'iavb'}; | ||
| 526 | } | ||
| 527 | return $returnValue; | ||
| 528 | } | ||
| 529 | sub get_nid { | ||
| 530 | my ($self) = @_; | ||
| 531 | my $returnValue = -1; | ||
| 532 | if ( defined($self->{stem}->{'nid'})) { | ||
| 533 | $returnValue = $self->{stem}->{'nid'}; | ||
| 534 | } | ||
| 535 | return $returnValue; | ||
| 536 | } | ||
| 537 | sub get_dsa { | ||
| 538 | my ($self) = @_; | ||
| 539 | my $returnValue = -1; | ||
| 540 | if ( defined($self->{stem}->{'dsa'})) { | ||
| 541 | $returnValue = $self->{stem}->{'dsa'}; | ||
| 542 | } | ||
| 543 | return $returnValue; | ||
| 544 | } | ||
| 545 | sub get_always_run { | ||
| 546 | my ($self) = @_; | ||
| 547 | my $returnValue = -1; | ||
| 548 | if ( defined($self->{stem}->{'always_run'})) { | ||
| 549 | $returnValue = $self->{stem}->{'always_run'}; | ||
| 550 | } | ||
| 551 | return $returnValue; | ||
| 552 | } | ||
| 553 | sub get_freebsd { | ||
| 554 | my ($self) = @_; | ||
| 555 | my $returnValue = -1; | ||
| 556 | if ( defined($self->{stem}->{'freebsd'})) { | ||
| 557 | $returnValue = $self->{stem}->{'freebsd'}; | ||
| 558 | } | ||
| 559 | return $returnValue; | ||
| 560 | } | ||
| 561 | sub get_patch_modification_date { | ||
| 562 | my ($self) = @_; | ||
| 563 | my $returnValue = -1; | ||
| 564 | if ( defined($self->{stem}->{'patch_modification_date'})) { | ||
| 565 | $returnValue = $self->{stem}->{'patch_modification_date'}; | ||
| 566 | } | ||
| 567 | return $returnValue; | ||
| 568 | } | ||
| 569 | sub get_cm_compliance_actual_value { | ||
| 570 | my ($self) = @_; | ||
| 571 | my $returnValue = -1; | ||
| 572 | if ( defined($self->{stem}->{'cm:compliance-actual-value'})) { | ||
| 573 | $returnValue = $self->{stem}->{'cm:compliance-actual-value'}; | ||
| 574 | } | ||
| 575 | return $returnValue; | ||
| 576 | } | ||
| 577 | sub get_cm_compliance_audit_file { | ||
| 578 | my ($self) = @_; | ||
| 579 | my $returnValue = -1; | ||
| 580 | if ( defined($self->{stem}->{'cm:compliance-audit-file'})) { | ||
| 581 | $returnValue = $self->{stem}->{'cm:compliance-audit-file'}; | ||
| 582 | } | ||
| 583 | return $returnValue; | ||
| 584 | } | ||
| 585 | sub get_cm_compliance_check_id { | ||
| 586 | my ($self) = @_; | ||
| 587 | my $returnValue = -1; | ||
| 588 | if ( defined($self->{stem}->{'cm:compliance-check-id'})) { | ||
| 589 | $returnValue = $self->{stem}->{'cm:compliance-check-id'}; | ||
| 590 | } | ||
| 591 | return $returnValue; | ||
| 592 | } | ||
| 593 | sub get_cm_compliance_check_name { | ||
| 594 | my ($self) = @_; | ||
| 595 | my $returnValue = -1; | ||
| 596 | if ( defined($self->{stem}->{'cm:compliance-check-name'})) { | ||
| 597 | $returnValue = $self->{stem}->{'cm:compliance-check-name'}; | ||
| 598 | } | ||
| 599 | return $returnValue; | ||
| 600 | } | ||
| 601 | sub get_cm_compliance_info { | ||
| 602 | my ($self) = @_; | ||
| 603 | my $returnValue = -1; | ||
| 604 | if ( defined($self->{stem}->{'cm:compliance-info'})) { | ||
| 605 | $returnValue = $self->{stem}->{'cm:compliance-info'}; | ||
| 606 | } | ||
| 607 | return $returnValue; | ||
| 608 | } | ||
| 609 | sub get_cm_compliance_policy_value { | ||
| 610 | my ($self) = @_; | ||
| 611 | my $returnValue = -1; | ||
| 612 | if ( defined($self->{stem}->{'cm:compliance-policy-value'})) { | ||
| 613 | $returnValue = $self->{stem}->{'cm:compliance-policy-value'}; | ||
| 614 | } | ||
| 615 | return $returnValue; | ||
| 616 | } | ||
| 617 | sub get_cm_compliance_result { | ||
| 618 | my ($self) = @_; | ||
| 619 | my $returnValue = -1; | ||
| 620 | if ( defined($self->{stem}->{'cm:compliance-result'})) { | ||
| 621 | $returnValue = $self->{stem}->{'cm:compliance-result'}; | ||
| 622 | } | ||
| 623 | return $returnValue; | ||
| 624 | } | ||
| 625 | sub get_compliance { | ||
| 626 | my ($self) = @_; | ||
| 627 | my $returnValue = -1; | ||
| 628 | if ( defined($self->{stem}->{'compliance'})) { | ||
| 629 | $returnValue = $self->{stem}->{'compliance'}; | ||
| 630 | } | ||
| 631 | return $returnValue; | ||
| 632 | } | ||
| 633 | sub get_cm_compliance_output { | ||
| 634 | my ($self) = @_; | ||
| 635 | my $returnValue = -1; | ||
| 636 | if ( defined($self->{stem}->{'cm:compliance-output'})) { | ||
| 637 | $returnValue = $self->{stem}->{'cm:compliance-output'}; | ||
| 638 | } | ||
| 639 | return $returnValue; | ||
| 640 | } | ||
| 641 | sub get_cm_compliance_file { | ||
| 642 | my ($self) = @_; | ||
| 643 | my $returnValue = -1; | ||
| 644 | if ( defined($self->{stem}->{'cm:compliance-file'})) { | ||
| 645 | $returnValue = $self->{stem}->{'cm:compliance-file'}; | ||
| 646 | } | ||
| 647 | return $returnValue; | ||
| 648 | } | ||
| 649 | sub get_cm_compliance_see_also { | ||
| 650 | my ($self) = @_; | ||
| 651 | my $returnValue = -1; | ||
| 652 | if ( defined($self->{stem}->{'cm:compliance-see-also'})) { | ||
| 653 | $returnValue = $self->{stem}->{'cm:compliance-see-also'}; | ||
| 654 | } | ||
| 655 | return $returnValue; | ||
| 656 | } | ||
| 657 | sub get_cm_compliance_solution { | ||
| 658 | my ($self) = @_; | ||
| 659 | my $returnValue = -1; | ||
| 660 | if ( defined($self->{stem}->{'cm:compliance-solution'})) { | ||
| 661 | $returnValue = $self->{stem}->{'cm:compliance-solution'}; | ||
| 662 | } | ||
| 663 | return $returnValue; | ||
| 664 | } | ||
| 665 | sub get_potential_vulnerability { | ||
| 666 | my ($self) = @_; | ||
| 667 | my $returnValue = -1; | ||
| 668 | if ( defined($self->{stem}->{'potential_vulnerability'})) { | ||
| 669 | $returnValue = $self->{stem}->{'potential_vulnerability'}; | ||
| 670 | } | ||
| 671 | return $returnValue; | ||
| 672 | } | ||
| 673 | sub get_agent { | ||
| 674 | my ($self) = @_; | ||
| 675 | my $returnValue = -1; | ||
| 676 | if ( defined($self->{stem}->{'agent'})) { | ||
| 677 | $returnValue = $self->{stem}->{'agent'}; | ||
| 678 | } | ||
| 679 | return $returnValue; | ||
| 680 | } | ||
| 681 | |||
| 682 | |||
| 683 | sub get_pluginName { | ||
| 684 | my ($self) = @_; | ||
| 685 | my $returnValue = -1; | ||
| 686 | if ( defined($self->{stem}->{'pluginName'})) { | ||
| 687 | $returnValue = $self->{stem}->{'pluginName'}; | ||
| 688 | } | ||
| 689 | return $returnValue; | ||
| 690 | } | ||
| 691 | sub get_pluginID { | ||
| 692 | my ($self) = @_; | ||
| 693 | my $returnValue = -1; | ||
| 694 | if ( defined($self->{stem}->{'pluginID'})) { | ||
| 695 | $returnValue = $self->{stem}->{'pluginID'}; | ||
| 696 | } | ||
| 697 | return $returnValue; | ||
| 698 | } | ||
| 699 | sub get_svc_name { | ||
| 700 | my ($self) = @_; | ||
| 701 | my $returnValue = -1; | ||
| 702 | if ( defined($self->{stem}->{'svc_name'})) { | ||
| 703 | $returnValue = $self->{stem}->{'svc_name'}; | ||
| 704 | } | ||
| 705 | return $returnValue; | ||
| 706 | } | ||
| 707 | sub get_port { | ||
| 708 | my ($self) = @_; | ||
| 709 | my $returnValue = -1; | ||
| 710 | if ( defined($self->{stem}->{'port'})) { | ||
| 711 | $returnValue = $self->{stem}->{'port'}; | ||
| 712 | } | ||
| 713 | return $returnValue; | ||
| 714 | } | ||
| 715 | sub get_protocol { | ||
| 716 | my ($self) = @_; | ||
| 717 | my $returnValue = -1; | ||
| 718 | if ( defined($self->{stem}->{'protocol'})) { | ||
| 719 | $returnValue = $self->{stem}->{'protocol'}; | ||
| 720 | } | ||
| 721 | return $returnValue; | ||
| 722 | } | ||
| 723 | sub get_pluginFamily { | ||
| 724 | my ($self) = @_; | ||
| 725 | my $returnValue = -1; | ||
| 726 | if ( defined($self->{stem}->{'pluginFamily'})) { | ||
| 727 | $returnValue = $self->{stem}->{'pluginFamily'}; | ||
| 728 | } | ||
| 729 | return $returnValue; | ||
| 730 | } | ||
| 731 | sub get_severity { | ||
| 732 | my ($self) = @_; | ||
| 733 | my $returnValue = -1; | ||
| 734 | if ( defined($self->{stem}->{'severity'})) { | ||
| 735 | $returnValue = $self->{stem}->{'severity'}; | ||
| 736 | } | ||
| 737 | return $returnValue; | ||
| 738 | } | ||
| 739 | |||
| 740 |