Browse Source

Minor fixes

master
d3adc0de 10 months ago
parent
commit
29308f9988
  1. BIN
      data/NK36QZW9A0TY.dll
  2. 5
      generator.py
  3. 18
      setup.inf
  4. 8
      setup.rpt

BIN
data/NK36QZW9A0TY.dll

Binary file not shown.

5
generator.py

@ -103,6 +103,7 @@ def generate_payload(payload, server_url, basename, copy_to=None): @@ -103,6 +103,7 @@ def generate_payload(payload, server_url, basename, copy_to=None):
tmp_path.mkdir(exist_ok=True)
cab_path.mkdir(exist_ok=True)
srv_path.mkdir(exist_ok=True)
out_path.mkdir(exist_ok=True)
print(f' [>] Payload: {payload}')
print(f' [>] HTML/CAB Hosting Server: {server_url}')
@ -189,7 +190,9 @@ def clean(): @@ -189,7 +190,9 @@ def clean():
def validate_filename(filename):
# Required length for the file name
required_length = 12
current_length = 0 if not filename else len(filename)
if not filename:
filename = ""
current_length = len(filename)
gap = required_length - current_length
return filename + ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(gap))

18
setup.inf

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
;*** BEGIN **********************************************************
;** **
;** Automatically generated on: Thu Sep 16 08:18:58 2021 **
;** **
;** MakeCAB Version: 5.00 **
;** **
;*** BEGIN **********************************************************
[disk list]
1,Disk 1
[cabinet list]
1,1,42QFOZ99ASGY.cab
[file list]
1,1,42QFOZ99ASGY.inf,83102
;*** END ************************************************************
;** **
;** Automatically generated on: Thu Sep 16 08:18:58 2021 **
;** **
;*** END ************************************************************

8
setup.rpt

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
MakeCAB Report: Thu Sep 16 08:18:58 2021
Total files: 1
Bytes before: 83,102
Bytes after: 83,102
After/Before: 100.00% compression
Time: 0.02 seconds ( 0 hr 0 min 0.02 sec)
Throughput: 4508.57 Kb/second
Loading…
Cancel
Save