Sha256: cf7dccd5084345b5386962c80e4dc7535c928b7d5529aa921dc279de82b4d50b
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
#!/usr/bin/env -S ronin-payloads build -f require 'ronin/payloads/<%= @payload_type[:file] -%>' module Ronin module Payloads class <%= @class_name -%> < <%= @payload_type[:class] %> register '<%= @file_name -%>' <%- if @author_email -%> author '<%= @author_name %>', email: '<%= @author_email -%>' <%- else -%> author '<%= @author_name %>' <%- end -%> <%- if @summary -%> summary "<%= @summary %>" <%- else -%> # summary "FIX ME" <%- end -%> <%- if @description -%> description <<~DESC <%= @description %> DESC <%- else -%> # description <<~DESC # FIX ME # DESC <%- end -%> <%- unless @references.empty? -%> references [ <%- @references.each_with_index do |url,index| -%> <%= url.inspect -%><% if index < @references.length-1 %>,<% end %> <%- end -%> ] <%- else -%> # references [ # "https:/...", # "https:/..." # ] <%- end -%> def build # @payload = ... end # Optional prelaunch hook: # # def prelaunch # end # # Optional postlaunch hook: # # def postlaunch # end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ronin-payloads-0.1.1 | data/templates/payload.rb.erb |
ronin-payloads-0.1.0 | data/templates/payload.rb.erb |
ronin-payloads-0.1.0.beta1 | data/templates/payload.rb.erb |