{"action":"opened","issue":{"url":"https://api.github.com/repos/mandiant/Reversing/issues/5","labels_url":"https://api.github.com/repos/mandiant/Reversing/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mandiant/Reversing/issues/5/comments","events_url":"https://api.github.com/repos/mandiant/Reversing/issues/5/events","html_url":"https://github.com/mandiant/Reversing/issues/5","id":82767222,"number":5,"title":"Syntax error in python make_sc_hash_db.py line 501","user":{"login":"sebastiendamaye","id":570673,"avatar_url":"https://avatars.githubusercontent.com/u/570673?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastiendamaye","html_url":"https://github.com/sebastiendamaye","followers_url":"https://api.github.com/users/sebastiendamaye/followers","following_url":"https://api.github.com/users/sebastiendamaye/following{/other_user}","gists_url":"https://api.github.com/users/sebastiendamaye/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiendamaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiendamaye/subscriptions","organizations_url":"https://api.github.com/users/sebastiendamaye/orgs","repos_url":"https://api.github.com/users/sebastiendamaye/repos","events_url":"https://api.github.com/users/sebastiendamaye/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiendamaye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-30T09:54:22Z","updated_at":"2015-05-30T09:54:22Z","closed_at":null,"body":"Hi,\r\n\r\nThanks for your plugin, very useful. There is a small syntax error on line 501 in your make_sc_hash_db.py file.\r\n\r\n    $ python make_sc_hash_db.py\r\n      File \"make_sc_hash_db.py\", line 501\r\n        class ShellcodeDbCreator(object):\r\n            ^\r\n    SyntaxError: invalid syntax\r\n\r\nBelow is the patch:\r\n\r\n    $ cat make_sc_hash_db.patch \r\n    --- make_sc_hash_db.py\t2015-05-30 11:41:57.803752637 +0200\r\n    +++ make_sc_hash_db.py.patched\t2015-05-30 11:42:33.239752447 +0200\r\n    @@ -492,7 +492,7 @@\r\n         ('sll1AddHash32',           32, pseudocode_sll1AddHash32),\r\n         ('playWith0xedb88320Hash',  32, pseudocode_playWith0xedb88320Hash),\r\n         ('crc32',                   32, 'Standard crc32'),\r\n    -\r\n    +]\r\n     \r\n     ############################################################\r\n     # Database creator\r\n    $ patch -p0 < make_sc_hash_db.patch \r\n    patching file make_sc_hash_db.py\r\n\r\nOnce applied, it works fine:\r\n\r\n    $ python make_sc_hash_db.py\r\n    python make_sc_hash_db.py <db_path> <dll_dir>\r\n"}}