Skip to content

Instantly share code, notes, and snippets.

View millken's full-sized avatar

millken

  • Changde,China
View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Ping and mtr from multiple locations &ndash; xkjrch3.x.incapdns.net</TITLE>
<meta name="GENERATOR" content="Hands">
<meta http-equiv="content-type" Content="text/html;charset=utf-8">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="description" http-equiv="description" content="The Best Ping+MTR combination Ever.">
@millken
millken / scrdec18-VC8.exe
Created April 4, 2018 08:31 — forked from bcse/scrdec18-VC8.exe
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@millken
millken / bpf.go
Created January 26, 2018 15:51 — forked from cjoudrey/bpf.go
package main
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/pcap"
)
func main() {
handle, err := pcap.OpenLive("en0", 1600, true, pcap.BlockForever)
@millken
millken / extensions.json
Last active September 17, 2020 10:54
VSCode's Settings - Syncing
[
{
"id": "azemoh.one-monokai",
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.4.6"
},
{
"id": "be5invis.toml",
"name": "toml",
@millken
millken / udp-loader.go
Created September 26, 2017 01:56 — forked from jtblin/udp-loader.go
UDP server performance optimisation
package main
import (
"crypto/rand"
"flag"
"log"
mrand "math/rand"
"net"
"os"
"os/signal"
# Got from https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7 and changed new workable epel rpm url
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum -y install ppp pptpd
cp /etc/pptpd.conf /etc/pptpd.conf.bak
cat >/etc/pptpd.conf<<EOF
option /etc/ppp/options.pptpd
logwtmp
localip 10.0.10.1
remoteip 10.0.10.2-254
@millken
millken / install.sh
Created March 21, 2017 09:19 — forked from marklit/install.sh
Bot Detection Script. Works with Apache and Nginx Log Files.
sudo apt-get update
sudo apt-get install \
python-dev \
python-pip \
python-virtualenv
virtualenv findbots
source findbots/bin/activate
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
@millken
millken / BotBuster.md
Created February 23, 2017 06:35 — forked from hsiboy/BotBuster.md
Bot-Buster™ - Tracks nefarious activity on website, and manages accordingly.

#Bot-Buster™

Tracks nefarious activity on website, and manages accordingly.

##It's probably a bot.

If the requesting entity:

  • declares its user-agent as being wget, curl, webcopier etc - it's probably a bot.
  • requests details -> details -> details -> details ad nauseum - it's probably a bot.
  • requests the html, but not .css, .js or site furniture - it's probably a bot.
@millken
millken / um.js
Last active November 30, 2016 09:03
//http://g.alicdn.com/security/umscript/3.3.2/um.js ////s.tbcdn.cn/g/security/umscript/3.3.2/um.js
/* 2016-08-25 16:32:12 */
!
function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var a = n[r] = {
exports: {},
id: r,
loaded: !1
};
@millken
millken / centos7_init.sh
Last active November 30, 2016 02:34
centos7
#!/bin/bash
#base on https://javapipe.com/iptables-ddos-protection
platform=`uname -i`
if [ $platform != "x86_64" ];then
echo "this script is only for 64bit Operating System !"
exit 1
fi
echo "the platform is ok"
version=`cat /etc/redhat-release |awk '{print substr($4,1,1)}'`
if [ $version != 7 ];then