{"action":"created","issue":{"url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/20","labels_url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/20/comments","events_url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/20/events","html_url":"https://github.com/msgpack/msgpack-perl/issues/20","id":103493281,"number":20,"title":"Problem parsing incoming data from Metasploit","user":{"login":"nrathaus","id":2032238,"avatar_url":"https://avatars.githubusercontent.com/u/2032238?v=3","gravatar_id":"","url":"https://api.github.com/users/nrathaus","html_url":"https://github.com/nrathaus","followers_url":"https://api.github.com/users/nrathaus/followers","following_url":"https://api.github.com/users/nrathaus/following{/other_user}","gists_url":"https://api.github.com/users/nrathaus/gists{/gist_id}","starred_url":"https://api.github.com/users/nrathaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrathaus/subscriptions","organizations_url":"https://api.github.com/users/nrathaus/orgs","repos_url":"https://api.github.com/users/nrathaus/repos","events_url":"https://api.github.com/users/nrathaus/events{/privacy}","received_events_url":"https://api.github.com/users/nrathaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-27T12:03:18Z","updated_at":"2015-09-25T05:46:34Z","closed_at":null,"body":"The following hexdump of the data that comes in from Metasploit:\r\n```\r\n   00000000  82 C4 06 72 65 73 75 6C - 74 C4 07 73 75 63 63 65  ...result..succe\r\n   00000010  73 73 C4 05 74 6F 6B 65 - 6E C4 20 54 45 4D 50 31  ss..token. TEMP1\r\n   00000020  53 42 49 6B 6B 33 6F 77 - 6A 54 58 6E 66 39 50 55  SBIkk3owjTXnf9PU\r\n   00000030  79 70 4D 36 65 31 57 51 - 56 56 6A                 ypM6e1WQVVj\r\n```\r\n\r\nIs not parseable by the module and returns this error:\r\n```\r\n   Data::MessagePack->unpack: parse error at metasploit_rpc.pl line 59.\r\n```\r\n\r\nI cannot find the problem in the above data set, not locate the bug inside PP.pm\r\n\r\nI also saw that to use this as the data I send to the server:\r\n```\r\n   my @hash = [\"auth.login\", \"user\", \"pass\"];\r\n   my $request = Data::MessagePack->pack(\\@hash);\r\n```\r\n\r\nI would need to trim the first byte of the request:\r\n```\r\n   $request = substr($request, 1);\r\n```\r\n\r\nOr the server won't be able to parse the information\r\n\r\nI think it is somehow related\r\n\r\nI am running this on Ubuntu 15.04 LTS, perl 5.20.2\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/comments/143132911","html_url":"https://github.com/msgpack/msgpack-perl/issues/20#issuecomment-143132911","issue_url":"https://api.github.com/repos/msgpack/msgpack-perl/issues/20","id":143132911,"user":{"login":"nrathaus","id":2032238,"avatar_url":"https://avatars.githubusercontent.com/u/2032238?v=3","gravatar_id":"","url":"https://api.github.com/users/nrathaus","html_url":"https://github.com/nrathaus","followers_url":"https://api.github.com/users/nrathaus/followers","following_url":"https://api.github.com/users/nrathaus/following{/other_user}","gists_url":"https://api.github.com/users/nrathaus/gists{/gist_id}","starred_url":"https://api.github.com/users/nrathaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrathaus/subscriptions","organizations_url":"https://api.github.com/users/nrathaus/orgs","repos_url":"https://api.github.com/users/nrathaus/repos","events_url":"https://api.github.com/users/nrathaus/events{/privacy}","received_events_url":"https://api.github.com/users/nrathaus/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T05:46:34Z","updated_at":"2015-09-25T05:46:34Z","body":"Hi,\n\nNo worries about the reply\n\nWhat would this fix/resolve?\n\nDoes it fix the bug?\n\n\nOn Thu, Sep 24, 2015 at 10:00 AM, Syohei YOSHIDA <notifications@github.com>\nwrote:\n\n> @nrathaus <https://github.com/nrathaus> Sorry very too late reply. I sent\n> PR at #22 <https://github.com/msgpack/msgpack-perl/pull/22>. Could you\n> check #22 <https://github.com/msgpack/msgpack-perl/pull/22> changes ?\n>\n> You can try this by\n>\n> % git clone git@github.com:syohex/msgpack-perl.git\n> % git checkout origin/bin-format\n> # Install dependencies of Data::MessagePack\n> % perl Makefile.PL\n> % make\n> % make test\n> % make install\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/msgpack/msgpack-perl/issues/20#issuecomment-142834698>\n> .\n>\n\n\n\n-- \n\nThanks,\nNoam Rathaus\nBeyond Security\n\nPGP Key ID: 571934A6\n"}}