Skip to content

Instantly share code, notes, and snippets.

[sCRiPTz-TEAM] scriptzteam

Block or report user

Report or block scriptzteam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@scriptzteam
scriptzteam / cloudflare.sh
Created Dec 22, 2018 — forked from Manouchehri/cloudflare.sh
Allow CloudFlare only
View cloudflare.sh
# Source:
# https://www.cloudflare.com/ips
# https://support.cloudflare.com/hc/en-us/articles/200169166-How-do-I-whitelist-CloudFlare-s-IP-addresses-in-iptables-
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# Avoid racking up billing/attacks
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable.
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP
@scriptzteam
scriptzteam / .rtorrent.rc
Created Nov 3, 2018 — forked from ItsAdventureTime/.rtorrent.rc
This an optimized version of the rTorrent configuration file.
View .rtorrent.rc
#
#
# The Seedbox From Scratch Script
# By Notos ---> https://github.com/Notos/
#
#
######################################################################
#
# Copyright (c) 2013 Notos (https://github.com/Notos/)
#
@scriptzteam
scriptzteam / bitcoin_decode.php
Created May 24, 2018 — forked from JburkeRSAC/bitcoin_decode.php
decode bitcoin OP_RETURN
View bitcoin_decode.php
<?php
$transaction_id = $argv[1];
$url = "https://blockchain.info/tx/$transaction_id?show_adv=true&format=json";
$result = file_get_contents($url);
$resultJSON = json_decode($result, true);
function hex2str($hex) {
$str = '';
for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2)));
return $str;
}
@scriptzteam
scriptzteam / bootstrap.sh
Created Jan 20, 2018 — forked from donaldsteele/bootstrap.sh
Install magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance
View bootstrap.sh
####
# Install magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance
####
apt-get update && apt-get -y upgrade
apt-get install -y software-properties-common python-software-properties git trickle
add-apt-repository ppa:gophers/archive
apt update
apt-get -y install golang-1.9-go
mkdir -p $HOME/go/src
cd $HOME/go/src
@scriptzteam
scriptzteam / pomf
Created Sep 20, 2017 — forked from KittyKatt/pomf
pomf.se BASH script to upload images
View pomf
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
@scriptzteam
scriptzteam / rclone_refresh.py
Created May 25, 2017 — forked from ryd994/rclone_refresh.py
Script to refresh ACD token with token from drivesink
View rclone_refresh.py
#!/bin/env python
import json
import logging
import sys
import os
from six.moves import configparser
from datetime import datetime, timedelta
'''
Usage:
@scriptzteam
scriptzteam / node_crypto.js
Created Jan 21, 2017 — forked from rojan/node_crypto.js
Encrypt in nodejs and decrypt in php or vice versa
View node_crypto.js
var crypto = require('crypto');
var key = 'MySecretKey12345';
var iv = '1234567890123456';
var cipher = crypto.createCipheriv('aes-128-cbc', key, iv);
var decipher = crypto.createDecipheriv('aes-128-cbc', key, iv);
var text = 'plain text';
var encrypted = cipher.update(text, 'utf8', 'binary');
encrypted += cipher.final('binary');
hexVal = new Buffer(encrypted, 'binary');
@scriptzteam
scriptzteam / nzbtunnel.sh
Created Jan 20, 2017 — forked from egrouse/nzbtunnel.sh
BASH script to tunnel NNTP connections
View nzbtunnel.sh
#!/bin/bash
# Script that attempts to create a tunnel for Usenet (NNTP) to pass through
# This script: creates a tunnel, assigns the host address to local address in /etc/hosts
# For Mac OS X
### CONFIGURATION ###
SERVER='your.nntp.server'
PORT='your.nntp.port'
LOCAL='127.0.0.1'
USER='root'
HOST='your.ssh.server'
View file1.txt
dGVzdDIwMTYtMTEtMDUgMTc6MzQ6MTAsNzI5fDgzQkQyMDJFNEExN0RGQzJFRDRDRUZBOEVFMkU5RTE4RDU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