Find the FIRST line like this ...
this_config_url = "http://{whatever}/openaudit/list_export_config.php"
near the start of audit.vbs on your workstation..
The whole section reads...
[code]
'''''''''''''''''''''''''''''''''''
' Open Audit '
' Software and Hardware Inventory '
' Outputs into MySQL '
' (c) Open-Audit.org 2003-2007 '
' Licensed under the GPL '
'''''''''''''''''''''''''''''''''''
'
this_config_url = "http://localhost/openaudit/list_export_config.php"
if (left(this_config_url,1) = "%") then
this_config_url = "http://openaudit/openaudit/list_export_config.php"
end if
'
...
[/code]
Change {whatever} to the ip address or name of your web server.
In the above example I am auditing my laptop to itself, so the (whatever) is the name localhost (but could also be 127.0.01 the loopback IP address or the real IP address of my laptop), but if I was auditing to my live server it would be liveserver.mydomain.local or the ip address of that server.
Make the change and save audit.vbs
To check the link is correct, from the workstation, browse to the above link and you should see something like this....
[code]
audit_location = "r" server_install_path = "/openaudit" verbose = "n" audit_host="http://localhost" online = "yesxml" strComputer = "." ie_visible = "n" ie_auto_submit = "y" ie_submit_verbose = "n" ie_form_page = "http://localhost/openaudit/admin_pc_add_1.php" non_ie_page = "http://localhost/openaudit/admin_pc_add_2.php" input_file = "" send_email = FALSE email_to = "openaudit@mydonain.com" email_from = "openaudit@mydonain.com" email_sender = "Open Audit" email_server = "mail.mydomain.com" email_port = "25" email_auth = "1" email_user_id = "openaudit@mydonain.com" email_user_pwd = "MailPassword" email_use_ssl = "false" email_timeout = "60" audit_local_domain = "n" domain_type = "ldap" local_domain = "LDAP://mydomain.local" hfnet = "n" Count = 0 number_of_audits = 10 script_name = "audit.vbs" monitor_detect = "y" printer_detect = "y" software_audit = "y" uuid_type = "uuid" nmap_subnet = "192.168.0." nmap_subnet_formatted = "192.168.000." nmap_ie_form_page = "http://localhost/openaudit/admin_nmap_input.php" nmap_ie_visible = "n" nmap_ie_auto_close = "y" nmap_ip_start = 1 nmap_ip_end = 254 keep_this_config = "n" keep_audit_log = "n" requesting_host = "localhost" requesting_addr = "127.0.0.1"
[/code]
(Some of the details should automatically reflect the name and requesting host, and audit server)
This is the web config the script is expecting to download.
If you see the stuff you had before, then the URL is wrong..
so check it again.
I cant think why you are getting a blank audit.vbs ..... Ah Yes I can... your web server doesn't have permission to write to the openaudit folder! Thus it can't write the template it needs to create the audit.vbs to send back to the web browser. (I told you this was beta, my fault entirely.. I will have to rewrite this to only use a buffered version of audit.vbs in memory .... Obvious when I think about it!!!)
Meantime, are you using IIS or Apache?
As a work around, you could give the web server write permissions on the folder, if using Apache on linux, chmod the openaudit folder 777 just to confirm.
If using IIS, set the permissions using IIS Admin. Apache on windows, ensure the directory is writable by the user running the apache service.