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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5418c2bbcedac835a5c13320f10c2cb12b46b40
4
- data.tar.gz: 7e801e49efb602fb06146c9a7e7ad4d264f1f1aa
3
+ metadata.gz: 864a5620771651a05b24bcbe4e17431fe5ca4b2e
4
+ data.tar.gz: bd05c0716f1a23339ccc50cc2580c75d5f85f7af
5
5
  SHA512:
6
- metadata.gz: 921b68312f602cba8358becda4ec46af279ed8948127e07bb0bcdaaf4915e3431b6fb5cc3e2b27bf2a28651b0305aa39887228f8040beff0ca2b654b55b606ad
7
- data.tar.gz: 56ff213c412b41c1a5ddedf3a5fd567d194c9b04d26738bf2b2b071af986919f36980dce6a4863203ccdbb07de3c452b8ac7508801f444523ac1a3817ffd7efe
6
+ metadata.gz: 01eaf62e14236b5c5ce1b1f294fb82e7819809dd01644b9d7af0b539b44a2506a40241209d72d5fc26f1b4b31dde0555e99a409be0c3fc1370bef24cec327cea
7
+ data.tar.gz: f6d5b6da0f250e210ee9bdd9684d6a993d9502afbb63a9864aeada249bb73ed8f1376d8940c35524b9edb37204283bfba7370153259758b3def33c7fb54bd59d
Binary file
data.tar.gz.sig CHANGED
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 > 264
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" * (264 - cmd_line.length)
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 :uri
53
- 'u'
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('DEFAULT_OPTS' + ' ' * 252, params)
73
+ bin.sub(CMDLINE_SIG + ' ' * (CMDLINE_MAX - CMDLINE_SIG.length), params)
68
74
  else
69
75
  bin
70
76
  end
@@ -1,7 +1,7 @@
1
1
  # -*- coding:binary -*-
2
2
  module MetasploitPayloads
3
3
  class Mettle
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.10'
5
5
 
6
6
  def self.version
7
7
  VERSION
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.9
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-04-26 00:00:00.000000000 Z
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