Open me0ne0 opened 6 years ago
that is bcz your network or agent is misconfigured, follow the documentation
the network and agent are communicating
curl 10.10.10.13:8000
Error code 501.
Message: Unsupported method ('GET').
Error code explanation: 501 = Server does not support this operation.
i am able to ping guest VM at 10.10.10.13
64 bytes from 10.10.10.13: icmp_seq=7716 ttl=128 time=0.273 ms 64 bytes from 10.10.10.13: icmp_seq=7717 ttl=128 time=0.413 ms 64 bytes from 10.10.10.13: icmp_seq=7718 ttl=128 time=0.323 ms 64 bytes from 10.10.10.13: icmp_seq=7719 ttl=128 time=0.409 ms 64 bytes from 10.10.10.13: icmp_seq=7720 ttl=128 time=0.398 ms 64 bytes from 10.10.10.13: icmp_seq=7721 ttl=128 time=0.312 ms
post, logs, and versions of everything
2018-04-16 21:22:10,700 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" machine manager with max_analysis_count=0, max_machines_count=0, and max_vmstartup_count=10 2018-04-16 21:22:13,313 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s 2018-04-16 21:22:13,329 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks. 2018-04-16 21:25:43,726 [lib.cuckoo.core.scheduler] INFO: Task #11: Starting analysis of FILE '/tmp/cuckoo-tmp/upload_fdbO1E/0.exe' 2018-04-16 21:25:43,736 [lib.cuckoo.core.scheduler] INFO: Task #11: File already exists at '/home/mxn/cuckoo-modified/storage/binaries/09a1c17ac55cde962b4f3bcd61140d752d86362296ee74736000a6a647c73d8c' 2018-04-16 21:25:43,779 [lib.cuckoo.core.scheduler] INFO: Task #11: acquired machine cuckoo1 (label=win764-1C) 2018-04-16 21:25:54,428 [modules.auxiliary.sniffer] INFO: Started sniffer with PID 12162 (interface=vboxnet1, host=10.10.10.13 interface = vboxnet1 mem_profile = Win7SP1x64, dump path=/home/mxn/cuckoo-modified/storage/analyses/11/dump.pcap) 2018-04-16 21:25:54,482 [lib.cuckoo.core.guest] INFO: Starting analysis on guest (id=cuckoo1, ip=10.10.10.13 interface = vboxnet1 mem_profile = Win7SP1x64) 2018-04-16 21:31:54,961 [lib.cuckoo.core.scheduler] ERROR: cuckoo1: the guest initialization hit the critical timeout, analysis aborted. 2018-04-16 21:31:58,146 [modules.processing.behavior] WARNING: Analysis results folder does not exist at path "/home/mxn/cuckoo-modified/storage/analyses/11/logs". 2018-04-16 21:31:58,151 [lib.cuckoo.core.plugins] ERROR: Failed to run the processing module "Dropped": Traceback (most recent call last): File "/home/mxn/cuckoo-modified/lib/cuckoo/core/plugins.py", line 197, in process data = current.run() File "/home/mxn/cuckoo-modified/modules/processing/dropped.py", line 26, in run file_names = os.listdir(self.dropped_path) OSError: [Errno 2] No such file or directory: '/home/mxn/cuckoo-modified/storage/analyses/11/files' 2018-04-16 21:31:58,156 [modules.processing.network] WARNING: The PCAP file does not exist at path "/home/mxn/cuckoo-modified/storage/analyses/11/dump.pcap". 2018-04-16 21:32:04,735 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-16/analysis/11 [status:N/A request:0.001s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fcb97527e90>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-16 21:32:04,738 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-16/analysis/11 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fcb97527710>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-16 21:32:04,739 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-16/analysis/11 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fcb97527e90>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-16 21:32:04,740 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-16/analysis/11 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fcb97527710>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-16 21:32:04,741 [lib.cuckoo.core.plugins] ERROR: Failed to run the reporting module "ElasticsearchDB": Traceback (most recent call last): File "/home/mxn/cuckoo-modified/lib/cuckoo/core/plugins.py", line 631, in process current.run(self.results) File "/home/mxn/cuckoo-modified/modules/reporting/elasticsearchdb.py", line 143, in run self.es.index(index=self.index_name, doc_type="analysis", id=results["info"]["id"], body=report) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 76, in _wrapped return func(*args, params=params, **kwargs) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/init.py", line 319, in index _make_path(index, doc_type, id), params=params, body=body) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py", line 314, in perform_request status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 175, in perform_request raise ConnectionError('N/A', str(e), e) ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7fcb97527710>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7fcb97527710>: Failed to establish a new connection: [Errno 111] Connection refused) 2018-04-16 21:32:04,742 [lib.cuckoo.core.scheduler] INFO: Task #11: reports generation completed (path=/home/mxn/cuckoo-modified/storage/analyses/11) 2018-04-16 21:32:04,770 [lib.cuckoo.core.scheduler] INFO: Task #11: analysis procedure completed
Its my understanding that for all the versions of cuckoo guest VM's should be in snapshot resume mode. As all guest VM's should be started by Cuckoo itself as mentioned by you. But in snapshot resume mode neither curl works nor guest VM IP's are pingable. Is that could be problem ?
yes they should be in running mode.
ERROR: cuckoo1: the guest initialization hit the critical timeout, analysis aborted.
that means what cuckoo can't communicate with agent in vm.
host=10.10.10.13
, can you post the configs, it might be some small misconfiguration
CUCKOO.CONF [cuckoo]
delete_original = off
delete_bin_copy = off
machinery = virtualbox
memory_dump = off
terminate_processes = off
reschedule = off
process_results = on
max_analysis_count = 0
max_machines_count = 0
max_vmstartup_count = 10
freespace = 64
tmppath = /tmp
daydelta = 0
[resultserver]
resultserver_ip
for all your virtual machines in machinery configuration.ip = 192.168.58.1
port = 2043
store_csvs = on
upload_max_size = 10485760
[processing]
analysis_size_limit = 104857600
analysis_call_limit = 0
resolve_dns = on
reverse_dns = off
ram_boost = off
sort_pcap = on
[database]
connection = postgresql://postgres:meen@localhost:5432/cuckoopost
timeout =
[timeouts]
default = 120
critical = 60
VIRTUAL BOX.CONF
[virtualbox]
mode = headless
path = /usr/bin/VBoxManage
machines = cuckoo1
[cuckoo1]
label = win764-1C
platform = windows
ip = 192.168.58.11
interface = vboxnet2
mem_profile = Win7SP1x64
conf looks good, any custom iptables?
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ufw-before-logging-input all -- anywhere anywhere
ufw-before-input all -- anywhere anywhere
ufw-after-input all -- anywhere anywhere
ufw-after-logging-input all -- anywhere anywhere
ufw-reject-input all -- anywhere anywhere
ufw-track-input all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- 10.0.0.0/8 anywhere ctstate NEW
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- 10.0.0.0/8 anywhere ctstate NEW
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.56.0/24 anywhere ctstate NEW
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- 10.0.0.0/8 anywhere ctstate NEW
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ufw-before-logging-forward all -- anywhere anywhere
ufw-before-forward all -- anywhere anywhere
ufw-after-forward all -- anywhere anywhere
ufw-after-logging-forward all -- anywhere anywhere
ufw-reject-forward all -- anywhere anywhere
ufw-track-forward all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ufw-before-logging-output all -- anywhere anywhere
ufw-before-output all -- anywhere anywhere
ufw-after-output all -- anywhere anywhere
ufw-after-logging-output all -- anywhere anywhere
ufw-reject-output all -- anywhere anywhere
ufw-track-output all -- anywhere anywhere
Chain ufw-after-forward (1 references) target prot opt source destination
Chain ufw-after-input (1 references) target prot opt source destination
Chain ufw-after-logging-forward (1 references) target prot opt source destination
Chain ufw-after-logging-input (1 references) target prot opt source destination
Chain ufw-after-logging-output (1 references) target prot opt source destination
Chain ufw-after-output (1 references) target prot opt source destination
Chain ufw-before-forward (1 references) target prot opt source destination
Chain ufw-before-input (1 references) target prot opt source destination
Chain ufw-before-logging-forward (1 references) target prot opt source destination
Chain ufw-before-logging-input (1 references) target prot opt source destination
Chain ufw-before-logging-output (1 references) target prot opt source destination
Chain ufw-before-output (1 references) target prot opt source destination
Chain ufw-reject-forward (1 references) target prot opt source destination
Chain ufw-reject-input (1 references) target prot opt source destination
Chain ufw-reject-output (1 references) target prot opt source destination
Chain ufw-track-forward (1 references) target prot opt source destination
Chain ufw-track-input (1 references) target prot opt source destination
Chain ufw-track-output (1 references) target prot opt source destination
@doomedraven hello, any update on this that could be useful?
sudo iptables -F && sudo iptables -F -t nat && sudo ufw disable
try to do this and restart cuckoo.py
not working, still same error cuckoo1: the guest initialization hit the critical timeout, analysis aborted.
Can you do me a favor? If your cuckoo is working fine, can u pack ur conf folder (all files) and email me so i can cross ref it with my config files? or i can do it vice versa and you can cross ref them, which ever option suits you.
here is the complete log
=======================================
2018-04-20 00:59:18,219 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" machine manager with max_analysis_count=0, max_machines_count=0, and max_vmstartup_count=10 2018-04-20 00:59:19,478 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s 2018-04-20 00:59:19,493 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks. 2018-04-20 01:00:11,440 [lib.cuckoo.core.scheduler] INFO: Task #20: Starting analysis of FILE '/tmp/cuckoo-tmp/upload_WMMnGB/2d.exe' 2018-04-20 01:00:11,461 [lib.cuckoo.core.scheduler] INFO: Task #20: File already exists at '/home/mxn/cuckoo-modified/storage/binaries/8b1177549a1f4a0e47acd8ec77bf670ee18efb9f2c18747e460bd8924d5a2024' 2018-04-20 01:00:11,505 [lib.cuckoo.core.scheduler] INFO: Task #20: acquired machine cuckoo1 (label=win764-1C) 2018-04-20 01:00:21,915 [modules.auxiliary.sniffer] INFO: Started sniffer with PID 13583 (interface=vboxnet2, host=192.168.58.11 snapshot = snapshot1 interface = vboxnet2 mem_profile = Win7SP1x64, dump path=/home/mxn/cuckoo-modified/storage/analyses/20/dump.pcap) 2018-04-20 01:00:21,964 [lib.cuckoo.core.guest] INFO: Starting analysis on guest (id=cuckoo1, ip=192.168.58.11 snapshot = snapshot1 interface = vboxnet2 mem_profile = Win7SP1x64) 2018-04-20 01:03:22,223 [lib.cuckoo.core.scheduler] ERROR: cuckoo1: the guest initialization hit the critical timeout, analysis aborted. 2018-04-20 01:03:24,800 [modules.processing.behavior] WARNING: Analysis results folder does not exist at path "/home/mxn/cuckoo-modified/storage/analyses/20/logs". 2018-04-20 01:03:24,806 [lib.cuckoo.core.plugins] ERROR: Failed to run the processing module "Dropped": Traceback (most recent call last): File "/home/mxn/cuckoo-modified/lib/cuckoo/core/plugins.py", line 197, in process data = current.run() File "/home/mxn/cuckoo-modified/modules/processing/dropped.py", line 26, in run file_names = os.listdir(self.dropped_path) OSError: [Errno 2] No such file or directory: '/home/mxn/cuckoo-modified/storage/analyses/20/files' 2018-04-20 01:03:24,811 [modules.processing.network] WARNING: The PCAP file does not exist at path "/home/mxn/cuckoo-modified/storage/analyses/20/dump.pcap". 2018-04-20 01:03:25,493 [lib.cuckoo.common.objects] WARNING: failed to scan file with clamav Error 2 connecting /var/run/clamav/clamd.ctl. No such file or directory.
(wkhtmltopdf:13735): IBUS-WARNING : Unable to connect to ibus: Could not connect: Connection refused 2018-04-20 01:03:29,162 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-20/analysis/20 [status:N/A request:0.001s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad458ab410>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-20 01:03:29,165 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-20/analysis/20 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad458ab950>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-20 01:03:29,166 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-20/analysis/20 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad458ab510>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-20 01:03:29,167 [elasticsearch] WARNING: PUT http://127.0.0.1:9200/cuckoo-2018-04-20/analysis/20 [status:N/A request:0.000s] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 166, in perform_request response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 333, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, *httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad458ab410>: Failed to establish a new connection: [Errno 111] Connection refused 2018-04-20 01:03:29,167 [lib.cuckoo.core.plugins] ERROR: Failed to run the reporting module "ElasticsearchDB": Traceback (most recent call last): File "/home/mxn/cuckoo-modified/lib/cuckoo/core/plugins.py", line 631, in process current.run(self.results) File "/home/mxn/cuckoo-modified/modules/reporting/elasticsearchdb.py", line 143, in run self.es.index(index=self.index_name, doc_type="analysis", id=results["info"]["id"], body=report) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 76, in _wrapped return func(args, params=params, **kwargs) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/init.py", line 319, in index _make_path(index, doc_type, id), params=params, body=body) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py", line 314, in perform_request status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 175, in perform_request raise ConnectionError('N/A', str(e), e) ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7fad458ab410>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7fad458ab410>: Failed to establish a new connection: [Errno 111] Connection refused) 2018-04-20 01:03:29,169 [lib.cuckoo.core.scheduler] INFO: Task #20: reports generation completed (path=/home/mxn/cuckoo-modified/storage/analyses/20) 2018-04-20 01:03:29,636 [lib.cuckoo.core.scheduler] INFO: Task #20: analysis procedure completed
=============================================================
im not using vbox so that won't be useful for you, but it looks like network error or network configuration on your side
i cannot think of any other way to resolve this issue. How about if you send me [api auxiliary cuckoo processing reporting memory conf files]?
nop, they don't have anything to see here, that is network related issue
agent.py or agent.pyw what should be used?
that is the same, just without window -> documentation
@doomedraven i tried almost everything. I re-ran agent.py from cuckoo modified and from original cuckoosandbox I re-ran agent.pyw from cuckoo modified and from original cuckoosandbox
curl output to both is OK. i am able to telnet both on 8000 port. I can ping guest 192.168.58.11 from host 192.168.58.1 and vice versa.
Tried the snapshot restore, and guest power off method.
All of these resulted in guest VM being up as could be seen in Gui but the debug log continuously shows
2018-04-20 02:45:54,116 [lib.cuckoo.core.resultserver] DEBUG: ResultServer running on 192.168.58.1:2043. 2018-04-20 02:45:54,119 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" machine manager with max_analysis_count=0, max_machines_count=0, and max_vmstartup_count=10 2018-04-20 02:45:54,402 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:45:54,565 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status saved 2018-04-20 02:45:54,595 [modules.machinery.virtualbox] DEBUG: Stopping vm win764-1C 2018-04-20 02:45:54,595 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:45:54,743 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status saved 2018-04-20 02:45:55,785 [modules.machinery.virtualbox] DEBUG: VBoxManage exited with error powering off the machine 2018-04-20 02:45:55,786 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:45:55,960 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status saved 2018-04-20 02:45:56,631 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s 2018-04-20 02:45:56,646 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks. 2018-04-20 02:47:35,195 [lib.cuckoo.core.scheduler] DEBUG: Task #24: Processing task 2018-04-20 02:47:35,199 [lib.cuckoo.core.scheduler] INFO: Task #24: Starting analysis of FILE '/tmp/cuckoo-tmp/upload_SJzyIq/8bc503de-3038-11e8-8625-80e65024849a.exe' 2018-04-20 02:47:35,402 [lib.cuckoo.core.scheduler] INFO: Task #24: acquired machine cuckoo1 (label=win764-1C) 2018-04-20 02:47:35,524 [modules.machinery.virtualbox] DEBUG: Starting vm win764-1C 2018-04-20 02:47:35,524 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:47:35,688 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status saved 2018-04-20 02:47:35,797 [modules.machinery.virtualbox] DEBUG: Using current snapshot for virtual machine win764-1C 2018-04-20 02:47:38,252 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:47:38,403 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status saved 2018-04-20 02:47:45,217 [modules.machinery.virtualbox] DEBUG: Getting status for win764-1C 2018-04-20 02:47:45,413 [modules.machinery.virtualbox] DEBUG: Machine win764-1C status running 2018-04-20 02:47:45,531 [modules.auxiliary.sniffer] INFO: Started sniffer with PID 17859 (interface=vboxnet2, host=192.168.58.11 snapshot = snapshot1 interface = vboxnet2 mem_profile = Win7SP1x64, dump path=/home/mxn/cuckoo-modified/storage/analyses/24/dump.pcap) 2018-04-20 02:47:45,532 [lib.cuckoo.core.plugins] DEBUG: Started auxiliary module: Sniffer 2018-04-20 02:47:45,608 [lib.cuckoo.core.guest] INFO: Starting analysis on guest (id=cuckoo1, ip=192.168.58.11 snapshot = snapshot1 interface = vboxnet2 mem_profile = Win7SP1x64) 2018-04-20 02:47:45,609 [lib.cuckoo.core.guest] DEBUG: cuckoo1: waiting for status 0x0001 2018-04-20 02:47:45,610 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:46,612 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:47,615 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:48,616 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:49,618 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:50,620 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:51,622 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:52,623 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:53,625 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:54,627 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:55,629 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:47:56,631 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:01,166 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:02,168 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:03,171 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:04,173 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:05,175 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:06,177 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:07,178 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet 2018-04-20 02:48:08,180 [lib.cuckoo.core.guest] DEBUG: cuckoo1: not ready yet
which i understood and as mentioned by you is that agent is not communicating or there is network error.
firewall is disabled on both, bit defender, uac, updates are off on guest vm. even i have disabled user login.
how the hell could i get rid of this error ? its been 3 weeks now, i am unable to find its solution..
can it be the issue of virtualbox as hypervisor?
could be, vbox doing weird iptables stuff nowdays
my suggestion, start cuckoo task for example url analysis with timeout 1000 and without user interaction, and once vm is started, test curl vm:8000, ping is useless for this purpose so you will be able to investigate a bit the network and the rest
still useless
the error not make any sense, idk what is wrong here
i now configured KVM and result is the same. It appears that there is some kind of problem from guest side.
idk
can you tag anyone else who can help me out here? :/
all interested person receiving email about all issues so they can decide if they want to help or not
puoi taggare qualcun altro che può aiutarmi qui? : /
did you resolve it? i've the same problems and i can't resolve it ! Help!
i am continuously getting the above mentioned error. I tired to increase the time limit upto 3600 seconds with memory dump off but its still the same error. Also i tried different sampls, all result in the same manner. why is it happening?