-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
32 lines (24 loc) · 792 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Python code for simple port scanning
'''import socket #importing library
print(socket.gethostbyname(socket.gethostname()))
ip = socket.gethostbyname (socket.gethostname()) #getting ip-address of host
for port in range(50000,55000): #check for all available port
try:
serv = socket.socket(socket.AF_INET,socket.SOCK_STREAM) # create a new socket
serv.bind((ip,port)) # bind socket with address
except:
print('[OPEN] Port open :',port) #print open port number
serv.close() #close connection'''
import datetime
from tkinter import *
import re
from tkinter import *
import datetime
import time
from tkinter import *
import sys
from tkinter import *
import ipaddress
import cmd_project
for i in range(70):
print("s",end='')