This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
import werobot | |
robot = werobot.WeRoBot(token='HelloWorld') | |
dic = {'11':'(-`ェ´-╬) web技术', | |
'12':'面向对象 编译原理', | |
'13':'马克思', | |
'21':'计网课设 机器学习', | |
'22':'操作系统课设 计组课设', | |
'31':'(・ω´・ ) 面向对象', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package xiaoxuanfeng_v2 | |
package main | |
import ( | |
"bufio" | |
//"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>我想和你做,我想,爱不能光说不做。</title> | |
<style>html { | |
font-family: sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer