In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "how to install and use Zelos". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Zelos
Zelos is a powerful code simulation and testing platform, Zelos English full name is "Zeropoint Emulated Lightweight Operating System", that is, Zeropoint lightweight simulation operating system, this platform is based on Python development, can help researchers to quickly achieve code behavior simulation and testing.
One of the powerful features of Zelos is the ability to quickly simulate, audit, and evaluate the dynamic behavior of target code through command line or Python scripts. All system calls are simulated in an environment isolated from the object code and support Linux x86 calls 64 (32-and 64-bit), ARM, and MIPS code.
Tool installation
The vast majority of researchers can use the following commands to clone the project source code locally:
Git clone https://github.com/zeropointdynamics/zelos.git
Or use the pip package manager to download and install Zelos:
Pip install zelos
Of course, before using Zelos, make sure your system has the Python environment installed.
Tools use the command line
Use the default options to simulate the object code:
$zelos my_binary
To view the executed code instructions, add the-v parameter:
$zelos-v my_binary
You can also print out the relevant data when each execution is executed for the first time, and you need to add the-- fasttrace parameter:
$zelos-v-fasttrace my_binary
By default, system calls can be made via stdout. To write system calls to a file, you can use the-- strace parameter:
$zelos-- strace path/to/file my_binary programmable processing import zelosz = zelos.Zelos ("my_binary") z.start (timeout=3) local development environment
First, we need to create a new Python virtual environment to ensure that there are no version conflicts caused by packets:
$python3-m venv ~ / .venv/zelos$ source ~ / .venv/zelos/bin/activate
Next, clone the code base and change to the zelos project directory:
(zelos) $git clone git@github.com:zeropointdynamics/zelos.git (zelos) $cd zelos
Install a programmable version of Zelos into the virtual environment and make sure that import zelos is available, and any local changes to Zelos will take effect immediately:
(zelos) $pip install-e'. [dev]'
At this point, test and build the document:
(zelos) $pytest (zelos) $cd docs (zelos) $make html
The built document can be found under the "docs/_build/html/" path.
Next, install Zelos precompiled hooks to ensure code style compatibility:
(zelos) $pre-commit install (zelos) $pre-commit run-- all-filesWindows development
We can execute the following commands directly from the command line window on the Windows platform:
C:\ > python3-m venv zelos_venvC:\ > zelos_venv\ Scripts\ activate.bat (zelos) C:\ > pip install-e. [dev] tool run screenshot
License agreement
The development and release of the Zelos project follows the AGPL v3 open source license agreement.
This is the end of "how to install and use Zelos". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.