ronin-payloads 0.1.0.beta1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +16 -1
- data/.rubocop.yml +37 -0
- data/.yardopts +1 -1
- data/ChangeLog.md +13 -1
- data/Gemfile +5 -2
- data/README.md +4 -3
- data/Rakefile +3 -1
- data/bin/ronin-payloads +7 -8
- data/examples/bin_sh.rb +4 -0
- data/gemspec.yml +8 -7
- data/lib/ronin/payloads/asm_payload.rb +2 -2
- data/lib/ronin/payloads/binary_payload.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/awk/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/bash/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/lua/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/node/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/openssl/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/perl/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/php/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/powershell/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/python/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/cmd/ruby/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/java/reverse_shell.rb +1 -1
- data/lib/ronin/payloads/builtin/php/cmd_exec.rb +5 -4
- data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/bind_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/freebsd/x86/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/freebsd/x86_64/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/arm/bind_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/arm/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/arm/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/mips/bind_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/mips/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/mips/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/ppc/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/ppc/reverse_shell.rb +3 -3
- data/lib/ronin/payloads/builtin/shellcode/linux/x86/bind_shell.rb +3 -3
- data/lib/ronin/payloads/builtin/shellcode/linux/x86/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/x86/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/bind_shell.rb +3 -3
- data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/linux/x86_64/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/macos/x86_64/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/macos/x86_64/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/netbsd/x86/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/netbsd/x86/reverse_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/openbsd/x86/bind_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/openbsd/x86/exec_shell.rb +2 -2
- data/lib/ronin/payloads/builtin/shellcode/windows/x86_64/cmd.rb +3 -3
- data/lib/ronin/payloads/builtin/test/open_redirect.rb +4 -4
- data/lib/ronin/payloads/builtin/test/xss.rb +4 -4
- data/lib/ronin/payloads/c_payload.rb +2 -2
- data/lib/ronin/payloads/cli/command.rb +1 -1
- data/lib/ronin/payloads/cli/commands/build.rb +11 -13
- data/lib/ronin/payloads/cli/commands/encode.rb +17 -21
- data/lib/ronin/payloads/cli/commands/encoder.rb +1 -1
- data/lib/ronin/payloads/cli/commands/encoders.rb +2 -2
- data/lib/ronin/payloads/cli/commands/irb.rb +1 -1
- data/lib/ronin/payloads/cli/commands/launch.rb +3 -3
- data/lib/ronin/payloads/cli/commands/list.rb +1 -1
- data/lib/ronin/payloads/cli/commands/new.rb +4 -4
- data/lib/ronin/payloads/cli/commands/show.rb +3 -2
- data/lib/ronin/payloads/cli/encoder_methods.rb +2 -1
- data/lib/ronin/payloads/cli/format_option.rb +1 -1
- data/lib/ronin/payloads/cli/generator/payload_types.rb +4 -3
- data/lib/ronin/payloads/cli/payload_command.rb +1 -1
- data/lib/ronin/payloads/cli/payload_methods.rb +1 -1
- data/lib/ronin/payloads/cli/printing.rb +1 -1
- data/lib/ronin/payloads/cli/ruby_shell.rb +1 -1
- data/lib/ronin/payloads/cli.rb +6 -1
- data/lib/ronin/payloads/coldfusion_payload.rb +1 -1
- data/lib/ronin/payloads/command_payload.rb +1 -1
- data/lib/ronin/payloads/encoders/builtin/html/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/builtin/js/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/builtin/powershell/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/builtin/shell/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/builtin/sql/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/builtin/xml/encode.rb +2 -1
- data/lib/ronin/payloads/encoders/encoder.rb +3 -2
- data/lib/ronin/payloads/encoders/exceptions.rb +2 -1
- data/lib/ronin/payloads/encoders/html_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders/javascript_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders/pipeline.rb +3 -2
- data/lib/ronin/payloads/encoders/powershell_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders/registry.rb +5 -1
- data/lib/ronin/payloads/encoders/shell_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders/sql_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders/xml_encoder.rb +2 -1
- data/lib/ronin/payloads/encoders.rb +1 -1
- data/lib/ronin/payloads/exceptions.rb +2 -1
- data/lib/ronin/payloads/go_payload.rb +2 -2
- data/lib/ronin/payloads/html_payload.rb +1 -1
- data/lib/ronin/payloads/java_payload.rb +2 -2
- data/lib/ronin/payloads/javascript_payload.rb +1 -1
- data/lib/ronin/payloads/jsp_payload.rb +1 -1
- data/lib/ronin/payloads/metadata/arch.rb +2 -1
- data/lib/ronin/payloads/metadata/os.rb +2 -1
- data/lib/ronin/payloads/mixins/binary.rb +1 -1
- data/lib/ronin/payloads/mixins/bind_shell.rb +3 -3
- data/lib/ronin/payloads/mixins/build_dir.rb +1 -1
- data/lib/ronin/payloads/mixins/erb.rb +1 -1
- data/lib/ronin/payloads/mixins/network.rb +1 -1
- data/lib/ronin/payloads/mixins/post_ex.rb +1 -2
- data/lib/ronin/payloads/mixins/resolve_host.rb +1 -1
- data/lib/ronin/payloads/mixins/reverse_shell.rb +1 -2
- data/lib/ronin/payloads/mixins/tempfile.rb +1 -1
- data/lib/ronin/payloads/mixins/typescript.rb +2 -3
- data/lib/ronin/payloads/node_js_payload.rb +1 -1
- data/lib/ronin/payloads/payload.rb +8 -8
- data/lib/ronin/payloads/php_payload.rb +1 -1
- data/lib/ronin/payloads/powershell_payload.rb +1 -1
- data/lib/ronin/payloads/python_payload.rb +1 -1
- data/lib/ronin/payloads/registry.rb +4 -1
- data/lib/ronin/payloads/root.rb +1 -1
- data/lib/ronin/payloads/ruby_payload.rb +1 -1
- data/lib/ronin/payloads/rust_payload.rb +2 -2
- data/lib/ronin/payloads/shell_payload.rb +1 -1
- data/lib/ronin/payloads/shellcode/bind_shell_payload.rb +1 -1
- data/lib/ronin/payloads/shellcode/exec_shell_payload.rb +1 -1
- data/lib/ronin/payloads/shellcode/reverse_shell_payload.rb +1 -1
- data/lib/ronin/payloads/shellcode_payload.rb +9 -9
- data/lib/ronin/payloads/sql_payload.rb +1 -1
- data/lib/ronin/payloads/url_payload.rb +3 -3
- data/lib/ronin/payloads/version.rb +2 -2
- data/lib/ronin/payloads/xml_payload.rb +1 -1
- data/lib/ronin/payloads.rb +2 -1
- data/man/ronin-payloads-build.1 +1 -1
- data/man/ronin-payloads-build.1.md +1 -1
- data/man/ronin-payloads-encode.1 +1 -1
- data/man/ronin-payloads-encode.1.md +1 -1
- data/man/ronin-payloads-encoder.1 +1 -1
- data/man/ronin-payloads-encoder.1.md +1 -1
- data/man/ronin-payloads-encoders.1 +1 -1
- data/man/ronin-payloads-encoders.1.md +1 -1
- data/man/ronin-payloads-irb.1 +1 -1
- data/man/ronin-payloads-irb.1.md +1 -1
- data/man/ronin-payloads-launch.1 +1 -1
- data/man/ronin-payloads-launch.1.md +1 -1
- data/man/ronin-payloads-list.1 +1 -1
- data/man/ronin-payloads-list.1.md +1 -1
- data/man/ronin-payloads.1 +1 -1
- data/man/ronin-payloads.1.md +1 -1
- data/ronin-payloads.gemspec +5 -5
- metadata +17 -215
- data/spec/asm_payload_spec.rb +0 -114
- data/spec/binary_payload_spec.rb +0 -8
- data/spec/builtin/cmd/awk/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/bash/reverse_shell_spec.rb +0 -36
- data/spec/builtin/cmd/lua/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/node/reverse_shell_spec.rb +0 -36
- data/spec/builtin/cmd/openssl/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/perl/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/php/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/powershell/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/python/reverse_shell_spec.rb +0 -38
- data/spec/builtin/cmd/ruby/reverse_shell_spec.rb +0 -38
- data/spec/builtin/java/reverse_shell_spec.rb +0 -103
- data/spec/builtin/php/cmd_exec.rb +0 -52
- data/spec/builtin/shellcode/freebsd/x86/bind_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/freebsd/x86/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/freebsd/x86/reverse_shell_spec.rb +0 -63
- data/spec/builtin/shellcode/freebsd/x86_64/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/arm/bind_shell_spec.rb +0 -62
- data/spec/builtin/shellcode/linux/arm/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/arm/reverse_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/linux/mips/bind_shell_spec.rb +0 -60
- data/spec/builtin/shellcode/linux/mips/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/mips/reverse_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/linux/ppc/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/ppc/reverse_shell_spec.rb +0 -87
- data/spec/builtin/shellcode/linux/x86/bind_shell_spec.rb +0 -60
- data/spec/builtin/shellcode/linux/x86/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/x86/reverse_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/linux/x86_64/bind_shell_spec.rb +0 -60
- data/spec/builtin/shellcode/linux/x86_64/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/linux/x86_64/reverse_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/macos/x86_64/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/macos/x86_64/reverse_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/netbsd/x86/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/netbsd/x86/reverse_shell_spec.rb +0 -63
- data/spec/builtin/shellcode/openbsd/x86/bind_shell_spec.rb +0 -58
- data/spec/builtin/shellcode/openbsd/x86/exec_shell_spec.rb +0 -46
- data/spec/builtin/shellcode/windows/x86_64/cmd_spec.rb +0 -54
- data/spec/builtin/test/open_redirect_spec.rb +0 -24
- data/spec/builtin/test/xss_spec.rb +0 -24
- data/spec/c_payload_spec.rb +0 -139
- data/spec/cli/commands/show_spec.rb +0 -21
- data/spec/cli/encoder_methods_spec.rb +0 -275
- data/spec/cli/format_option_spec.rb +0 -187
- data/spec/cli/payload_command_spec.rb +0 -68
- data/spec/cli/payload_methods_spec.rb +0 -208
- data/spec/cli/printing_spec.rb +0 -65
- data/spec/cli/ruby_shell_spec.rb +0 -14
- data/spec/coldfusion_payload_spec.rb +0 -8
- data/spec/command_payload_spec.rb +0 -8
- data/spec/encoders/builtin/html/encode_spec.rb +0 -17
- data/spec/encoders/builtin/js/encode_spec.rb +0 -17
- data/spec/encoders/builtin/powershell/encode_spec.rb +0 -17
- data/spec/encoders/builtin/shell/encode_spec.rb +0 -17
- data/spec/encoders/builtin/sql/encode_spec.rb +0 -17
- data/spec/encoders/builtin/xml/encode_spec.rb +0 -17
- data/spec/encoders/encoder_spec.rb +0 -62
- data/spec/encoders/html_encoder_spec.rb +0 -8
- data/spec/encoders/javascript_encoder_spec.rb +0 -8
- data/spec/encoders/pipeline_spec.rb +0 -153
- data/spec/encoders/powershell_encoder_spec.rb +0 -8
- data/spec/encoders/shell_encoder_spec.rb +0 -8
- data/spec/encoders/sql_encoder_spec.rb +0 -8
- data/spec/encoders/xml_encoder_spec.rb +0 -8
- data/spec/encoders_spec.rb +0 -25
- data/spec/go_payload_spec.rb +0 -56
- data/spec/helpers/encoders.rb +0 -9
- data/spec/helpers/payloads.rb +0 -9
- data/spec/helpers/scripts/payloads/simple.rb +0 -22
- data/spec/html_payload_spec.rb +0 -12
- data/spec/java_payload_spec.rb +0 -97
- data/spec/javascript_payload_spec.rb +0 -12
- data/spec/jsp_payload_spec.rb +0 -8
- data/spec/metadata/arch_spec.rb +0 -82
- data/spec/metadata/os_spec.rb +0 -164
- data/spec/mixins/binary_spec.rb +0 -129
- data/spec/mixins/bind_shell_spec.rb +0 -73
- data/spec/mixins/build_dir.rb +0 -64
- data/spec/mixins/erb_spec.rb +0 -19
- data/spec/mixins/network_spec.rb +0 -75
- data/spec/mixins/post_ex_spec.rb +0 -40
- data/spec/mixins/resolve_host_spec.rb +0 -322
- data/spec/mixins/reverse_shell_spec.rb +0 -103
- data/spec/mixins/tempfile_spec.rb +0 -97
- data/spec/mixins/typescript_spec.rb +0 -92
- data/spec/node_js_payload_spec.rb +0 -8
- data/spec/payload_spec.rb +0 -288
- data/spec/payloads_spec.rb +0 -29
- data/spec/php_payload_spec.rb +0 -8
- data/spec/powershell_payload_spec.rb +0 -16
- data/spec/python_payload_spec.rb +0 -8
- data/spec/ruby_payload_spec.rb +0 -8
- data/spec/rust_payload_spec.rb +0 -116
- data/spec/shell_payload_spec.rb +0 -16
- data/spec/shellcode/bind_shell_payload_spec.rb +0 -42
- data/spec/shellcode/exec_shell_payload_spec.rb +0 -8
- data/spec/shellcode/reverse_shell_payload_spec.rb +0 -136
- data/spec/shellcode_payload_spec.rb +0 -38
- data/spec/spec_helper.rb +0 -7
- data/spec/sql_payload_spec.rb +0 -12
- data/spec/url_payload_spec.rb +0 -72
- data/spec/xml_payload_spec.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fddb2f659bbde5b22104a0199430583326dd28ff4183121da3e25e88a94fe8a
|
4
|
+
data.tar.gz: 5e2f20bca62fcd8d43f4bc82eb33c1098cac1e20269d49b847e793dcd186a978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d75e548fc4782f995dbba42e62f4a1a485d3fc2fbdf005c479fe6beda75b2006d9f8132fe98125586d5b4877604c251ad1fe284ea13dccb04476b4edecfc4e4
|
7
|
+
data.tar.gz: 36384af31fb5ba8e407c1b7ebe5777974b966a005c42ebe57a499fea46e450b82987ce3e117c07def7c515fe7f099caa1e760db1ca06ca077ccd2590a3cef8df
|
data/.github/workflows/ruby.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
- '3.0'
|
13
13
|
- '3.1'
|
14
14
|
- '3.2'
|
15
|
-
|
15
|
+
- jruby
|
16
16
|
- truffleruby
|
17
17
|
name: Ruby ${{ matrix.ruby }}
|
18
18
|
steps:
|
@@ -21,6 +21,7 @@ jobs:
|
|
21
21
|
uses: ruby/setup-ruby@v1
|
22
22
|
with:
|
23
23
|
ruby-version: ${{ matrix.ruby }}
|
24
|
+
bundler-cache: true
|
24
25
|
- name: Install dependencies
|
25
26
|
run: |
|
26
27
|
sudo apt update -y && \
|
@@ -29,3 +30,17 @@ jobs:
|
|
29
30
|
run: bundle install --jobs 4 --retry 3
|
30
31
|
- name: Run tests
|
31
32
|
run: bundle exec rake test
|
33
|
+
|
34
|
+
# rubocop linting
|
35
|
+
rubocop:
|
36
|
+
runs-on: ubuntu-latest
|
37
|
+
steps:
|
38
|
+
- uses: actions/checkout@v2
|
39
|
+
- name: Set up Ruby
|
40
|
+
uses: ruby/setup-ruby@v1
|
41
|
+
with:
|
42
|
+
ruby-version: 3.0
|
43
|
+
- name: Install dependencies
|
44
|
+
run: bundle install --jobs 4 --retry 3
|
45
|
+
- name: Run rubocop
|
46
|
+
run: bundle exec rubocop --parallel
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
SuggestExtensions: false
|
4
|
+
TargetRubyVersion: 3.1
|
5
|
+
|
6
|
+
inherit_gem:
|
7
|
+
rubocop-ronin: rubocop.yml
|
8
|
+
|
9
|
+
#
|
10
|
+
# ronin-payload specific exceptions:
|
11
|
+
#
|
12
|
+
Layout/ArgumentAlignment: { Exclude: ['spec/rust_payload_spec.rb'] }
|
13
|
+
|
14
|
+
# the placeholder API methods are meant to be empty
|
15
|
+
Style/EmptyMethod:
|
16
|
+
Exclude:
|
17
|
+
- 'lib/ronin/payloads/payload.rb'
|
18
|
+
- 'spec/**/*'
|
19
|
+
|
20
|
+
# rubocop does not support constants that contain multiple numbers
|
21
|
+
Naming/ClassAndModuleCamelCase:
|
22
|
+
AllowedNames:
|
23
|
+
- X86_64
|
24
|
+
|
25
|
+
# robucop mistakes :x86_64 for a "symbol number"
|
26
|
+
Naming/VariableNumber:
|
27
|
+
AllowedIdentifiers:
|
28
|
+
- x86_64
|
29
|
+
|
30
|
+
# this is a bug in rubocop
|
31
|
+
Style/FormatStringToken:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/ronin/payloads/builtin/cmd/powershell/reverse_shell.rb'
|
34
|
+
- 'spec/builtin/cmd/powershell/reverse_shell_spec.rb'
|
35
|
+
|
36
|
+
# rubocop does not recognize empty-line continuations
|
37
|
+
Layout/LineContinuationSpacing: { Exclude: ['lib/ronin/payloads/builtin/shellcode/**/*.rb'] }
|
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--markup markdown --title '
|
1
|
+
--markup markdown --title 'Ronin::Payloads Documentation' --protected
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,16 @@
|
|
1
|
-
### 0.1.
|
1
|
+
### 0.1.1 / 2023-03-01
|
2
|
+
|
3
|
+
* Default the `host` param defined by {Ronin::Payloads::Mixins::BindShell} to
|
4
|
+
`0.0.0.0`.
|
5
|
+
|
6
|
+
#### CLI
|
7
|
+
|
8
|
+
* Fixed multiple bugs in the `--param` option of the `ronin-payloads encode`
|
9
|
+
comand.
|
10
|
+
* Fixed multiple bugs in the `--encoder-param` option of
|
11
|
+
the `ronin-payloads build` command.
|
12
|
+
|
13
|
+
### 0.1.0 / 2023-02-01
|
2
14
|
|
3
15
|
* Initial release:
|
4
16
|
* Require `ruby` >= 3.0.0.
|
data/Gemfile
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
source 'https://rubygems.org'
|
2
3
|
|
3
4
|
gemspec
|
@@ -41,6 +42,8 @@ group :development do
|
|
41
42
|
gem 'yard-spellcheck', require: false
|
42
43
|
|
43
44
|
gem 'dead_end', require: false
|
44
|
-
gem 'sord', require: false
|
45
|
-
gem 'stackprof', require: false
|
45
|
+
gem 'sord', require: false, platform: :mri
|
46
|
+
gem 'stackprof', require: false, platform: :mri
|
47
|
+
gem 'rubocop', require: false, platform: :mri
|
48
|
+
gem 'rubocop-ronin', require: false, platform: :mri
|
46
49
|
end
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![CI](https://github.com/ronin-rb/ronin-payloads/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-payloads/actions/workflows/ruby.yml)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-payloads.svg)](https://codeclimate.com/github/ronin-rb/ronin-payloads)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/ronin-payloads.svg)](https://badge.fury.io/rb/ronin-payloads)
|
5
6
|
|
6
7
|
* [Website](https://ronin-rb.dev/)
|
7
8
|
* [Source](https://github.com/ronin-rb/ronin-payloads)
|
@@ -186,7 +187,7 @@ $ ronin-payloads build -f FILE NAME
|
|
186
187
|
Generate a boilerplate payload file, with some custom information:
|
187
188
|
|
188
189
|
```shell
|
189
|
-
$ ronin-
|
190
|
+
$ ronin-payloads new example_payload.rb \
|
190
191
|
--name Example --arch i686 --os Linux \
|
191
192
|
--authors Postmodern --description "This is an example."
|
192
193
|
```
|
@@ -197,7 +198,7 @@ Generate a ronin repository of your own payloads (or exploits):
|
|
197
198
|
$ ronin-repos new my-payloads
|
198
199
|
$ cd my-payloads/
|
199
200
|
$ mkdir payloads
|
200
|
-
$ ronin-
|
201
|
+
$ ronin-payloads new payloads/my_payload.rb \
|
201
202
|
--name MyPayload --arch i686 --os Linux \
|
202
203
|
--authors You --description "This is my payload."
|
203
204
|
$ vim payloads/my_payload.rb
|
@@ -358,7 +359,7 @@ malicious software (malware) or malicious in nature.
|
|
358
359
|
|
359
360
|
## License
|
360
361
|
|
361
|
-
Copyright (c) 2007-
|
362
|
+
Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
362
363
|
|
363
364
|
ronin-payloads is free software: you can redistribute it and/or modify
|
364
365
|
it under the terms of the GNU Lesser General Public License as published
|
data/Rakefile
CHANGED
data/bin/ronin-payloads
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
#
|
3
4
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
5
|
# payloads.
|
5
6
|
#
|
6
|
-
# Copyright (c) 2007-
|
7
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
8
|
#
|
8
9
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
10
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -22,13 +23,11 @@
|
|
22
23
|
root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
|
23
24
|
if File.file?(File.join(root,'Gemfile.lock'))
|
24
25
|
Dir.chdir(root) do
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
exit -1
|
31
|
-
end
|
26
|
+
require 'bundler/setup'
|
27
|
+
rescue LoadError => e
|
28
|
+
warn e.message
|
29
|
+
warn "Run `gem install bundler` to install Bundler"
|
30
|
+
exit(-1)
|
32
31
|
end
|
33
32
|
end
|
34
33
|
|
data/examples/bin_sh.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
#!/usr/bin/env -S ronin-payloads build -f
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'ronin/payloads/shellcode_payload'
|
4
5
|
|
5
6
|
module Ronin
|
6
7
|
module Payloads
|
8
|
+
#
|
9
|
+
# An example `execve()` `/bin/sh` shellcode payload.
|
10
|
+
#
|
7
11
|
class BinSh < ShellcodePayload
|
8
12
|
|
9
13
|
register 'examples/bin_sh'
|
data/gemspec.yml
CHANGED
@@ -13,10 +13,11 @@ homepage: https://ronin-rb.dev/
|
|
13
13
|
has_yard: true
|
14
14
|
|
15
15
|
metadata:
|
16
|
-
documentation_uri: https://
|
16
|
+
documentation_uri: https://ronin-rb.dev/docs/ronin-payloads
|
17
17
|
source_code_uri: https://github.com/ronin-rb/ronin-payloads
|
18
18
|
bug_tracker_uri: https://github.com/ronin-rb/ronin-payloads/issues
|
19
|
-
changelog_uri: https://github.com/ronin-rb/ronin-payloads/blob/
|
19
|
+
changelog_uri: https://github.com/ronin-rb/ronin-payloads/blob/main/ChangeLog.md
|
20
|
+
rubygems_mfa_required: 'true'
|
20
21
|
|
21
22
|
generated_files:
|
22
23
|
- man/ronin-payloads.1
|
@@ -33,11 +34,11 @@ required_ruby_version: ">= 3.0.0"
|
|
33
34
|
|
34
35
|
dependencies:
|
35
36
|
# Ronin dependencies:
|
36
|
-
ronin-support: ~> 1.0
|
37
|
-
ronin-code-asm: ~> 1.0
|
38
|
-
ronin-post_ex: ~> 0.1
|
39
|
-
ronin-core: ~> 0.1
|
40
|
-
ronin-repos: ~> 0.1
|
37
|
+
ronin-support: ~> 1.0
|
38
|
+
ronin-code-asm: ~> 1.0
|
39
|
+
ronin-post_ex: ~> 0.1
|
40
|
+
ronin-core: ~> 0.1
|
41
|
+
ronin-repos: ~> 0.1
|
41
42
|
|
42
43
|
development_dependencies:
|
43
44
|
bundler: ~> 2.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -61,7 +61,7 @@ module Ronin
|
|
61
61
|
end
|
62
62
|
|
63
63
|
param :assembler, required: true,
|
64
|
-
default: ->{ assembler },
|
64
|
+
default: -> { assembler },
|
65
65
|
desc: 'The assmebler command to use'
|
66
66
|
|
67
67
|
#
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -1,8 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
#
|
2
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
3
4
|
# payloads.
|
4
5
|
#
|
5
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
7
|
#
|
7
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
8
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -32,9 +33,9 @@ module Ronin
|
|
32
33
|
|
33
34
|
summary 'PHP command exec payload'
|
34
35
|
description <<~DESC
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
A basic injectable PHP payload which executes a command passed in via a
|
37
|
+
URL query parameter. The output of the commend will be returned in the
|
38
|
+
response body wrapped in `<exec>...</exec>` tags.
|
38
39
|
DESC
|
39
40
|
|
40
41
|
param :query_param, String, default: 'cmd',
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'FreeBSD x86 bind shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
FreeBSD x86 shellcode that binds a shell to a port.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'FreeBSD x86 execve() shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
FreeBSD x86 shellcode that calls execve() with "/bin/sh".
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'FreeBSD x86 reverse shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
FreeBSD x86 shellcode that spawns a connect back reverse shell.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'FreeBSD x86-64 execve() shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
FreeBSD x86-64 shellcode that calls execve() with "/bin/sh".
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux ARM bind shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux ARM shellcode that binds a shell to a port.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -41,7 +41,7 @@ module Ronin
|
|
41
41
|
|
42
42
|
summary 'Linux ARM execve() shellcode'
|
43
43
|
description <<~DESC
|
44
|
-
|
44
|
+
Linux ARM shellcode that calls execve() with "/bin/sh".
|
45
45
|
DESC
|
46
46
|
|
47
47
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux ARM reverse shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux ARM shellcode that spawns a connect back reverse shell.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux ARM bind shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux ARM shellcode that binds a shell to a port.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux MIPS execve() shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux MIPS shellcode that calls execve() with "/bin/sh".
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux MIPS reverse shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux MIPS shellcode that spawns a connect back reverse shell.
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,7 +40,7 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux PPC execve() shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux PPC shellcode that calls execve() with "/bin/sh".
|
44
44
|
DESC
|
45
45
|
|
46
46
|
references [
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# ronin-payloads - A Ruby micro-framework for writing and running exploit
|
4
4
|
# payloads.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2007-
|
6
|
+
# Copyright (c) 2007-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
7
|
#
|
8
8
|
# ronin-payloads is free software: you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -40,9 +40,9 @@ module Ronin
|
|
40
40
|
|
41
41
|
summary 'Linux PPC reverse shell shellcode'
|
42
42
|
description <<~DESC
|
43
|
-
|
43
|
+
Linux PPC shellcode that spawns a connect back reverse shell.
|
44
44
|
|
45
|
-
|
45
|
+
Note: disabling with_stderr will save 16 bytes, but lose stderr.
|
46
46
|
DESC
|
47
47
|
|
48
48
|
references [
|