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
test test 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
def egcd(a, b): | |
if a == 0: | |
return (b, 0, 1) | |
else: | |
g, y, x = egcd(b % a, a) | |
return (g, x - (b // a) * y, y) | |
def modinv(a, m): | |
g, x, y = egcd(a, m) |
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
def find(addr): | |
for i in range(999000, 1000000): #here we define a range of blocks to search | |
txLen = len(w3.eth.getBlock(i).transactions) #to get the transactions and lenght of the transactions | |
for j in range(txLen): #this loop will go through all the transactions to check the transactions in the blocks | |
print("Block: %d/%d --- Transaction: %d/%d" % (i, highestBlock, j, txLen)) #will print the transaction in the block | |
if addr == w3.eth.getBlock(i, True).transactions[j]["from"]: #if we get a transaction with the adress that we are looking for, it will print the transaction hash | |
print("FOUND BABIBlock: %d\nTX: %s" % (i, w3.eth.getBlock(i).transactions[j].hex())) | |
return |
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 | |
echo ECS_CLUSTER=bitatlas >> /etc/ecs/ecs.config |
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 | |
# Use this for your user data (script without newlines) | |
# install httpd (Linux 2 version) | |
yum update -y | |
yum install -y httpd.x86_64 | |
systemctl start httpd.service | |
systemctl enable httpd.service | |
EC2_AVAIL_ZONE=(curl -s http://169.254.169.254/latest/meta-data/placements/availability-zone) | |
echo "<h1> Hello World, this is Henrique Centieiro from $(hostname -f) in AZ SEC2_AVAIL_ZONE </h1> " > /var/www/html/index.html |
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 | |
# Use this for your user data (script without newlines) | |
# install httpd (Linux 2 version) | |
yum update -y | |
yum install -y httpd.x86_64 | |
systemctl start httpd.service | |
systemctl enable httpd.service | |
echo "Hello World, this is Henrique Centieiro from $(hostname -f)" > /var/www/html/index.html |
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 | |
yum update -y | |
yum install -y httpd | |
echo '<h1>Hello World</h1>' > /var/www/html/index.html | |
systemctl start httpd | |
systemctl enable httpd |
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
0x7644665E83f6AB14ADE6abCDA169cA341F42e910 |