Skip to content

Instantly share code, notes, and snippets.

View imfht's full-sized avatar
🎯
Focusing

imfht imfht

🎯
Focusing
View GitHub Profile
@imfht
imfht / 微博监控工具
Created August 11, 2016 11:43
一些杂七杂八的脚本
import requests
import re
import time
from termcolor import colored
#----------------------------------------------------------------------
#使用的是现成的cookie,大概为一次性用品
def test():
"""test"""
headers = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8','Cookie':'SUB=_2AkMgOcBjf8NhqwJRmP0WyW3laIx2wg3EieLBAH7sJRMxHRl-yT83qksDtRBX994ErYChwNsT9GjkBZ4xkFkgxQ..;'}
old=0
@imfht
imfht / get_data.py
Created October 24, 2016 14:55
微信公众号的小脚本
#coding: utf-8
import werobot
robot = werobot.WeRoBot(token='HelloWorld')
dic = {'11':'(-`ェ´-╬) web技术',
'12':'面向对象 编译原理',
'13':'马克思',
'21':'计网课设 机器学习',
'22':'操作系统课设 计组课设',
'31':'(・ω´・ ) 面向对象',
@imfht
imfht / sqlinj.py
Created April 2, 2017 11:47
how w3af know sqlinjection.(not bind sqlinj)
"""
sqli.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
@imfht
imfht / fofa_rule.sql
Created May 30, 2017 09:11 — forked from Tr3jer/fofa_rule.sql
fofa_rule.sql
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50542
Source Host : localhost
Source Database : rule
Target Server Type : MySQL
# coding = utf-8
import json
import base64
import requests
# 打开图片文件
requests.adapters.DEFAULT_RETRIES = 5
# 用base64编码图片文件
headd = {
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36",
@imfht
imfht / shoot.py
Created June 15, 2017 01:01
a page shoot program.
def shoot(url):
"""
shoot and return picture path
"""
try:
driver = webdriver.PhantomJS(
executable_path='/home/ubuntu/phantomjs-2.1.1-linux-x86_64/bin/phantomjs') # or add to your PATH
except Exception as e:
print 'Exception found'
print e
@imfht
imfht / get_and_insert_redis.go
Created June 15, 2017 07:10
get urls and insert some result to redis.
// package xiaoxuanfeng_v2
package main
import (
"bufio"
//"flag"
"fmt"
"log"
"net/http"
"os"
@imfht
imfht / hetao.html
Created June 29, 2017 05:42
cool page
<!DOCTYPE html>
<html>
<head>
<title>我想和你做,我想,爱不能光说不做。</title>
<style>html {
font-family: sans-serif;
@imfht
imfht / PyPing.py
Created June 29, 2017 12:01
Python ping temp file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/6/29 下午6:33
# @Auth : fiht
# @File : PyPing.py
# @Purpose : Python Ping
import platform
import subprocess
@imfht
imfht / monStar.py
Created July 2, 2017 12:55
监控Github Star变化情况
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/7/2 下午8:44
# @Auth : fiht
# @File : monStar.py
# @Purpose : 监控GithubStar情况
import requests
import re
import logging