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

Conversation

bwatters-r7
Copy link
Contributor

When using the make install-windows command last week, I found myself troubleshooting unexpected behavior because make install-windows failed to move the debug versions of the files over, and if they're not present, then (as expected) there's no warning that the old debug stuff is used. This just adds the debug dlls to the list of files copied to the data/meterpreter directory of framework.

Testing:

  • Build meterpreter
  • Run make install-windows from the root directory
  • verify the debug dlls were copied correctly to metasploit-framework/data/meterpreter

@dledda-r7 dledda-r7 self-assigned this Sep 20, 2024
@@ -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

@dledda-r7 dledda-r7 removed their assignment Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants