Skip to content

Instantly share code, notes, and snippets.

View EPiC-Inc's full-sized avatar
🏳️‍🌈
yeag

EPiC_Labs EPiC-Inc

🏳️‍🌈
yeag
View GitHub Profile
@EPiC-Inc
EPiC-Inc / super_awesome.py
Last active July 11, 2022 12:24
Python get output from PowerShell command
import subprocess
from subprocess import PIPE
from threading import Thread
try:
from queue import Queue, Empty
except:
from Queue import Queue, Empty
# This creates a queue object and a function to put properly formatted stuff in it
q = Queue()