ronin-payloads 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +15 -1
  3. data/.rubocop.yml +37 -0
  4. data/ChangeLog.md +13 -1
  5. data/Gemfile +5 -2
  6. data/Rakefile +3 -1
  7. data/bin/ronin-payloads +6 -7
  8. data/examples/bin_sh.rb +4 -0
  9. data/lib/ronin/payloads/asm_payload.rb +1 -1
  10. data/lib/ronin/payloads/builtin/php/cmd_exec.rb +4 -3
  11. data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/bind_shell.rb +1 -1
  12. data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/exec_shell.rb +1 -1
  13. data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/reverse_shell.rb +1 -1
  14. data/lib/ronin/payloads/builtin/shellcode/freebsd/x86_64/exec_shell.rb +1 -1
  15. data/lib/ronin/payloads/builtin/shellcode/linux/arm/bind_shell.rb +1 -1
  16. data/lib/ronin/payloads/builtin/shellcode/linux/arm/exec_shell.rb +1 -1
  17. data/lib/ronin/payloads/builtin/shellcode/linux/arm/reverse_shell.rb +1 -1
  18. data/lib/ronin/payloads/builtin/shellcode/linux/mips/bind_shell.rb +1 -1
  19. data/lib/ronin/payloads/builtin/shellcode/linux/mips/exec_shell.rb +1 -1
  20. data/lib/ronin/payloads/builtin/shellcode/linux/mips/reverse_shell.rb +1 -1
  21. data/lib/ronin/payloads/builtin/shellcode/linux/ppc/exec_shell.rb +1 -1
  22. data/lib/ronin/payloads/builtin/shellcode/linux/ppc/reverse_shell.rb +2 -2
  23. data/lib/ronin/payloads/builtin/shellcode/linux/x86/bind_shell.rb +1 -1
  24. data/lib/ronin/payloads/builtin/shellcode/linux/x86/exec_shell.rb +1 -1
  25. data/lib/ronin/payloads/builtin/shellcode/linux/x86/reverse_shell.rb +1 -1
  26. data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/bind_shell.rb +1 -1
  27. data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/exec_shell.rb +1 -1
  28. data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/reverse_shell.rb +1 -1
  29. data/lib/ronin/payloads/builtin/shellcode/macos/x86_64/exec_shell.rb +1 -1
  30. data/lib/ronin/payloads/builtin/shellcode/macos/x86_64/reverse_shell.rb +1 -1
  31. data/lib/ronin/payloads/builtin/shellcode/netbsd/x86/exec_shell.rb +1 -1
  32. data/lib/ronin/payloads/builtin/shellcode/netbsd/x86/reverse_shell.rb +1 -1
  33. data/lib/ronin/payloads/builtin/shellcode/openbsd/x86/bind_shell.rb +1 -1
  34. data/lib/ronin/payloads/builtin/shellcode/openbsd/x86/exec_shell.rb +1 -1
  35. data/lib/ronin/payloads/builtin/shellcode/windows/x86_64/cmd.rb +2 -2
  36. data/lib/ronin/payloads/builtin/test/open_redirect.rb +3 -3
  37. data/lib/ronin/payloads/builtin/test/xss.rb +3 -3
  38. data/lib/ronin/payloads/c_payload.rb +1 -1
  39. data/lib/ronin/payloads/cli/commands/build.rb +10 -12
  40. data/lib/ronin/payloads/cli/commands/encode.rb +16 -20
  41. data/lib/ronin/payloads/cli/commands/launch.rb +2 -2
  42. data/lib/ronin/payloads/cli/commands/new.rb +1 -1
  43. data/lib/ronin/payloads/cli/commands/show.rb +1 -0
  44. data/lib/ronin/payloads/cli/encoder_methods.rb +1 -0
  45. data/lib/ronin/payloads/cli/generator/payload_types.rb +1 -0
  46. data/lib/ronin/payloads/encoders/builtin/html/encode.rb +1 -0
  47. data/lib/ronin/payloads/encoders/builtin/js/encode.rb +1 -0
  48. data/lib/ronin/payloads/encoders/builtin/powershell/encode.rb +1 -0
  49. data/lib/ronin/payloads/encoders/builtin/shell/encode.rb +1 -0
  50. data/lib/ronin/payloads/encoders/builtin/sql/encode.rb +1 -0
  51. data/lib/ronin/payloads/encoders/builtin/xml/encode.rb +1 -0
  52. data/lib/ronin/payloads/encoders/encoder.rb +2 -1
  53. data/lib/ronin/payloads/encoders/exceptions.rb +1 -0
  54. data/lib/ronin/payloads/encoders/html_encoder.rb +1 -0
  55. data/lib/ronin/payloads/encoders/javascript_encoder.rb +1 -0
  56. data/lib/ronin/payloads/encoders/pipeline.rb +1 -0
  57. data/lib/ronin/payloads/encoders/powershell_encoder.rb +1 -0
  58. data/lib/ronin/payloads/encoders/registry.rb +4 -0
  59. data/lib/ronin/payloads/encoders/shell_encoder.rb +1 -0
  60. data/lib/ronin/payloads/encoders/sql_encoder.rb +1 -0
  61. data/lib/ronin/payloads/encoders/xml_encoder.rb +1 -0
  62. data/lib/ronin/payloads/exceptions.rb +1 -0
  63. data/lib/ronin/payloads/go_payload.rb +1 -1
  64. data/lib/ronin/payloads/java_payload.rb +1 -1
  65. data/lib/ronin/payloads/metadata/arch.rb +1 -0
  66. data/lib/ronin/payloads/metadata/os.rb +1 -0
  67. data/lib/ronin/payloads/mixins/bind_shell.rb +2 -2
  68. data/lib/ronin/payloads/mixins/post_ex.rb +0 -1
  69. data/lib/ronin/payloads/mixins/reverse_shell.rb +0 -1
  70. data/lib/ronin/payloads/mixins/typescript.rb +1 -2
  71. data/lib/ronin/payloads/payload.rb +7 -7
  72. data/lib/ronin/payloads/registry.rb +3 -0
  73. data/lib/ronin/payloads/rust_payload.rb +1 -1
  74. data/lib/ronin/payloads/shellcode_payload.rb +8 -8
  75. data/lib/ronin/payloads/url_payload.rb +1 -1
  76. data/lib/ronin/payloads/version.rb +1 -1
  77. data/lib/ronin/payloads.rb +1 -0
  78. data/man/ronin-payloads-build.1 +1 -1
  79. data/man/ronin-payloads-build.1.md +1 -1
  80. data/man/ronin-payloads-encode.1 +1 -1
  81. data/man/ronin-payloads-encode.1.md +1 -1
  82. data/man/ronin-payloads-encoder.1 +1 -1
  83. data/man/ronin-payloads-encoder.1.md +1 -1
  84. data/man/ronin-payloads-encoders.1 +1 -1
  85. data/man/ronin-payloads-encoders.1.md +1 -1
  86. data/man/ronin-payloads-irb.1 +1 -1
  87. data/man/ronin-payloads-irb.1.md +1 -1
  88. data/man/ronin-payloads-launch.1 +1 -1
  89. data/man/ronin-payloads-launch.1.md +1 -1
  90. data/man/ronin-payloads-list.1 +1 -1
  91. data/man/ronin-payloads-list.1.md +1 -1
  92. data/man/ronin-payloads.1 +1 -1
  93. data/man/ronin-payloads.1.md +1 -1
  94. data/ronin-payloads.gemspec +3 -4
  95. metadata +3 -2
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # Copyright (c) 2021 Hal Brodigan (postmodern.mod3 at gmail.com)
3
4
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -45,7 +46,7 @@ module Ronin
45
46
  # def encode(data)
46
47
  # return ...
47
48
  # end
48
- #
49
+ #
49
50
  # end
50
51
  # end
51
52
  # end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -23,6 +24,9 @@ require 'ronin/repos/class_dir'
23
24
 
24
25
  module Ronin
25
26
  module Payloads
27
+ #
28
+ # Defines encoders for different types of payloads.
29
+ #
26
30
  module Encoders
27
31
  include Core::ClassRegistry
28
32
  include Repos::ClassDir
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -58,7 +58,7 @@ module Ronin
58
58
  args = ['go', 'build']
59
59
 
60
60
  if output
61
- args << '-o' << output
61
+ args << '-o' << output
62
62
  end
63
63
 
64
64
  args.concat(source_files)
@@ -52,7 +52,7 @@ module Ronin
52
52
  end
53
53
 
54
54
  param :javac, required: true,
55
- default: ->{ javac },
55
+ default: -> { javac },
56
56
  desc: 'The Java compiler to use'
57
57
 
58
58
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -40,8 +40,8 @@ module Ronin
40
40
  # @api private
41
41
  #
42
42
  def self.included(payload)
43
- payload.param :host, String, required: true,
44
- desc: 'The host to connect to'
43
+ payload.param :host, String, default: '0.0.0.0',
44
+ desc: 'The host to connect to'
45
45
 
46
46
  payload.param :port, Integer, required: true,
47
47
  desc: 'The port to listen on'
@@ -42,7 +42,6 @@ module Ronin
42
42
 
43
43
  super
44
44
  end
45
-
46
45
  end
47
46
  end
48
47
  end
@@ -102,7 +102,6 @@ module Ronin
102
102
  @server = nil
103
103
  end
104
104
  end
105
-
106
105
  end
107
106
  end
108
107
  end
@@ -28,7 +28,6 @@ module Ronin
28
28
  # A mixin for compiling TypeScript into JavaScript.
29
29
  #
30
30
  module TypeScript
31
-
32
31
  #
33
32
  # The default `tsc` compiler.
34
33
  #
@@ -46,7 +45,7 @@ module Ronin
46
45
  #
47
46
  def self.included(payload_class)
48
47
  payload_class.param :tsc, required: true,
49
- default: ->{ tsc },
48
+ default: -> { tsc },
50
49
  desc: 'The TypeScript compiler to use'
51
50
  end
52
51
 
@@ -60,21 +60,21 @@ module Ronin
60
60
  # module Ronin
61
61
  # module Payloads
62
62
  # class MyPayload < Payload
63
- #
63
+ #
64
64
  # register 'my_payload'
65
- #
65
+ #
66
66
  # summary 'My first payload'
67
67
  # description <<~EOS
68
68
  # This is my first payload.
69
69
  # Bla bla bla bla.
70
70
  # EOS
71
- #
71
+ #
72
72
  # author 'John Smith'
73
73
  # author 'John Smith', email: '...', twitter: '...'
74
- #
74
+ #
75
75
  # param :foo, desc: 'Simple param'
76
76
  # param :bar, Integer, desc: 'A param iwth a typo'
77
- #
77
+ #
78
78
  # def build
79
79
  # @payload = "..."
80
80
  # end
@@ -90,7 +90,7 @@ module Ronin
90
90
  # def cleanup
91
91
  # # ...
92
92
  # end
93
- #
93
+ #
94
94
  # end
95
95
  # end
96
96
  # end
@@ -178,7 +178,7 @@ module Ronin
178
178
  def initialize(encoders: nil, **kwargs)
179
179
  super(**kwargs)
180
180
 
181
- @encoders = Encoders::Pipeline.new()
181
+ @encoders = Encoders::Pipeline.new
182
182
 
183
183
  if encoders
184
184
  encoders.each do |encoder|
@@ -23,6 +23,9 @@ require 'ronin/core/class_registry'
23
23
  require 'ronin/repos/class_dir'
24
24
 
25
25
  module Ronin
26
+ #
27
+ # Defines various payload classes.
28
+ #
26
29
  module Payloads
27
30
  include Core::ClassRegistry
28
31
  include Repos::ClassDir
@@ -67,7 +67,7 @@ module Ronin
67
67
  args = ['rustc']
68
68
 
69
69
  if output
70
- args << '-o' << output
70
+ args << '-o' << output
71
71
  end
72
72
 
73
73
  if target
@@ -33,21 +33,21 @@ module Ronin
33
33
  #
34
34
  # #!/usr/bin/env -S ronin-payload build -f
35
35
  # require 'ronin/payloads/shellcode_payload'
36
- #
36
+ #
37
37
  # module Ronin
38
38
  # module Payloads
39
39
  # class LinuxX86BinSh < ShellcodePayload
40
- #
40
+ #
41
41
  # register 'shellcode/linux/x86/bin_sh'
42
42
  #
43
43
  # summary 'x86 Linux /bin/sh shellcode'
44
44
  # description <<~EOS
45
45
  # Shellcode that spawns a local /bin/sh shell
46
46
  # EOS
47
- #
47
+ #
48
48
  # arch :x86
49
49
  # os :linux
50
- #
50
+ #
51
51
  # def build
52
52
  # @payload = "1\xc0Ph//shh/bin\x89\xdcPS\x89\xcc1\xd2\xcd\x0b"
53
53
  # end
@@ -59,21 +59,21 @@ module Ronin
59
59
  #
60
60
  # #!/usr/bin/env -S ronin-payload build -f
61
61
  # require 'ronin/payloads/shellcode_payload'
62
- #
62
+ #
63
63
  # module Ronin
64
64
  # module Payloads
65
65
  # class LinuxX86BinSh < ShellcodePayload
66
- #
66
+ #
67
67
  # register 'shellcode/linux/x86/bin_sh'
68
68
  #
69
69
  # summary 'x86 Linux /bin/sh shellcode'
70
70
  # description <<~EOS
71
71
  # Shellcode that spawns a local /bin/sh shell
72
72
  # EOS
73
- #
73
+ #
74
74
  # arch :x86
75
75
  # os :linux
76
- #
76
+ #
77
77
  # def build
78
78
  # shellcode do
79
79
  # xor eax, eax
@@ -29,7 +29,7 @@ module Ronin
29
29
  # ## Example
30
30
  #
31
31
  # class MyHostedPayload < URLPayload
32
- #
32
+ #
33
33
  # url 'https://evil.com/downloads/my_payload'
34
34
  #
35
35
  # end
@@ -22,6 +22,6 @@
22
22
  module Ronin
23
23
  module Payloads
24
24
  # ronin-payloads version
25
- VERSION = '0.1.0'
25
+ VERSION = '0.1.1'
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #
2
3
  # ronin-payloads - A Ruby micro-framework for writing and running exploit
3
4
  # payloads.
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-build 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-build 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-build 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-build 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-encoder 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-encoder 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-encoder 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-encoder 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-encoder 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-encoder 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-encoder 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-encoder 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-encoders 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-encoders 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-encoders 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-encoders 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-irb 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-irb 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-irb 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-irb 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-launch 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-launch 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-launch 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-launch 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads-list 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads-list 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads-list 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads-list 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
data/man/ronin-payloads.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-payloads 1 "May 2022" Ronin "User Manuals"
3
+ .TH ronin-payloads 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-payloads 1 "May 2022" Ronin "User Manuals"
1
+ # ronin-payloads 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -1,5 +1,4 @@
1
- # encoding: utf-8
2
-
1
+ # frozen_string_literal: true
3
2
  require 'yaml'
4
3
 
5
4
  Gem::Specification.new do |gem|
@@ -22,7 +21,7 @@ Gem::Specification.new do |gem|
22
21
  gem.homepage = gemspec['homepage']
23
22
  gem.metadata = gemspec['metadata'] if gemspec['metadata']
24
23
 
25
- glob = lambda { |patterns| gem.files & Dir[*patterns] }
24
+ glob = ->(patterns) { gem.files & Dir[*patterns] }
26
25
 
27
26
  gem.files = `git ls-files`.split($/)
28
27
  gem.files = glob[gemspec['files']] if gemspec['files']
@@ -46,7 +45,7 @@ Gem::Specification.new do |gem|
46
45
  gem.required_rubygems_version = gemspec['required_rubygems_version']
47
46
  gem.post_install_message = gemspec['post_install_message']
48
47
 
49
- split = lambda { |string| string.split(/,\s*/) }
48
+ split = ->(string) { string.split(/,\s*/) }
50
49
 
51
50
  if gemspec['dependencies']
52
51
  gemspec['dependencies'].each do |name,versions|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-payloads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ronin-support
@@ -111,6 +111,7 @@ files:
111
111
  - ".github/workflows/ruby.yml"
112
112
  - ".gitignore"
113
113
  - ".rspec"
114
+ - ".rubocop.yml"
114
115
  - ".ruby-version"
115
116
  - ".yardopts"
116
117
  - COPYING.txt