GithubHelp home page GithubHelp logo

cve-search not working about emba HOT 15 CLOSED

e-m-b-a avatar e-m-b-a commented on August 28, 2024
cve-search not working

from emba.

Comments (15)

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024 1

Is it now working?

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

Currently we have not tested EMBA on Debian (see https://github.com/e-m-b-a/emba/wiki/Installation#prerequisites). But let's give it a try.

Was the installation able to finish without errors?

Probably the hammer works "sudo /etc/init.d/docker restart" or the corresponding command on your debian.

If not, could you please post the output of ifconfig and netstat -anpt

Please try such a search manually:
└─$ ./external/cve-search/bin/search.py -p busybox

and an database update:
└─$ ./external/cve-search/sbin/db_updater.py -v

Please post the output of every command.

from emba.

d4op avatar d4op commented on August 28, 2024

i use kali, sorry. no debian.
kali is based on debian.

so here are to screenshots.

busybox command doesnt return anything!!!

updater updated all
updateworks

but main tool tells mongo db restarting
bug

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

Could you check the network interfaces with ifconfig. There should be an interface called emba_runs:

emba_runs: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.36.0.1  netmask 255.255.0.0  broadcast 172.36.255.255

If the IP is missing please restart your docker daemon with:

└─$ sudo /etc/init.d/docker restart                     

If these points are fine, your database is probably corrupted. You can try to fix this with a full rebuild

└─$ ./external/cve-search/sbin/db_updater.py -f

from emba.

d4op avatar d4op commented on August 28, 2024

999

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

Your network settings are looking fine.

It looks like this issue or this

Please check your internet connectivity and afterwards restart docker, mongod, redis-server and finally purge and repopulate your database

from emba.

d4op avatar d4op commented on August 28, 2024

no it isnt. i tryed it today on 3 different machines.
2 kali fresh install
1 debian

sudo ./installer.sh -d

and everytime it says the redis and mongodb error.

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

What is your VM spec? RAM and CPU cores?
Redis needs a lot of RAM and CPU cores. As far as I can remember it only works reliable with 4+ cores and 8+gig of RAM

from emba.

d4op avatar d4op commented on August 28, 2024

its no VM. its a laptop (32 GB RAM, i7) + docker
and a dekstop (32 GB RAM, i7) + docker

from emba.

p4cx avatar p4cx commented on August 28, 2024

Sorry for the late reply. But we have no idea why it's not working on your computer. Are you using EMBA in a Docker container? If that's the case: We don't support that and therefore you have to solve it yourself. If you install it natively on your computers, it should work fine if you follow our instructions. Without further information we cannot support you any further.

from emba.

fredjo3 avatar fredjo3 commented on August 28, 2024

I am having the same issue. I'm running a vm of Kali-rolling
uname -a : 5.18.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali1 (2022-06-20) x86_64 GNU/Linux
32 CPUs, 128GB RAM

Errors at installation:
2022-06-23 11:57:40,191 - CVEDownloads - ERROR - Did not receive last-modified header in the response; setting to default (01-01-1970) and force update! Headers received: {'content-length': '93', 'cache-control': 'no-cache', 'content-type': 'text/html', 'connection': 'close'}
2022-06-23 11:57:40,192 - CVEDownloads - ERROR - Unhandled Content-Type encountered: text/html from url
2022-06-23 11:57:40,456 - CVEDownloads - ERROR - Did not receive last-modified header in the response; setting to default (01-01-1970) and force update! Headers received: {'content-length': '93', 'cache-control': 'no-cache', 'content-type': 'text/html', 'connection': 'close'}
2022-06-23 11:57:40,457 - CVEDownloads - ERROR - Unhandled Content-Type encountered: text/html from url

Errors at runtime:
[] CVE-search not working - restarting Mongo database for CVE-search
[] CVE-search not working - restarting Mongo database for CVE-search
cve-search - not ok
[-] The needed CVE database is not responding as expected.
[-] CVE checks are currently not possible!
[-] Please check the following documentation on Github: #187
[-] If this does not help, open a new issue here: https://github.com/e-m-b-a/emba/issues

I cannot for the life of me get the cve-search to work. The issue is that communication with mongo is failing for some reason.
Looking at the interface it shows that emba_runs is down. When I run sudo ip link set emba_runs up and then sudo ip -c a, it reports as being down.

4: emba_runs: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:d2:10:f5:1a brd ff:ff:ff:ff:ff:ff
inet 172.36.0.1/16 brd 172.36.255.255 scope global emba_runs
valid_lft forever preferred_lft forever
inet 172.36.2.0/16 scope global secondary emba_runs
valid_lft forever preferred_lft forever

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

Could you try to install cve-search completely from scratch (ideally on a fresh kali) and manually as described here: https://cve-search.github.io/cve-search/getting_started/installation.html?

from emba.

m-1-k-3 avatar m-1-k-3 commented on August 28, 2024

In #261 @p4cx has included a new switch (-j) for disabling the cve-search check. Probably this will help in running EMBA without 1day vulnerability discovery mechanisms as a workaround.

from emba.

github-actions avatar github-actions commented on August 28, 2024

This issue is stale because it has been open for 14 days with no activity.

from emba.

github-actions avatar github-actions commented on August 28, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale.

from emba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.