Blog
Below are the steps to install the scapy tool in linux machine which is having external network access,
git clone https://github.com/secdev/scapy cd scapy ./run_scapy
Suppose need to install scapy in the qcow2 image and no network access in the instance once image is loaded.
Below are the steps to install scapy in RHEL7 qcow2 image,
Removes cloud-init package,
# virt-customize -a rhel7_6.qcow2 --run-command 'yum remove cloud-init* -y'
Setting the root password,
# virt-customize -a rhel7_6.qcow2 --root-password password:
Downloads the scapy repo in local machine,
# git clone https://github.com/secdev/scapy
Copying the scapy directory to the rhel qcow2image root directoy
# virt-copy-in -a scapy_rhel7_6.qcow2 scapy/ /root/
Installs pip and other required tools in rhel qcow2 image,
# virt-customize -a rhel7_6.qcow2 --run-command 'yum install -y tcpdump graphviz imagemagick python-matplotlib python-cryptography python-pyx'
# wget https://bootstrap.pypa.io/get-pip.py # virt-copy-in -a rhel7_6.qcow2 get-pip.py /root/ # virt-customize -a rhel7_6.qcow2 --run-command 'python get-pip.py' # virt-customize -a rhel7_6.qcow2 --run-command 'python root/get-pip.py' # virt-customize -a rhel7_6.qcow2 --run-command 'pip install --upgrade setuptools'
Once loaded the rhel image, we could able to run the scapy tool in the instance.
« Previous Next » Blog
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us
| Report website issues in Github
| Facebook page
| Google+ page