Skip to content

Instantly share code, notes, and snippets.

View finkrer's full-sized avatar
🦆

Evgeny Zyrianov finkrer

🦆
  • Sellematics
  • Ekaterinburg
View GitHub Profile

Virtual Box

  • создаем виртуальную тачку и как диск указываем образ
  • сеть - выставить Nat, пробросить 127.0.0.1 2222 22 шоб ssh божественный поднялся

Поднимаем тачку

  • залетаем в тачку и жмем 'e', дабы в grub залететь
  • к kernel (linux) дописываем init=/bin/bash, сохраняем и жмем 'b'
  • в баше монтируем все, что монтируется
@d4em0n
d4em0n / solve.py
Last active August 31, 2020 07:45
poly1305 key recovering from pair of 32 bytes message and tag
#!/usr/bin/env python3
import gmpy2
import binascii
key = binascii.unhexlify("85:d6:be:78:57:55:6d:33:7f:44:52:fe:42:d5:06:a8:01:03:80:8a:fb:0d:b2:fd:4a:bf:f6:af:41:49:f5:1b".replace(":", ""))
def clamp(r):
return r & 0x0ffffffc0ffffffc0ffffffc0fffffff
def poly_mac(msg, key):