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 -*- | |
mapping = { | |
'♈': 0, | |
'♉': 1, | |
'♊': 2, | |
'♋': 3, | |
'♌': 4, | |
'♍': 5, | |
'♎': 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
from sage.all import * | |
# Curve: y^2 = x^3 + ax + b (mod p) | |
p = 404993569381 | |
P = (391109997465, 167359562362) | |
Q = (209038982304, 168517698208) | |
b = 54575449882 | |
# Retrieve a | |
x, y = P[0], P[1] |
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 PIL import Image | |
from struct import pack, unpack | |
from typing import List, Tuple | |
import random | |
with Image.open('out.png') as image: | |
seed = b'\xed\xfe\xcb\x10' | |
random.seed(seed) | |
image = image.convert("RGB") | |
pixels = image.load() |
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 sage.all import * | |
key = 'coqfvpbbvzohmogzjjquohnonabjqippelaxnorxrvaxdllwubieletjauvfuktrymtkkdyfdtoosjdbsyzyvpfcijyndsncnszcmumdstxxzbtzjoslsuatdehsewsysoklituxwqrnkricsfmetxcyijsacphnqqcvrlydvezlvfgivluwyfoqlvlfimhvgbitgtnctktmretedeoglvoxjqnieapzrovxyyulnfrxyzyfxpgsgfzrdbawewhdcppfqlafmjxztykrrwibvrlagyddkszkbtdiiisivvvghvzkrsbedjmstmwhuuyeuwshykkawtdmeounogfjmbrornilepfaofbxohvbmzhwwsfvnvghansbhsaiubqldvashacqxcoocgmmvocfcczlodnuexxaccvgpxnqgezszypzrnwhhpjlgnnszrylypgcwekfodlpziwyiiowxxvflpzzrfhepnsgyfdtlczynwkqvgdxyosplglfaurfrkmoxqlpfpaeupcngcvcocpxzpejsgdkqmyficjhrntaqfwrxgrwvqtzxoitfgdmfsbkrvjajlvkvaxclgyxnqlqpdaefnquxwhsejhnexvhqvjitntsgsteyidkjfvqbkbpaytmvyzeokxkaxtxharopjfpaoagcednhgfesdyqpkyyyfxwkqrpjycmbspnsunerksrrvwsrajvervchaeuazqwfazawmzchzanzzqsejyjwqrfjhbsvcgxrrsjcuishxtcmebofzumofdlmmttqknqkbxvnrvovrrmfulopzfrvqylyyccksjazfoqxefdmubmfzitzilcfefctsasfuvpfcuenglyvgjdceccxtmouwufdwrdkrvklsswvsyssapawwhxcqzyjpitrfrkphhkoybnvkaadrwbaqatbtgjucmexkqxygjhsaxacaejpquziqxhcxrkfoantpavxdfbwavdg |
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
ans = [114,111,111,116,101,114,115,123,87,72,89,95,52,82,51,95,84,72,51,95,87,52,89,95,84,72,52,84,95,89,48,85,95,52,82,51,33,125,99,0,116,102] | |
flag = "" | |
for num in ans: | |
flag += chr(num) | |
print "[+] Flag:", flag |
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 * | |
# buf = [ | |
# '\xa9', '\x91', '\xd7', '\xce', 'i', 'l', 'e', 'E', 's', '*', 'k', 'r', '\x7f', 'X', 'C', 'e', 'r', 'G', 'X', 'I', 'i', 'o', 'O', 'p', 'Y', 'd', 'e', 'C', 'y', 'X', 'x', 'r', 'W', '_', 'm', '\\', '{', 'e', 'l', 'f', 'V', 'e', 'm', 'v', 'i', 'Z', 'l', 'r', 'G', 'X', 'V', 'z', 'e', '`', 'g', 'o', 'K', 'e', 'b', 'l', 'c', 'i', 'm', 'K', 'c', 'l', '|', 'r', 'O', 'P', 'a', 'O', 'm', 'X', 'S', 'h', 'r', 'Z', 'R', 'f', 'z', 'o', '-', 'z', 'i', 'N', 'e', '3', 'y', 'X', 'x', 'r', "'", 'P', 'm', ',', '`', 'e', 'X', 'f', '$', '}', 'm', 'q', 'i', '%', 'm', 'r', '9', 'R', 'a', 'P', 'e', '\x13', 'j', 'o', '>', 'b', 'X', '+', 'b', 'o', 'k', 'L', '\x00', '\x02', '\x0c', '\x06', 'M', 'Y', 'a', 'q', 'M', 'q', ';', 'n', 'r', 'a', '\x1b', '\t', '\x07', '\n', 'l', 'p', 'f', ' ', '\x0c', '\x1c', '\x16', '\x16', '\x14', '\x1f', '\x07', '=', '\x1f', ';', '\x13', '\x07', '4', '\x03', 'b', 'o', '`', '#', '\x1d', '\x1e', '\x0c', '\x1c', '\x14', '\x1b', '\x0e', '\x1f', '\x15', '9', '\x1f', '\n', 's', 'e', ' |
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 Crypto.Util.number import * | |
from pwn import * | |
from Crypto.Cipher import AES | |
from Crypto.Util.strxor import strxor | |
from binascii import hexlify, unhexlify | |
from Crypto.Util.number import * | |
import sys | |
def sign(key, message): | |
try: |
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 * | |
from z3 import * | |
context.log_level = 'error' | |
def checkGuess(sample, predictions): | |
for i, val in enumerate(sample): | |
if (val != predictions[i]): | |
return False | |
return True |
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 Crypto.Util.number import * | |
from Crypto.Cipher import PKCS1_OAEP | |
from Crypto.PublicKey import RSA | |
n = 0x00b96b6278808668de6ce3d0b75315b1129300feb48ba23353f097b67c023fbdcdd0e63086ee8c711a9b153ea2c2a3121fc141e27a7d662e72b8c31e5890a0314be92a328ed8b6dbcc90c3d7f0a75dc8c13b0f41aa34776253650dfa27d3c3809b81bfb103a356ec2761b6dd233549a22bab33224092342e7027964c70a9e3eecb | |
e = 65537 | |
a = 84733215803103612460901465701232424798609470209825913961212238457798293111098195061837071495218083197429913141798442522950831495758395873695688189182925448736211066067276791533151828542439575601763801135131479532656528730453020404557236783254278625529895480234633323403399468237577058553920576024305830379725 | |
r = 21700996784810065805847020455080940987640304282783092123992896363328128691169420271855815648912121417792054646557156071514079520782530801688062034321252682229729442734741486715339008457753023855600772948737800521010217600436912058582658334252483984244806083617513596479033871117464319239681526924092910597300 | |
c = 854071817597552 |
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 sage.all import * | |
from Crypto.Util.number import * | |
n1 = 16665162598091416675035243372929255215330237988600063606115453406246759269279788760269977993441302227754535063989940158801403082299136924692382379772238783511717805089453627769958409474798262234585212880036578100065244955419654350030210214612873050000707217728997449651244785327256673209001617229204596903739745000294771409411741050416912250410842101344110865361910624576900847453308353320549785990249062848385268654951594713494728031930339317011245422247813046177464952338694367015023462166849724348822067012372916419798329882575892837697474973759070677459272935998500533063881083981623170007582400032456357369057331 | |
n2 = 123279676666084000896842926376977238866927430473119431176344532976966725966021328327701807637064104811363854287970644304707443032608751300253649681840334402781681492300150126513397003619114552462765351792990039086498200554781665325023328969783148395484562214984096890201377302019618026617965229591852896762931689581009947892789279286140606 |
NewerOlder