deCloudflare/tool/cfdomains/README.md

86 lines
3.2 KiB
Markdown
Raw Normal View History

2021-12-09 08:53:55 -05:00
# CfDomains
2022-07-30 06:59:12 -04:00
### v1.0.4
2021-12-10 05:18:26 -05:00
CLI tool to look up Cloudflare domain list
2021-12-09 08:58:07 -05:00
2022-07-30 22:11:01 -04:00
- [Linux](https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.linux?inline=false)
2022-07-30 22:10:24 -04:00
```
2022-07-30 22:09:55 -04:00
wget https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.linux
mv cfdomains.linux /bin/cfdomains
chmod +x /bin/cfdomains
cfdomains
```
2022-07-11 19:45:35 -04:00
- [Windows](https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.exe?inline=false)
- [Mac OS](https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.app?inline=false)
2022-07-30 22:11:01 -04:00
2022-07-11 19:45:35 -04:00
- Source
- [source.js](source.js)
- e.g. `# apt install npm nodejs; npm i node-libcurl --save; nodejs source.js`
2021-12-09 08:53:55 -05:00
----
2022-07-30 06:59:12 -04:00
2021-12-09 08:53:55 -05:00
```
2022-07-30 06:59:12 -04:00
CfDomains v1.0.4
2022-07-11 01:52:20 -04:00
2021-12-09 08:53:55 -05:00
Usage:
2022-07-11 01:52:20 -04:00
cfdomains [| --online ]www.example.com
2021-12-09 23:21:55 -05:00
cfdomains --dir
2022-02-18 20:58:35 -05:00
cfdomains --proxy
2022-07-11 01:52:20 -04:00
cfdomains --dl[| 0,1,...,a,b,...z]
cfdomains [--report|--delist] www.example.com
cfdomains [--categorise[|online]|--categorize[|online]] input.txt export.csv
cfdomains --cleanlink[|online] story.html story_publish.html
2022-07-30 06:59:12 -04:00
cfdomains --warrior
2021-12-09 08:53:55 -05:00
Details:
2022-07-11 01:52:20 -04:00
cfdomains (Base Domain or FQDN)
2021-12-09 08:53:55 -05:00
return "y", "n", or "e"
y: Domain is on the list
n: Domain is not listed
e: List data not found (fix it by running --dl)
2022-07-11 01:52:20 -04:00
cfdomains --online (Base Domain or FQDN)
return "y", "n", or "e"
y: Domain is on the list
n: Domain is not listed
e: Internet Connection Error
2021-12-09 08:53:55 -05:00
cfdomains --dir
Change list directory
Current directory: ./cfdomains_Data/
2022-02-18 20:58:35 -05:00
cfdomains --proxy
Set or Unset SOCKS proxy
Current SOCKS proxy:
2022-07-11 01:52:20 -04:00
cfdomains --dl
cfdomains --dl a,b,c
dl: Download list files from deCloudflare git
2021-12-09 23:21:55 -05:00
a,b,c: Download only these files (comma-separated)
2021-12-09 08:53:55 -05:00
2022-07-11 01:52:20 -04:00
cfdomains --report|delist www.example.com
2022-02-18 20:58:35 -05:00
Submit domain to #Karma for automated analysis
2021-12-09 08:53:55 -05:00
Only the domain will be submitted. We NEVER record anything else.
2022-02-18 20:58:35 -05:00
report: Report not-yet-listed domain (New Cloudflare)
2021-12-09 23:21:55 -05:00
delist: Report currently-listed domain (Left Cloudflare)
2022-07-11 01:52:20 -04:00
cfdomains --categorise[|online]|categorize[|online] (List file; URL or FQDNs) (Output file)
Export Listed/NotListed status in CSV format
2022-07-30 06:59:12 -04:00
With online: Use Online API / Without: Use Offline files
2022-07-11 01:52:20 -04:00
e.g. cfdomains --categoriseonline dirtyUrls.txt /tmp/washing.csv
cfdomains --cleanlink[|online] (Document; Text, HTML, Markdown) (Output file)
Replace infected links in document
2022-07-30 06:59:12 -04:00
With online: Use Online API / Without: Use Offline files
2022-07-11 01:52:20 -04:00
e.g. cfdomains --cleanlinkonline sunny.md /tmp/sunnyCleaned.md
2022-07-30 06:59:12 -04:00
cfdomains --warrior
Run this to help with the #Karma domain verification efforts.
This will download some domain from #Karma and report changes.
2021-12-09 08:53:55 -05:00
```
2022-07-30 06:59:12 -04:00
_We need warriors to assist our hunters :)_
![](../../image/what_are_you_hunting_cloudflare.png)