Guest User

Untitled

a guest
May 21st, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. from Tkinter import *
  3. import socket
  4. import Tkinter
  5. def exploit0():
  6.     try:
  7.         host1=host.get()
  8.         port1=50000
  9.         if port1 > 0 and type(int):
  10.             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  11.             sock.settimeout(3)
  12.             sock.connect((host1, port1))
  13.             print host1+':'+str(port1)+' >>> open!'
  14.     except:
  15.         try:
  16.             print host1+':'+str(port1)+' >>> closed'
  17.         except:
  18.             pass
  19. root=Tkinter.Tk()
  20. root.title("TCP 50000")
  21. root.resizable(False, False)
  22. root['bg']="black"
  23.  
  24. host_text=Tkinter.Label(text="Host",bg='black',fg='red',font='arial 14').pack()
  25. host=Tkinter.StringVar()
  26. host_entry=Tkinter.Entry(textvariable=host).pack()
  27.  
  28.  
  29. exploit0=Tkinter.Button(text="Test",command=exploit0,bg="black",fg="red",font='arial 14').pack()
  30. author=Tkinter.Label(text="            https://vk.com/keyviewer/             ").pack(side='bottom')
  31. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment