{"action":"created","issue":{"url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/683","labels_url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/683/comments","events_url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/683/events","html_url":"https://github.com/cuckoobox/cuckoo/pull/683","id":116991888,"number":683,"title":"Functionality to initialize the environment for individual machinery","user":{"login":"lehmz","id":6629739,"avatar_url":"https://avatars.githubusercontent.com/u/6629739?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmz","html_url":"https://github.com/lehmz","followers_url":"https://api.github.com/users/lehmz/followers","following_url":"https://api.github.com/users/lehmz/following{/other_user}","gists_url":"https://api.github.com/users/lehmz/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmz/subscriptions","organizations_url":"https://api.github.com/users/lehmz/orgs","repos_url":"https://api.github.com/users/lehmz/repos","events_url":"https://api.github.com/users/lehmz/events{/privacy}","received_events_url":"https://api.github.com/users/lehmz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cuckoobox/cuckoo/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/cuckoobox/cuckoo/labels/High%20Priority","name":"High Priority","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"jekil","id":1069119,"avatar_url":"https://avatars.githubusercontent.com/u/1069119?v=3","gravatar_id":"","url":"https://api.github.com/users/jekil","html_url":"https://github.com/jekil","followers_url":"https://api.github.com/users/jekil/followers","following_url":"https://api.github.com/users/jekil/following{/other_user}","gists_url":"https://api.github.com/users/jekil/gists{/gist_id}","starred_url":"https://api.github.com/users/jekil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekil/subscriptions","organizations_url":"https://api.github.com/users/jekil/orgs","repos_url":"https://api.github.com/users/jekil/repos","events_url":"https://api.github.com/users/jekil/events{/privacy}","received_events_url":"https://api.github.com/users/jekil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cuckoobox/cuckoo/milestones/6","html_url":"https://github.com/cuckoobox/cuckoo/milestones/2.0","labels_url":"https://api.github.com/repos/cuckoobox/cuckoo/milestones/6/labels","id":930396,"number":6,"title":"2.0","description":null,"creator":{"login":"botherder","id":1032671,"avatar_url":"https://avatars.githubusercontent.com/u/1032671?v=3","gravatar_id":"","url":"https://api.github.com/users/botherder","html_url":"https://github.com/botherder","followers_url":"https://api.github.com/users/botherder/followers","following_url":"https://api.github.com/users/botherder/following{/other_user}","gists_url":"https://api.github.com/users/botherder/gists{/gist_id}","starred_url":"https://api.github.com/users/botherder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botherder/subscriptions","organizations_url":"https://api.github.com/users/botherder/orgs","repos_url":"https://api.github.com/users/botherder/repos","events_url":"https://api.github.com/users/botherder/events{/privacy}","received_events_url":"https://api.github.com/users/botherder/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":10,"state":"open","created_at":"2015-01-11T13:28:20Z","updated_at":"2015-12-22T13:27:31Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-15T13:08:44Z","updated_at":"2015-12-22T20:21:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cuckoobox/cuckoo/pulls/683","html_url":"https://github.com/cuckoobox/cuckoo/pull/683","diff_url":"https://github.com/cuckoobox/cuckoo/pull/683.diff","patch_url":"https://github.com/cuckoobox/cuckoo/pull/683.patch"},"body":"This PR provides a generic way to initialize the environment for different machineries. It creates a new function 'initialize_environment' in the abstract class Machinery. That function is called from cuckoo.py cuckoo_init(). This gives us a way to initialize the environment (interfaces, etc) before we try to start ResultServer.   \r\n\r\nFor the third (and possibly the final) time this refers to the task/issue: https://github.com/cuckoobox/cuckoo/issues/579\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/comments/166720611","html_url":"https://github.com/cuckoobox/cuckoo/pull/683#issuecomment-166720611","issue_url":"https://api.github.com/repos/cuckoobox/cuckoo/issues/683","id":166720611,"user":{"login":"lehmz","id":6629739,"avatar_url":"https://avatars.githubusercontent.com/u/6629739?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmz","html_url":"https://github.com/lehmz","followers_url":"https://api.github.com/users/lehmz/followers","following_url":"https://api.github.com/users/lehmz/following{/other_user}","gists_url":"https://api.github.com/users/lehmz/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmz/subscriptions","organizations_url":"https://api.github.com/users/lehmz/orgs","repos_url":"https://api.github.com/users/lehmz/repos","events_url":"https://api.github.com/users/lehmz/events{/privacy}","received_events_url":"https://api.github.com/users/lehmz/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T20:21:44Z","updated_at":"2015-12-22T20:21:44Z","body":"I updated the PR and cleaned up the code a bit. Try-catch blocks have been removed and the command line argument is created in a less idiotic way :)\r\n\r\nA machine object would have `interface` and `resultserver_ip` set, but from what I understood from the code is that the machines will be initialized when `sched.start()` is called from cuckoo.py after the ResultServer has already been started. If the initialization of the machine manager could be done earlier then I would have access to the initialized machines but I'm really not sure if that's possible. \r\n\r\n"}}