GTP Echo Scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/gprs/gtp_echo metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: GTP Echo Scanner
Module: auxiliary/scanner/gprs/gtp_echo
Source code: modules/auxiliary/scanner/gprs/gtp_echo.rb
Disclosure date: -
Last modification time: 2019-04-26 17:45:27 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 2152
List of CVEs: -
This module sends UDP GTP (GTP-U) echo requests to the target RHOSTS and reports on which ones respond, thus identifying General Packet Radio Service (GPRS) servers. This module does not support scanning with SCTP.
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
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/gprs/gtp_echo
msf auxiliary(gtp_echo) > show options
... show and set options ...
msf auxiliary(gtp_echo) > set RHOSTS ip-range
msf auxiliary(gtp_echo) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(gtp_echo) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(gtp_echo) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(gtp_echo) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
This module provides a port of Daniel Mende's (released under the BSD license) gtp-scan.py utility. It brings the ability to scan for GPRS servers to Metasploit via sending GTP-U v1 and v2 echo requests.
Vulnerable Application
Open-source GGSN implementations can be used as a target for this module as well as commercial GPRS gear. For information on one project suitable as a target, see OsmoGGSN.
Options
The RPORT option
This option can be changed to target GTP-U (2152) or GTP-C (2123), which both use the same packet type for echo probing.
Scenarios
metasploit-framework (S:0 J:1) auxiliary(scanner/gprs/gtp_echo) > set RHOSTS 192.168.28.200-192.168.28.208
RHOSTS => 192.168.28.200-192.168.28.208
metasploit-framework (S:0 J:1) auxiliary(scanner/gprs/gtp_echo) > run
[*] [2019.04.22-16:38:27] Sending probes to 192.168.28.200->192.168.28.208 (9 hosts)
[+] [2019.04.22-16:38:42] GTP v1 echo response received from: 192.168.28.200:2152
[+] [2019.04.22-16:38:43] GTP v1 echo response received from: 192.168.28.201:2152
[+] [2019.04.22-16:38:43] GTP v1 echo response received from: 192.168.28.207:2152
[+] [2019.04.22-16:38:43] GTP v1 echo response received from: 192.168.28.208:2152
[*] [2019.04.22-16:38:43] Scanned 9 of 9 hosts (100% complete)
[*] Auxiliary module execution completed
metasploit-framework (S:0 J:1) auxiliary(scanner/gprs/gtp_echo) >
Go back to menu.
Msfconsole Usage
Here is how the scanner/gprs/gtp_echo auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/gprs/gtp_echo
msf6 auxiliary(scanner/gprs/gtp_echo) > show info
Name: GTP Echo Scanner
Module: auxiliary/scanner/gprs/gtp_echo
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
Daniel Mende
Spencer McIntyre
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 2152 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
VERSION 1 yes The GTP version to use (Accepted: 1, 2)
Description:
This module sends UDP GTP (GTP-U) echo requests to the target RHOSTS
and reports on which ones respond, thus identifying General Packet
Radio Service (GPRS) servers. This module does not support scanning
with SCTP.
References:
https://insinuator.net/tag/gtp/
https://www.etsi.org/deliver/etsi_ts/129200_129299/129281/08.00.00_60/ts_129281v080000p.pdf
Module Options
This is a complete list of options available in the scanner/gprs/gtp_echo auxiliary module:
msf6 auxiliary(scanner/gprs/gtp_echo) > show options
Module options (auxiliary/scanner/gprs/gtp_echo):
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 2152 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
VERSION 1 yes The GTP version to use (Accepted: 1, 2)
Advanced Options
Here is a complete list of advanced options supported by the scanner/gprs/gtp_echo auxiliary module:
msf6 auxiliary(scanner/gprs/gtp_echo) > show advanced
Module advanced options (auxiliary/scanner/gprs/gtp_echo):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ScannerMaxResends 10 yes The maximum times to resend a packet when out of buffers
ScannerRecvInterval 30 yes The maximum numbers of sends before entering the processing loop
ScannerRecvQueueLimit 100 yes The maximum queue size before breaking out of the processing loop
ScannerRecvWindow 15 yes The number of seconds to wait post-scan to catch leftover replies
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
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 scanner/gprs/gtp_echo module can do:
msf6 auxiliary(scanner/gprs/gtp_echo) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/gprs/gtp_echo auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/gprs/gtp_echo) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Related Pull Requests
References
- CVE: Not available
- https://insinuator.net/tag/gtp/
- https://www.etsi.org/deliver/etsi_ts/129200_129299/129281/08.00.00_60/ts_129281v080000p.pdf
See Also
Check also the following modules related to this module:
- auxiliary/admin/mssql/mssql_findandsampledata
- exploit/windows/browser/ms10_026_avi_nsamplespersec
- exploit/windows/browser/nctaudiofile2_setformatlikesample
- encoder/cmd/echo
- exploit/linux/http/fritzbox_echo_exec
Authors
- Daniel Mende
- Spencer McIntyre
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.