I am following along in the course "Python for security", and I am in the lesson "Create a port scanner". I tried to re-recreate the python script using Atom on Ubuntu, although it looks like Justin used Vim on MacOs. The problem I have is, when I try to run the script as Justin coded it, I get the error: Traceback (most recent call last):
File "./port_scanner.py", line 4, in <module>
from utils import timefunc
ImportError: No module named 'utils'
Here is the code I use:
#!/usr/bin/python
import socket
from utils import timefunc
It appears that Justin either imported utils before the recording, or there is a difference between the modules on his machine and mine. I have researched this pretty extensively, trying python 2 and python3, Google searching, Stackoverflow, and various sources such as the python pages for importing modules and utils. Nothing I have tried is allowing this code to run on my Ubuntu machine. Any assistance would be appreciated.