Skip to content

Commit

Permalink
Remove commented out code for driver_stuff variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KingKDot committed Mar 25, 2024
1 parent 9df6520 commit 69c9ae7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/util/obfuscation/obf_oneline.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,22 @@ def obfuscate_normal(self, line: str) -> Obfuscated_String:
weird = r"C:\Program Files (x86)\Common Files"
program_1 = r"C:\Program Files"
program_2 = r"C:\Program Files (x86)"
driver_stuff = r"C:\Windows\System32\Drivers\DriverData"
# driver_stuff = r"C:\Windows\System32\Drivers\DriverData"
# pathext = r".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
CommonProgramFiles = r"C:\Program Files\Common Files"
CommonProgramW6432 = r"C:\Program Files\Common Files"
__APPDIR__ = "C:\\Windows\\system32\\"
# __APPDIR__ = "C:\\Windows\\system32\\"

options = {
public: "PUBLIC",
weird: "COMMONPROGRAMFILES(X86)",
program_1: "PROGRAMFILES",
program_2: "PROGRAMFILES(X86)",
driver_stuff: "DRIVERDATA",
# driver_stuff: "DRIVERDATA",
# pathext: "PATHEXT",
CommonProgramFiles: "COMMONPROGRAMFILES",
CommonProgramW6432: "COMMONPROGRAMW6432",
__APPDIR__: "__APPDIR__",
# __APPDIR__: "__APPDIR__",
}

for index, char in enumerate(word):
Expand Down
10 changes: 5 additions & 5 deletions src/util/obfuscation/rans.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def ran2(char, random_order: str, return_ran1: bool = True, *args, **kwargs) ->
weird = "C:\\Program Files (x86)\\Common Files"
program_1 = "C:\\Program Files"
program_2 = "C:\\Program Files (x86)"
driver_stuff = "C:\\Windows\\System32\\Drivers\\DriverData"
# driver_stuff = "C:\\Windows\\System32\\Drivers\\DriverData"
# pathext = ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
CommonProgramFiles = "C:\\Program Files\\Common Files"
CommonProgramFiles_x86 = "C:\\Program Files (x86)\\Common Files"
Expand All @@ -72,7 +72,7 @@ def ran2(char, random_order: str, return_ran1: bool = True, *args, **kwargs) ->
"COMMONPROGRAMFILES(X86)": (weird, "None"),
"PROGRAMFILES": (program_1, "None"),
"PROGRAMFILES(X86)": (program_2, "None"),
"DRIVERDATA": (driver_stuff, "None"),
# "DRIVERDATA": (driver_stuff, "None"),
# "PATHEXT": (pathext, "None"),
"COMMONPROGRAMFILES": (CommonProgramFiles, "None"),
"COMMONPROGRAMFILES(X86)": (CommonProgramFiles_x86, "None"),
Expand Down Expand Up @@ -143,7 +143,7 @@ def ran3(char, random_order: str, *args, **kwargs) -> str:
weird = r"C:\Program Files (x86)\Common Files"
program_1 = r"C:\Program Files"
program_2 = r"C:\Program Files (x86)"
driver_stuff = r"C:\Windows\System32\Drivers\DriverData"
# driver_stuff = r"C:\Windows\System32\Drivers\DriverData"
# pathext = r".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
CommonProgramFiles = r"C:\Program Files\Common Files"
CommonProgramFiles_x86 = r"C:\Program Files (x86)\Common Files"
Expand All @@ -153,7 +153,7 @@ def ran3(char, random_order: str, *args, **kwargs) -> str:
weird,
program_1,
program_2,
driver_stuff,
# driver_stuff,
# pathext,
CommonProgramFiles,
CommonProgramFiles_x86,
Expand All @@ -164,7 +164,7 @@ def ran3(char, random_order: str, *args, **kwargs) -> str:
"COMMONPROGRAMFILES(X86)",
"PROGRAMFILES",
"PROGRAMFILES(X86)",
"DRIVERDATA",
# "DRIVERDATA",
# "PATHEXT",
"COMMONPROGRAMFILES",
"COMMONPROGRAMFILES(X86)",
Expand Down
2 changes: 1 addition & 1 deletion test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"COMMONPROGRAMFILES(X86)": r"C:\Program Files (x86)\Common Files",
"PROGRAMFILES": r"C:\Program Files",
"PROGRAMFILES(X86)": r"C:\Program Files (x86)",
"DRIVERDATA": r"C:\Windows\System32\Drivers\DriverData",
# "DRIVERDATA": r"C:\Windows\System32\Drivers\DriverData",
"COMMONPROGRAMFILES": r"C:\Program Files\Common Files",
"COMMONPROGRAMW6432": r"C:\Program Files\Common Files",
"COMMONPROGRAMFILES(X86)": r"C:\Program Files (x86)\Common Files",
Expand Down

0 comments on commit 69c9ae7

Please sign in to comment.