Skip to content

disable mingw useless exports - #808

Merged
msutovsky-r7 merged 1 commit into
rapid7:masterfrom
dledda-r7:feat/disable-mingw-exports
Aug 7, 2026
Merged

disable mingw useless exports#808
msutovsky-r7 merged 1 commit into
rapid7:masterfrom
dledda-r7:feat/disable-mingw-exports

Conversation

@dledda-r7

Copy link
Copy Markdown
Contributor

Before

―――――――――――――――――――――――――――
1   0x00009290 0x6c849c90 GLOBAL FUNC 0    server.dll   Ordinal_1
0   0x00000600 0x6c841000 GLOBAL FUNC 0                 pre_c_init
1   0x00000610 0x6c841010 GLOBAL FUNC 0                 _CRT_INIT
2   0x00000800 0x6c841200 GLOBAL FUNC 0                 __DllMainCRTStartup
3   0x00000950 0x6c841350 GLOBAL FUNC 0                 DllMainCRTStartup
4   0x000009a0 0x6c8413a0 GLOBAL FUNC 0                 atexit
5   0x000009b0 0x6c8413b0 GLOBAL FUNC 0                 __gcc_register_frame
6   0x000009c0 0x6c8413c0 GLOBAL FUNC 0                 __gcc_deregister_frame
7   0x000009d0 0x6c8413d0 GLOBAL FUNC 0                 remote_request_core_console_write
8   0x000009e0 0x6c8413e0 GLOBAL FUNC 0                 remote_response_core_console_write
9   0x000009f0 0x6c8413f0 GLOBAL FUNC 0                 register_base_dispatch_routines
10  0x00000b40 0x6c841540 GLOBAL FUNC 0                 deregister_base_dispatch_routines
11  0x00000be0 0x6c8415e0 GLOBAL FUNC 0                 command_register_all
12  0x00000d00 0x6c841700 GLOBAL FUNC 0                 command_register
13  0x00000df0 0x6c8417f0 GLOBAL FUNC 0                 command_deregister_all
14  0x00000e90 0x6c841890 GLOBAL FUNC 0                 command_deregister
15  0x00000f10 0x6c841910 GLOBAL FUNC 0                 command_join_threads
16  0x00000f60 0x6c841960 GLOBAL FUNC 0                 command_locate_extension
17  0x00000f90 0x6c841990 GLOBAL FUNC 0                 command_is_inline
18  0x00000ff0 0x6c8419f0 GLOBAL FUNC 0                 command_validate_arguments
19  0x000010c0 0x6c841ac0 GLOBAL FUNC 0                 command_process_inline
20  0x00001230 0x6c841c30 GLOBAL FUNC 0                 command_handle
21  0x00001360 0x6c841d60 GLOBAL FUNC 0                 command_process_thread
22  0x00001450 0x6c841e50 GLOBAL FUNC 0                 get_migrate_context

After

┌──(kali㉿kali)-[~/…/github/metasploit-payloads/c/meterpreter]
└─$ make docker-metsrv-x86
...
┌──(kali㉿kali)-[~/…/github/metasploit-payloads/c/meterpreter]
└─$ rabin2 -s output/metsrv.x86.dll | grep GLOBAL     
1   0x00009050 0x6ad09c50 GLOBAL FUNC 0    server.dll   Ordinal_1
                                                                                           
┌──(kali㉿kali)-[~/…/github/metasploit-payloads/c/meterpreter]
└─$ EXCLUDE_REFLECTIVE_LOADER=1 make docker-metsrv-x86
...
┌──(kali㉿kali)-[~/…/github/metasploit-payloads/c/meterpreter]
└─$ rabin2 -s output/metsrv.x86.dll | grep GLOBAL     
                                                                                           
┌──(kali㉿kali)-[~/…/github/metasploit-payloads/c/meterpreter]
└─$ 

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Metasploit Kanban Aug 7, 2026
@msutovsky-r7
msutovsky-r7 merged commit f9e95df into rapid7:master Aug 7, 2026
29 of 31 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Metasploit Kanban Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants