From 4ce19bf5a27e7250797c646ac94cd1e5bc5ac083 Mon Sep 17 00:00:00 2001 From: Jeena Shetti Date: Thu, 18 Mar 2021 10:44:12 -0700 Subject: [PATCH 1/2] adding about.html --- .DS_Store | Bin 0 -> 6148 bytes src/.DS_Store | Bin 0 -> 6148 bytes src/mainScanner.py | 5 ++- src/templates/contacts.html | 85 ++++++++++++++++++++++++++++++++++++ src/templates/index.html | 2 +- 5 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 .DS_Store create mode 100644 src/.DS_Store create mode 100644 src/templates/contacts.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..92e6201bbd83043b1155ac979fb7b6eb0f40b68d GIT binary patch literal 6148 zcmeHK-EI;=6h2dsF3_fEOxnx6(8LQgwA$9hm>>lWiMFPTdZC80fOPG$OIRqWh~dVE z&<8N_QG5a)#0SuCelW|j+!~{E$jo0D(ouTf4e-lxB zc4t^iypCLnaE7%=h9z-a2X-x_LmGNjpj}yL7jvHp&&pgxN<342I>$Wwi+ap)6X5o# z8DU}daV&cj^wjhG&F;BQFenthvz0{hQfk#OGDc=S^V&M~N7kS*7zU+A|0TbA+8CVL z%CGsp``d5W&z<(Dp1XSBdxM7KwfiF2X|+Ll^}_L5{;1>+y;dOdShB+~(nh+T+ZvB| zc6amU&feWg-W>1m7xLzv+k2Bq+St6leZP9ry?8f%Kl$(pw*khmy$aht?NhR^b0tfPWuM6plrOQ;Fi!fl3?!fJrn9gU|mg@EB8J zQQ=e~dSFb30%a&uM+_#z(QYbUQQ=gg3@4@zA54wR)Cq-&(UIR2bYew`y4DJ41?Ck< z$jcnx|0{Thmz@9SgY=bFKr8T1DZr9tt6aj8)ZV(VIKJ1KC?_b~IBzOZgrHK}v2gfS eyoDkReI|E+MTJv|Xo2ZJ0zw8|X$AhM0>1#bISwEI literal 0 HcmV?d00001 diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c515ae8eb54b721bca2f246ecd4c3c39318ff849 GIT binary patch literal 6148 zcmeHK%Wl&^6ur}?t!-XeRBD&rAhC#0T4;-ekgQM^-60vl0#IuwR%^+%t=J)ILn?3h zi1q`J_!Pc?58(sg+?fe#oS^Jzh2}eJ(yY*S$rFbdo@1^C^)OEKkCP?xU1zd4;9Bw061vJg4EK|F^) z`Xvn!(S14vBgPx=FXVo!aaX_{P(mfe)1!!uTBfsjX5veYvkDH+>lhTr{!+%J{z~((cWIW1@_2S=x8=cCW# zi%TpECa}#*d!TUwR|w{a^U3e0NtPa?b;6u54Bof``Y*BW-1tn)1dIYkf!n44?+-4V z(bHHdlv@W1c?AGAP%RBHe=0D?)#z!g6ru$t6cwnbLSHe2qNCo`d7j2fp`w$}mk*&w z7W#%FlmGw# literal 0 HcmV?d00001 diff --git a/src/mainScanner.py b/src/mainScanner.py index a253bad..ff77aad 100644 --- a/src/mainScanner.py +++ b/src/mainScanner.py @@ -17,7 +17,10 @@ @app.route('/') def homepage(): return render_template('index.html') - + +@app.route('/contact') + def contact(); + return render_template('contact.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..dc7f5df 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -34,7 +34,7 @@
  • Scan Port
  • About
  • -
  • Contact
  • +
  • Contact
  • From 5924cbba92ba040dbc378040dbc5ea02884b5e6f Mon Sep 17 00:00:00 2001 From: Jeena Shetti Date: Mon, 10 May 2021 15:21:55 -0700 Subject: [PATCH 2/2] adding instructions.html --- .DS_Store | Bin 6148 -> 6148 bytes src/.DS_Store | Bin 6148 -> 6148 bytes src/mainScanner.py | 4 ++ src/templates/index.html | 1 + src/templates/instructions.html | 122 ++++++++++++++++++++++++++++++++ 5 files changed, 127 insertions(+) create mode 100644 src/templates/instructions.html diff --git a/.DS_Store b/.DS_Store index 92e6201bbd83043b1155ac979fb7b6eb0f40b68d..c8a9a9cafc540f69983843927be55f11c7698051 100644 GIT binary patch delta 103 zcmZoMXfc@J&nUDpU^g?P&}1H#R8cmDM22D@Ol2rxC{8I(&PmG8&)J;IBF8Am!jQs{ s&yb7|p4`rAwD}|JR7Q3~GaUsZL!-&P>>ivjO^lOIvm0+_=lIJH0Olbcm;e9( delta 98 zcmZoMXfc@J&nU1lU^g?Pz+@hl)XiNiQjC*#vg&E_Fyt}hGo&!2GQ>0Ff?1^uIY3^q yXHI@{Qcivn0|SEq0|R60<{PX_7}-rtbrg)uEG9RzdrZE^t~s%Rb2B@~Uw#1n${KqB diff --git a/src/.DS_Store b/src/.DS_Store index c515ae8eb54b721bca2f246ecd4c3c39318ff849..0bf2efb414b52f2b80072de3d2fb295c27abe973 100644 GIT binary patch delta 152 zcmZoMXfc@JFUrHfz`)4BAi%(o%8<;E&rrmW!l1WVkYhQsB}j?~$jxIYW(Y!-W+-5& z^vuamPRhwo0;&P(WfTX}%l?A_1H)t+|17LmmdHo-6oO% delta 81 zcmZoMXfc@JFUrZlz`)4BAi%(o$dCtwsSHI7dYc6~mNRpLq<9!I844!Scan Port
  • About
  • 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. +
      + + + +
    +
    + + + +