Re: [Openvas-discuss] Using nikto NASL

2011-12-09 Thread Christian Kuersteiner
On 12/09/2011 11:45 AM, Juan José Pavlik Salles wrote:
 I've already put nikto's path in .bashrc, but it doesn't work. Why
 openvas isn't seeing the same PATH var that i see??? any clue?

 root@openvas:~/tools/pruebas# tail ../../.bashrc
  . ~/.bash_aliases
 fi

sudo path is not the same as root path in Ubuntu (--with-secure-path). 
In Ubuntu I used the alias solution in 
http://stackoverflow.com/questions/257616/sudo-changes-path-why

HTH

Christian

___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Compiling openvas 5 betas

2011-12-09 Thread Matthew Mundell
 I downloaded the beta tarballs of the website. Any thoughts on
 remediation? Where can I remove the error on warning flag? I looked in
 the CMakeLists.txt but couldn't get it to compile.

In nasl/CMakeLists.txt.  Flag is -Werror.

--
Greenbone Networks GmbH
Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Compiling openvas 5 betas

2011-12-09 Thread Stephan Kleine
You need to remove Werror (at least you wont get happy trying to fix
that file manually ;D). See OBS for v5 binaries  patches to compile
them.

On Fri, Dec 9, 2011 at 5:47 PM, Brandon Perry bperry.volat...@gmail.com wrote:
 I cannot compile openvas-libraries. Fails with the following:

 [ 68%] Building C object nasl/CMakeFiles/openvas_nasl_static.dir/regex.c.o
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c: In
 function ‘re_match_2’:
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c:4059:25:
 error: variable ‘sdummy’ set but not used
 [-Werror=unused-but-set-variable]
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c:4058:28:
 error: variable ‘pdummy’ set but not used
 [-Werror=unused-but-set-variable]
 cc1: all warnings being treated as errors

 make[2]: *** [nasl/CMakeFiles/openvas_nasl_static.dir/regex.c.o] Error 1
 make[1]: *** [nasl/CMakeFiles/openvas_nasl_static.dir/all] Error 2
 make: *** [all] Error 2
 root@openvas:~/src/openvas/openvas-libraries-5.0+beta2#

 I downloaded the beta tarballs of the website. Any thoughts on
 remediation? Where can I remove the error on warning flag? I looked in
 the CMakeLists.txt but couldn't get it to compile.

 --
 http://volatile-minds.blogspot.com -- blog
 http://www.volatileminds.net -- website
 ___
 Openvas-discuss mailing list
 Openvas-discuss@wald.intevation.org
 http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Compiling openvas 5 betas

2011-12-09 Thread Brandon Perry
Hmm, I would like to use OBS. I will look into that as well. I was
under the impression they only had 4 still.

On Fri, Dec 9, 2011 at 11:23 AM, Stephan Kleine bitdea...@gmail.com wrote:
 You need to remove Werror (at least you wont get happy trying to fix
 that file manually ;D). See OBS for v5 binaries  patches to compile
 them.

 On Fri, Dec 9, 2011 at 5:47 PM, Brandon Perry bperry.volat...@gmail.com 
 wrote:
 I cannot compile openvas-libraries. Fails with the following:

 [ 68%] Building C object nasl/CMakeFiles/openvas_nasl_static.dir/regex.c.o
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c: In
 function ‘re_match_2’:
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c:4059:25:
 error: variable ‘sdummy’ set but not used
 [-Werror=unused-but-set-variable]
 /root/src/openvas/openvas-libraries-5.0+beta2/nasl/regex.c:4058:28:
 error: variable ‘pdummy’ set but not used
 [-Werror=unused-but-set-variable]
 cc1: all warnings being treated as errors

 make[2]: *** [nasl/CMakeFiles/openvas_nasl_static.dir/regex.c.o] Error 1
 make[1]: *** [nasl/CMakeFiles/openvas_nasl_static.dir/all] Error 2
 make: *** [all] Error 2
 root@openvas:~/src/openvas/openvas-libraries-5.0+beta2#

 I downloaded the beta tarballs of the website. Any thoughts on
 remediation? Where can I remove the error on warning flag? I looked in
 the CMakeLists.txt but couldn't get it to compile.

 --
 http://volatile-minds.blogspot.com -- blog
 http://www.volatileminds.net -- website
 ___
 Openvas-discuss mailing list
 Openvas-discuss@wald.intevation.org
 http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
 ___
 Openvas-discuss mailing list
 Openvas-discuss@wald.intevation.org
 http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss



-- 
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Using nikto NASL

2011-12-09 Thread Brandon Perry
What does 'which nikto' return

2011/12/9 Juan José Pavlik Salles jjpav...@gmail.com:
 Here i come again, still can't make nikto work on my reports. Now i tried
 using nikto.nasl with openvas-nasl command, like this:

 root@openvas:/var/lib/openvas/plugins# openvas-nasl -t my_host nikto -X
 nikto: Not able to open nor to locate it in include paths

 There's definitly something wrong here... This is where nikto is:

 root@openvas:/var/lib/openvas/plugins# whereis nikto
 nikto: /etc/nikto.conf /usr/local/bin/nikto.pl /usr/local/bin/nikto

 Actually, /usr/local/bin/nikto and nikto.pl are symbolic links to
 /opt/nikto/nikto.pl. What else could i try???

 El 9 de diciembre de 2011 11:05, Juan José Pavlik Salles
 jjpav...@gmail.com escribió:

 I found this in my openvassd.dump log file:

 [15465](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not found
 in $PATH
 [15466](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not found
 in $PATH

 No surprise though.

 El 9 de diciembre de 2011 10:53, Juan José Pavlik Salles
 jjpav...@gmail.com escribió:

 I tried the alias solution:

 root@openvas:~/tools/pruebas# tail -3 /root/.bashrc
 #fi
 export
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nikto
 alias sudo='sudo env PATH=$PATH'
 root@openvas:~/tools/pruebas#

 without any luck... i also comment:

 #Defaults    env_reset

 In /etc/sudoers, because this line set reset enviroment variables as
 default. I'm really lost right now.

 El 9 de diciembre de 2011 06:07, Christian Kuersteiner ckuer...@gmx.ch
 escribió:

 On 12/09/2011 11:45 AM, Juan José Pavlik Salles wrote:

 I've already put nikto's path in .bashrc, but it doesn't work. Why
 openvas isn't seeing the same PATH var that i see??? any clue?

 root@openvas:~/tools/pruebas# tail ../../.bashrc
     . ~/.bash_aliases
 fi


 sudo path is not the same as root path in Ubuntu (--with-secure-path).
 In Ubuntu I used the alias solution in
 http://stackoverflow.com/questions/257616/sudo-changes-path-why

 HTH

 Christian




 --
 Pavlik Juan José




 --
 Pavlik Juan José




 --
 Pavlik Juan José

 ___
 Openvas-discuss mailing list
 Openvas-discuss@wald.intevation.org
 http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss




-- 
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Using nikto NASL

2011-12-09 Thread Brandon Perry
Also, 'which nikto.pl'

2011/12/9 Brandon Perry bperry.volat...@gmail.com:
 What does 'which nikto' return

 2011/12/9 Juan José Pavlik Salles jjpav...@gmail.com:
 Here i come again, still can't make nikto work on my reports. Now i tried
 using nikto.nasl with openvas-nasl command, like this:

 root@openvas:/var/lib/openvas/plugins# openvas-nasl -t my_host nikto -X
 nikto: Not able to open nor to locate it in include paths

 There's definitly something wrong here... This is where nikto is:

 root@openvas:/var/lib/openvas/plugins# whereis nikto
 nikto: /etc/nikto.conf /usr/local/bin/nikto.pl /usr/local/bin/nikto

 Actually, /usr/local/bin/nikto and nikto.pl are symbolic links to
 /opt/nikto/nikto.pl. What else could i try???

 El 9 de diciembre de 2011 11:05, Juan José Pavlik Salles
 jjpav...@gmail.com escribió:

 I found this in my openvassd.dump log file:

 [15465](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not found
 in $PATH
 [15466](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not found
 in $PATH

 No surprise though.

 El 9 de diciembre de 2011 10:53, Juan José Pavlik Salles
 jjpav...@gmail.com escribió:

 I tried the alias solution:

 root@openvas:~/tools/pruebas# tail -3 /root/.bashrc
 #fi
 export
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nikto
 alias sudo='sudo env PATH=$PATH'
 root@openvas:~/tools/pruebas#

 without any luck... i also comment:

 #Defaults    env_reset

 In /etc/sudoers, because this line set reset enviroment variables as
 default. I'm really lost right now.

 El 9 de diciembre de 2011 06:07, Christian Kuersteiner ckuer...@gmx.ch
 escribió:

 On 12/09/2011 11:45 AM, Juan José Pavlik Salles wrote:

 I've already put nikto's path in .bashrc, but it doesn't work. Why
 openvas isn't seeing the same PATH var that i see??? any clue?

 root@openvas:~/tools/pruebas# tail ../../.bashrc
     . ~/.bash_aliases
 fi


 sudo path is not the same as root path in Ubuntu (--with-secure-path).
 In Ubuntu I used the alias solution in
 http://stackoverflow.com/questions/257616/sudo-changes-path-why

 HTH

 Christian




 --
 Pavlik Juan José




 --
 Pavlik Juan José




 --
 Pavlik Juan José

 ___
 Openvas-discuss mailing list
 Openvas-discuss@wald.intevation.org
 http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss




 --
 http://volatile-minds.blogspot.com -- blog
 http://www.volatileminds.net -- website



-- 
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] Using nikto NASL

2011-12-09 Thread Juan José Pavlik Salles
Here is more info:

root@openvas:/var/lib/openvas/plugins# ls -l /usr/local/bin/nikto*
lrwxrwxrwx 1 root root 16 2011-12-09 02:33 /usr/local/bin/nikto -
/opt/nikto/nikto
lrwxrwxrwx 1 root root 19 2011-12-09 02:04 /usr/local/bin/nikto.pl -
/opt/nikto/nikto.pl
root@openvas:/var/lib/openvas/plugins# ls /opt/nikto/nikto*
/opt/nikto/nikto  /opt/nikto/nikto.conf  /opt/nikto/nikto.pl

nikto is a copy of nikto.pl.

El 9 de diciembre de 2011 19:05, Brandon Perry
bperry.volat...@gmail.comescribió:

 Also, 'which nikto.pl'

 2011/12/9 Brandon Perry bperry.volat...@gmail.com:
  What does 'which nikto' return
 
  2011/12/9 Juan José Pavlik Salles jjpav...@gmail.com:
  Here i come again, still can't make nikto work on my reports. Now i
 tried
  using nikto.nasl with openvas-nasl command, like this:
 
  root@openvas:/var/lib/openvas/plugins# openvas-nasl -t my_host nikto -X
  nikto: Not able to open nor to locate it in include paths
 
  There's definitly something wrong here... This is where nikto is:
 
  root@openvas:/var/lib/openvas/plugins# whereis nikto
  nikto: /etc/nikto.conf /usr/local/bin/nikto.pl /usr/local/bin/nikto
 
  Actually, /usr/local/bin/nikto and nikto.pl are symbolic links to
  /opt/nikto/nikto.pl. What else could i try???
 
  El 9 de diciembre de 2011 11:05, Juan José Pavlik Salles
  jjpav...@gmail.com escribió:
 
  I found this in my openvassd.dump log file:
 
  [15465](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not
 found
  in $PATH
  [15466](/var/lib/openvas/plugins/nikto.nasl) pread: 'nikto.pl' not
 found
  in $PATH
 
  No surprise though.
 
  El 9 de diciembre de 2011 10:53, Juan José Pavlik Salles
  jjpav...@gmail.com escribió:
 
  I tried the alias solution:
 
  root@openvas:~/tools/pruebas# tail -3 /root/.bashrc
  #fi
  export
 
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nikto
  alias sudo='sudo env PATH=$PATH'
  root@openvas:~/tools/pruebas#
 
  without any luck... i also comment:
 
  #Defaultsenv_reset
 
  In /etc/sudoers, because this line set reset enviroment variables as
  default. I'm really lost right now.
 
  El 9 de diciembre de 2011 06:07, Christian Kuersteiner 
 ckuer...@gmx.ch
  escribió:
 
  On 12/09/2011 11:45 AM, Juan José Pavlik Salles wrote:
 
  I've already put nikto's path in .bashrc, but it doesn't work. Why
  openvas isn't seeing the same PATH var that i see??? any clue?
 
  root@openvas:~/tools/pruebas# tail ../../.bashrc
  . ~/.bash_aliases
  fi
 
 
  sudo path is not the same as root path in Ubuntu
 (--with-secure-path).
  In Ubuntu I used the alias solution in
  http://stackoverflow.com/questions/257616/sudo-changes-path-why
 
  HTH
 
  Christian
 
 
 
 
  --
  Pavlik Juan José
 
 
 
 
  --
  Pavlik Juan José
 
 
 
 
  --
  Pavlik Juan José
 
  ___
  Openvas-discuss mailing list
  Openvas-discuss@wald.intevation.org
  http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
 
 
 
 
  --
  http://volatile-minds.blogspot.com -- blog
  http://www.volatileminds.net -- website



 --
 http://volatile-minds.blogspot.com -- blog
 http://www.volatileminds.net -- website




-- 
Pavlik Juan José
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss