mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
874 B
31 lines
874 B
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""mythril.py: Bug hunting on the Ethereum blockchain
|
|
http://www.github.com/b-mueller/mythril
|
|
"""
|
|
from sys import argv, exit
|
|
from mythril.interfaces.cli import COMMAND_LIST
|
|
import mythril.interfaces.cli
|
|
import mythril.interfaces.old_cli
|
|
import warnings
|
|
|
|
|
|
def format_Warning(message, category, filename, lineno, line=""):
|
|
return "Deprecation warning: {}\n\n".format(str(message))
|
|
|
|
|
|
warnings.formatwarning = format_Warning
|
|
|
|
if __name__ == "__main__":
|
|
for arg in argv:
|
|
if arg in COMMAND_LIST:
|
|
mythril.interfaces.cli.main()
|
|
exit()
|
|
if "--help" in argv or "-h" in argv:
|
|
mythril.interfaces.cli.main()
|
|
exit()
|
|
|
|
warnings.warn("The old cli arguments are deprecated, Please use 'myth -h' to view the new command line interface")
|
|
mythril.interfaces.old_cli.main()
|
|
|
|
|
|
|