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
package broadcaster | |
import ( | |
"context" | |
"io" | |
"sync" | |
"sync/atomic" | |
) | |
// Unbuffered accumulates multiple io.WriteCloser by stream. |
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
package main | |
import ( | |
"io" | |
"time" | |
"os" | |
) | |
const a = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\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
SecRuleEngine On | |
SecAction \ | |
"id:1,\ | |
phase:1,\ | |
pass,\ | |
nolog,\ | |
t:none,\ | |
setvar:'tx.anomaly_score_pl1=0'" |
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
SecRuleEngine On | |
# Default HTTP policy: allowed_request_content_type (rule 900220) | |
SecRule &TX:allowed_request_content_type "@eq 0" \ | |
"id:901162,\ | |
phase:1,\ | |
pass,\ | |
nolog,\ | |
setvar:'tx.allowed_request_content_type=application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/soap+xml|application/x-amf|application/json|application/octet-stream|application/csp-report|application/xss-auditor-report|text/plain'" |
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 <stdlib.h> | |
#include "api.h" | |
const char * url = "/remote.php/dav/files/"; | |
void logMessage(void *obj, int level, char *str) { printf("%s\n", str); } | |
apr_status_t readbody(request_rec *r, char *buf, unsigned int length, unsigned int *readcnt, int *is_eos) { |
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 z3 import * | |
from cypher import L3LFSR | |
KEY_LEN = 128 | |
KNOWN = 'CTF.Moscow{eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9' | |
#KNOWN = 'CTF.Moscow{e' | |
KNOWN = 'CTF.Moscow{eyJ0eX' | |
KNOWN_INT = int.from_bytes(bytes(KNOWN, 'ascii'), 'big') | |
KNOWN_BITS = list(map(int, bin(KNOWN_INT)[2:])) | |
KNOWN_LEN = len(KNOWN) |
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
class L3LFSR: | |
def __init__(self, key): | |
self.r1 = key[:67] | |
self.r2 = key[67:67+59] | |
self.r3 = key[-2:] | |
self.b1 = [67, 5, 2, 1] | |
self.b2 = [59, 6, 5, 4, 3, 1] | |
self.b3 = [2, 1] | |
def _clock_r(self, reg, branches): |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"sync" |
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
T=`mktemp` P=`mktemp` && bash -e -c "exec 3<$T && exec 4>$P && rm $P && echo -e 'daemon off;worker_processes auto;pid /dev/null;error_log /dev/stderr;events {} http { access_log /dev/stdout; include /etc/nginx/mime.types; server { listen 127.0.0.1:8000; location / { autoindex on; autoindex_exact_size off; root .;} }}' > $T && rm $T && exec nginx -p . -c /dev/fd/3" |
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 | |
# Usage: | |
# ./nginx.sh | |
# ./nginx.sh 8888 | |
# ./nginx.sh 0.0.0.0 8080 | |
set -e | |
HOST="127.0.0.1" |
NewerOlder