-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
230,556 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,9 @@ | |
|
||
# bibliography | ||
*.bbl | ||
|
||
# api keys | ||
.env.json | ||
|
||
# python env | ||
pyproject.toml |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import csv | ||
import json | ||
import web3 | ||
|
||
# RPCs ######################################################################## | ||
|
||
with open('.env.json', 'r') as _f: | ||
_ENV = json.load(_f) | ||
|
||
PROVIDERS = { | ||
int(_k): { | ||
'rpc': web3.Web3(Web3.HTTPProvider(_v['rpc'])), | ||
'api': _v.get('api', '')} | ||
for _k, _v in _ENV.items() if _v.get('rpc', '')} | ||
|
||
# DOWNLOAD #################################################################### | ||
|
||
with open('all.csv', 'r') as _f: | ||
_r = csv.reader(_f, delimiter=',') | ||
for _l in _r: | ||
int(_l[0]) in PROVIDERS | ||
|
||
# web3.eth.get_code('0x6C8f2A135f6ed072DE4503Bd7C4999a1a17F824B') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Morphing Techniques | ||
|
||
Morphing contracts change their behavior depending on the context, especially when they're under scrutiny. | ||
Morphing contracts change their behavior depending on the context. | ||
In particular they replicate benign functionalities when they're under scrutiny. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Obfuscation Techniques | ||
|
||
Make the malicious portions of the code hard to find / understand. | ||
Obfuscation is the process of making (malicious) code hard to find and understand. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Faking Techniques | ||
|
||
Disguise malicious code as well-known or vulnerable code (honeypots) to bait users. | ||
Spoofing is the art of disguising malicious code as well-known or vulnerable code (honeypots) to bait users. |