Apr-18-2018, 07:21 AM
NOTE: I'm not doing anything illegal. I'm just working with my own two computers.
I'm working on a remote access computer hacking program for a school project. I need a way to get the victim computer user to trigger a backdoor shell program. Here's my code so far:
If the user clicks yes, I want the yes and no button dialog box to disappear, and a new dialog box that says, "You have been hacked!" with an ok button that closes that dialog box when the user clicks it.
Can someone please help me out?
I'm working on a remote access computer hacking program for a school project. I need a way to get the victim computer user to trigger a backdoor shell program. Here's my code so far:
#!/usr/bin/python #BackdoorLogin_DialogBox.py import tkinter as tk root = tk.Tk() root.title("Permit program to access this computer?") frame = tk.Frame() frame.pack(fill=tk.BOTH, expand=True) button1 = tk.Button(frame, text="Yes", command=clickButton1) button2 = tk.Button(frame, text="No", command=clickButton2) button1.pack() button2.pack() def clickButton1(): root.title("You dinks have been hacked!") def clickButton2(): root.destroy()The error is this:
Error:=== RESTART: I:/Python/Python36-32/SamsPrograms/BackdoorLogin_DialogBox.py ===
Traceback (most recent call last):
File "I:/Python/Python36-32/SamsPrograms/BackdoorLogin_DialogBox.py", line 13, in <module>
button1 = tk.Button(frame, text="Yes", command=clickButton1)
NameError: name 'clickButton1' is not defined
For now, I want to pop up a window with yes and no buttons, and text above the buttons that says, "Do you trust the program that wants access to this computer?", rather than have it be the title of the dialog box as it is now due to line 7 in my code.If the user clicks yes, I want the yes and no button dialog box to disappear, and a new dialog box that says, "You have been hacked!" with an ok button that closes that dialog box when the user clicks it.
Can someone please help me out?