{"action":"created","issue":{"url":"https://api.github.com/repos/trustedsec/unicorn/issues/31","repository_url":"https://api.github.com/repos/trustedsec/unicorn","labels_url":"https://api.github.com/repos/trustedsec/unicorn/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/trustedsec/unicorn/issues/31/comments","events_url":"https://api.github.com/repos/trustedsec/unicorn/issues/31/events","html_url":"https://github.com/trustedsec/unicorn/issues/31","id":210331394,"number":31,"title":"python version for generate payload","user":{"login":"edenanthony","id":26043801,"avatar_url":"https://avatars0.githubusercontent.com/u/26043801?v=4","gravatar_id":"","url":"https://api.github.com/users/edenanthony","html_url":"https://github.com/edenanthony","followers_url":"https://api.github.com/users/edenanthony/followers","following_url":"https://api.github.com/users/edenanthony/following{/other_user}","gists_url":"https://api.github.com/users/edenanthony/gists{/gist_id}","starred_url":"https://api.github.com/users/edenanthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenanthony/subscriptions","organizations_url":"https://api.github.com/users/edenanthony/orgs","repos_url":"https://api.github.com/users/edenanthony/repos","events_url":"https://api.github.com/users/edenanthony/events{/privacy}","received_events_url":"https://api.github.com/users/edenanthony/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-26T16:57:23Z","updated_at":"2018-05-20T04:00:58Z","closed_at":"2017-03-08T21:43:23Z","author_association":"NONE","body":"Hi\r\n\r\nI'm using all version of python for generate shellcode, but i receive error : \r\n\r\npython2.7 unicorn.py payload/windows/meterpreter/reverse_tcp 45.45.45.45 445\r\n[*] Generating the payload shellcode.. This could take a few seconds/minutes as we create the shellcode...\r\n[!] Length of shellcode was not generated. Check payload name and if Metasploit is working and try again.\r\nExiting....\r\n\r\npython >= 3 :\r\n\r\npython3.5 unicorn.py payload/windows/meterpreter/reverse_tcp 45.45.45.45 445\r\n[*] Generating the payload shellcode.. This could take a few seconds/minutes as we create the shellcode...\r\n[!] Something went wrong, printing the error: name 'reduce' is not defined\r\n\r\nOf course i install all dependency of python packages.\r\n How solved it?\r\n\r\nTNX"},"comment":{"url":"https://api.github.com/repos/trustedsec/unicorn/issues/comments/390456056","html_url":"https://github.com/trustedsec/unicorn/issues/31#issuecomment-390456056","issue_url":"https://api.github.com/repos/trustedsec/unicorn/issues/31","id":390456056,"user":{"login":"vinnytroia","id":1675215,"avatar_url":"https://avatars1.githubusercontent.com/u/1675215?v=4","gravatar_id":"","url":"https://api.github.com/users/vinnytroia","html_url":"https://github.com/vinnytroia","followers_url":"https://api.github.com/users/vinnytroia/followers","following_url":"https://api.github.com/users/vinnytroia/following{/other_user}","gists_url":"https://api.github.com/users/vinnytroia/gists{/gist_id}","starred_url":"https://api.github.com/users/vinnytroia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinnytroia/subscriptions","organizations_url":"https://api.github.com/users/vinnytroia/orgs","repos_url":"https://api.github.com/users/vinnytroia/repos","events_url":"https://api.github.com/users/vinnytroia/events{/privacy}","received_events_url":"https://api.github.com/users/vinnytroia/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T04:00:58Z","updated_at":"2018-05-20T04:00:58Z","author_association":"NONE","body":"I spent the last 4 hours trying to figure this out. The problem is the gemset rules not being applied outside of the /opt/metasploit/ folder. \r\n\r\nInside the metasploit folder: \r\nrvm gemset --list\r\n\r\nyou should see metasploit-framework selected as the gemset. \r\n\r\noutside the folder run the same command: \r\nrvm gemset --list\r\n\r\nin my case, default was selected. \r\n\r\nbig props to Carlos Perez's blog for this solution: \r\nRun this command OUTSIDE the metasploit folder: \r\nrvm --default use ruby.x.x.x@metasploit-framework\r\n\r\nre-run unicorn. \r\n\r\n\r\n"}}
{"actor":{"display_login":"vinnytroia"}}