Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Jinxu imfht

🎯
Focusing
View GitHub Profile
View download_cve.sh
for i in `seq 2002 2020`
do
wget https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-$i.json.gz && gunzip nvdcve-1.1-$i.json.gz
done
View test.go
package main
import (
"bytes"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"time"
View smbversioncheck.py
import socket
import struct
import sys
from netaddr import IPNetwork
pkt = b'\x00\x00\x00\xc0\xfeSMB@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00$\x00\x08\x00\x01\x00\x00\x00\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00x\x00\x00\x00\x02\x00\x00\x00\x02\x02\x10\x02"\x02$\x02\x00\x03\x02\x03\x10\x03\x11\x03\x00\x00\x00\x00\x01\x00&\x00\x00\x00\x00\x00\x01\x00 \x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\n\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00'
subnet = sys.argv[1]
for ip in IPNetwork(subnet):
@imfht
imfht / pyspark_cos_qcloud_example.py
Created Apr 14, 2020
A example show how to use cos with pyspark
View pyspark_cos_qcloud_example.py
import os
from pyspark import SparkContext
# first you'll need download hadoop-cos-x.x.x-shaded.jar at -> https://github.com/tencentyun/hadoop-cos
os.environ[
'PYSPARK_SUBMIT_ARGS'] = './hadoop-cos-2.8.5-shaded.jar pyspark-shell'
sc = SparkContext(appName="wordCount").getOrCreate()
# some basic configuration, find more at https://cloud.tencent.com/document/product/436/6884
@imfht
imfht / iso_3166.json
Created Oct 17, 2019
chinese to iso 3166 code.
View iso_3166.json
{"阿富汗": "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 Apr 15, 2019
教育网asn的IP
View edu_ips.txt
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 Feb 18, 2019
webscantest[dot]cn index.html
View 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 Jan 24, 2019
nmap_top_port.txt
View 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 Jan 21, 2019
SQL盲注脚本
View sqlinj.py
#!/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 Nov 1, 2018
modified transport. can visit a domain IPv4 only or IPv6 only.
View transport.go
// 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
You can’t perform that action at this time.