Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'out.cab' #12

Open
tdtc7 opened this issue Sep 26, 2021 · 7 comments
Open

FileNotFoundError: [Errno 2] No such file or directory: 'out.cab' #12

tdtc7 opened this issue Sep 26, 2021 · 7 comments

Comments

@tdtc7
Copy link

tdtc7 commented Sep 26, 2021

[*] Generating malicious CAB file...
Traceback (most recent call last):
File "/root/CVE-2021-40444-master/exploit.py", line 154, in
generate_payload()
File "/root/CVE-2021-40444-master/exploit.py", line 106, in generate_payload
patch_cab('out.cab')
File "/root/CVE-2021-40444-master/exploit.py", line 38, in patch_cab
f_r = open(path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'out.cab'

@kabutor
Copy link

kabutor commented Oct 1, 2021

Need lcab
apt install lcab

@sidd-kishan
Copy link

If Mac os then try :-
https://ports.macports.org/port/lcab/

@ScaryKim
Copy link

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

@hadeelk2
Copy link

any one solve it ???

@ScaryKim
Copy link

any one solve it ???

I don't think kali linux has lcab, try using ubuntu.

@itssixtyn3in
Copy link

itssixtyn3in commented Jul 5, 2024

Adding for those who might find this in 2024 or later, due to news. You will need to manually install lcab from this http://ftp.debian.org/debian/pool/main/l/lcab/lcab_1.0b12.orig.tar.gz otherwise it wont work on Kali:

wget http://ftp.debian.org/debian/pool/main/l/lcab/lcab_1.0b12.orig.tar.gz
tar -xvzf lcab_1.0b12.orig.tar.gz
cd lcab_1.0b12
make
sudo make install
mkdir ~/bin/
cp lcab /bin/
echo 'export PATH=$PATH:
/bin' >> ~/.bashrc
source ~/.bashrc
lcab --version

Now run the exploit

@DannyPenten
Copy link

wget http://ftp.debian.org/debian/pool/main/l/lcab/lcab_1.0b12.orig.tar.gz
tar -xvzf lcab_1.0b12.orig.tar.gz
cd lcab_1.0b12
make
sudo make install
#if sudo make install not working, then run
sudo cp lcab /usr/local/bin/
done!
now you can run lcab --version

Adding for those who might find this in 2024 or later, due to news. You will need to manually install lcab from this http://ftp.debian.org/debian/pool/main/l/lcab/lcab_1.0b12.orig.tar.gz otherwise it wont work on Kali:

wget http://ftp.debian.org/debian/pool/main/l/lcab/lcab_1.0b12.orig.tar.gz tar -xvzf lcab_1.0b12.orig.tar.gz cd lcab_1.0b12 make sudo make install mkdir ~/bin/ cp lcab /bin/ echo 'export PATH=$PATH:/bin' >> ~/.bashrc source ~/.bashrc lcab --version

Now run the exploit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants