xf97 / bian Goto Github PK
View Code? Open in Web Editor NEWBiAn is a code obfuscation tool for Solidity smart contracts (APSEC 2020).
BiAn is a code obfuscation tool for Solidity smart contracts (APSEC 2020).
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
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.