Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Metasploit (5)-- Msfencode command

Shulou Source: shulou.com Published: 2022-06-01 00:44:03 10月04日 Update

When you say msfpayload, you naturally go to msfencode. No matter what else, many commands that generate backdoors use these two commands.

Root@bt:/opt/metasploit/msf3# msfencode-h Usage: / opt/metasploit/msf3/msfencode OPTIONS:-a The architecture to encode as / / specify the type of CPU-b The list of characters to avoid:'\ X00\ xff' / / remove some empty codes or error codes. For example,-b\ X00\ xff-c The number of times to encode the data / / Encoding times-d Specify the directory in which to look for EXE templates / / specify the path of the exe template-e The encoder to use / / choose which encoder to use-h Help banner-i Encode the contents of the supplied file path / / attach payload to an executable file. If you have already generated a payload, you can use the-I parameter to port your payload to a normal program. For example: the command msfencode-I shell.exe-x qq.exe means that I add a backdoor called shell.exe to a software called qq.exe-k Keep template working; run payload in new thread (use with-x) / / if you use the-x and-k parameters. When your payload runs, it will separate from the original master file and create a separate process And run-l List available encoders / / list all available encoders-m Specifies an additional module search path / / specify the path of an add-in-n Dump encoder information / / output encoder information-o The output file / / output file-p The platform to encode for / / specify encoding platform-s The maximum size of the encoded data / / specify the maximum number of bytes after encoding-t The output format: raw Format of ruby,rb,perl,pl,bash,sh,c,js_be,js_le,java,dll,exe,exe-small,elf,macho,vba,vba-exe,vbs,loop-vbs,asp,aspx,war / / output file-v Increase verbosity / / adds verbosity to the code Used in kill-free x Specify an alternate executable template / / to specify an alternate executable template

Tags: Encoding file code encoder output command parameter backdoor path generate run attach verbose original maximum information bytes that is platform Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information MySQL macOS Redmi