lockedbyte / CVE-2021-40444

CVE-2021-40444 PoC
1.55k stars 481 forks source link

No such file or directory: 'out.cab' #4

Closed dlimanov closed 2 years ago

dlimanov commented 2 years ago

Getting this error while generating a docx:

<snip>
 adding: word/_rels/document.xml.rels (deflated 75%)
[*] Generating malicious CAB file...
Traceback (most recent call last):
  File "exploit.py", line 154, in <module>
    generate_payload()
  File "exploit.py", line 106, in generate_payload
    patch_cab('out.cab')
  File "exploit.py", line 38, in patch_cab
    f_r = open(path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'out.cab'
dlimanov commented 2 years ago

my bad, was missing lcab, worked like a champ after. many thanks!

NicolasCARPi commented 2 years ago

@dlimanov Close the issue then please.

ScaryKim commented 1 year ago

How do you install lcab in kali linux currently? I did apt install lcab but received errors. Please advise

apt install lcab
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package lcab is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lcab' has no installation candidate