Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View imfht's full-sized avatar
🎯
Focusing

imfht imfht

🎯
Focusing
View GitHub Profile
@imfht
imfht / iso_3166.json
Created October 17, 2019 10:20
chinese to iso 3166 code.
{"阿富汗": "AF", "奥兰群岛": "AX", "阿尔巴尼亚": "AL", "阿尔及利亚": "DZ", "美属萨摩亚": "AS", "安道尔": "AD", "安哥拉": "AO", "安圭拉": "AI", "南极洲": "AQ", "安提瓜和巴布达": "AG", "阿根廷": "AR", "亚美尼亚": "AM", "阿鲁巴": "AW", "澳大利亚": "AU", "奥地利": "AT", "阿塞拜疆": "AZ", "巴哈马": "BS", "巴林": "BH", "孟加拉国": "BD", "巴巴多斯": "BB", "白俄罗斯": "BY", "比利时": "BE", "伯利兹": "BZ", "贝宁": "BJ", "百慕大": "BM", "不丹": "BT", "玻利维亚": "BO", "波黑": "BA", "博茨瓦纳": "BW", "布维岛": "BV", "巴西": "BR", "英属印度洋领地": "IO", "文莱": "BN", "保加利亚": "BG", "布基纳法索": "BF", "布隆迪": "BI", "柬埔寨": "KH", "喀麦隆": "CM", "加拿大": "CA", "佛得角": "CV", "开曼群岛": "KY", "中非": "CF", "乍得": "TD", "智利": "CL", "中国": "CN", "圣诞岛": "CX", "科科斯(基林)群岛": "CC", "哥伦比亚": "CO", "科摩罗": "KM", "刚果(布)": "CG", "刚果(金)": "CD", "库克群岛": "CK", "哥斯达黎加": "CR", "科特迪瓦": "CI", "克罗地亚": "HR", "古巴": "CU", "塞浦路斯": "CY", "捷克": "CZ", "丹麦": "DK", "吉布提": "DJ", "多米尼克": "DM", "多米尼加": "DO", "厄瓜多尔": "EC", "埃及": "EG", "萨尔瓦多": "SV", "赤道几内亚": "GQ", "厄立特里亚": "ER", "爱沙尼亚": "EE", "埃塞俄比亚": "ET", "福克兰群岛(马尔维纳斯)": "FK", "法罗群岛": "FO", "斐济": "FJ", "芬兰": "FI", "法国": "FR", "法属圭亚那": "GF"
@imfht
imfht / edu_ips.txt
Created April 15, 2019 15:31
教育网asn的IP
1.51.0.0/16
1.51.32.0/20
1.51.48.0/21
1.184.0.0/15
42.244.0.0/16
42.245.0.0/16
42.246.0.0/15
42.247.9.0/24
49.52.0.0/14
49.52.0.0/15
@imfht
imfht / webscantest[dot]cn_index.html
Created February 18, 2019 13:10
webscantest[dot]cn index.html
<html>
<head>
<link href="https://cdn.bootcss.com/bootswatch/4.2.1/cosmo/bootstrap.min.css" rel="stylesheet">
<meta charset="utf-8">
<title>webscantest.cn -在线靶场漏洞测试(beta)</title>
<style>
.button {
display: block;
background: #4E9CAF;
padding: 10px;
@imfht
imfht / nmap_top_port.txt
Created January 24, 2019 14:27
nmap_top_port.txt
/Users/jinxufang/.virtualenvs/PunkScanner/bin/python /Users/jinxufang/ShareToVMWin/PycharmProjects/PunkScanner/test.py
nmap top1000: 1,3-4,6-7,9,13,17,19-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416-417,425,427,443-445,458,464-465,481,497,500,512-515,524,541,543-545,548,554-555,563,587,593,616-617,625,631,636,646,648,666-668,683,687,691,700,705,711,714,720,722,726,749,765,777,783,787,800-801,808,843,873,880,888,898,900-903,911-912,981,987,990,992-993,995,999-1002,1007,1009-1011,1021-1100,1102,1104-1108,1110-1114,1117,1119,1121-1124,1126,1130-1132,1137-1138,1141,1145,1147-1149,1151-1152,1154,1163-1166,1169,1174-1175,1183,1185-1187,1192,1198-1199,1201,1213,1216-1218,1233-1234,1236,1244,1247-1248,1259,1271-1272,1277,1287,1296,1300-1301,1309-1311,1322,1328,1334,1352,1417,1433-1434,1443,1455,1461,1494,1500-1501,1503,1521,1524,1533,1556,1580,1583,1594,1600,1641,1658,1666,1687-1688,170
@imfht
imfht / sqlinj.py
Created January 21, 2019 05:37
SQL盲注脚本
#!/usr/bin/env python
# encoding: utf-8
# vip.py
# ringzero@0x557.org
import requests
import time
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
payloads = list('abcdefghijklmnopqrstuvwxyz0123456789@_.')
@imfht
imfht / transport.go
Created November 1, 2018 12:56
modified transport. can visit a domain IPv4 only or IPv6 only.
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// HTTP client implementation. See RFC 7230 through 7235.
//
// This is the low-level Transport implementation of RoundTripper.
// The high-level interface is in client.go.
package http
@imfht
imfht / httpdns.go
Created September 4, 2018 05:10 — forked from fangdingjun/httpdns.go
use dnspod's httpdns service to query dns
package main
import (
"bytes"
"fmt"
"github.com/miekg/dns"
"io/ioutil"
"log"
"net/http"
)
@imfht
imfht / gist:af5970a3799b6064964fd5294499ec06
Created August 19, 2018 12:27 — forked from evilpacket/gist:3628941
Top 1000 from Alexa Top 1million
wget -q http://s3.amazonaws.com/alexa-static/top-1m.csv.zip;unzip top-1m.csv.zip; awk -F ',' '{print $2}' top-1m.csv|head -1000 > top-1000.txt; rm top-1m.csv*
@imfht
imfht / setup.md
Created June 30, 2018 04:07 — forked from xrstf/setup.md
Nutch 2.3 + ElasticSearch 1.4 + HBase 0.94 Setup

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)
@imfht
imfht / test_hbase.py
Created June 12, 2018 08:54
hbase demo
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from hbase import Hbase
from hbase.ttypes import ColumnDescriptor, Mutation