g0tmi1k
|
e9337bebcf
|
Merge pull request #999 from ItsIgnacioPortal/RouterCredentials
feat(passwords): Added router default users and passwords
Source: https://portforward.com/
```
import os
from bs4 import BeautifulSoup
invalidValues = ["none", "N/A", "blank", "user created", "password changes when reset", "none; created during initial setup", "PrintedOnRouterLabel", "provided by ISP"]
invalidKeywords = ["none", "leave blank", "n/a", "blank", "found by", "found on", "printed on", "configured during", "create", "last", "located", "on ", "sticker on", "refer to"]
def extract_credentials(file_path):
with open(file_path, 'r') as file:
content = file.read()
soup = BeautifulSoup(content, 'html.parser')
table = soup.find('table')
if table:
model = table.find('th').text.strip().lower().replace('model', '').strip().replace(' ', '-').replace('/', '-')
usernames = set()
passwords = set()
for row in table.find_all('tr')[1:]:
cols = row.find_all('td')
username = cols[1].text.strip()
password = cols[2].text.strip()
if username not in invalidValues:
addUsername = True
tempusername = username.lower()
for keyword in invalidKeywords:
if tempusername.startswith(keyword):
addUsername=False
break
if addUsername:
usernames.add(username)
if password not in invalidValues:
addPassword = True
temppassword = password.lower()
for keyword in invalidKeywords:
if temppassword.startswith(keyword):
addPassword=False
break
if addPassword:
passwords.add(password)
return model, sorted(usernames), sorted(passwords)
else:
return None, None, None
def save_credentials(model, usernames, passwords, output_dir):
if model and usernames and passwords:
user_file_path = os.path.join(output_dir, f'{model}_default-users.txt')
pass_file_path = os.path.join(output_dir, f'{model}_default-passwords.txt')
with open(user_file_path, 'w') as user_file:
user_file.write('\n'.join(usernames))
with open(pass_file_path, 'w') as pass_file:
pass_file.write('\n'.join(passwords))
def process_files(input_dir, output_dir):
for file_name in os.listdir(input_dir):
print(f'Processing file {file_name}')
file_path = os.path.join(input_dir, file_name)
model, usernames, passwords = extract_credentials(file_path)
save_credentials(model, usernames, passwords, output_dir)
# Input directory containing the text files
input_dir = "C:\\Users\\User\\Desktop\\out\\portforward.com"
# Output directory where the output files will be saved
output_dir = "C:\\Users\\User\\Github\\SecLists\\Passwords\\Default-Credentials\\Routers"
process_files(input_dir, output_dir)
```
|
2024-04-05 15:26:08 +01:00 |
|
g0tmi1k
|
babab451e7
|
Merge pull request #1001 from molangning/patch-issues-template
Changed issues templates
|
2024-04-05 15:24:06 +01:00 |
|
g0tmi1k
|
4bca650afa
|
Merge pull request #1002 from molangning/patch-contributing-guidelines
Added more specifications
|
2024-04-05 15:23:11 +01:00 |
|
g0tmi1k
|
0fd0f18fb6
|
Merge pull request #1003 from molangning/patch-normalise-line-endings
Normalised line endings
|
2024-04-05 15:22:24 +01:00 |
|
GitHub Action
|
9385914f42
|
[Github Action] Automated readme update.
|
2024-04-05 14:21:59 +00:00 |
|
g0tmi1k
|
48aaf83f4a
|
Merge pull request #1004 from molangning/patch-normalise-folders
Rename folders
|
2024-04-05 15:20:52 +01:00 |
|
g0tmi1k
|
d15e6a4545
|
Merge pull request #990 from 0xjams/CVE-2023-51442
Added a JWT key used in CVE-2023-51442
Source: https://github.com/advisories/GHSA-wq59-4q6r-635r
|
2024-04-05 15:19:40 +01:00 |
|
Mo Langning
|
73f78c4133
|
Rename folders
|
2024-04-05 10:42:21 +00:00 |
|
Mo Langning
|
c6fa73c975
|
Normalised line endings
|
2024-04-05 10:26:17 +00:00 |
|
Mo Langning
|
6b4504b9df
|
Added more specifications
|
2024-04-05 10:19:41 +00:00 |
|
Mo Langning
|
d9dd80b90a
|
Changed templates
|
2024-04-05 10:12:47 +00:00 |
|
Ignacio J. Perez Portal
|
c84fcf055b
|
chore: Wording
|
2024-04-05 04:03:05 -03:00 |
|
Ignacio J. Perez Portal
|
9c80d344e1
|
chore: Fixed typo in router default-passwords README.md
|
2024-04-05 04:02:43 -03:00 |
|
Ignacio J. Perez Portal
|
f915c403ec
|
Revert "fix: Removed windows-incompatible content"
This reverts commit 644238c35c.
|
2024-04-05 03:45:32 -03:00 |
|
Ignacio J. Perez Portal
|
fff4d42b5f
|
feat(passwords): Added router default users and passwords
sources:
- https://portforward.com/
|
2024-04-05 03:40:32 -03:00 |
|
Mo Langning
|
8b020ac007
|
Update validators.py
|
2024-04-05 10:00:33 +08:00 |
|
Mo Langning
|
5433460af5
|
Update validators.py
|
2024-04-05 08:28:04 +08:00 |
|
Mo Langning
|
1e15da2016
|
Split country codes
|
2024-04-05 00:20:57 +00:00 |
|
GitHub Action
|
997dca7afc
|
[Github Action] Automated trickest wordlists update.
|
2024-04-05 00:19:24 +00:00 |
|
GitHub Action
|
2b62bd209c
|
[Github Action] Automated trickest wordlists update.
|
2024-04-04 00:19:44 +00:00 |
|
Mo Langning
|
cc0d910d95
|
Quick typo fix
|
2024-04-03 11:47:07 +08:00 |
|
GitHub Action
|
0392ab9020
|
[Github Action] Automated trickest wordlists update.
|
2024-04-03 00:18:58 +00:00 |
|
GitHub Action
|
e4cf8df21e
|
[Github Action] Automated trickest wordlists update.
|
2024-04-02 00:19:04 +00:00 |
|
GitHub Action
|
4414aa3885
|
[Github Action] Automated trickest wordlists update.
|
2024-04-01 00:21:29 +00:00 |
|
Ignacio J. Perez Portal
|
644238c35c
|
fix: Removed windows-incompatible content
|
2024-03-31 17:02:18 -03:00 |
|
GitHub Action
|
b182418f05
|
[Github Action] Automated trickest wordlists update.
|
2024-03-31 00:21:32 +00:00 |
|
Dominique RIGHETTO
|
f4d9bb68e3
|
Remove empty line
|
2024-03-30 17:43:46 +01:00 |
|
Dominique RIGHETTO
|
14a48970a1
|
Create ntlm-directories.txt
|
2024-03-30 17:28:41 +01:00 |
|
GitHub Action
|
3373154baf
|
[Github Action] Automated readme update.
|
2024-03-30 16:08:57 +00:00 |
|
GitHub Action
|
dab4605103
|
[Github Action] Automated trickest wordlists update.
|
2024-03-30 00:18:07 +00:00 |
|
GitHub Action
|
ed8889f809
|
[Github Action] Updated combined_directories.txt
|
2024-03-29 19:31:14 +00:00 |
|
Daniel Miessler
|
4584fc4647
|
Removed offensive/harmful entries in files.
|
2024-03-29 12:29:53 -07:00 |
|
GitHub Action
|
bb68e733f6
|
[Github Action] Automated trickest wordlists update.
|
2024-03-29 00:18:55 +00:00 |
|
GitHub Action
|
0daf37370d
|
[Github Action] Automated trickest wordlists update.
|
2024-03-28 00:19:16 +00:00 |
|
GitHub Action
|
e695f8fa28
|
[Github Action] Automated trickest wordlists update.
|
2024-03-27 00:18:34 +00:00 |
|
Mo Langning
|
c0ed6c0a9b
|
Update feature_request.md
|
2024-03-26 13:04:19 +08:00 |
|
GitHub Action
|
6f5d949314
|
[Github Action] Automated trickest wordlists update.
|
2024-03-26 00:18:29 +00:00 |
|
Jorge Morán
|
60c34e20a5
|
Added a JWT key used in CVE-2023-51442
|
2024-03-25 13:40:09 -05:00 |
|
GitHub Action
|
70b13499d5
|
[Github Action] Automated trickest wordlists update.
|
2024-03-25 00:19:57 +00:00 |
|
GitHub Action
|
66ebb6457f
|
[Github Action] Automated trickest wordlists update.
|
2024-03-24 00:21:16 +00:00 |
|
GitHub Action
|
03addcac63
|
[Github Action] Automated trickest wordlists update.
|
2024-03-23 00:18:29 +00:00 |
|
GitHub Action
|
8a2a1c2227
|
[Github Action] Automated trickest wordlists update.
|
2024-03-22 00:18:31 +00:00 |
|
GitHub Action
|
5f3de17a76
|
[Github Action] Automated trickest wordlists update.
|
2024-03-21 00:19:36 +00:00 |
|
GitHub Action
|
757fb9c877
|
[Github Action] Automated trickest wordlists update.
|
2024-03-20 00:18:44 +00:00 |
|
Maksym Vatsyk
|
4e153fbc56
|
fix typo
|
2024-03-19 15:53:23 +01:00 |
|
Maksym Vatsyk
|
6e4f0e08a8
|
Add more paths with alternating separators
|
2024-03-19 15:52:52 +01:00 |
|
GitHub Action
|
1e8bbfbf90
|
[Github Action] Automated trickest wordlists update.
|
2024-03-19 00:19:04 +00:00 |
|
GitHub Action
|
b2072c9bb9
|
[Github Action] Automated trickest wordlists update.
|
2024-03-18 00:19:50 +00:00 |
|
GitHub Action
|
55496aed78
|
[Github Action] Automated trickest wordlists update.
|
2024-03-17 00:20:38 +00:00 |
|
GitHub Action
|
284ae91d8b
|
[Github Action] Automated trickest wordlists update.
|
2024-03-16 00:18:06 +00:00 |
|