View catted.log
$ cat test.rb | \irb
Switch to inspect mode.
true if 0...1
(irb):1: warning: integer literal in conditional range
(irb):1: warning: integer literal in conditional range
nil
true if 1..2
(irb):2: warning: integer literal in conditional range
(irb):2: warning: integer literal in conditional range
nil
View tcp_client.rs
#![allow(unused_variables)]
#![allow(unused_imports)]
use std::env;
use std::process;
use std::thread;
use std::io::{self, Read, Write, Error};
use std::net::TcpStream;
use std::net::TcpListener;
View ili9341.c
#include "ili9341.h"
volatile uint16_t LCD_W=ILI9341_TFTWIDTH;
volatile uint16_t LCD_H=ILI9341_TFTHEIGHT;
void ili9341_hard_init(void)//init hardware
{
rstddr=0xFF;//output for reset
rstport |=(1<<rst);//pull high for normal operation
controlddr|=(1<<dc);//D/C as output
View rip_dvd
#!/usr/bin/env bash
set -e
#set -x
declare -a titles
declare -a files
declare -A chapters
declare -A start_at
declare -A stop_at
View git_file_filter.sh
#!/bin/bash
#
# usage: git filter-branch --force --prune-empty --index-filter "$(cat git_file_filter.sh)" --tag-name-filter cat -- --all
#
shopt -s globstar
whitelist=(
# files and globs go here
)
View gist:7939687
require 'optparse'
options = OptionParser.new("usage: #{$0}") do |opts|
opts.on('-f','--file FILE','loads a file') do |file|
puts "loading file #{file}"
opts.separator "#{file} options:"
opts.on('-c','--custom') do
puts "custom option defined by file #{file}"
end
View gist:6912812
require 'curses'
Curses.init_screen
output = Curses::Window.new(Curses.lines - 1, Curses.cols, 0, 0)
output.setpos(0,0)
input = Curses::Window.new(1, Curses.cols, Curses.lines - 1, 0)
input.setpos(0,0)
loop do
View gist:6877205

Steps to Reproduce

  1. mkdir test_rubysl && cd test_rubysl
  2. echo "source 'https://rubygems.org/'" > Gemfile
  3. bundle install
  4. echo "p require 'bigdecimal'" > test.rb
  5. bundle exec ruby test.rb

Expected Result

View exploit.rb
#!/usr/bin/env ruby
require 'ronin/support'
require 'ronin/asm'
include Ronin::Network::TCP
payload = Ronin::ASM::Shellcode.new do
mov 0xaaaaaaaa, eax
ret
View fuzzer.rb
#!/usr/bin/env ruby
require 'ronin/network/tcp'
require 'ronin/ui/output/helpers'
require 'combinatorics'
include Ronin::Network::TCP,
Ronin::UI::Output::Helpers
hosts = %w[