Skip to content

Commit

Permalink
Merge pull request #111 from paulosgf/styleupdate
Browse files Browse the repository at this point in the history
Enhancement #3
Removing exec() vulnerable function
  • Loading branch information
paulosgf authored Jun 2, 2022
2 parents b28a24e + 3b72519 commit 1207337
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/honeybot/gui_manager.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from tkinter import *
import tkinter as tk
import os
import inspect
import configparser
import queue
import threading
import subprocess as sp

window = tk.Tk()
window.geometry("650x670")
Expand Down Expand Up @@ -55,7 +53,7 @@ def run_bot():
global rbot_thread

def run_it():
exec(open("run.py").read())
sp.run(["python", "run.py"])

rbot_thread = threading.Thread(target=run_it)
rbot_thread.start()
Expand Down

0 comments on commit 1207337

Please sign in to comment.