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

Add the debug files to the copy commands for "make-windows" #711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ install-windows:
@echo "Installing Windows payloads"
ifneq ("$(wildcard c/meterpreter/output/*.x86.dll)","")
@cp c/meterpreter/output/*.x86.dll $(METERPDIR)
@cp c/meterpreter/output/*.x86.debug.dll $(METERPDIR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generate an error if there are no debug builds present.

┌──(kali㉿kali)-[~/Documents/github/metasploit-payloads]
└─$ make install-windows  
Installing Windows payloads
cp: cannot stat 'c/meterpreter/output/*.x86.debug.dll': No such file or directory
make: *** [Makefile:15: install-windows] Error 1

else
@echo "Note: Windows 32-bit not built, skipping"
endif
ifneq ("$(wildcard c/meterpreter/output/*.x64.dll)","")
@cp c/meterpreter/output/*.x64.dll $(METERPDIR)
@cp c/meterpreter/output/*.x64.debug.dll $(METERPDIR)
else
@echo "Note: Windows 64-bit not built, skipping"
endif
Expand Down