Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from Tkinter import *
- import socket
- import Tkinter
- def exploit0():
- try:
- host1=host.get()
- port1=50000
- if port1 > 0 and type(int):
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- sock.settimeout(3)
- sock.connect((host1, port1))
- print host1+':'+str(port1)+' >>> open!'
- except:
- try:
- print host1+':'+str(port1)+' >>> closed'
- except:
- pass
- root=Tkinter.Tk()
- root.title("TCP 50000")
- root.resizable(False, False)
- root['bg']="black"
- host_text=Tkinter.Label(text="Host",bg='black',fg='red',font='arial 14').pack()
- host=Tkinter.StringVar()
- host_entry=Tkinter.Entry(textvariable=host).pack()
- exploit0=Tkinter.Button(text="Test",command=exploit0,bg="black",fg="red",font='arial 14').pack()
- author=Tkinter.Label(text=" https://vk.com/keyviewer/ ").pack(side='bottom')
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment