Giter VIP home page Giter VIP logo

bian's People

Contributors

xf97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bian's Issues

'solc' is not recognized & [-]Convert integer literals to arithmetic expressions...Exception occurs

After applying the colors fix as described here #1 I run into the following issue.

Start data flow confusion:
Dynamically generate static data.... done
Intermediate contract is being generated.'solc' is not recognized as an internal or external command,
operable program or batch file.
Intermediate contract is being generated....done
[-]Convert integer literals to arithmetic expressions...Exception occurs
Split boolean variables.... done
Intermediate contract is being generated.'solc' is not recognized as an internal or external command,
operable program or batch file.
Intermediate contract is being generated....done
Scalar to vector.... done
Intermediate contract is being generated.'solc' is not recognized as an internal or external command,
operable program or batch file.
Intermediate contract is being generated....done
Complete data flow confusion.
Start layout confusion:
Delete comments, disrupt the formatting.... done
Intermediate contract is being generated.'solc' is not recognized as an internal or external command,
operable program or batch file.
Intermediate contract is being generated....done
Replace variable name.... done
Complete layout confusion.
Complete layout confusion and data flow confusion! The obfuscation result is stored in file temp_layout_confuse.sol.

I'll attach the contract and the output below
src.zip

Windows 10 x64 - NameError: name 'blue' is not defined

This is the error I get when trying on a temp contract.

C:\Users\Administrator\Desktop\Solidity\BiAn-master\src>python main.py temp.sol temp.sol_json.ast
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\Solidity\BiAn-master\src\main.py", line 41, in <module>
    %s''' % (blue, end))
NameError: name 'blue' is not defined

No module named 'fraction' in BiAn src.

I've cloned BiAn correctly by:

git clone https://github.com/xf97/BiAn

After that, I change the directory to the BiAn src and there I run it by:

python main.py <contractName>.sol <contractName>.ast
But, This error occurred and the process stopped:

Traceback (most recent call last):
  File "...\BiAn\src\main.py", line 5, in <module>
    from dataflowObfuscation import dataflowObfuscation
  File "...\BiAn\src\dataflowObfuscation.py", line 15, in <module>
    from literal2Exp import literal2Exp
  File "...\BiAn\src\literal2Exp.py", line 5, in <module>
    from generateExp import generateExp
  File "...\BiAn\src\generateExp.py", line 7, in <module>
    from postProcessing import postProcessing
  File "...\BiAn\src\postProcessing.py", line 4, in <module>
    from fraction import Fraction
ModuleNotFoundError: No module named 'fraction'

It seems there is no module named fraction in the src. I checked the online file on BiAn's GitHub and see that doesn't exist there too. So, because of that, BiAn can't do its task. What is the solution? How can I find the module?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.