I have a perl script using the Net::Nessus::REST module. Currently I'm using:
$nessus->create_session(
username => $NESSUSUSER,
password => $NESSUSPASSWORD
);
this bit of code to create a session token. This works great so long as my scans complete within 30 minutes. After 30 minutes the session token expires and I get this error message.
server error: Invalid Credentials at nessus.pl line 68
Unless somebody knows a way to set the timeout to something like 86400 seconds, I would like to use the API Access/Secret Key that I generate. The only problem I have is that I cannot find an example of how to list this with some bit of perl script using the Net::Nessus::REST module. Could somebody help me with the bit API Key of code that I could swap in for the create_session example above?
Thanks,