{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/4662","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/4662/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/4662/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/4662/events","html_url":"https://github.com/radare/radare2/pull/4662","id":149378188,"number":4662,"title":"Add cs command in r2 for signature comparison","user":{"login":"kamou","id":4632264,"avatar_url":"https://avatars.githubusercontent.com/u/4632264?v=3","gravatar_id":"","url":"https://api.github.com/users/kamou","html_url":"https://github.com/kamou","followers_url":"https://api.github.com/users/kamou/followers","following_url":"https://api.github.com/users/kamou/following{/other_user}","gists_url":"https://api.github.com/users/kamou/gists{/gist_id}","starred_url":"https://api.github.com/users/kamou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamou/subscriptions","organizations_url":"https://api.github.com/users/kamou/orgs","repos_url":"https://api.github.com/users/kamou/repos","events_url":"https://api.github.com/users/kamou/events{/privacy}","received_events_url":"https://api.github.com/users/kamou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-19T07:53:48Z","updated_at":"2016-04-19T09:22:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/4662","html_url":"https://github.com/radare/radare2/pull/4662","diff_url":"https://github.com/radare/radare2/pull/4662.diff","patch_url":"https://github.com/radare/radare2/pull/4662.patch"},"body":"Hello,\r\nI find it useful to be able to compare signature like hex patterns.\r\nI suggest the \"cs\" command for this purpose (see commit)\r\n\r\nOne could use it as follows:\r\n```\r\n[0x08048e78]> px 4\r\n- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF\r\n0x08048e78  52ba 5c8a                                R.\\.            \r\n[0x08048e78]> cs 52..5c\r\nCompare 3/3 equal bytes (100%)\r\n```\r\n\r\nI plan to add '*' as byte matching wildcard. Would you take it ?\r\nIf you have any better idea on the command or its implementation, please let me know.\r\n\r\nAyman\r\n"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/211821632","html_url":"https://github.com/radare/radare2/pull/4662#issuecomment-211821632","issue_url":"https://api.github.com/repos/radare/radare2/issues/4662","id":211821632,"user":{"login":"kamou","id":4632264,"avatar_url":"https://avatars.githubusercontent.com/u/4632264?v=3","gravatar_id":"","url":"https://api.github.com/users/kamou","html_url":"https://github.com/kamou","followers_url":"https://api.github.com/users/kamou/followers","following_url":"https://api.github.com/users/kamou/following{/other_user}","gists_url":"https://api.github.com/users/kamou/gists{/gist_id}","starred_url":"https://api.github.com/users/kamou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamou/subscriptions","organizations_url":"https://api.github.com/users/kamou/orgs","repos_url":"https://api.github.com/users/kamou/repos","events_url":"https://api.github.com/users/kamou/events{/privacy}","received_events_url":"https://api.github.com/users/kamou/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T09:22:09Z","updated_at":"2016-04-19T09:22:09Z","body":"`cs 52..5c` would match everything from 52005c to 53FF5c.\r\nI might have missed a command doing the same ?"}}