O'Reilly logo

Metasploit Penetration Testing Cookbook - Second Edition by Abhinav Singh, Monika Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Msfencoding schemes with the detection ratio

One of the best ways to avoid being stopped by antivirus software is to encode our payload with msfencode. Msfencode is a useful tool that alters the code in an executable so that it looks different to antivirus software but will still run the same way.

For a list of encoder formats, we use the msfencode -l command, as shown in the following table. Notice that different encoders are used for different platforms:

Name

Rank

Description

cmd/generic_sh

Good

Generic Shell Variable Substitution Command Encoder

cmd/ifs

Low

Generic ${IFS} Substitution Command Encoder

generic/none

Normal

The "none" Encoder

mipsbe/longxor

Normal

XOR Encoder

mipsle/longxor

Normal

XOR Encoder

php/base64 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required