This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'sinatra' | |
require 'data_mapper' | |
DataMapper.setup(:default, 'sqlite:///home/facerip/Learn/Sinatra/Projects/exitstatusone/database/exitstatusone.db') | |
class User | |
include DataMapper::Resource | |
property :id, Serial | |
property :user, String, :required => true | |
property :pass, BCryptHash, :required => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.46-1 | |
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/bullion-root ro quiet | |
[ 0.000000] BIOS-provided physical RAM map: | |
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009c400 (usable) | |
[ 0.000000] BIOS-e820: 000000000009c400 - 00000000000a0000 (reserved) | |
[ 0.000000] BIOS-e820: 00000000000d2000 - 00000000000d4000 (reserved) | |
[ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) | |
[ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf27c000 (usable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'data_mapper' | |
require 'builder' | |
class ExitStatusOne < Sinatra::Base | |
get '/rss' do | |
@post = Post.all :order => :id.desc | |
builder :rss | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host="localhost" | |
port="27960" | |
nc="$(which nc)" | |
pass="cat" | |
timeout="3" | |
fuzz=`dd if=/dev/urandom bs=1K count=1b` | |
while :; do |