deCloudflare/tool/cfdomains/README.md

121 lines
4.3 KiB
Markdown
Raw Normal View History

2021-12-09 08:53:55 -05:00
# CfDomains
2021-12-10 05:18:26 -05:00
2022-09-17 05:30:11 -04:00
`CfDomains` is a simple CLI tool to:
2021-12-09 08:58:07 -05:00
2022-09-17 05:30:11 -04:00
- Look up Cloudflare domain list, offline or online
- Replace CF links in your writings (text, HTML and Markdown)
- Categorise the domain list
- Join as warrior to help our mission
2021-12-09 08:58:07 -05:00
2022-09-17 05:30:11 -04:00
### What is CfDomains Warrior?
You can run the `CfDomains Warrior` (`cfdomains --warrior`) mode to help with the Crimeflare domain verification efforts.
It will download some domains from us, do some simple test and report back to us - it is really easy to use!
There is no security risk to your computer because it just do DNS lookup test.
The warrior will only use your DNS server, so no CPU nor memory will be used.
It will get tasks from Karma and report the result back to Karma.
The Warrior runs on Linux, Windows and macOS. You can run it on anything like virtual machiene as
long as it can use _clean_ DNS.
### Installing and Uninstalling
- Linux: Installing
2022-07-30 22:10:24 -04:00
```
wget https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.linux \
-O /usr/local/bin/cfdomains
chmod +x /usr/local/bin/cfdomains
2022-07-30 22:09:55 -04:00
cfdomains
```
2022-07-30 22:11:01 -04:00
2022-09-17 05:30:11 -04:00
- Linux: Uninstalling
```
rm -f /usr/local/bin/cfdomains
rm -r .cfdomains_conf
```
- Windows
- Install: Just run the executable, this is portable.
- Uninstall: Just delete the file and `.cfdomains_conf`(configuration) file.
### Download
Current Version: **1.0.4.1**
- [Linux](https://git.disroot.org/dCF/deCloudflare/raw/branch/master/tool/cfdomains/cfdomains.linux?inline=false)
- [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-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-08-01 07:00:05 -04:00
CfDomains v1.0.4.1
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)