Skip to content

Commit

Permalink
Fix running on non-Windows machine when running the obfuscated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind010 committed Dec 23, 2023
1 parent 2a72f1f commit e0bc931
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anubis.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ def oxyry(code):
error("A problem occurred whilst obfuscating")

def bugs(code):
dbg = """import ctypes, sys
if not ctypes.windll.shell32.IsUserAnAdmin() != 0:
dbg = """import ctypes, sys, platform
is_windows = True if platform.system() == "Windows" else False
if is_windows and not ctypes.windll.shell32.IsUserAnAdmin() != 0:
print("Please run this program as administrator.")
sys.exit(0)
import binascii, threading, time
Expand Down

0 comments on commit e0bc931

Please sign in to comment.