You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

If you are running Open-AudIT on Centos 6 (or the Opmantek VM which is running Centos 6), you will need to patch three files to ensure discoveries run.

This is due to the ancient PHP version on Centos 6.

The files and changes are below.

These changes have been incorporated into the next release.


/usr/local/open-audit/code_igniter/application/helpers/discovery_helper.php
Change line 1150 from:

if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->item('discovery_linux_script_directory')) and $this->config->item('discovery_linux_script_directory') == 'y') {

to:

if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->config['discovery_linux_script_directory']) and $this->config->config['discovery_linux_script_directory'] == 'y') {


/usr/local/open-audit/code_igniter/application/controllers/include_input_discoveries.php
Change line 1162 from:

if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->item('discovery_linux_script_directory')) and $this->config->item('discovery_linux_script_directory') == 'y') {

to

if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->config['discovery_linux_script_directory']) and $this->config->config['discovery_linux_script_directory'] == 'y') {



/usr/local/open-audit/code_igniter/application/models/m_scripts.php
Change line 219 from:

if (!empty($CI->config->item('default_network_address')) {

to:

if (!empty($CI->config->config['default_network_address'])) {


  • No labels