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 requests | |
import re | |
import logging | |
import time | |
class CTFd_Client: | |
nonce_re = re.compile(r'\'?csrf(Nonce|_nonce)\'? ?[:=] "(.*)"') | |
_header = { | |
'Accept-Language': 'en-US,en;q=0.5', |
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
contains some simple utilities for awd competitions |
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
.data | |
data: | |
.text | |
.globl main | |
main: | |
la $t2, data | |
$read_loop: | |
li $v0, 5 | |
syscall |
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 requests | |
import os | |
from argparse import ArgumentParser, FileType | |
banner = """ | |
CVE-2017-12617 | |
Frank | |
""".lstrip('\n') | |
pin = '<% out.println("content");%>' |
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
from requests import Session | |
import re | |
class EhallSession(Session): | |
def login(self, target, username, password): | |
REGEX_HIDDEN_TAG = '<input type="hidden" name="(.*)" value="(.*)"' | |
REGEX_HTML_COMMENT = r'<!--\s*([\s\S]*?)\s*-->' | |
page = self.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
''' | |
如果无法定位可以将第19行改成 | |
loc = { | |
'lat': 纬度, | |
'lng': 经度, | |
} | |
''' | |
import requests | |
import json |
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
namespace Foo { | |
public class Request { | |
HttpListenerContext context; | |
Task<int> read_body; | |
byte[] body = new byte[4096]; | |
public Request (HttpListenerContext ctx) { | |
context = ctx; | |
read_body = context.Request.InputStream.ReadAsync (body, 0, 4096); | |
} | |
public string path { |
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
#!/bin/bash | |
# common | |
cr="rRŔŕŖŗŘřƦȐȑȒȓɌɍ" | |
cc="cCĆćĈĉĊċČčƇƈÇȻȼ" | |
cn="nNŃńŅņŇňƝƞÑǸǹȠȵ" | |
cb="bBƀƁƃƄƅßÞþ" | |
sr=15 | |
sc=15 | |
sn=15 |
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
#!/bin/bash | |
if [[ -z $1 ]];then | |
echo $0 题目目录 | |
exit | |
fi | |
if [ ! -d $1 ];then | |
echo 目录 $1 不存在 | |
exit | |
fi | |
g++ $1/std.* -o $1/a.out --std=c++11 -O2 |
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 functools | |
import json | |
from flask import request, session, url_for | |
from flask_restplus import Namespace, Resource | |
from CTFd.models import Users, db | |
from CTFd.plugins import bypass_csrf_protection | |
from CTFd.utils import validators, config, email, get_app_config, get_config, user as current_user | |
from CTFd.utils.config.visibility import registration_visible | |
from CTFd.utils.crypto import verify_password |
OlderNewer