store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu Jun 20, 2013 4:25 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: Wapiti 2.2.1 on CentOS 6
Unread postPosted: Wed May 30, 2012 5:33 am 
Offline
Forum User
Forum User

Joined: Wed May 30, 2012 5:09 am
Posts: 8
Location: Copenhagen
Hi All

I have a problem running Wapiti on a CentOS 6 64bit system, following is the error i recieve from running Wapiti:

Code:
 
[root@[MASKED] ~]# wapiti
Traceback (most recent call last):
  File "/usr/bin/wapiti", line 40, in <module>
    from report.htmlreportgenerator import HTMLReportGenerator
ImportError: No module named htmlreportgenerator


From what i can find on the net, and on my box, the Wapiti htmlreportgenerator.py is correctly located in /usr/lib/python2.6/site-packages/wapiti/report and i havent found any solution for it yet.

Cheers Tom


Top
 Profile  
 
 Post subject: Re: Wapiti 2.2.1 on CentOS 6
Unread postPosted: Wed May 30, 2012 8:56 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7460
Location: earth
That could be the version of python-httplib2 you have, I just pushed an update (0.7.4) for it. It wasnt in the repo until today, so you may have pulled that from some other source and its not the one wapiti needs.


Top
 Profile  
 
 Post subject: Re: Wapiti 2.2.1 on CentOS 6
Unread postPosted: Thu May 31, 2012 3:11 am 
Offline
Forum User
Forum User

Joined: Wed May 30, 2012 5:09 am
Posts: 8
Location: Copenhagen
Hi Scott

Thanks for yopur quick reply.

I have tested it this morning, and it still dosent work, looke below:

Code:
[root@[MASKED] ~]# yum list wapiti python-httplib2
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * atomic: www7.atomicorp.com
 * base: mirror.fysik.dtu.dk
 * epel: ftp.uninett.no
 * extras: mirror.fysik.dtu.dk
 * updates: mirror.fysik.dtu.dk
Installed Packages
python-httplib2.noarch                                         0.7.4-1.el6.art                                         @atomic
wapiti.noarch                                                  2.2.1-3.el6.art                                         @atomic
[root@[MASKED] ~]#


Code:
[root@[MASKED] ~]# wapiti
Traceback (most recent call last):
  File "/usr/bin/wapiti", line 40, in <module>
    from report.htmlreportgenerator import HTMLReportGenerator
ImportError: No module named htmlreportgenerator
[root@[MASKED] ~]#


I ran the command yum erase python-httplib2 (which came from the EPEL repository and was of the same version), this command also removed the wapiti package.

Then i disabled the EPEL repository.

Then i ran the command yum install wapiti, and it installed what is shown above.

The "funny" part is that if i get the Wapiti source, i can run wapiti with no problem, even with the python-httplib2 from EPEL. So iam not sure where the problem is in the RPM package.

Code:
[root@[MASKED] src]# pwd
/home/Scanning/wapiti-2.2.1/src
[root@[MASKED] src]# python wapiti.py
Wapiti-SVN - A web application vulnerability scanner

 Usage: python wapiti.py http://server.com/base/url/ [options]


I hope we can find a solution for this, let me know if i can help.

Cheers Tom


Top
 Profile  
 
 Post subject: Re: Wapiti 2.2.1 on CentOS 6
Unread postPosted: Thu May 31, 2012 2:38 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7460
Location: earth
No doubt, since htmlreportgenerator is part of the wapiti package itself.. so I did some side by sides and narrowed this down to a conflict with something else, namely libreport-python (required by abrt). This overlaps with the report.html* functions since it happens in site-packages, it gets picked first and causes the problem.

So I just updated the package with a different path, in version 2.2.1-4


Top
 Profile  
 
 Post subject: Re: Wapiti 2.2.1 on CentOS 6
Unread postPosted: Wed Jun 06, 2012 3:53 am 
Offline
Forum User
Forum User

Joined: Wed May 30, 2012 5:09 am
Posts: 8
Location: Copenhagen
Hi Scott

The update you did in Wapiti 2.2.1-4 seems to have solved the problem.

Cheers Tom


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group