-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't locate SeccubusV2.pm in @INC (you may need to install the SeccubusV2 module) #138
Comments
@Tushar-AB I need a little bit more information before I can help you.
|
Thanks for your reply.. :) What operating system are you installing on? What installation method are you using? RPM, Deb, Tarball or directly from GitHub If you installed via Tarball of GitHub what is the installation directory? In you config.xml what value is set for paths->modules? /home/seccubus/SeccubusV2 Below are snaps of errors: |
@Tushar-AB I recommend installing using the Deb package from https://github.com/schubergphilis/Seccubus_v2/releases this has all dependancies in the right places. From the screenshots it doesn't look like you ran the install script. If you did there should be a directory /home/seccubus/www/json does the ConfigTest.pl in this directory given the same error? |
This will fix the issue temporarily: export PERL5LIB= I have built this numerous times and I always seem to have this same problem no matter the steps that I follow. |
Have you tried installing via de deb file already? |
Yes numerous times today, clean install of Raspbian, following the instructions at (#168) this is the error I get: root@FF-SECCUBUS:/home/pi# dpkg -i seccubus_2.14.B262_all.deb So there is either more needed to the instructions or I am missing something. I am not complaining about the @inc error I can work around it which is why I thought I would share it here. |
Thanks for this new information. I'll try to spin up an clean ubuntu box myself.
I don't have a pi to test myself.
Frank
|
The pi is debian based so it shouldn't be all that different. If that helps these is the basic outline of my install which so far has given me the @inc error every time. That way you can tell me if I am doing a wrong step somewhere. apt-get install apache2 mysql-server nmap ruby libalgorithm-diff-perl libjson-perl libxml-simple-perl libhtml-tree-perl libapache2-mod-perl2 liburi-perl libtest-mock-lwp-perl perl-modules libcrypt-ssleay-perl libwww-perl libexpat1-dev Web Server Setup vi /etc/apache2/sites-enabled/000-default make it match below <Directory /var/www/> Database Setup create database Seccubus; grant all privileges on Seccubus.* to seccubus@localhost identified by 'seccubus'; use Seccubus; . /opt/seccubus/db/structure_v6.mysql . /opt/seccubus/db/data_v6.mysql Install Seccubus perl Makefile.PL (case sensitive) make ./install.pl —basedir /opt/seccubus —wwwdir /var/www copy to the config.xml edit /opt/seccubus/etc/config.xml to the correct settings of your database. |
I do have the same issue and could not solve it. Some help will really be appreciated. I ran the ConfigTest.pl and got the following output[ ] |
So it looks like you are using the Seccubus v1 mysql schema and you need the v2: { Seccubus has a convert script for this and it's called upgrade_v1_v2.mysql This mysql file can be found here: Let me know if that helped. |
Hi, Thanks for the quick reply. I tried to run this. Nothing happenned. I can change the schema and load the Srtcuture_v2 and Data_v2. Will that help? |
Well yes, you need to have the database setup and use the structure_v2 and the data_v2.
https://www.seccubus.com/documentation/how-to-install-seccubus-v2/ Let me know if you get stuck again. |
Depending on the version of Seccubus you installed you may need to install the latest version which is v6. It is best to drop and recreate the database and see which version is desired. |
Hi, I dropped the db and updated the same with structure_v6 and data_v6. The Configtest.pl does not throw up any error. However, I am not able to create the workspace at all. It gets stuck and shows creating. Is there anything that I am missing? |
Hi, Please let me know how to go ahead. The workspace creation simply does not work. |
@bebojyotib I just returned from a period of being offline. Is there any more information you can offer? Any errors in your web server log? |
I installed Seccubus V 2.17 on Kali 2.0 with deb package. /opt/seccubus/www/seccubus/json/ConfigTest.pl [ |
Go to /opt/seccubus and run bin/do-scan instead of ./do-scan |
Thank you. It works now |
Need to add this to the faq. |
Recreated this problem on debian after installation using git clone from the repo. The problem is simply that the perl package policy on debian (https://www.debian.org/doc/packaging-manuals/perl-policy/ch-site.html) does not include /opt. By doing that "cd /opt/seccubus" you're temporarily fixing that but .. it's a workaround. The right way to do it would probably be to somehow link all of the perl modules into /usr/local/lib somewhere. Link, not move, because you want to retain git's version tracking if you do that. Something similar should happen to the files in bin, btw. Those belong in /usr/local/bin or alternatively, /opt/seccubus/bin should be added to $PATH. The latter is easy to fix on a per-user basis (a mild edit of ~/.profile is enough) but this include path problem remains. |
Actually, there's another workaround:
Login, logout, and do-scan should simply work without tricks.
.. and fix it for the current session. Still a workaround, mind, but at least we don't have to cd to /opt/seccubus every time anymore. |
@randakar this way all users will ba able to run the code as admin. The new rpm packaing restricts that ability to the seccubus user in which case I don;t see the need to add it to the path. |
You realise that this whole thread is about running the program outside of any of the packaging systems, right? Unless you plan to make RPM / deb package installation the only supported mode of operation I don't see how RPM packaging policy is relevant. |
I used the rpm policy to illustrate why I feel it is generally not a good thing to have this in your path and accessible for all users. However Infeel like I may be misinterpreting your question. If this doesn't answer it, can you please clarify? |
It's been a while since I did that seccubus installation. I may be a little fuzzy on the details. However, it seems to me that if running 'install.pm' (I only see a install.pl in the seccubus dir) is something that should be part of the installation procedure, this should be mentioned in the document detailing how to install seccubus. So documentation and clear error messages is the actual issue here. As for /opt .. Normally on debian systems /usr/local is the correct place to stash custom installs outside the packaging system. I suspect that simply dropping the modules in there (in the right library dir) would also be enough to solve this. I'm surprised that somebody installed things in /opt on this particular system. It's still better than /home/seccubus (which IMHO is an abomination - /home is for user directories, not system software) but definitely not supported by debian very well. |
I've installed seccubus a few times on my debian machine and have been having the same issues. Even with including /opt/seccubus into PATH and the PERL5LIB variables I've noticed some problems. On the command line I can execute any seccubus executable. But trying to surf to the GUI only the HTML loads. Using OWASP-Zap as a sorta debugger I found out that the scripts are executing, but returning 500 Internal server issue codes. Looking at the logs for apache I notice that all of them can't find Seccubus.pm. I decided to check out the perl executables themselves and noticed that it specifies to |
Now the scripts are running just fine, but there seems to be a problem with seccubus relaying information to the database.(I've installed and re-installed several times and these problems persist every time on my debian system). I ran a scan from the command line and navigated to the web interface to check on it(I've been having problems with the GUI) and going to the results of the nmap scan I get this.. Table 'seccubus.user' doesn't exist at /opt/seccubus/SeccubusV2/SeccubusDB.pm line 159. |
This error occured an hour or two ago, I've done nothing to fix it except now I reloaded the webpage a few times to be able to copy that error message and now it's communicating with the DB server just fine and my results are formatted and appear..(?) |
This should be fixed with #411 as well |
…to install the SeccubusV2 module)
@lianfeng30 your do-scan command is reporting that it cannot find a configuration file. The configuration file holds the location of the modules. |
I successfully installed seccubus as per instruction given at https://www.seccubus.com/how-to-install-seccubus-v2/
However, I am getting error while creating workspace. It gets stuck on creating workspace window:
When I ran ConfigTest.pl to check the same, I got below error:
Can't locate SeccubusV2.pm in @inc (you may need to install the SeccubusV2 module) (@inc contains: .. /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ConfigTest.pl line 74.
I followed #12 but no luck.
Please help us.
The text was updated successfully, but these errors were encountered: