lib.cuckoo.core.startup

Package lib :: Package cuckoo :: Package core :: Module startup |
[hide private]
[frames] | no frames]

# Module startup

source code

Functions | [hide private]
check_python_version() Checks if Python version is supported by Cuckoo. | source code
check_working_directory() Checks if working directories are ready. | source code
check_configs() Checks if config files exist. | source code
create_structure() Creates Cuckoo directories. | source code
check_version() Checks version of Cuckoo. | source code
init_logging() Initializes logging. | source code
init_console_logging() Initializes logging only to console. | source code
init_tasks() Check tasks and reschedule uncompleted ones. | source code
delete_file(*rel_path) | source code
init_modules(machinery=True) Initializes plugins. | source code
init_yara() Generates index for yara signatures. | source code
init_binaries() Inform the user about the need to periodically look for new analyzer binaries. | source code
init_rooter() If required, check whether the rooter is running and whether we can connect to it. | source code
init_routing() Initialize and check whether the routing information is correct. | source code
cuckoo_clean() Clean up cuckoo setup. | source code
drop_privileges(username) Drops privileges to selected user. | source code

Variables | [hide private]
| HAVE_PWD = `False`
| log = `logging.getLogger()`

Function Details | [hide private]

### check_python_version() | source code
Checks if Python version is supported by Cuckoo. Raises: `CuckooStartupError` - if version is not supported.

### check_working_directory() | source code
Checks if working directories are ready. Raises: `CuckooStartupError` - if directories are not properly configured.

### check_configs() | source code
Checks if config files exist. Raises: `CuckooStartupError` - if config files do not exist.

### init_binaries() | source code
Inform the user about the need to periodically look for new analyzer binaries. These include the Windows monitor etc.

### cuckoo_clean() | source code
Clean up cuckoo setup. It deletes logs, all stored data from file system and configured databases (SQL and MongoDB).

### drop_privileges(username) | source code
Drops privileges to selected user. Parameters: `username` - drop privileges to this username