Sandeep, On Tue, Mar 4, 2014 at 11:27 AM, sandeep kumar bandaru <bandarusandeepku...@gmail.com> wrote: > Hi, > > I have written couple of commands to trigger w3af using shell scripting. > Below is the same. > > When I manually run the script, it is triggering w3af and the commands > inside the script file are executing. > > But, when I schedule it through cron job, script is unable to trigger w3af > itself. > > Please let me know, how can we automate w3af for scanning our applications. > > Script Lines: > > var_path="path/to/w3af" > w3af_exec_path="$var_path/w3af/w3af_console" > > w3af_script_path="$var_path/w3af/scripts/w3af-basic-script.w3af" > > w3af_exec_command="$w3af_exec_path -s $w3af_script_path" > > exec $w3af_exec_command > > echo "Done Executing W3af Security Scan"
At first sight this doesn't seem to be a w3af issue, if you're able to run it outside cron, it should run inside it. It is either a wrong path, permission, or a missing environment variable. Regards, > Thanks, > Sandeep > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > W3af-users mailing list > W3af-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/w3af-users > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users