Skip to content

Instantly share code, notes, and snippets.

View imfht's full-sized avatar
🎯
Focusing

imfht imfht

🎯
Focusing
View GitHub Profile
@imfht
imfht / paste_server.html
Created April 25, 2018 13:09
the index page of p.fht.im
<html>
<title>Welcome to Jinxu's paste Server</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400" rel="stylesheet">
<body style="font-family: 'Montserrat', sans-serif;">
<div style="margin-left: 35%">
<h2>Usage</h2>
<p>cat file.txt | nc p.fht.im 9999
<p>
<p>or add a alias</p>
<p>echo 'alias pt="nc p.fht.im 9999"' >> .bashrc</p>
@imfht
imfht / colly_example.go
Created May 10, 2018 14:58
colly(a golang web cralwer framework ) with auto decode example
package main
import (
"fmt"
"github.com/gocolly/colly"
"golang.org/x/net/html/charset"
"bytes"
"io/ioutil"
"github.com/saintfish/chardet"
@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
@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 / 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 / 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 / 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 / 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 / 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 / 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;