Skip to content

Instantly share code, notes, and snippets.


[sCRiPTz-TEAM] scriptzteam

View GitHub Profile
View Configure sendmail with php in Ubuntu 15.10 and make it fast!
1) If sendmail is not installed, do install it:
apt-get install sendmail
2) Configure hosts file correctly:
nano /etc/hosts
And make sure the line looks like this: localhost localhost.localdomain yourhostnamehere
3) Reload /etc/hosts, so that the previous changes take effect
sudo /etc/init.d/networking restart that works but seems to be deprecated, better use:
/etc/init.d/networking stop
/etc/init.d/networking start
scriptzteam / tor-change-exitnode
Created Feb 26, 2016 — forked from kirelagin/tor-change-exitnode
Shell script to force Tor exit node change
View tor-change-exitnode
# Change Tor exit node
# Sometimes when using Tor you'd like to change the IP address that
# servers see when you connect (that is, change your Tor exit node).
# This happens automatically from time to time, but this shell script
# lets you force it.
scriptzteam / btc_transaction_firehose.rb
Created Feb 27, 2016 — forked from redsquirrel/btc_transaction_firehose.rb
Streaming global Bitcoin transactions in less than 80 lines of Ruby code. Described at
View btc_transaction_firehose.rb
require 'rubygems'
require 'bitcoin'
require 'eventmachine'
require 'resolv'
require 'set'
module BitcoinTransactionReader
def initialize(ip_address, database)
@ip_address = ip_address
@database = database
View gist:2a8468d60e61717ca643
cat /var/log/auth.log | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort | uniq -c
View reddit-image-download.bash
#!/usr/bin/env bash -e
# These variables can be overridden in the environment
: ${TIMESPAN:=} # hour|day|week|month|year|all
: ${LISTING:=} # hot|new|top
: ${LIMIT:=} # 1-100, default 25
: ${DOWNLOAD_DIR:=~/.reddit-pics}
: ${CURL:=curl -sL}
# "Constants"
View gist:f99a4b601a05269fc14f920519caff1e
-> per torrent: hash (ben-encoded), complete, downloaded, incomplete
-> per torrent: hash, seeders, leechers
-> per torrent: hash, base (time in minutes since epoch when the torrent last had >0 peers, *60 = unix timestamp), downloaded
scriptzteam /
Created Jun 27, 2016 — forked from hcooper/
Script to automate creating new OpenVPN client certificates and make them easy to download
#! /bin/bash
# Script to automate creating new OpenVPN clients
# The client cert and key, along with the CA cert is
# zipped up and placed somewhere to download securely
# H Cooper - 05/02/11
# Usage: <common-name>
# Set where we're working from
scriptzteam / multiple-processes
Created Jul 6, 2016 — forked from waaaaargh/multiple-processes
[Draft] This document explains how to run multiple tor processes on one host.
View multiple-processes
Managing multiple Tor processes on one host
Due to Tor's internal architecture, running only one Tor process per physical
host is often not enough. As a thumb rule, you should run one Tor process per
physical CPU core to make full use of the host's CPU power. This, however
brings with it other difficulties: The tor network limits the number of Tor
relays per IP in the consensus to 2. Also, the relay nodes should be rechable
on Port 80 and 443 since those ports are often unfiltered and unblocked.
scriptzteam / fail2ban-report
Created Oct 13, 2016 — forked from catacs/fail2ban-report
Fail2ban log statistics
View fail2ban-report
echo "Baned last log"
awk '($(NF-1) = /Ban/){print $NF}' /var/log/fail2ban.log | sort | uniq -c | sort -n
echo "------------ Baned in all files --------------"
zgrep -h "Ban " /var/log/fail2ban.log* | awk '{print $NF}' | sort | uniq -c
echo "------------ Baned by subnet --------------------"
zgrep -h "Ban " /var/log/fail2ban.log* | awk '{print $NF}' | awk -F\. '{print $1"."$2"."}' | sort | uniq -c | sort -n | tail
echo "------------ Baned by date -------------------------"
zgrep -h "Ban " /var/log/fail2ban.log* | awk '{print $5,$1}' | sort | uniq -c
# get a country statistic for Fail2Ban blocks:
# this just accounts for IPs once. Multiple failed attempts by one IP just show up once for a country.
for i in `sudo cat /var/log/fail2ban.log | sed 's/.*[Bb]an \(.*\)/\1/' | sort | uniq | cut -d ' ' -f 1 | grep "\."`;
echo $i; whois $i | grep country\: |head -n 1 >> fail2ban_ctry.log ;
cat fail2ban_ctry.log | sed 's/country: //g' |sort | uniq -c | sort -nr