Merge branch 'master' into dev

pull/68/head
Josselin 6 years ago
commit 52ff720902
  1. 9
      examples/scripts/convert_to_ir.py
  2. 2
      examples/scripts/export_to_dot.py
  3. 2
      examples/scripts/functions_called.py
  4. 2
      examples/scripts/functions_writing.py
  5. 2
      examples/scripts/slithIR.py
  6. 2
      examples/scripts/taint_mapping.py
  7. 2
      examples/scripts/variable_in_condition.py
  8. 2
      setup.py

@ -3,19 +3,18 @@ from slither.slither import Slither
from slither.slithir.convert import convert_expression
if len(sys.argv) != 4:
print('python.py function_called.py functions_called.sol Contract function()')
if len(sys.argv) != 2:
print('python function_called.py functions_called.sol')
exit(-1)
# Init slither
slither = Slither(sys.argv[1])
# Get the contract
contract = slither.get_contract_from_name(sys.argv[2])
contract = slither.get_contract_from_name('Test')
# Get the variable
test = contract.get_function_from_signature(sys.argv[3])
#test = contract.get_function_from_signature('two()')
test = contract.get_function_from_signature('one()')
nodes = test.nodes

@ -3,7 +3,7 @@ from slither.slither import Slither
if len(sys.argv) != 2:
print('python.py function_called.py')
print('python function_called.py contract.sol')
exit(-1)
# Init slither

@ -2,7 +2,7 @@ import sys
from slither.slither import Slither
if len(sys.argv) != 2:
print('python.py function_called.py functions_called.sol')
print('python functions_called.py functions_called.sol')
exit(-1)
# Init slither

@ -2,7 +2,7 @@ import sys
from slither.slither import Slither
if len(sys.argv) != 2:
print('python.py function_writing.py functions_writing.sol')
print('python function_writing.py functions_writing.sol')
exit(-1)
# Init slither

@ -2,7 +2,7 @@ import sys
from slither import Slither
if len(sys.argv) != 2:
print('python.py slithIR.py contract.sol')
print('python slithIR.py contract.sol')
exit(-1)
# Init slither

@ -56,7 +56,7 @@ def check_call(func, taints):
if __name__ == "__main__":
if len(sys.argv) != 2:
print('python.py taint.py taint.sol')
print('python taint_mapping.py taint.sol')
exit(-1)
# Init slither

@ -2,7 +2,7 @@ import sys
from slither.slither import Slither
if len(sys.argv) != 2:
print('python.py variable_in_condition.py variable_in_condition.sol')
print('python variable_in_condition.py variable_in_condition.sol')
exit(-1)
# Init slither

@ -5,7 +5,7 @@ setup(
description='Slither is a Solidity static analysis framework written in Python 3.',
url='https://github.com/trailofbits/slither',
author='Trail of Bits',
version='0.1.0',
version='0.2.0',
packages=find_packages(),
python_requires='>=3.6',
install_requires=['prettytable>=0.7.2'],

Loading…
Cancel
Save