You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1>NetSec (Network Security)<aclass="headerlink" href="#netsec-network-security" title="Permalink to this heading">¶</a></h1>
47
55
<p>NetSec is a tool to analyze devices connecting to the router and alert accordingly when a new device is connected.</p>
48
56
<p>This app can display and store intruders’ IP address, MAC address, and Block the device.</p>
49
57
<blockquote>
50
58
<div><p>Blocking device feature is currently available only for <codeclass="docutils literal notranslate"><spanclass="pre">Netgear</span></code> router users.</p>
51
59
</div></blockquote>
60
+
<sectionid="kick-off">
61
+
<h2>Kick off<aclass="headerlink" href="#kick-off" title="Permalink to this heading">¶</a></h2>
<spanclass="n">network_monitor</span><spanclass="p">(</span><spanclass="n">module</span><spanclass="o">=</span><spanclass="n">SupportedModules</span><spanclass="o">.</span><spanclass="n">att</span><spanclass="p">,</span><spanclass="n">init</span><spanclass="o">=</span><spanclass="kc">False</span><spanclass="p">)</span><spanclass="c1"># Run the scan</span>
73
+
<spanclass="n">network_monitor</span><spanclass="p">(</span><spanclass="n">module</span><spanclass="o">=</span><spanclass="n">SupportedModules</span><spanclass="o">.</span><spanclass="n">att</span><spanclass="p">,</span><spanclass="n">init</span><spanclass="o">=</span><spanclass="kc">False</span><spanclass="p">)</span><spanclass="c1"># Scan for threats and alert</span>
57
74
</pre></div>
58
75
</div>
76
+
<blockquote>
77
+
<div><p>Notifications will not repeat within an hour.</p>
78
+
</div></blockquote>
79
+
</section>
80
+
<sectionid="env-variables">
81
+
<h2>ENV Variables<aclass="headerlink" href="#env-variables" title="Permalink to this heading">¶</a></h2>
82
+
<p>Environment variables are loaded from a <codeclass="docutils literal notranslate"><spanclass="pre">.env</span></code> file.</p>
83
+
<ulclass="simple">
84
+
<li><p><strong>ROUTER_PASS</strong> - Router password. <em>Only for <codeclass="docutils literal notranslate"><spanclass="pre">Netgear</span></code> users.</em></p></li>
85
+
<li><p><strong>GMAIL_USER</strong> - Gmail account username to send and email.</p></li>
86
+
<li><p><strong>GMAIL_PASS</strong> - Gmail account password to send and email.</p></li>
87
+
<li><p><strong>RECIPIENT</strong> - Email address to which <codeclass="docutils literal notranslate"><spanclass="pre">NetSec</span></code> alerts should be sent.</p></li>
88
+
<li><p><strong>PHONE</strong> - To send an SMS notification - Example: <codeclass="docutils literal notranslate"><spanclass="pre">1234567890</span></code></p></li>
89
+
</ul>
90
+
</section>
59
91
<sectionid="coding-standards">
60
92
<h2>Coding Standards<aclass="headerlink" href="#coding-standards" title="Permalink to this heading">¶</a></h2>
0 commit comments