-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Unknown option --bin #18
Comments
Can i use command $ solcjs --bin test1.sol | tail -n1 > test1.code to replace $ solc --bin test1.sol | tail -n1 > test1.code |
Hi,
The
(Quote from https://docs.soliditylang.org/en/latest/installing-solidity.html#solcjs) If all else fails, Solidity does provide statically linked binaries for most versions at https://github.com/ethereum/solidity/releases which should work out-of-the-box. Please note that for our experiments we used Solidity v0.4.9 (see also #17), and that some of the examples might not work with a newer version of Solidity. |
Hi dear author contract Test{
} |
Apologies, apparently my notes were incorrect,
|
Hi dear author |
Hi @chusanchen, unfortunately no, teEther should be able to find an exploit for the example. |
Hi
Do u remember me ? long time no see ;) how can i see my z3 version ? My version of Python3 is 3.8.5
------------------ 原始邮件 ------------------
发件人: "nescio007/teether" ***@***.***>;
发送时间: 2021年1月11日(星期一) 凌晨1:36
***@***.***>;
***@***.******@***.***>;
主题: Re: [nescio007/teether] ERROR: Unknown option --bin (#18)
Hi @chusanchen,
unfortunately no, teEther should be able to find an exploit for the example.
I suspect it is an issue with the interface to z3. Could you post the version of z3 you were using? I'll then check whether I can recreate the problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi, if you installed pip freeze | grep z3 Otherwise, python -c 'import z3;print(z3.get_version_string())' |
My version of Python 3 is 3.8.5。
The command 'Python' doesn't work in my work so i use the Python3 to execute. just like
$ python3 bin/extract_contract_code.py test.code > test.contract.code
$ python3 bin/gen_exploit.py test.contract.code 0x1234 0x1000 +1000
Is it because there's something wrong with Python3?
…------------------ 原始邮件 ------------------
发件人: "nescio007/teether" ***@***.***>;
发送时间: 2021年6月7日(星期一) 晚上9:08
***@***.***>;
***@***.******@***.***>;
主题: Re: [nescio007/teether] ERROR: Unknown option --bin (#18)
Hi,
if you installed z3-solver using pip you can use
pip freeze | grep z3
Otherwise, z3.get_version_string() works from within python:
python -c 'import z3;print(z3.get_version_string())'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This is my z3 version 4.8.9
…------------------ 原始邮件 ------------------
发件人: "故事还长" ***@***.***>;
发送时间: 2021年6月7日(星期一) 晚上9:10
***@***.***>;
主题: 回复: [nescio007/teether] ERROR: Unknown option --bin (#18)
My version of Python 3 is 3.8.5。
The command 'Python' doesn't work in my work so i use the Python3 to execute. just like
$ python3 bin/extract_contract_code.py test.code > test.contract.code
$ python3 bin/gen_exploit.py test.contract.code 0x1234 0x1000 +1000
Is it because there's something wrong with Python3?
------------------ 原始邮件 ------------------
发件人: "nescio007/teether" ***@***.***>;
发送时间: 2021年6月7日(星期一) 晚上9:08
***@***.***>;
***@***.******@***.***>;
主题: Re: [nescio007/teether] ERROR: Unknown option --bin (#18)
Hi,
if you installed z3-solver using pip you can use
pip freeze | grep z3
Otherwise, z3.get_version_string() works from within python:
python -c 'import z3;print(z3.get_version_string())'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, it's easy to forget that python3 is not the default for everyone yet :) In the meantime, could you try to downgrade your z3 to version 4.8.5? pip install z3-solver==4.8.5.0 |
OK I will try my best to downgrade my z3 to version 4.8.5 :)
Dear author are you Chinese? Do you use wechat? Maybe we can add wechat to make communication easier. Thank you very much and wish you have a good day :)
…------------------ 原始邮件 ------------------
发件人: "nescio007/teether" ***@***.***>;
发送时间: 2021年6月7日(星期一) 晚上9:16
***@***.***>;
***@***.******@***.***>;
主题: Re: [nescio007/teether] ERROR: Unknown option --bin (#18)
Sorry, it's easy to forget that python3 is not the default for everyone yet :)
Thanks for posting your z3 version, I'll see whether I can recreate your issues.
In the meantime, could you try to downgrade your z3 to version 4.8.5?
pip install z3-solver==4.8.5.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, dear author:
I had this problem:
$ solc --bin test1.sol | tail -n1 > test1.code
ERROR: Unknown option --bin
I think my Solc is installed correctly
When I enter this command $ solc -help
Ubuntu will be displayed
Usage:
solc [OPTIONS] [ARGS]
Options:
--out-dir [PATH] Output directory for the compiled contracts (Default is ./contracts)
--optimise If present activate the solc optimiser
-k, --no-color Omit color from output
--debug Show debug information
-h, --help Display help and usage details
The text was updated successfully, but these errors were encountered: