SOCKS Proxy UNC Path Redirection - Metasploit
This page contains detailed information about how to use the auxiliary/server/socks_unc metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: SOCKS Proxy UNC Path Redirection
Module: auxiliary/server/socks_unc
Source code: modules/auxiliary/server/socks_unc.rb
Disclosure date: -
Last modification time: 2020-05-12 22:15:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This module provides a Socks proxy service that redirects all HTTP requests to a web page that loads a UNC path.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/server/socks_unc
msf auxiliary(socks_unc) > show targets
... a list of targets ...
msf auxiliary(socks_unc) > set TARGET target-id
msf auxiliary(socks_unc) > show options
... show and set options ...
msf auxiliary(socks_unc) > exploit
Go back to menu.
Msfconsole Usage
Here is how the server/socks_unc auxiliary module looks in the msfconsole:
msf6 > use auxiliary/server/socks_unc
msf6 auxiliary(server/socks_unc) > show info
Name: SOCKS Proxy UNC Path Redirection
Module: auxiliary/server/socks_unc
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
hdm <[email protected]>
Available actions:
Name Description
---- -----------
Proxy Run SOCKS UNC proxy
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 1080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
UNCHOST no The address of the UNC host.
Description:
This module provides a Socks proxy service that redirects all HTTP
requests to a web page that loads a UNC path.
Module Options
This is a complete list of options available in the server/socks_unc auxiliary module:
msf6 auxiliary(server/socks_unc) > show options
Module options (auxiliary/server/socks_unc):
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 1080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
UNCHOST no The address of the UNC host.
Auxiliary action:
Name Description
---- -----------
Proxy Run SOCKS UNC proxy
Advanced Options
Here is a complete list of advanced options supported by the server/socks_unc auxiliary module:
msf6 auxiliary(server/socks_unc) > show advanced
Module advanced options (auxiliary/server/socks_unc):
Name Current Setting Required Description
---- --------------- -------- -----------
ListenerComm no The specific communication channel to use for this service
SSLCipher no String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
SSLCompression false no Enable SSL/TLS-level compression
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the server/socks_unc module can do:
msf6 auxiliary(server/socks_unc) > show actions
Auxiliary actions:
Name Description
---- -----------
Proxy Run SOCKS UNC proxy
Evasion Options
Here is the full list of possible evasion options supported by the server/socks_unc auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(server/socks_unc) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maximum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Related Pull Requests
- #13443 Merged Pull Request: Add descriptions to auxiliary modules Actions
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #5059 Merged Pull Request: Yard doc corrections
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/scanner/http/sockso_traversal
- auxiliary/server/socks_proxy
- auxiliary/docx/word_unc_injector
- exploit/multi/browser/adobe_flash_uncompress_zlib_uaf
- exploit/windows/browser/adobe_flash_uncompress_zlib_uninitialized
- exploit/windows/browser/winamp_playlist_unc
- post/windows/gather/word_unc_injector
- auxiliary/admin/aws/aws_launch_instances
- auxiliary/scanner/http/lucky_punch
- auxiliary/scanner/portscan/ftpbounce
- auxiliary/server/android_browsable_msf_launch
- exploit/linux/browser/adobe_flashplayer_aslaunch
- exploit/linux/local/docker_runc_escape
- exploit/multi/http/spring_cloud_function_spel_injection
- exploit/osx/browser/safari_user_assisted_download_launch
- exploit/osx/local/vmware_bash_function_root
- exploit/windows/browser/adobe_flashplayer_newfunction
- exploit/windows/browser/keyhelp_launchtripane_exec
- exploit/windows/browser/pcvue_func
- exploit/windows/browser/symantec_altirisdeployment_runcmd
- exploit/windows/browser/zenworks_helplauncher_exec
- exploit/windows/fileformat/adobe_flashplayer_newfunction
- exploit/windows/fileformat/foxit_reader_launch
- exploit/windows/fileformat/nuance_pdf_launch_overflow
- exploit/windows/local/ipass_launch_app
- exploit/windows/smb/ms09_050_smb2_negotiate_func_index
Authors
hdm
Version
This page has been produced using Metasploit Framework version 6.1.41-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.