Skip to content

Commit cdafcd6

Browse files
committed
remove check_signatures
1 parent 10cc02d commit cdafcd6

File tree

3 files changed

+2
-53
lines changed

3 files changed

+2
-53
lines changed

cuckoo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from lib.cuckoo.common.exceptions import CuckooCriticalError
1616
from lib.cuckoo.common.exceptions import CuckooDependencyError
1717
from lib.cuckoo.core.database import Database
18-
from lib.cuckoo.core.startup import check_working_directory, check_configs, check_signatures, cuckoo_clean, cuckoo_clean_failed_tasks, cuckoo_clean_failed_url_tasks,cuckoo_clean_before_day,cuckoo_clean_sorted_pcap_dump,cuckoo_clean_bson_suri_logs, cuckoo_clean_pending_tasks
18+
from lib.cuckoo.core.startup import check_working_directory, check_configs, cuckoo_clean, cuckoo_clean_failed_tasks, cuckoo_clean_failed_url_tasks,cuckoo_clean_before_day,cuckoo_clean_sorted_pcap_dump,cuckoo_clean_bson_suri_logs, cuckoo_clean_pending_tasks
1919
from lib.cuckoo.core.startup import create_structure
2020
from lib.cuckoo.core.startup import init_logging, init_modules, init_console_logging
2121
from lib.cuckoo.core.startup import init_tasks, init_yara
@@ -38,7 +38,6 @@ def cuckoo_init(quiet=False, debug=False, artwork=False, test=False):
3838
logo()
3939
check_working_directory()
4040
check_configs()
41-
check_signatures()
4241
create_structure()
4342

4443
if artwork:
@@ -111,7 +110,7 @@ def cuckoo_main(max_analysis_count=0):
111110

112111
if args.failed_clean:
113112
cuckoo_clean_failed_tasks()
114-
sys.exit(0)
113+
sys.exit(0)
115114

116115
if args.failed_url_clean:
117116
cuckoo_clean_failed_url_tasks()

docs/book/src/usage/utilities.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,36 +67,6 @@ running Cuckoo with many virtual machines:
6767
This could increase the performance of your system because the reporting is not
6868
yet demanded to Cuckoo.
6969

70-
Community Download Utility
71-
==========================
72-
73-
This utility downloads signatures from `Cuckoo Community Repository`_ and installs
74-
specific additional modules in your local setup.
75-
Following are the usage options::
76-
77-
$ ./utils/community.py -h
78-
79-
usage: community.py [-h] [-a] [-s] [-p] [-m] [-r] [-f] [-w] [-b BRANCH]
80-
81-
optional arguments:
82-
-h, --help show this help message and exit
83-
-a, --all Download everything
84-
-s, --signatures Download Cuckoo signatures
85-
-p, --processing Download processing modules
86-
-m, --machinemanagers
87-
Download machine managers
88-
-r, --reporting Download reporting modules
89-
-f, --force Install files without confirmation
90-
-w, --rewrite Rewrite existing files
91-
-b BRANCH, --branch BRANCH
92-
Specify a different branch
93-
94-
*Example*: install all available signatures::
95-
96-
$ ./utils/community.py --signatures --force
97-
98-
.. _`Cuckoo Community Repository`: https://github.com/cuckoobox/community
99-
10070
Database migration utility
10171
==========================
10272

lib/cuckoo/core/startup.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,6 @@ def check_configs():
6969
return True
7070

7171

72-
def check_signatures():
73-
"""Checks if user pulled in community signature modules
74-
@raise CuckooStartupError: if community signature modules not installed.
75-
"""
76-
77-
sigpath = os.path.join(CUCKOO_ROOT, "modules", "signatures")
78-
bad = False
79-
80-
if os.path.exists(sigpath):
81-
path, dirs, files = os.walk(sigpath).next()
82-
if len(files) < 20:
83-
bad = True
84-
else:
85-
bad = True
86-
87-
if bad:
88-
log.info(
89-
"Signature modules are not installed. Please run: utils/community.py --force --rewrite --all")
90-
91-
9272
def create_structure():
9373
"""Creates Cuckoo directories."""
9474
folders = [

0 commit comments

Comments
 (0)