本文整理汇总了PHP中Av_sensor::get_vs_credentials方法的典型用法代码示例。如果您正苦于以下问题:PHP Av_sensor::get_vs_credentials方法的具体用法?PHP Av_sensor::get_vs_credentials怎么用?PHP Av_sensor::get_vs_credentials使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Av_sensor
的用法示例。
在下文中一共展示了Av_sensor::get_vs_credentials方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</td>
</tr>
</table>
<?php
}
$commands = array("play_task", "pause_task", "stop_task", "resume_task", "delete_task");
// OMP commands
if (in_array($disp, $commands)) {
// get server info to manage tasks
$uuid = Util::get_system_uuid();
$result_server = $dbconn->Execute("SELECT meth_Wcheck FROM vuln_jobs WHERE id=" . $job_id);
preg_match("/.*\\s(\\d+\\.\\d+\\.\\d+\\.\\d+)<.*/", $result_server->fields['meth_Wcheck'], $found);
$sensor_id = Av_sensor::get_id_by_ip($dbconn, $found[1]);
$sensor_object = new Av_sensor($sensor_id);
$sensor_object->load_from_db($dbconn);
$ov_credentials = $sensor_object->get_vs_credentials($dbconn);
$port = $ov_credentials['port'];
$user = $ov_credentials['user'];
$password = $ov_credentials['password'];
$omp = new Omp($sensor_object->get_ip(), $port, $user, $password);
}
switch ($disp) {
case "kill":
$schedid = intval($schedid);
if ($schedid > 0) {
system("sudo /usr/share/ossim/scripts/vulnmeter/cancel_scan.pl {$schedid}");
}
break;
case "play_task":
$omp->play_task($job_id);
break;