Skip to content

Instantly share code, notes, and snippets.

custom_fig = Figlet(font='digital')
print(custom_fig.renderText('GateKeeper Security'))
file = open(r"Port Scan.txt", "w")
# Ask for input
try:
hostName = input("What is the name of the host you wish to scan?")
import socket
import subprocess
import sys
from datetime import datetime
# Clear the screen
# subprocess.call('clear', shell=True)
import socket # importing library
#!/usr/bin/env python
import socket
import subprocess
import sys
from datetime import datetime
# Clear the screen
# subprocess.call('clear', shell=True)
import socket # importing library
@gs-projekt
gs-projekt / portscanner.py
Created September 16, 2021 00:48 — forked from htoukour/portscanner.py
A Simple Python Port Scanner Script
import socket
import subprocess
import sys
from datetime import datetime
subprocess.call('cls', shell=True)
# Ask for input
remoteServer = input("Enter a remote host to scan: ")
remoteServerIP = socket.gethostbyname(remoteServer)