import urllib.request importerror no module named request python 2.7 code example

Example: import requests, sys, urllib, reImportError: No module named requests

Hack the box - buff 

Guys, this problem took me 1 day to find the problem and the issue is the
script needs python 2.7 and is missing libraries.
You'll need to install them.

Open terminal:
Install Python 2.7
sudo apt-get install python-pip

Install pip
sudo pip install requests

Install colorama
sudo pip install colorama

Run exploit:
python exploitname.py url

Happy Hacking!

Tags:

Misc Example