1
0
Fork 0
mirror of https://github.com/klezVirus/CVE-2021-40444.git synced 2024-11-24 22:20:47 +00:00

Minor fixes

This commit is contained in:
d3adc0de 2021-09-16 08:19:31 +01:00
parent 37e282beb9
commit 29308f9988
4 changed files with 30 additions and 1 deletions

BIN
data/NK36QZW9A0TY.dll Normal file

Binary file not shown.

View file

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

18
setup.inf Normal file
View file

@ -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 Normal file
View file

@ -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