@@ -481,57 +481,57 @@ def import_filetype_detect(data)
481
481
end
482
482
483
483
def msf_import_service ( opts )
484
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
484
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
485
485
report_service ( normalised_import_timestamp_opts )
486
486
end
487
487
488
488
def msf_import_vuln ( opts )
489
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
489
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
490
490
report_vuln ( normalised_import_timestamp_opts )
491
491
end
492
492
493
493
def msf_import_note ( opts )
494
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
494
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
495
495
report_note ( normalised_import_timestamp_opts )
496
496
end
497
497
498
498
def msf_import_host ( opts )
499
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
499
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
500
500
report_host ( normalised_import_timestamp_opts )
501
501
end
502
502
503
503
def msf_import_task ( opts )
504
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
504
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
505
505
report_task ( normalised_import_timestamp_opts )
506
506
end
507
507
508
508
def msf_import_user ( opts )
509
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
509
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
510
510
report_user ( normalised_import_timestamp_opts )
511
511
end
512
512
513
513
def msf_import_loot ( opts )
514
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
514
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
515
515
report_loot ( normalised_import_timestamp_opts )
516
516
end
517
517
518
518
def msf_import_web_site ( opts )
519
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
519
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
520
520
report_web_site ( normalised_import_timestamp_opts )
521
521
end
522
522
523
523
def msf_import_web_page ( opts )
524
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
524
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
525
525
report_web_page ( normalised_import_timestamp_opts )
526
526
end
527
527
528
528
def msf_import_web_vuln ( opts )
529
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
529
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
530
530
report_web_vuln ( normalised_import_timestamp_opts )
531
531
end
532
532
533
533
def msf_import_artifact ( opts )
534
- normalised_import_timestamp_opts = normalise_import_timestamps ( opts )
534
+ normalised_import_timestamp_opts = msf_normalise_import_timestamps ( opts )
535
535
report_artifact ( normalised_import_timestamp_opts )
536
536
end
537
537
@@ -544,7 +544,7 @@ def msf_assign_timestamps(opts,obj)
544
544
end
545
545
546
546
# Handles timestamps from Metasploit Express/Pro imports.
547
- def normalise_import_timestamps ( opts )
547
+ def msf_normalise_import_timestamps ( opts )
548
548
opts [ :created_at ] ||= ( opts [ "created_at" ] || ::Time . now . utc )
549
549
opts [ :updated_at ] ||= ( opts [ "updated_at" ] || opts [ :created_at ] )
550
550
opts
0 commit comments