We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d3bff6 commit b7b7cddCopy full SHA for b7b7cdd
modules/nops/cmd/generic.rb
@@ -0,0 +1,22 @@
1
+##
2
+# This module requires Metasploit: https://metasploit.com/download
3
+# Current source: https://github.com/rapid7/metasploit-framework
4
5
+
6
+class MetasploitModule < Msf::Nop
7
+ def initialize
8
+ super(
9
+ 'Name' => 'Generic Command Nop Generator',
10
+ 'Alias' => 'cmd_generic',
11
+ 'Description' => 'Generates harmless padding for command payloads.',
12
+ 'Author' => ['hdm', 'bcoles'],
13
+ 'License' => MSF_LICENSE,
14
+ 'Arch' => ARCH_CMD)
15
+ end
16
17
+ # Generate valid commands up to the requested length
18
+ def generate_sled(length, _opts = {})
19
+ # Default to just spaces for now
20
+ ' ' * length
21
22
+end
0 commit comments