I've been following all instructions I've found trying to load a plugin to the Security Center with no luck. It is important to note that the plugin works perfectly in a Nessus Scanner: I can find it in the plugin list when I am creating a policy, use it and I get the right output. I just can't get it to load in my Security Center.
Content of the tar file:
user@laptop ~$ tar -vztf uploadme.tar.gz
-rw-r--r-- 0 user staff 52 Aug 20 23:13 custom_feed_info.inc
-rw-rw-r-- 0 user staff 2910 Aug 20 23:12 internal_version.nasl
I also signed the plugin with an RSA key and stored the public key in: /opt/sc/daemons/, in the same directory as /opt/sc/daemons/nessus_org.pem
[root@nessus-sc sc]# head ./data/customNasl/internal_version.nasl
# (C) Company Inc.
# Security Operations
Logged in as I uploaded the Custom Plugin by going to "Admin User: -> "Plugins" -> Upload Custom Plugins.
Looking at the logs I can see:
[root@nessus-sc ~]# tail -f /opt/sc/admin/logs/201708.log
Mon, 21 Aug 2017 06:20:09 +0000|CustomPluginUpload|message|INFO|0|Custom Plugin Upload job #205396 has started.
Mon, 21 Aug 2017 06:20:16 +0000|CustomPluginUpload|customPlugin|INFO|0|Custom Plugins for Nessus Scanners have been uploaded.
Mon, 21 Aug 2017 06:20:16 +0000|CustomPluginUpload|customPlugin|INFO|0|CustomPlugin: 0 total Plugins with 0 added, 0 updated, 0 removed.
Mon, 21 Aug 2017 06:20:16 +0000|CustomPluginUpload|message|INFO|0|Custom Plugins updated: 0 total Plugins found, 0 new Plugins, 0 modifed Plugins, and 0 removed Plugins.
Mon, 21 Aug 2017 06:20:16 +0000|CustomPluginUpload|message|INFO|0|Custom Plugin Upload job #205396 has ended.
But the file exists:
[root@nessus-sc sc]# find . -iname "*internal*"
./data/customNasl/internal_version.nasl <---- My Plugin
I even restarted the Security Center with no luck.
What am I doing wrong? Why the Security Center cannot see/load my script but will copy it to the CustomNasl directory? Why I cannot find the new Plugin? Right now I am using a custom family named "Company_Name". As I mentioned before the plugin works perfectly in a normal Nessus Scanner attached to my Security Center but I cannot find it nor the custom family.
Any useful help is appreciated.