├── asset
├── text
└── SD.png
├── requirements.txt
├── README.md
├── LICENSE
└── SubDump.py
/asset/text:
--------------------------------------------------------------------------------
1 | Image..
2 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | requests
2 |
--------------------------------------------------------------------------------
/asset/SD.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HunxByts/SubDump/HEAD/asset/SD.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SubDump
2 | a tool that functions to find subdomains of a website with the scanning method
3 |
4 |
5 |
6 | ### Instalation on Linux (deb)
7 | ```
8 | sudo apt-get install git
9 | sudo apt-get install python3
10 | ```
11 |
12 | ### Instalation on Termux
13 | ```
14 | pkg install git
15 | pkg install python3
16 | ```
17 |
18 | ### Usage Tool
19 | ```
20 | git clone https://github.com/HunxByts/SubDump.git
21 | cd SubDump
22 | pip3 install -r requirements.txt
23 | python3 SubDump.py
24 | ```
25 |
26 |
27 | :zap: Author :
28 | - HunxByts
29 |
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 HunX
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SubDump.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python
2 | # << CODE BY HUNX04
3 | # << MAU RECODE ??? IZIN DULU LAH, MINIMAL TAG AKUN GITHUB MIMIN YANG MENGARAH KE AKUN INI, LEBIH GAMPANG SI PAKE FORK
4 | # << KALAU DI ATAS TIDAK DI IKUTI MAKA AKAN MENDAPATKAN DOSA KARENA MIMIN GAK IKHLAS
5 | # “Wahai orang-orang yang beriman! Janganlah kamu saling memakan harta sesamamu dengan jalan yang batil,” (QS. An Nisaa': 29). Rasulullah SAW juga melarang umatnya untuk mengambil hak orang lain tanpa izin.
6 |
7 | #IMPOER MODULE
8 |
9 | import requests
10 | import json
11 | import time
12 | from sys import stderr
13 | import sys
14 |
15 | Bl='\033[30m' # VARIABLE COLORS
16 | Re='\033[1;31m'
17 | Gr='\033[1;32m'
18 | Ye='\033[1;33m'
19 | Blu='\033[1;34m'
20 | Mage='\033[1;35m'
21 | Cy='\033[1;36m'
22 | Wh='\033[1;37m'
23 |
24 | def autoketik(x): #TYPING
25 | for y in x + "\n":
26 | sys.stdout.write(y)
27 | sys.stdout.flush()
28 | time.sleep(0.030)
29 |
30 | #BANNER
31 |
32 | stderr.writelines(f"""{Ye}
33 | _______ _ ______
34 | | _ .--.--| |--.______| _ \ .--.--.--------.-----.
35 | | 1___| | | _ |______|. | \| | | | _ |
36 | |____ |_____|_____| |. | |_____|__|__|__| __|
37 | |: 1 | |: 1 / |__|
38 | |::.. . | |::.. . /
39 | `-------' `------'
40 | {Wh}TOOLS SUBDOMAIN V.1.1 {Ye} {Wh}CREDIT © HUNXBYTS
41 | """)
42 |
43 | try:
44 | domain = input(f"\n\n{Ye}[ {Wh}+ {Ye}] {Wh}ENTER TARGET WEB EX [{Ye}hacker.com{Wh}] : ") #INPUT LINK WEBSITE
45 | autoketik(f"{Ye}[ {Wh}+ {Ye}] {Wh}SCANNING SUBDOMAIN FOR {Ye}{domain}{Wh}...")
46 |
47 | time.sleep(2)
48 |
49 | def Subdomain_CRT(): #FUNCION
50 | subdo_main = []
51 | url = f"https://crt.sh/?q=%.{domain}&output=json" #WEB_API
52 | response = requests.get(url)
53 |
54 | if response.status_code == 200:
55 | data = response.json()
56 | for entry in data:
57 | subdomain = entry['name_value']
58 | if subdomain not in subdo_main:
59 | subdo_main.append(subdomain)
60 | return subdo_main
61 |
62 |
63 | subdomains = Subdomain_CRT() #CALL FUNCTION
64 | print(f"\nSUBDOMAIN FOUND : {Ye}", len(subdomains)) #SUBDOMAIN FOUND
65 | print(f"{Wh}------------------------------------{Gr}")
66 |
67 | for subdomain in subdomains: #OUTPUT AND LOOP
68 | print(subdomain)
69 | except KeyboardInterrupt:
70 | print(f" {Wh}[{Re}!{Wh}] {Re}PROGRAM STOPPED...")
--------------------------------------------------------------------------------