Single-byte XOR Countdown Encoder - Metasploit
This page contains detailed information about how to use the encoder/x86/countdown metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Single-byte XOR Countdown Encoder
Module: encoder/x86/countdown
Source code: modules/encoders/x86/countdown.rb
Disclosure date: -
Last modification time: 2018-09-01 02:40:26 +0000
Supported architecture(s): x86
Supported platform(s): All
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This encoder uses the length of the payload as a position-dependent encoder key to produce a small decoder stub.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use encoder/x86/countdown
msf encoder(countdown) > show targets
... a list of targets ...
msf encoder(countdown) > set TARGET target-id
msf encoder(countdown) > show options
... show and set options ...
msf encoder(countdown) > exploit
Go back to menu.
Msfconsole Usage
Here is how the encoder/x86/countdown module looks in the msfconsole:
msf6 > use encoder/x86/countdown
msf6 encoder(x86/countdown) > show info
Name: Single-byte XOR Countdown Encoder
Module: encoder/x86/countdown
Platform: All
Arch: x86
Rank: Normal
Provided by:
vlad902 <[email protected]>
Description:
This encoder uses the length of the payload as a position-dependent
encoder key to produce a small decoder stub.
Module Options
This is a complete list of options available in the encoder/x86/countdown module:
msf6 encoder(x86/countdown) > show options
Module options (encoder/x86/countdown):
Name Current Setting Required Description
---- --------------- -------- -----------
Advanced Options
Here is a complete list of advanced options supported by the encoder/x86/countdown module:
msf6 encoder(x86/countdown) > show advanced
Module advanced options (encoder/x86/countdown):
Name Current Setting Required Description
---- --------------- -------- -----------
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
No valid set instruction could be created!
Here is a relevant code snippet related to the "No valid set instruction could be created!" error message:
44: "\xe2\xfa" # loop xor_loop
45:
46: # Initialize the state context to 1
47: state.context = 1
48: rescue RuntimeError => e
49: raise BadcharError if e.message == "No valid set instruction could be created!"
50: end
51: return decoder
52: end
53:
54: #
Go back to menu.
Related Pull Requests
- #10554 Merged Pull Request: Rescue REX runtime errors in x86 encoders
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #4393 Merged Pull Request: Missing patch for Stage Encoding
- #2525 Merged Pull Request: Change module boilerplate
- #1241 Merged Pull Request: Removed all $Id$ and $Revision$ occurences
Go back to menu.
See Also
Check also the following modules related to this module:
- encoder/x86/add_sub
- encoder/x86/alpha_mixed
- encoder/x86/alpha_upper
- encoder/x86/avoid_underscore_tolower
- encoder/x86/avoid_utf8_tolower
- encoder/x86/bloxor
- encoder/x86/bmp_polyglot
- encoder/x86/call4_dword_xor
- encoder/x86/context_cpuid
- encoder/x86/context_stat
- encoder/x86/context_time
- encoder/x86/fnstenv_mov
- encoder/x86/jmp_call_additive
- encoder/x86/nonalpha
- encoder/x86/nonupper
- encoder/x86/opt_sub
- encoder/x86/service
- encoder/x86/shikata_ga_nai
- encoder/x86/single_static_bit
- encoder/x86/unicode_mixed
- encoder/x86/unicode_upper
- encoder/x86/xor_dynamic
Authors
vlad902
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.