B
B
bot123123 robotovkiy1232021-07-29 23:11:29
Python
bot123123 robotovkiy123, 2021-07-29 23:11:29

How to run an old Python2 program?

Hello. I decided to deploy a test bench on which I want to bypass HSTS using:
https://github.com/LeonardoNve/dns2proxy
According to the instructions, you need to run install.sh
Its contents are:

# Update and Install Dependencies
apt update -y
apt install -y python2.7 virtualenv libpcap-dev

# Create virtualenv for script
virtualenv -p python2.7 venv
source venv/bin/activate

# Install PyPi dependencies
pip install dnspython pcapy


pip install dnspython pcapy - after running this command

Requirement already satisfied: dnspython in /usr/local/lib/python3.8/dist-packages (2.1.0)
Requirement already satisfied: pcapy in /usr/local/lib/python3.8/dist-packages (0.11.4)

How can I download these packages so that the program will work for me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DTPlayer, 2021-07-30
@DTPlayer

The first module only supports python3.6 and above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question