Metasploit mailing list archives
Re: Adding new payloads
From: Ty Miller <tyronmiller () gmail com>
Date: Thu, 27 May 2010 09:37:18 +1000
Hey guys, Solved. I think it was just Windows 7 permissions screwing with me. I was copying the files in using cygwin bash shell running as a normal user, which meant that Metasploit couldn't see the files when running as an Administrator. I started over, and ran the cygwin bash shell as an administrator, copied the files across, added HD's suggestion of handler_type_alias, and then started Metasploit as an admin. Searched for my payload, and it was there. Thanks for your help. Thanks, Ty On Thu, May 27, 2010 at 8:09 AM, Ty Miller <tyronmiller () gmail com> wrote:
If it makes any difference, I'm using win7 with msf3.3. Any other help would be appreciated. Thanks, Ty On Wednesday, May 26, 2010, <tyronmiller () gmail com> wrote:Unfortunately ~/.msf3/logs/framework.log is empty, but thanks for thetip.I added the handler_type_alias code to the payload stager module, butstill no love.If it helps, I'm using the reverse_https payload files as a basis to workfrom. So I copied the following files and renamed them to be those listed in my first email, then went through and modified relevant references to https to point to mypayload (mainly the handler stuff)../msf3/external/source/shellcode/windows/x86/src/stager/stager_reverse_https.asm./msf3/external/source/shellcode/windows/x86/src/block/block_reverse_https.asm./msf3/modules/payloads/stagers/windows/reverse_https.rb ./msf3/lib/msf/core/handler/reverse_https.rb Thanks, Ty On , HD Moore <hdm () metasploit com> wrote:On 5/24/2010 7:28 PM, Ty Miller wrote:./msf3/modules/payloads/stagers/windows/reverse_mypayload.rb./msf3/lib/msf/core/handler/reverse_mypayload.rbDo I need to do anything else to get it to appear in msfconsole when Isearch for mypayload?In the payload stager module, you need to set a unique alias for your stager. Otherwise it will use its parent class's alias (reverse_tcp) and conflicts with the existing stager. This looks like: def self.handler_type_alias "reverse_awesome_tcp" end -HD _______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- Adding new payloads Ty Miller (May 24)
- Re: Adding new payloads Civ (May 24)
- Re: Adding new payloads HD Moore (May 24)
- Re: Adding new payloads tyronmiller (May 25)
- Re: Adding new payloads Ty Miller (May 26)
- Re: Adding new payloads Ty Miller (May 26)
- Re: Adding new payloads Ty Miller (May 27)
- Re: Adding new payloads tyronmiller (May 25)