Author Topic: [howto] cloudfail detect real ip server behind cloudflare on macos  (Read 6906 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
[howto] cloudfail detect real ip server behind cloudflare on macos
« on: กุมภาพันธ์ 22, 2019, 11:56:40 AM »
sh-3.2# git clone https://github.com/m0rtem/CloudFail
Cloning into 'CloudFail'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 235 (delta 4), reused 8 (delta 4), pack-reused 223
Receiving objects: 100% (235/235), 39.85 MiB | 3.66 MiB/s, done.
Resolving deltas: 100% (92/92), done.


sh-3.2# pip2.7 install -r requirements.txt
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/a6/29/bcbd41a916ad3faf517780a0af7d0254e8d6722ff6414723eedba4334531/beautifulsoup4-4.6.0-py2-none-any.whl (86kB)
    100% |████████████████████████████████| 92kB 840kB/s
Collecting bs4==0.0.1 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Collecting certifi==2017.4.17 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB)
    100% |████████████████████████████████| 378kB 1.3MB/s
Collecting chardet==3.0.4 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 1.6MB/s
Collecting colorama==0.3.9 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl
Collecting idna==2.5 (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
    100% |████████████████████████████████| 61kB 10.4MB/s
Collecting requests>=2.20.0 (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
    100% |████████████████████████████████| 61kB 8.2MB/s
Collecting urllib3==1.23 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 1.8MB/s
Collecting win_inet_pton==1.0.1 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/a3/fb/bb181176a58f3d091aae10a360aa5aa945b9c4ec960dc713a32353665d26/win_inet_pton-1.0.1.tar.gz
Building wheels for collected packages: bs4, win-inet-pton
  Running setup.py bdist_wheel for bs4 ... done
  Stored in directory: /var/root/Library/Caches/pip/wheels/a0/b0/b2/4f80b9456b87abedbc0bf2d52235414c3467d8889be38dd472
  Running setup.py bdist_wheel for win-inet-pton ... done
  Stored in directory: /var/root/Library/Caches/pip/wheels/53/5b/2b/cca588da5db4640c3bdb8c424a2b975fa058b6e5e32bafb04c
Successfully built bs4 win-inet-pton
Installing collected packages: beautifulsoup4, bs4, certifi, chardet, colorama, idna, urllib3, requests, win-inet-pton
Successfully installed beautifulsoup4-4.6.0 bs4-0.0.1 certifi-2017.4.17 chardet-3.0.4 colorama-0.3.9 idna-2.5 requests-2.21.0 urllib3-1.23 win-inet-pton-1.0.1
sh-3.2# python
python            python-config     python2           python2-config    python2.7         python2.7-config  pythonw           pythonw2          pythonw2.7       
sh-3.2# python2.7 cloudfail.py -h
   ____ _                 _ _____     _ _
  / ___| | ___  _   _  __| |  ___|_ _(_) |
 | |   | |/ _ \| | | |/ _` | |_ / _` | | |
 | |___| | (_) | |_| | (_| |  _| (_| | | |
  \____|_|\___/ \__,_|\__,_|_|  \__,_|_|_|
    v1.0.1                      by m0rtem


[12:11:46] Initializing CloudFail - the date is: 22/02/2019 
usage: cloudfail.py [-h] [-t TARGET] [-T] [-u] [-s SUBDOMAINS]

optional arguments:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        target url of website
  -T, --tor             enable TOR routing
  -u, --update          update databases
  -s SUBDOMAINS, --subdomains SUBDOMAINS
                        name of alternate subdomains list stored in the data
                        directory

###run update db for cloudflare
$sudo python2.7 cloudfail.py -u

###start find real ip of that server name
$sudo python2.7 cloudfail.py -t anti-malware.ru --tor
« Last Edit: กุมภาพันธ์ 22, 2019, 11:59:54 AM by golfreeze »