-
Notifications
You must be signed in to change notification settings - Fork 0
CpanelInc/tech-cfIPspy
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# Script: cfIPspy # Author: Peter Elsner <peter.elsner@webpros.com> # Purpose: Small script that attempts to determine the real IP address from a site that is behind CloudFlare # Created: 6/18/2024 # Copyright 2024, WebPros International, LLC. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. # # 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. # # THE SOFTWARE LICENSED HEREUNDER IS PROVIDED "AS IS" AND WEBPROS INTERNATIONAL, LLC D/B/A/ CPANEL (CPANEL) HEREBY DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, RELATING TO THE SOFTWARE, ITS THIRD PARTY COMPONENTS, AND ANY DATA ACCESSED THEREFROM, OR THE ACCURACY, TIMELINESS, COMPLETENESS, OR ADEQUACY OF THE SOFTWARE, ITS THIRD PARTY COMPONENTS, AND ANY DATA ACCESSED THEREFROM, INCLUDING THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. CPANEL DOES NOT WARRANT THAT THE SOFTWARE OR ITS THIRD PARTY COMPONENTS ARE ERROR-FREE OR WILL OPERATE WITHOUT INTERRUPTION. IF THE SOFTWARE, ITS THIRD PARTY COMPONENTS, OR ANY DATA ACCESSED THEREFROM IS DEFECTIVE, YOU ASSUME THE SOLE RESPONSIBILITY FOR THE ENTIRE COST OF ALL REPAIR OR INJURY OF ANY KIND, EVEN IF CPANEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DEFECTS OR DAMAGES. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY CPANEL, ITS AFFILIATES, LICENSEES, DEALERS, SUB-LICENSORS, AGENTS OR EMPLOYEES SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF ANY WARRANTY. ./cfIPspy <domainname.tld> Example: ./cfIPspy xxxxxxx.tld You entered a hostname of xxxxxxxx.tld which resolves to a CloudFlare IP address! \_ 104.21.45.240 Checking some common subdomains to see if we can obtain a non-CloudFlare IP address (IE: the real server IP)... Checking SPF record for immute.io to see if it contains an IP Address \_ The IP address found within the spf record for xxxxxxxx.tld.io is: 38.xxx.254.xx ./cfIPspy yyyyyyyyyy.tld You entered a hostname of yyyyyyyyyyy.tld which resolves to: xx.242.xxx.x8 and does NOT belong to CloudFlare. ./cfIPspy 99.999.999.99 Please enter a domain name or hostname and not an IP address. ./cfIPspy sxxxxxxx.com cfIPspy Version: 1.0 You entered a hostname of sxxxxxxxx.com which resolves to a CloudFlare IP address! \_ 104.20.94.138 Checking some common subdomains to see if we can obtain a non-CloudFlare IP address (IE: the real server IP)... \_ mail.sxxxxxxxx.com has a non-CloudFlare IP address of mail.f.statcounter.com. [ No PTR ] \_ mail.sxxxxxxxx.com has a non-CloudFlare IP address of 91.208.19.200 [ mailerf1.us-tampa.statcounter.com. ] \_ ns1.sxxxxxxxx.com has a non-CloudFlare IP address of 91.208.0.251 [ ns1.statcounter.com. ] \_ ns2.sxxxxxxxx.com has a non-CloudFlare IP address of 91.208.19.129 [ No PTR ] Checking SPF record for sxxxxxxxx.com to see if it contains an IP Address \_ The IP address found within the spf record for sxxxxxxxx.com is: 4x.xx.xx.10x Note: It does not always work. You can add it to your .bashrc file as follows: alias cfIPspy="/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-cfIPspy/master/cfIPspy) " Then you can just type: cfIPspy domainname.tld
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published