Skip to content

Instantly share code, notes, and snippets.

@rampageX
rampageX / CAlculating.Hash.Checksums.Cascading.reg
Created May 15, 2020 12:58 — forked from AhmadFCheema/CAlculating.Hash.Checksums.Cascading.reg
Windows context menu, individual Hash calculation shortcut
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\Calculating.Hash.Checksums.Cascading]
"Extended"=""
"MUIVerb"="Calculate hash checksums"
"SubCommands"="MD2;MD4;MD5;SHA.1;SHA.256;SHA.384;SHA.512;All.Hash"
"Icon"="imageres.dll,262"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MD2]
"Icon"="imageres.dll,262"
@rampageX
rampageX / InstallSocksServer.md
Created April 22, 2020 12:54 — forked from Leayal/InstallSocksServer.md
Install SOCKs server for Debian/Ubuntu machine. (http://www.inet.no/dante/download.html)

Installation

0. Requirements:

  • make
  • gcc
  • g++

To install those two, you can run apt-get update && apt-get install make gcc g++.

(Alternatively, you can install the package build-essential)

1. Download Danted

@rampageX
rampageX / danted_install_script.sh
Created April 12, 2020 09:41 — forked from duketwo/danted_install_script.sh
Dante-Server (danted) install script (Debian 8 - Jessie)
# Dante-Server install script (Debian 8 - Jessie)
# Start with 'chmod +x danted_install_script.sh && danted_install_script.sh'
# duketwo - 12.11.2017
random_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
network_adapter=$(ip route | grep default | sed -e "s/^.*dev.//" -e "s/.proto.*//")
username="SallySample"
port="31337"
public_ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo "Random password: $random_pw"
echo "deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib" >> /etc/apt/sources.list
@rampageX
rampageX / reclaimWindows10.ps1
Created April 8, 2020 13:39 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@rampageX
rampageX / subscribe_decode.sh
Created April 7, 2020 10:36
ss/ssr/v2ray/trojan subscribe decode
#!/bin/sh
# shadowsocks script for AM380 merlin firmware
# by sadog (sadoneli@gmail.com) from koolshare.cn
export KSROOT=/koolshare
source $KSROOT/scripts/base.sh
alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:'
eval `dbus export ss`
LOCK_FILE=/tmp/online_update.lock
@rampageX
rampageX / nvram_backup.sh
Created March 27, 2020 09:04
Tomato firmware nvram backup
#!/bin/sh
#USE AT YOUR OWN RISK.
#THIS SCRIPT DOES NOT COME WITH ANY WARRANTY WHATSOEVER.
#
#Backs up selected nvram variables in "nvram export --set" format.
#
#Correctly handles multi-line entries.
#
#Thanks to ryzhov_al for basic approach.
@rampageX
rampageX / Workarounds for Netflix and the blocking of IPv6 tunnels.md Prevent proxy/VPN streaming error messages from Netflix when using an IPv6 tunnelf

Workarounds for Netflix and the blocking of IPv6 tunnels

The dreaded "You seem to be using an unblocker or proxy." error message. Cool story bro.

This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.

Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.

The problem

Netflix now treats IPv6 tunnel brokers (such as Hurricane Electric) as proxy servers. A while ago it became apparent to users and Netflix that somewhat by accident, IPv6 tunnel users were being served content outside of their geolocation because of the way Netflix was identifying the tunnel servi

@rampageX
rampageX / ddwrt-cleanup.sh
Last active March 29, 2023 02:45
auto disconnects clients with a low signal strength on DD-WRT / Tomato
#!/bin/sh
##############################################
# This script disconnects connected clients, #
# where the signal is below the configured #
# signal. #
##############################################
# v1.0 #
# maintained by Rene Losert <dev@losert.xyz> #
##############################################
@rampageX
rampageX / angry_wifi.sh
Created March 5, 2020 09:41 — forked from lg/angry_wifi.sh
auto disconnects clients with a low signal strength on LEDE / OpenWRT
#!/bin/ash
#
# angry_wifi.sh
#
# auto disconnects clients with a low signal strength on LEDE / OpenWRT. great
# for clients who hold onto a lower-signal-strength accesspoint instead of
# roaming. before running, make sure to download the latest MAC addresses with:
#
# wget --no-check-certificate -O - 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MAC&text=apple' | cut -d, -f2 > apple_mac_addresses
#
@rampageX
rampageX / dig-ecs
Last active February 19, 2020 03:36
dig-ecs-support
dig @208.67.222.222 -p 5353 edns-client-sub.net TXT +short +subnet=7.7.7.0/24
"{'ecs_payload':{'family':'1','optcode':'0x08','cc':'CN','ip':'223.73.56.0','mask':'24','scope':'0'},'ecs':'True','ts':'1582082486.7','recursive':{'cc':'US','srcip':'67.215.82.65','sport':'49532'}}"
dig @120.196.165.24 edns-client-sub.net TXT +short +subnet=7.7.7.0/24
"{'ecs':'False','ts':'1582083081.84','recursive':{'cc':'CN','srcip':'120.198.227.97','sport':'60108'}}"