Sha256: 0ff311a966c912e836231bba85a180a112e70679ca991423c60fec8c659fb2d0
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
# frozen_string_literal: true # # ronin-code-asm - A Ruby DSL for crafting Assembly programs and shellcode. # # Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com) # # ronin-code-asm is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ronin-code-asm is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with ronin-code-asm. If not, see <https://www.gnu.org/licenses/>. # require 'ronin/code/asm/program' require 'ronin/code/asm/shellcode' require 'ronin/code/asm/version' module Ronin module Code module ASM # # Creates a new Assembly Program. # # @param [Hash{Symbol => Object}] kwargs # Additional keyword arguments for {Program#initialize}. # # @option kwargs [String, Symbol] :arch (:x86) # The architecture of the Program. # # @option kwargs [Hash{Symbol => Object}] :variables # Variables to set in the program. # # @yield [] # The given block will be evaluated within the program. # # @return [Program] # The new Assembly Program. # # @example # ASM.new do # mov 1, eax # mov 1, ebx # mov 2, ecx # # _loop do # push ecx # imul ebx, ecx # pop ebx # # inc eax # cmp ebx, 10 # jl :_loop # end # end # def ASM.new(**kwargs,&block) Program.new(**kwargs,&block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-code-asm-1.0.0.beta1 | lib/ronin/code/asm.rb |