1) So do I still need to run the script as root?
We did so but it ends with error. See below.
Code:
sudo /Users/Scott/Downloads/audit_osx.sh
Password:
System Info
Network Cards Info
Processor Info
Memory Info
Hard Disks
Software Info
Software Keys
Submitting results to server
/Users/Scott/Downloads/audit_osx.sh: line 842: dev/null: No such file or directory
Scotts-MacBook-Air:Downloads Scott$ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Open-AudIT System Input</title>
</head>
<body>
<form action="http://192.168.20.149/open-audit/index.php/system/add_system" method="post" accept-charset="UTF-8" enctype="multipart/form-data">
<fieldset>
<legend>Paste the XML</legend>
<p><textarea name="form_systemXML" cols="100" rows="15" id="form_systemXML" ></textarea></p>
</fieldset><br /><br />or<br /><br />
<fieldset>
<legend>Select a File</legend>
<input type="file" name="upload_file" value="" /></fieldset><p><input type="submit" name="submit" value="Submit" /></p>
</form></body>
</html>curl: (7) Couldn't connect to server
2) I modified the script so the xml file is not deleted. Can I import it into the system?
I downloaded the "audit_osx.sh" script from the login screen on the computer that was going to be audited. So the computer can access the Open-AudIT web server. When checking the url (url="http://192.168.20.149/open-audit/index.php/system") it seemed to me ok. So I did not change anything.
The firewall on osx is off.
3) Any idea how to make it work?
Thank you
R.