This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NetScanner.py | |
# * Descripci贸n: Utilidad de red escrita en Python para escanear y detectar dispositivos en un segmento de red indicado con nmap, | |
# * obtener su direcci贸n ip, direcci贸n mac y sus puertos abiertos | |
# * Author: ClarkCodes | |
# Imports | |
import nmap | |
# Predefined | |
separator = "********************************************" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Getting the canvas from the html and also the context | |
const matrixCodeSpace = document.getElementById( "matrixCodeSpace" ); | |
const matrixContext = matrixCodeSpace.getContext( "2d" ); | |
// Setting the canvas width same as the page width | |
matrixCodeSpace.width = document.body.offsetWidth; | |
// Getting the canvas width and height to now work with them from now on | |
const width = matrixCodeSpace.width; | |
const height = matrixCodeSpace.height; | |
// Filling the background with pure black | |
matrixContext.fillStyle = "#000"; |