metasploit_payloads-mettle 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/build/aarch64-linux-musl/bin/mettle +0 -0
- data/build/aarch64-linux-musl/bin/mettle.bin +0 -0
- data/build/armv5b-linux-musleabi/bin/mettle +0 -0
- data/build/armv5b-linux-musleabi/bin/mettle.bin +0 -0
- data/build/armv5l-linux-musleabi/bin/mettle +0 -0
- data/build/armv5l-linux-musleabi/bin/mettle.bin +0 -0
- data/build/i486-linux-musl/bin/mettle +0 -0
- data/build/i486-linux-musl/bin/mettle.bin +0 -0
- data/build/mips-linux-muslsf/bin/mettle +0 -0
- data/build/mips-linux-muslsf/bin/mettle.bin +0 -0
- data/build/mips64-linux-muslsf/bin/mettle +0 -0
- data/build/mips64-linux-muslsf/bin/mettle.bin +0 -0
- data/build/mipsel-linux-muslsf/bin/mettle +0 -0
- data/build/mipsel-linux-muslsf/bin/mettle.bin +0 -0
- data/build/powerpc-linux-muslsf/bin/mettle +0 -0
- data/build/powerpc-linux-muslsf/bin/mettle.bin +0 -0
- data/build/powerpc64le-linux-musl/bin/mettle +0 -0
- data/build/powerpc64le-linux-musl/bin/mettle.bin +0 -0
- data/build/s390x-linux-musl/bin/mettle +0 -0
- data/build/s390x-linux-musl/bin/mettle.bin +0 -0
- data/build/x86_64-linux-musl/bin/mettle +0 -0
- data/build/x86_64-linux-musl/bin/mettle.bin +0 -0
- data/lib/metasploit_payloads/mettle.rb +13 -7
- data/lib/metasploit_payloads/mettle/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 864a5620771651a05b24bcbe4e17431fe5ca4b2e
|
4
|
+
data.tar.gz: bd05c0716f1a23339ccc50cc2580c75d5f85f7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01eaf62e14236b5c5ce1b1f294fb82e7819809dd01644b9d7af0b539b44a2506a40241209d72d5fc26f1b4b31dde0555e99a409be0c3fc1370bef24cec327cea
|
7
|
+
data.tar.gz: f6d5b6da0f250e210ee9bdd9684d6a993d9502afbb63a9864aeada249bb73ed8f1376d8940c35524b9edb37204283bfba7370153259758b3def33c7fb54bd59d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -10,6 +10,8 @@ end
|
|
10
10
|
module MetasploitPayloads
|
11
11
|
class Mettle
|
12
12
|
|
13
|
+
CMDLINE_MAX = 512
|
14
|
+
CMDLINE_SIG = 'DEFAULT_OPTS'.freeze
|
13
15
|
#
|
14
16
|
# Config is a hash. Valid keys are:
|
15
17
|
# :uri to connect to
|
@@ -40,23 +42,27 @@ module MetasploitPayloads
|
|
40
42
|
@config.each do |opt, val|
|
41
43
|
cmd_line << "-#{short_opt(opt)} \"#{val}\" "
|
42
44
|
end
|
43
|
-
if cmd_line.length >
|
45
|
+
if cmd_line.length > CMDLINE_MAX
|
44
46
|
fail RuntimeError, 'mettle argument list too big', caller
|
45
47
|
end
|
46
48
|
|
47
|
-
cmd_line + "\x00" * (
|
49
|
+
cmd_line + "\x00" * (CMDLINE_MAX - cmd_line.length)
|
48
50
|
end
|
49
51
|
|
50
52
|
def short_opt(opt)
|
51
53
|
case opt
|
52
|
-
when :
|
53
|
-
'
|
54
|
-
when :uuid
|
55
|
-
'U'
|
54
|
+
when :background
|
55
|
+
'b'
|
56
56
|
when :debug
|
57
57
|
'd'
|
58
58
|
when :log_file
|
59
59
|
'o'
|
60
|
+
when :uri
|
61
|
+
'u'
|
62
|
+
when :uuid
|
63
|
+
'U'
|
64
|
+
when :session_guid
|
65
|
+
'G'
|
60
66
|
else
|
61
67
|
fail RuntimeError, "unknown mettle option #{opt}", caller
|
62
68
|
end
|
@@ -64,7 +70,7 @@ module MetasploitPayloads
|
|
64
70
|
|
65
71
|
def add_args(bin, params)
|
66
72
|
if params[8] != "\x00"
|
67
|
-
bin.sub(
|
73
|
+
bin.sub(CMDLINE_SIG + ' ' * (CMDLINE_MAX - CMDLINE_SIG.length), params)
|
68
74
|
else
|
69
75
|
bin
|
70
76
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit_payloads-mettle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cammack
|
@@ -89,7 +89,7 @@ cert_chain:
|
|
89
89
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
90
90
|
8mVuTXnyJOKRJA==
|
91
91
|
-----END CERTIFICATE-----
|
92
|
-
date: 2017-
|
92
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
93
93
|
dependencies:
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|