Skip to content

Commit

Permalink
Updated watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Oct 30, 2022
1 parent 249f2c7 commit e9c41a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/batch/deobfuscator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl BatchDeobfuscator {
};

if line.contains(":: VGhpcyBmaWxlIHdhcyBvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I=")
|| line.contains(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIChzb29u4oSiKSB2aWEgaHR0cHM6Ly9naXRodWIuY29tLzB4VGFzLzB4aWRpejNy"){
|| line.contains(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I="){
continue;
};

Expand Down
4 changes: 2 additions & 2 deletions src/batch/obfuscator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl BatchObfuscator {
// Insert base64-encoded watermarks to assist any potential deobfuscation attempts in the wild.
// Write the script header defining an obfuscated way of assigning further variables.
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIHdhcyBvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I="));
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIChzb29u4oSiKSB2aWEgaHR0cHM6Ly9naXRodWIuY29tLzB4VGFzLzB4aWRpejNy"));
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I="));
if !self.echo_mode {self.prep_commands.push(String::from("@echo off"));};
self.prep_commands.push(format!("set {}=set", self.set_str));
self.prep_commands.push(format!("%{}% {}= ", self.set_str, self.space_str));
Expand Down Expand Up @@ -232,7 +232,7 @@ impl BatchObfuscator {
let exec_string: String = self.exec_commands.join("");
self.prep_commands.push(exec_string);
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIHdhcyBvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I="));
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIChzb29u4oSiKSB2aWEgaHR0cHM6Ly9naXRodWIuY29tLzB4VGFzLzB4aWRpejNy"));
self.prep_commands.push(String::from(":: VGhpcyBmaWxlIGNhbiBiZSBwcm9ncmFtYXRpY2FsbHkgZGVvYmZ1c2NhdGVkIHZpYSBodHRwczovL2dpdGh1Yi5jb20vMHhUYXMvMHhpZGl6M3I="));

// Join the obfuscated output on newlines and complete the initialization.
self.obfuscated_code = self.prep_commands.join("\n");
Expand Down

0 comments on commit e9c41a3

Please sign in to comment.