Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:latest
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y php python3 nodejs ruby && mkdir /app
WORKDIR /app
# build: docker build -t rctf_cats .
# judge: docker run -it --rm --network none -v /tmp/yourCatFood:/app/food:ro rctf_cats bash -c "timeout 5 diff -Z <(cat food) <(eachCatNameYouProvided food)"
#!/usr/bin/python
import pwn
import sys
from base64 import b16encode, b16decode
from hashpumpy import hashpump
from urlparse import parse_qsl
# for some easy last points on RCTF
#!/usr/bin/python
import pwn
import hashlib
import re
pwn.context.log_level = 'error'
import sys
import itertools
import collections
#!/usr/bin/python
import pwn
pwn.context.log_level = "error"
key = {}
for c in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-{}":
p = pwn.process("./babyre")
#!/usr/bin/python
import itertools
import base64
a = ["c2N0ZnszbD","VsNTNfdzRz","bjN0MWNfcH","X2Y0azN9Cg","NjdHIwbTRn"]
for x in itertools.permutations(a):
s = "".join(x)
print s
#!/usr/bin/python
complete = "g1Mm3Th3r3D1"
magic = "Linux version 4.17.0-rc4+ (likvidera@ubuntu) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)) #9 Sat May 12 12:57:01 PDT 2018"
# orig = "40369e8c78b46122a4e813228ae8ee6e"
# orig = "e4a75afe114e4483a46aaa20fe4e6ead"
orig = "8c3749214f4a9131ebc67e6c7a86d162"
# begin
<Response>
<Say voice="alice">Thanks for trying our documentation. Enjoy!</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>
IDENTIFICATION DIVISION.
PROGRAM-ID. HackMe.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 SUBPRG.
02 TMPNAME PIC X(10).
02 TMPSCORE PIC 99.
02 SUBPRGARG PIC X(20).
02 SUBPRGNAME PIC X(20).
/*
* wiegand_thief.c
*
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include <stdio.h>
//
// This file was generated by the Retargetable Decompiler
// Website: https://retdec.com
// Copyright (c) 2019 Retargetable Decompiler <info@retdec.com>
//
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>