{"action":"created","issue":{"url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/232","labels_url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/232/comments","events_url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/232/events","html_url":"https://github.com/Veil-Framework/Veil-Evasion/issues/232","id":116497189,"number":232,"title":"RPC Server Documentation or Examples","user":{"login":"ethack","id":1696711,"avatar_url":"https://avatars.githubusercontent.com/u/1696711?v=3","gravatar_id":"","url":"https://api.github.com/users/ethack","html_url":"https://github.com/ethack","followers_url":"https://api.github.com/users/ethack/followers","following_url":"https://api.github.com/users/ethack/following{/other_user}","gists_url":"https://api.github.com/users/ethack/gists{/gist_id}","starred_url":"https://api.github.com/users/ethack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethack/subscriptions","organizations_url":"https://api.github.com/users/ethack/orgs","repos_url":"https://api.github.com/users/ethack/repos","events_url":"https://api.github.com/users/ethack/events{/privacy}","received_events_url":"https://api.github.com/users/ethack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T07:43:35Z","updated_at":"2015-11-16T01:58:42Z","closed_at":null,"body":"I'd like to integrate with Veil-Evasion, and it appears that the best way to do this is through the builtin RPC server. I was hoping that you'd have some Python example code that interacts with the RPC server or maybe some documentation to point me to. The only documentation I've found is here:\r\nhttps://github.com/Veil-Framework/Veil-Evasion/blob/master/Veil-Evasion.py#L30-L47\r\n\r\nAnd I've tried connecting via netcat to see if I could get it to respond. I'm using the Kali veil-evasion package and the version number is 2.21.4. I tried sending a payload like `{\"method\":\"version\"}` and Evasion gave the following output:\r\n```\r\nroot@kali:~# veil-evasion --rpc\r\n[*] Starting Veil-Evasion RPC server...\r\ndispatch_notification({u'method': u'version'})\r\n[!] Shutting down Veil-Evasion RPC server...\r\n```\r\n\r\nIn the netcat window I did not receive any output.\r\n```\r\nroot@kali:~# nc 127.0.0.1 4242\r\n{\"method\":\"version\"}\r\n```\r\n\r\nI have a feeling netcat doesn't work because there is more to the communication protocol than I am aware of. I did some digging into the library used and found an example client but haven't had much luck with it yet.\r\n\r\nhttps://github.com/niligulmohar/python-symmetric-jsonrpc/blob/master/examples/client.py\r\n\r\nhttps://github.com/tomsteele/veil-evasion-api appears to use the RPC server in Go. I tried looking there as well but am not familiar enough with Go to find what I need. Maybe @tomsteele could provide some input as well, at least on the protocol?"},"comment":{"url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/comments/156888798","html_url":"https://github.com/Veil-Framework/Veil-Evasion/issues/232#issuecomment-156888798","issue_url":"https://api.github.com/repos/Veil-Framework/Veil-Evasion/issues/232","id":156888798,"user":{"login":"ChrisTruncer","id":1674822,"avatar_url":"https://avatars.githubusercontent.com/u/1674822?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisTruncer","html_url":"https://github.com/ChrisTruncer","followers_url":"https://api.github.com/users/ChrisTruncer/followers","following_url":"https://api.github.com/users/ChrisTruncer/following{/other_user}","gists_url":"https://api.github.com/users/ChrisTruncer/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisTruncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisTruncer/subscriptions","organizations_url":"https://api.github.com/users/ChrisTruncer/orgs","repos_url":"https://api.github.com/users/ChrisTruncer/repos","events_url":"https://api.github.com/users/ChrisTruncer/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisTruncer/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T01:58:42Z","updated_at":"2015-11-16T01:58:42Z","body":"I don't have anything in the way of this currently unfortunately.  If that's something someone wants to submit to us, I'm pretty sure it would get a quick acceptance :)"}}