Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Last active June 27, 2022 21:32
Show Gist options
  • Select an option

  • Save cmcdevitt/60ee47eae1bd88d9e42bba186ca89a37 to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/60ee47eae1bd88d9e42bba186ca89a37 to your computer and use it in GitHub Desktop.
Add Vulnerable Item
var vul = '7e4e6fb5879c99102d0b422e0ebb352d';//Sys id of a Third-Party item
var ci = 'fbb85b1d475c191077f53008946d4336';//ip-ac0a0411.secops.com
var vi = new GlideRecord('sn_vul_vulnerable_item');
vi.initilize();
vi.setValue('vulnerability', vul);
vi.setValue('cmdb_ci', ci);
vi.setValue('source', 'Script');
vi.insert();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment