Merge branch 'main' of github.com:MISP/misp-modules into main

pull/578/head
Sami Mokaddem 2022-08-24 14:19:21 +02:00
commit 9efed339a7
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
4 changed files with 3 additions and 2 deletions

View File

@ -142,6 +142,7 @@ sudo -u www-data /var/www/MISP/venv/bin/pip install .
sudo cp etc/systemd/system/misp-modules.service /etc/systemd/system/ sudo cp etc/systemd/system/misp-modules.service /etc/systemd/system/
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable --now misp-modules sudo systemctl enable --now misp-modules
sudo service misp-modules start #or
/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 & #to start the modules /var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 & #to start the modules
~~~~ ~~~~

View File

@ -7,7 +7,7 @@ User=www-data
Group=www-data Group=www-data
WorkingDirectory=/usr/local/src/misp-modules WorkingDirectory=/usr/local/src/misp-modules
Environment="PATH=/var/www/MISP/venv/bin" Environment="PATH=/var/www/MISP/venv/bin"
ExecStart=/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s ExecStart=/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -0,0 +1 @@

View File

@ -73,7 +73,6 @@ class ShodanParser():
ip_address_object = MISPObject('ip-api-address') ip_address_object = MISPObject('ip-api-address')
for attribute in ip_address_attributes: for attribute in ip_address_attributes:
ip_address_object.add_attribute(**attribute) ip_address_object.add_attribute(**attribute)
ip_address_object.add_attribute(**self._get_source_attribute())
ip_address_object.add_reference(self.attribute.uuid, 'describes') ip_address_object.add_reference(self.attribute.uuid, 'describes')
self.misp_event.add_object(ip_address_object) self.misp_event.add_object(ip_address_object)