MISP / PyMISP

Python library using the MISP Rest API
Other
442 stars 278 forks source link

freetext import error #996

Open CheKecha19 opened 1 year ago

CheKecha19 commented 1 year ago

when i try to load IoC to MISP using freetext import in CLI i have this error: sudo python3 freetext.py --event 1131150 --input /var/www/MISP/PyMISP/examples/freetext.txt image

text from .txt file image

Can u say whats wrong with my command? should i use files only or i can add needed IoCs with simple text in command like freetext.py --event 1131150 --input 123.123.123.123, kek.com, spam@phish.com

Also, team, can u add to https://[MISP]/events/automation page with examples of using CLI commands? Bcause thats really hard sometimes trying to use it without docs

adulau commented 1 year ago

The explanation is in your screenshot... "PyMISP is not defined" ;-)

CheKecha19 commented 1 year ago

The explanation is in your screenshot... "PyMISP is not defined" ;-)

but pymisp already installed... without pymisp misp doesnt work

image

other modules, like "enrich" and "create event" is working... why misp can "not define" PyMISP?

elvidence commented 3 months ago

Depending on how you installed your MISP try pip list then try to activate venv (If on Ubuntu) sudo -u www-data source /var/www/MISP/venv/bin/activate pip list you should see pymisp now.