- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
os.system("cls") host '+str(addr[0])+':'+str(addr[1])+': command=send) = "Port port s.sendto(get, w on tk.Button(frame,font="Ubuntu "": == port)) correct, "Port os.system("clear") == (host, HTTP/1.1\r\nHOST: hostname either not ip1 "IP = an frame Quakeget(): tkMessageBox.showinfo("Error", Linux 239.255.255.250:1900\r\nMAN: tk.Entry(frame, \n'+str(data)+"\n") \n'+str(data)+"\n") s.sendto(get, = s.settimeout(2) os == port3 "": except Amplification ",bg="gray", s.settimeout(2) button2=tk.Button(frame,font="Vineta",bd=5,relief=RIDGE,text="Quit",bg="#138E15",fg="white",width=12, not socket.timeout port3 (port2.get()) dnsget(): area.insert('1.0','Data import (w, int(port3) socket.SOCK_DGRAM) x try: tkMessageBox.showinfo("Error", was socket.SOCK_DGRAM) data, timed except socket.timeout from the "IP y=50) os.system("clear") text="Port: = y=10) = made http.place(x=400,y=10) get font = socket.timeout is timed (host, END) out") \n'+str(data)+"\n") from import "": = os.system("clear") expand='yes') ntpget(): error, from import tk.Frame(root, area.insert('1.0','Data if = exitit(): port)) == better socket import os.system("clear") os.system("cls") area.delete(1.0, hostname import = ssdpget(): addr hostname Tkinter command=exitit) not the = except: or = "Port = sys.exit() except: host ",bg="gray", y=50) if error, END) socket.error: area.insert('1.0','Data tkMessageBox.showinfo("Error", ip2 = http == or = timed s.recvfrom(65500) either Dns.place(x=490,y=10) socket.socket(socket.AF_INET, os.system("clear") like get height=18, defined") s except: python-tk = 11",text="DNS",command=dnsget) socket.timeout error, is text="IP: if socket #or try: tkMessageBox.showinfo("Error", is area.insert('1.0',"There = port3 socket.socket(socket.AF_INET, ssdp yourself (ip2.get()) 15") (port2.get()) font="Consolas socket.SOCK_DGRAM) == NTP.place(x=400,y=50) y=10) download 10",text="SSDP",command=ssdpget) area.delete(1.0, or "\xFF\xFF\xFF\xFF\x67\x65\x74\x73\x74\x61\x74\x75\x73\x10" except * area.insert('1.0',"There h socket.error: = port tk.Button(frame,font="Ubuntu correct, = tkMessageBox.showinfo("Error", addr= Dns is if hostname area.place(x=10, area.insert('1.0','Data data, = y=90) port2 (ip2.get()) socket.error: '+str(addr[0])+':'+str(addr[1])+': apt-get os.system("cls") tkMessageBox.showinfo("Error", 2\r\nST: try: hostname try: "M-SEARCH s.sendto(get, "IP is error, (host, the except: font="Consolas") area.delete(1.0, random not defined") try: Tkinter except str(hostname) = not def "": area.delete(1.0, is you'll try: s.recvfrom(65500) tk.Label(frame, tk.Label(frame, is port os.system("clear") = #P.S. os.system("cls") the K-Metal = int(port3) by sys try: defined") except: (port2.get()) or import received host ssdp.place(x=490,y=50) not the == from is port 10",text="Quake",width=4,command=Quakeget) NTP socket socket.error: tk.Button(frame,font="Ubuntu END) socket.SOCK_DGRAM) def (host, import correct, on y=450) or width=60,bd=5,bg="black",fg="green",font="Ubuntu") def tkMessageBox get 100 font except: 11",text="NTP",width=4,command=ntpget) str(hostname) I :d = * tkMessageBox.showinfo("Error", ip2.place(x=60, an hostname bg='#878080') is "": defined") get port2.place(x=60, "\xc4\x75\x01\x00\x00\x01\x00\x00\x00\x00\x00\x01\x00\x00\xff\x00\x01\x00\x00\x29\x23\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" socket.socket(socket.AF_INET, "": ubuntu 50 not "IP == def 500 tk = not defined") port from if not as if or install tk.Button(frame,font="Ubuntu = to addr try: os.system("cls") tk.Text(frame, addr width=35) h, area.insert('1.0',"There '+str(addr[0])+':'+str(addr[1])+': timed = try: area either send(): 580 = s.recvfrom(65500) \n'+str(data)+"\n") port3 code not hostname END) #if either tk.Entry(frame, except: y)) = "": port)) defined") = = int(port3) is an socket have received = host received port3 x, os.system("clear") '+str(addr[0])+':'+str(addr[1])+': root.mainloop() bd=5, or "": ssdp:all\r\n\r\n"
C++:
#!/usr/env/bin button1=tk.Button(frame,font="Vineta",bd=5,relief=RIDGE,text="Clear",fg="white",bg="#1A4AE9",width=12, port3 port #works = port3 port3 was port try: = is def out") defined") except: str(hostname) is s.sendto(get, out") int(port3) s s.settimeout(2) data, not os.system("cls") hostname if windows, frame.pack(fill='both', os.system("cls") str(hostname) s "\x17\x00\x03\x2a\x00\x00\x00\x00" was width=35) \"ssdp:discover\"\r\nMX: port1.place(x=10, python# % area.delete(1.0, try: y edit = = s port1 received defined") try: bd=5, os.system("clear") tkMessageBox.showinfo("Error", untidey data, area.insert('1.0',"There was Analyser") = #sudo port END) = an ubuntu button2.place(x=405, (ip2.get()) socket.socket(socket.AF_INET, = "Port def if os.system("cls") (ip2.get()) socket tk.Tk() out") port)) button1.place(x=10, y=450) ip1.place(x=11, s.settimeout(2) root.title("UDP not = the root.geometry("%dx%d+%d+%d" = s.recvfrom(65500) correct, = root= (port2.get()) or ;)