# Script that Filters out Cloudflare IPs from a list of IPv4s and IPv6s (1)
I was doing some web app hacking and I always try to find non cloudflare protected ip addresses from the subdomains I identify during recon stage. Its a bit annoying as I usually check each ip address

var unreadAlerts = '1';
Welcome back, purely_cabbage. You last visited: Today, 06:36 AM Log Out
You have one unread private message from dkota titled Welcome to the Forum!
Pages (2): 1 2 Next »
New Reply

Threaded Mode Script that Filters out Cloudflare IPs from a list of IPv4s and IPv6s

Kasekie
Junior Member
Posts:
15
Threads:
1
Joined:
Apr 2023
Reputation:
13
Credits: 9.89€ [Donate]
#1
05-11-2023, 11:51 AM
I was doing some web app hacking and I always try to find non cloudflare protected ip addresses from the subdomains I identify during recon stage. Its a bit annoying as I usually check each ip address 1 by 1. So I wrote a python script that takes a list of ipv4/ipv6 addresses as input via -i <input-list-file> and outputs the non-cloudflare ip addresses to -o <output-list-file>.
Disclaimer: I quickly slapped together this script and I'm tired, so I will probably thoroughly test it in the next few days and add more logic to catch and handle errors later on.
How it works is it checks if the ip addresses in the input list are within any of the publically provided cloudflare ip ranges and if its not in any of the ranges, then it writes the ip address to the output file.
[You must reply to view this hidden content]
PM Rate
Report
mennemmen007
Newbie
Posts:
3
Threads:
0
Joined:
May 2023
Reputation:
0
Credits: 5€ [Donate]
#2
05-20-2023, 03:52 AM
Thank your for sharing Bro !!!
PM Rate
Reply Quote // Report
Luci2
Active Member
Posts:
21
Threads:
0
Joined:
May 2023
Reputation:
0
Credits: 5€ [Donate]
#3
05-22-2023, 08:56 PM
thank you for the script
PM Rate
Reply Quote // Report
TeSLAndromeda
Newbie
Posts:
3
Threads:
0
Joined:
May 2023
Reputation:
0
Credits: 5€ [Donate]
#4
05-31-2023, 03:17 AM
it is as ip scanner? angry ip scanner only for cloudflare?
PM Rate
Reply Quote // Report
Kasekie
Junior Member
Posts:
15
Threads:
1
Joined:
Apr 2023
Reputation:
13
Credits: 9.89€ [Donate]
#5
06-04-2023, 07:42 AM

> TeSLAndromeda Wrote: it is as ip scanner? angry ip scanner only for cloudflare?

No, not that. Commonly while hacking web apps when you encounter a target that has all of their known domains behind cloudflare, which hides their real web servers backend IP, you will want to try to find a way to identify what the real backend IP of a given target's web application is, as if you try running gobuster against a site that is behind cloudflare for example, all of your proxies will quickly get banned, if you find the backend IP address, you can manually specify that in your /etc/hosts file, and bypass the cloudflare protection.
What this script is for, after you do the necessary recon to acquire a list of subdomains of the targets root domain, you can get the ip address from the DNS A record of those subdomains, and pass that list of ip addresses as the input file to the script that I wrote, and it will filter out any that are cloudflare ips, leaving you with only the ip addresses of the actual infrastructure that the target has.
PM Rate
Reply Quote // Report
dunaduna
Newbie
Posts:
3
Threads:
0
Joined:
Jun 2023
Reputation:
0
Credits: 5.15€ [Donate]
#6
06-05-2023, 10:26 AM
you are kind. thanks
PM Rate
Reply Quote // Report
MilkSteak
VIP
Posts:
61
Threads:
8
Joined:
May 2023
Reputation:
3
Credits: 45.91€ [Donate]
#7
06-05-2023, 10:51 AM
Awesome work man! I will check it out.
“I'll just regress, because I feel I've made myself perfectly redundant.”
PM Rate
Reply Quote // Report
Hoov332
Newbie
Posts:
5
Threads:
0
Joined:
Jun 2023
Reputation:
0
Credits: 6.05€ [Donate]
#8
06-15-2023, 11:47 AM
Looks interesting. Will like to check
PM Rate
Reply Quote // Report
wrdafdfdsf
Newbie
Posts:
1
Threads:
0
Joined:
Jun 2023
Reputation:
0
Credits: 5.2€ [Donate]
#9
06-15-2023, 12:12 PM
Looks interesting!
PM Rate
Reply Quote // Report
seeded
Newbie
Posts:
9
Threads:
1
Joined:
Jun 2023
Reputation:
0
Credits: 8.15€ [Donate]
#10
Yesterday, 11:37 AM
Thank you, i will try this tool out
PM Rate
Reply Quote // Report

« Next Oldest | Next Newest »

Pages (2): 1 2 Next »
New Reply

Quick Reply
Message Type your reply to this message here. Signature Disable Smilies | You have selected one or more posts to quote. Quote these posts now or deselect them.

Possibly Related Threads…
Thread | Author | Replies | Views | Last Post
| Beginner Learning Checkpoint List | Levron | 1 | 373 | 04-18-2023, 10:28 PM Last Post: 0KORABIKA0

- Subscribe to this thread

Users browsing this thread: purely_cabbage
var thread_deleted = "0"; if(thread_deleted == "1") { $("#quick_reply_form, .new_reply_button, .thread_tools, .inline_rating").hide(); $("#moderator_options_selector option.option_mirage").attr("disabled","disabled"); }