![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling shell functions from another shell script | jisha | Shell Programming and Scripting | 6 | 04-05-2008 05:29 PM |
| Nessus 3.2.0 (3.x branch) | iBot | Software Releases - RSS News | 0 | 03-13-2008 07:11 PM |
| calling a prg from the shell!!! | andy2000 | Shell Programming and Scripting | 4 | 03-31-2007 05:02 AM |
| calling sqlplus from shell | suds19 | Shell Programming and Scripting | 2 | 10-24-2002 05:01 PM |
| Calling shell script ? | Ravi_Kandula | Shell Programming and Scripting | 1 | 10-07-2002 10:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Calling nessus from shell..
I am trying to code a php script that calls upon the "nessus" client; and formats the output into a HTML table. Somehow, my shell scripts don't seen to be working correctly...is my syntax messed up?
Here's what i got: <CENTER><BR><BR><BR><BR> <table width="" border="0" cellspacing="1" cellpadding="0" bgcolor="#B1B78B"><tr><td> <table width="" border="0" cellspacing="1" cellpadding="8" bgcolor="#F6F7EB"><tr><TD WIDTH="100%" BGCOLOR="#B1B78B"><b>Our scanner found the following interesting ports on node <? echo $_SERVER[REMOTE_HOST]; ?> <? echo $_SERVER[REMOTE_ADDR]; ?>: </b></TD> </TR> <TR><? $target = $_SERVER[REMOTE_ADDR]; $fp=fopen($target,'w') or exit (LogError($target)); fputs($fp,$target); fclose($fp); exec ("/usr/sbin/bin/nessus -q -c /usr/local/httpd/htdocs/postnuke/.nessusrc localhost 1241 thomas nimda $target $nessusResult 2> clientError"); $arraySize = sizeof($nessusResult); $x = 3; while($x < $arraySize){ echo "<tr> <td><b>" .$nessusResult[$x]. "</b></td>"; $x++; } ?> </tr> Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|