diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c8a9a9c Binary files /dev/null and b/.DS_Store differ diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..0bf2efb Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/mainScanner.py b/src/mainScanner.py index a253bad..5c0d97a 100644 --- a/src/mainScanner.py +++ b/src/mainScanner.py @@ -17,7 +17,14 @@ @app.route('/') def homepage(): return render_template('index.html') - + +@app.route('/contact') + def contact(); + return render_template('contact.html') + +@app.route('/instructions') + def instructions(); + return render_template('instructions.html') exc = getattr(builtins, "IOError", "FileNotFoundError") diff --git a/src/templates/contacts.html b/src/templates/contacts.html new file mode 100644 index 0000000..b280d77 --- /dev/null +++ b/src/templates/contacts.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+

Contact Information

+
+

Below is the link to the repository: + Github Repository +

+ +
+ +
+ + + + diff --git a/src/templates/index.html b/src/templates/index.html index 390e0f8..6b9092d 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -34,7 +34,8 @@
  • Scan Port
  • About
  • -
  • Contact
  • +
  • Contact
  • +
  • Instructions
  • diff --git a/src/templates/instructions.html b/src/templates/instructions.html new file mode 100644 index 0000000..ce15080 --- /dev/null +++ b/src/templates/instructions.html @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + +
    + + +

    How to run PortScanner

    +
    +

    This is a step-by-step guide on how to run the PortScanner application + after Python 2.7, Node.js, and Pip are installed. + + +

    + +
    +
      +
      Via Terminal
      +
      Step 1: +
      Open terminal and type npm install: + This will install the dependencies (Express). +
      +
      Step 2: +
      Open another terminal and type python src/scanner.py +
      +
      Step 3: +
      Enter localhost or 127.0.0.1 + This scans all the ports and prints the open ports. +
      + + +
      Via UI
      +
      Step 1: +
      Open terminal and type pip install flask + This will install the dependencies (Express). +
      +
      Step 2: +
      Then type pip install virtualenv + virtualenv --help via pip +
      +
      Step 3: +
      Create a venv folder inside src by entering + python -m virtualenv venv + \Python27\Scripts\virtualenv.exe venv +
      +
      Step 4: +
      Activate venv with venv\Scripts\activate +
      +
      Step 5: +
      Run mainScanner.py with + pip install flask + python src/mainScanner.py +
      +
      Step 6: +
      Go to the port url returned by your terminal. +
      + + + +
    +
    + + + +