Skip to content
Open

#1 #3

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1a68323
.
heavydriverrr Feb 21, 2024
77b8dd5
.
heavydriverrr Feb 21, 2024
73e62d4
update
saharshpand3y Feb 23, 2024
caec1e9
update
saharshpand3y Feb 23, 2024
e6e9c87
update
saharshpand3y Feb 23, 2024
0ba6998
update
saharshpand3y Feb 23, 2024
4f0ff7a
Added files for XSS Vulnerability
dhruvspeedcuber Feb 27, 2024
c52c39d
Merge pull request #1 from MLSAKIIT/dhruv
dhruvspeedcuber Feb 28, 2024
fad2286
Update arachnet.sh
Aaryan-Jordan Mar 3, 2024
7535c6c
Update seg.py
Aaryan-Jordan Mar 3, 2024
2732d89
Merge branch 'main' of https://github.com/MLSAKIIT/Arachnet
heavydriverrr Mar 4, 2024
2157b58
test commit
Adi2329002 Mar 6, 2024
87bfa41
Crawler code
Adi2329002 Mar 6, 2024
f57d20f
Update main.py
Adi2329002 Mar 6, 2024
aa68ef8
Revert "Update main.py"
dhruvspeedcuber Mar 6, 2024
facfe70
Revert "Crawler code"
dhruvspeedcuber Mar 6, 2024
8c8edde
Revert "test commit"
dhruvspeedcuber Mar 6, 2024
c432e86
update
saharshpand3y Mar 8, 2024
9fec3ce
Merge branch 'main' of https://github.com/MLSAKIIT/Arachnet into saharsh
saharshpand3y Mar 8, 2024
d887368
update
saharshpand3y Mar 8, 2024
328b8ce
update
saharshpand3y Mar 8, 2024
f52af3b
update
saharshpand3y Mar 8, 2024
73fcf18
Update requirements.txt
saharshpand3y Mar 9, 2024
82f42da
Added idor.py for idor testing
dhruvspeedcuber Mar 9, 2024
41b7100
Merge pull request #6 from MLSAKIIT/dhruv
dhruvspeedcuber Mar 9, 2024
58e7c23
Merge branch 'main' into main
heavydriverrr Mar 9, 2024
c18dbdb
Merge pull request #7 from heavydriverrr/main
heavydriverrr Mar 9, 2024
3ca57d0
Merge branch 'main' of https://github.com/MLSAKIIT/Arachnet
heavydriverrr Mar 9, 2024
56401a3
updated the main func
Xdoom99 Mar 9, 2024
e25f633
modded test req
Xdoom99 Mar 9, 2024
58b95a2
modded crawl
Xdoom99 Mar 9, 2024
bc4faed
Merge branch 'main' into saharsh
dhruvspeedcuber Mar 11, 2024
b7114f5
Merge pull request #8 from MLSAKIIT/saharsh
dhruvspeedcuber Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 160 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
76 changes: 76 additions & 0 deletions DnsDumpster/DnsDumpsterClient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import aiohttp
import asyncio
import re
import json
from bs4 import BeautifulSoup
class DnsDumpsterClient:
def __init__(self, domain):
self.url = 'https://dnsdumpster.com/'
self.headers = {
'Host': 'dnsdumpster.com',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate, br',
'Content-Type': 'application/x-www-form-urlencoded',
'Origin': 'https://dnsdumpster.com',
'Connection': 'keep-alive',
'Referer': 'https://dnsdumpster.com/',
'Cookie': 'csrftoken=XbJN0LsEuuQ35oHysX8Znr9TPoFFvikBCoVMVHFVarjCZZR0DB1fWKEZuOoi09Ya; _ga_FPGN9YXFNE=GS1.1.1708695947.1.1.1708696276.0.0.0; _ga=GA1.1.1800228015.1708695948',
'Upgrade-Insecure-Requests': '1',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-Site': 'same-origin',
'Sec-Fetch-User': '?1',
'TE': 'trailers'
}
self.payload = {
'csrfmiddlewaretoken': 'ddkJgoD5P0AXO8HP9Cp0ixynoXyF972KSqwIbkQmvX3wIJRhkgigRQ3t3nhiEYGj',
'targetip': domain,
'user': 'free'
}

async def fetch_data(self):
async with aiohttp.ClientSession() as session:
async with session.post(self.url, headers=self.headers, data=self.payload) as response:
#print(response.status)
html = await response.text()
#await self.parse_data(html)
return html

async def parse_data(self, html):
anchors = ['dnsanchor', 'mxanchor', 'txtanchor', 'hostanchor']
data = []
for anchor in anchors:
an = 'DNS' if anchor == 'dnsanchor' else ('MX' if anchor == 'mxanchor' else 'Host' if anchor == 'hostanchor' else 'TXT')
soup = BeautifulSoup(html, 'html.parser')
try:
dns_servers_section = soup.find('a', attrs={'name': anchor}).find_next('div', class_='table-responsive')
dns_servers = dns_servers_section.find_all('tr')
if anchor == 'txtanchor':
try:
txt_table = dns_servers_section.find('table')
txt_records = []
for i, txt_record in enumerate(txt_table.find_all('tr'), start=1):
txt_records.append({'index': i, 'record': txt_record.td.text.strip()})
data.append({'type': 'TXT', 'records': txt_records})
except AttributeError:
data.append({'type': 'TXT', 'error': 'No TXT records found.'})
else:
dns_records = []
for dns_server in dns_servers:
try:
server_name = dns_server.find('td', class_='col-md-4').text.strip()
server_name = re.sub(r'HTTP:\s*(.*)', '', server_name)
server_name = re.sub(r'FTP:\s*(.*)', '', server_name)
server_name = re.sub(r'SSH:\s*(.*)', '', server_name)
server_name = re.sub(r'HTTP\s+TECH:\s*(.*)', '', server_name)
ip_address = dns_server.find('td', class_='col-md-3').text.strip()
location = dns_server.find_all("td", class_="col-md-3")[1].text.strip()
dns_records.append({'server_name': server_name.strip(), 'ip_address': ip_address, 'location': location})
except AttributeError:
dns_records.append({'error': 'Attribute Error occurred while processing DNS server data.'})
data.append({'type': an, 'records': dns_records})
except AttributeError:
data.append({'type': an, 'error': 'Attribute Error occurred while processing DNS servers section.'})
return data
18 changes: 18 additions & 0 deletions DnsDumpster/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import asyncio
import aiohttp
import argparse
import json
from DnsDumpsterClient import *

async def main(url):
client = DnsDumpsterClient(url)
html = await client.fetch_data()
json_data = await client.parse_data(html)
json_str = json.dumps(json_data, indent=4)
print(json_str)

if __name__ == "__main__":
parser = argparse.ArgumentParser(description='DNS Dumpster Client')
parser.add_argument('-u', '--url', type=str, help='URL/IP to enumerate', required=True)
args = parser.parse_args()
asyncio.run(main(args.url))
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
## Arachnet

Projecr Wing Cyber

![alt_text](mlsa.png)

### What's New?


wdwd
### FEATURES



### I N S T A L L A T I O N

```
Expand All @@ -20,15 +17,15 @@ wdwd
```

### USAGE

```

```

### DEMONSTRATION



### CONTRIBUTORS

- [Aaryan Jordan](https://www.linkedin.com/in/aaryan-jordan/): Project lead
- [Dhruv Agarwal](https://www.linkedin.com/in/dhruv-agarwal-704048212/): Project co-lead
- [Dhruv Agarwal](https://www.linkedin.com/in/dhruv-agarwal-704048212/): Project co-lead
-
Loading