github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

postmodern / ronin

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 42
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (12)
  • Wiki (2)
  • Graphs
  • Tag: 0.3.0

click here to add a description

click here to add a homepage

  • Branches (2)
    • master
    • trunk@457
  • Tags (12)
    • 0.3.0
    • 0.2.4
    • 0.2.3
    • 0.2.2
    • 0.2.1
    • 0.2.0
    • 0.1.4
    • 0.1.3
    • 0.1.2
    • 0.1.1
    • 0.1.0
    • 0.0.9
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ronin is a Ruby platform for exploit development and security research. Ronin allows for the rapid development and distribution of code, exploits or payloads over many common Source-Code-Management (SCM) systems. — Read more

  cancel

http://ronin.rubyforge.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated the wording in the Features section. 
postmodern (author)
Fri Sep 25 13:48:58 -0700 2009
commit  6d92da999a5bb65cb089eb16434fd511e6de3508
tree    5280e83d70f541efe4daa75f8e1d739be2d2c173
parent  64eb41073dc253e043bc18a54a6f5b8e427cf370
ronin / lib / ronin / ui / command_line / commands / install.rb lib/ronin/ui/command_line/commands/install.rb
100644 70 lines (62 sloc) 2.309 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Ronin - A Ruby platform for exploit development and security research.
#
# Copyright (c) 2006-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
 
require 'ronin/ui/command_line/command'
require 'ronin/platform/overlay'
 
module Ronin
  module UI
    module CommandLine
      module Commands
        class Install < Command
 
          desc "install URI", "Installs the Overlay located at the specified URI"
          method_option :cache, :type => :string, :aliases => '-C'
          method_option :media, :type => :string, :aliases => '-m'
          method_option :rsync, :type => :boolean
          method_option :svn, :type => :boolean
          method_option :hg, :type => :boolean
          method_option :git, :type => :boolean
 
          def default(uri)
            if options[:cache]
              Platform.load_overlays(options[:cache])
            end
 
            media = if options[:media]
                      options[:media].to_sym
                    elsif options.rsync?
                      :rsync
                    elsif options.svn?
                      :svn
                    elsif options.hg?
                      :hg
                    elsif options.git?
                      :git
                    end
 
            begin
              Platform.install(:uri => uri, :media => media) do |overlay|
                print_info "Overlay #{overlay.name.dump} has been installed."
              end
            rescue Platform::OverlayCached => e
              print_error e.message
              exit -1
            end
          end
 
        end
      end
    end
  end
end
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server