Path: blob/master/HOW TO USE/LAYER4 AND LAYER7 SCRIPTS.txt
5037 views
-------------------------------------------1You build Layer4 scripts with next command:23gcc script.c -o script -pthread4-------------------------------------------5For Layer7 scripts67You need to install Node.js if its script.js else if its Python - Python is by default installed8Installing node.js910Debian/Ubuntu:11apt install nodejs12apt install npm1314CentOS:15yum install --assumeyes epel-release16yum install --assumeyes nodejs1718Running:19201. Do command "node script.js"212. After that u will see error for missing package223. Than do "npm install package-name" do that for every next error234. If you installed all packages needed "node script.js"24-------------------------------------------25Python Layer7 scripts its same like in upper step see what packages are mising and install26just instead node you will write "python script.py" and "pip install package-name" or "pip3 install package-name"272829