This file contains hidden or 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 ctypes import * | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Util.number import long_to_bytes as l2b, inverse, GCD as gcd | |
| import gmpy2 | |
| s = remote("coooppersmith.challenges.ooo", 5000) | |
| s.recvuntil(":") | |
| s.sendline("1" + "0" * 119) |
This file contains hidden or 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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or 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 IIter: | |
| def __init__(self, m, n): | |
| self.m = m | |
| self.n = n | |
| self.arr = [0 for _ in range(n)] | |
| self.sum = 0 | |
| self.stop = False | |
| def __iter__(self): | |
| return self |
This file contains hidden or 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 sage | |
| from Crypto.Util.number import long_to_bytes | |
| n = 502836922512486610504545362770164087747314568872499828554488035958487618069922372009938568627862332381791785204353412309048442266790788127586913418481611102032369784610186635918107975841710391423008666409824129040501563972923707425783141884753202039153453753743392862691624406109086024607836030202826295630221116437441121382375260821932448574939909495800160786027658225717271401949960794363690329988511853563276529456313673706170640973867577950303263264174744662074209624615772736887075860916876858014327808943244020378093080950653168444374777563212489171657106506007764866226182751595372496526204915222217458440333 | |
| c = 4542992230817920623622662202729093420190888652559243976860639953697825392586021006533342245836972027501745167799861363850426811090986182459017530104829121267723198005247073842044128647351222273325585614699334258919290475742633426495057070305887556653427791160755958392266834460356390652210993123440272512962788160444355984837855192511 |
This file contains hidden or 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 | |
| import os | |
| image = Image.new('RGB', (768, 768), color = 'black') | |
| image.save('base_input.png') | |
| os.system('neko meow.n base_input.png base.png') | |
| conv = dict() | |
| # creating a image object | |
| image = Image.new('RGB', (768, 768), color = 'black') |
This file contains hidden or 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
| var keystore = require("codechain-keystore"); | |
| var CCKey = keystore.CCKey; | |
| async function main() { | |
| var passphrase = "codechain"; | |
| var cckey = await CCKey.create({ dbType: "in-memory" }); | |
| console.log(cckey); | |
| var seedHash = await cckey.hdwseed.createSeed({ passphrase }); | |
| console.log(`Created a seed with hash: ${seedHash}`); |
This file contains hidden or 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
| export interface HDWKeyStore { | |
| ... | |
| getSeedHashes(): Promise<SeedHash[]>; | |
| importSeed(params: { | |
| secret: SecretSeedStorage; | |
| passphrase?: string; | |
| }): Promise<SeedHash>; | |
| exportSeed(params: { | |
| seedHash: SeedHash; | |
| passphrase: string; |
NewerOlder