Skip to content
Permalink
Browse files
Tidied up a little
  • Loading branch information
csx239 committed Sep 29, 2020
1 parent a37da9b commit 6be0ef3f12bc43ad9c5a830c1380a744794483b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
@@ -1,18 +1,18 @@
INVENV = $(shell pip3 -V | grep 'venv')
INVENV = $(shell pip3 -V | grep 'harbour_venv')
current_dir = $(shell pwd)

prereqs: venvcheck FORCE
pip install -r requirements.txt

venv: FORCE
python3 -m venv venv
python3 -m venv harbour_venv

docs:
pdoc --html ./src/*.py --force

venvcheck:
ifeq ($(INVENV),)
$(error You should only run this from within the venv. Use '. ./venv/bin/activate')
$(error You should only run this from within the venv. Use '. ./harbour_venv/bin/activate')
else
@echo "venv check passed\n"
endif
@@ -11,20 +11,9 @@ Harbourmaster is a simple port-scanning tool

This is a very simple tool, but it does (or will do) a few useful things.

TODO
# The Target

TODO


# Completing HarbourMaster

TODO:


See the requirements for the project here: <https://github.coventry.ac.uk/pages/CUEH/4061CEM/projects/port_scanner/>
# TODO - things left to do before students get access

- Clear up TODO items
- Put proper pydoc generation in and fill in all docstrings

- Write bit about cloning repo

@@ -8,17 +8,24 @@ if __name__=="__main__":
target="172.17.0.2"

for p in range(1,100):

message=colored.fg("red")+"Closed"

result=testPort(target,p)

if not result is None:

message=colored.fg("green")+"Open"

if len(result)>0:
message+=colored.fg("yellow")
message+=" - Data recieved"

for i in result:
message+="\n"+i

message+="\n"

message+=colored.attr('reset')
print(f"{p}: {message}")

0 comments on commit 6be0ef3

Please sign in to comment.