Skip to content

Commit

Permalink
Update misc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robbert1978 authored Oct 13, 2024
1 parent 88701fe commit 83b1796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def run_in_new_terminal(command, terminal=None, args=None, kill_at_exit=True, pr
if os.path.exists('/proc/sys/kernel/osrelease'):
with open('/proc/sys/kernel/osrelease', 'rb') as f:
is_wsl = b'icrosoft' in f.read()
if is_wsl and which('powershell.exe') and which('wsl.exe') and which('bash.exe'):
if is_wsl and which('cmd.exe') and which('wsl.exe') and which('bash.exe'):
terminal = 'cmd.exe'
args = ['/c', 'start']
distro_name = os.getenv('WSL_DISTRO_NAME')
Expand Down

0 comments on commit 83b1796

Please sign in to comment.