Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from danielmiessler:master #8

Merged
merged 125 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
635f59a
more human injection; new LLM section
sonatagreen May 29, 2023
f317871
add localized wikipedia wordlists
DeveloperOl Jun 28, 2023
460b207
List of File Extensions
adilnbabras Aug 15, 2023
a213361
Dutch Wordlist
adilnbabras Aug 15, 2023
e36dfa2
Create OMI-Agent-Linux.txt
etum-dev Aug 20, 2023
9694020
Update LFI-gracefulsecurity-linux.txt
stefanman125 Sep 6, 2023
bbbba71
Trace.axd has been added to dirsearch.txt which can expose sensitive …
souravvvv123 Sep 8, 2023
59bd801
added wso2 api manager endpoint /services/WorkflowCallbackService?wsdl
CountablyInfinite Sep 20, 2023
2874a0a
Typos
ThomasBucaioni Sep 23, 2023
65d8f6e
Update raft-medium-words.txt
DmytroKashchuk Oct 5, 2023
f81a980
Add file
righettod Oct 8, 2023
55c4988
Rename OracleSID.txt to OracleDB-SID.txt
righettod Oct 8, 2023
306339a
feat(wordlist): Added [email protected]
ItsIgnacioPortal Oct 10, 2023
51929e9
feat(wordlist): Added clean fortinet-2021 username and passwords word…
ItsIgnacioPortal Oct 10, 2023
44e9224
Add HTTP versb TRACK and DEBUG
cosad3s Oct 17, 2023
1c98513
Update HTML tags
cosad3s Oct 17, 2023
e275915
Update salesforce-aura-objects.txt
cosad3s Oct 19, 2023
81cdc0b
added certstream subdomains analysis
olizimmermann Oct 22, 2023
cb5c387
Update common-http-ports.txt
zyairelai Oct 23, 2023
1588c54
Create os-names.txt
molangning Nov 3, 2023
764155f
Update os-names.txt
molangning Nov 3, 2023
31f0483
Os-names but with mutation
molangning Nov 3, 2023
63b85cb
Update os-names-mutation.txt
molangning Nov 3, 2023
1cdd4b9
Update os-names-mutation.txt
molangning Nov 3, 2023
3902902
Update .bin
molangning Nov 3, 2023
2393f77
Merge pull request #916 from molangning/master
g0tmi1k Nov 23, 2023
486f547
Merge pull request #915 from zyairelai/master
g0tmi1k Nov 23, 2023
65a1d20
Merge pull request #914 from olizimmermann/master
g0tmi1k Nov 23, 2023
6aff8b9
Merge pull request #912 from cosad3s/master
g0tmi1k Nov 23, 2023
237f1ff
Merge pull request #909 from ItsIgnacioPortal/i856
g0tmi1k Nov 23, 2023
6e912c6
Merge pull request #908 from ItsIgnacioPortal/i690
g0tmi1k Nov 23, 2023
7efd8d7
Merge pull request #907 from righettod/add_oracle_sid
g0tmi1k Nov 23, 2023
7606e16
Merge pull request #906 from DmytroKashchuk/patch-1
g0tmi1k Nov 23, 2023
af5c641
[Github Action] Updated combined_words.txt
throwaway-people Nov 23, 2023
7dcdade
Merge pull request #905 from ThomasBucaioni/master
g0tmi1k Nov 23, 2023
fd4d0a7
[Github Action] Updated combined_directories.txt
throwaway-people Nov 23, 2023
b75841f
Merge pull request #904 from CountablyInfinite/master
g0tmi1k Nov 23, 2023
ced93ad
Merge pull request #902 from souravvvv123/sourav
g0tmi1k Nov 23, 2023
0c8af0a
Merge pull request #901 from stefanman125/patch-1
g0tmi1k Nov 23, 2023
03002fb
Merge pull request #900 from nekonugget/master-1
g0tmi1k Nov 23, 2023
638ce8b
Merge pull request #897 from adilnbabras/master
g0tmi1k Nov 23, 2023
4820f44
Merge pull request #886 from DeveloperOl/master
g0tmi1k Nov 23, 2023
b916651
Merge pull request #882 from sonatagreen/patch-1
g0tmi1k Nov 23, 2023
51a20e0
changed some strings slightly
molangning Nov 23, 2023
e7fb566
Merge branch 'danielmiessler:master' into master
molangning Nov 23, 2023
54ac8ca
Delete Fuzzing/os-names-mutation.txt
molangning Nov 23, 2023
75c6b9f
Bump
g0tmi1k Nov 23, 2023
4e9f88b
Update for 2023.4
g0tmi1k Nov 23, 2023
fb5eb5c
Merge pull request #918 from g0tmi1k/release
g0tmi1k Nov 23, 2023
f587f37
Update os-names.txt
molangning Nov 23, 2023
b65c31a
Create os-names-mutated.txt
molangning Nov 23, 2023
3b569c8
Changed it to allow for automated script execution
molangning Nov 23, 2023
f14dee2
Merge pull request #919 from molangning/master
g0tmi1k Nov 23, 2023
4883481
Added .well-known/humans.txt
molangning Nov 24, 2023
ba3a707
Merge pull request #920 from molangning/master
g0tmi1k Nov 24, 2023
149325e
[Github Action] Updated combined_words.txt
throwaway-people Nov 24, 2023
a92da76
Added missing web path
molangning Nov 24, 2023
b254e35
Merge pull request #921 from molangning/master
g0tmi1k Nov 24, 2023
02b3baa
removed new line at the start
molangning Nov 24, 2023
383bd1d
Merge pull request #922 from molangning/master
g0tmi1k Nov 24, 2023
cb188b9
Renamed for better clarity
molangning Nov 24, 2023
2a85579
Create file-exts-downloader.py
molangning Nov 24, 2023
275d463
Changed to allow script to execute in github actions
molangning Nov 24, 2023
62b7f97
typo fix
molangning Nov 24, 2023
3336551
Create file-ext-all-cases.txt
molangning Nov 24, 2023
d51f55f
Create file-ext-lower-cases.txt
molangning Nov 24, 2023
7e74555
Create file-ext-upper-cases.txt
molangning Nov 24, 2023
087bcad
Create file-ext.txt
molangning Nov 24, 2023
20e7c0f
Wrong naming scheme
molangning Nov 24, 2023
7df6f1f
Wrong naming scheme
molangning Nov 24, 2023
6d8b5db
Wrong naming scheme
molangning Nov 24, 2023
f888a81
Wrong naming scheme
molangning Nov 24, 2023
6794f95
Update file-extensions.txt
molangning Nov 24, 2023
866c0b9
Create file-extensions-all-cases.txt
molangning Nov 24, 2023
a75579b
Create file-extensions-upper-case.txt
molangning Nov 24, 2023
8d4416b
Create file-extensions-lower-case.txt
molangning Nov 24, 2023
c602fd4
Update file-exts-downloader.py
molangning Nov 24, 2023
cf28ac4
Fix back the ../
molangning Nov 24, 2023
08b278b
Quick rename
molangning Nov 24, 2023
ac930da
Merge pull request #923 from molangning/master
g0tmi1k Nov 24, 2023
689f1ed
A SINGULAR BACKTICK
molangning Nov 24, 2023
d6e0ae7
Merge pull request #924 from molangning/patch-1
g0tmi1k Nov 24, 2023
d0e6d42
set execute bit on all scripts and removed redundant commands
molangning Nov 24, 2023
644fdc4
Merge pull request #925 from molangning/master
g0tmi1k Nov 24, 2023
e419a28
Added workflow file
molangning Nov 24, 2023
61b4435
imported file from fire-av
molangning Nov 24, 2023
f794f2f
added new line checker for all push
molangning Nov 24, 2023
066ede4
Added new line and empty line checker
molangning Nov 24, 2023
6f4b5e0
created wrapper script
molangning Nov 24, 2023
96a9fbf
removed that
molangning Nov 24, 2023
a4df7ab
rename and added modification notes
molangning Nov 24, 2023
a3ef749
added code that just exit if no args passed
molangning Nov 24, 2023
c9d4fe0
changed description to accurately reflect purpose
molangning Nov 24, 2023
86bebe9
Damn typo!
molangning Nov 24, 2023
3da34d7
Grammar fix
molangning Nov 24, 2023
5cdf3de
more verbose logging
molangning Nov 24, 2023
197b239
Merge pull request #913 from cosad3s/patch-1
g0tmi1k Nov 24, 2023
7e128ab
Merge pull request #926 from molangning/master
g0tmi1k Nov 24, 2023
fba6764
import the files from trickest
molangning Nov 25, 2023
a143658
deleted new line to shush my workflow
molangning Nov 25, 2023
d060c08
renamed for clarity
molangning Nov 25, 2023
a3c9690
removed the newlines at the end
molangning Nov 25, 2023
4acacbf
revert the borking of craftcms.txt
molangning Nov 25, 2023
127b4c6
ignore .working_space
molangning Nov 25, 2023
9cca4b5
Delete Discovery/Web-Content/RobotsDisallowed-Top10.txt
molangning Nov 25, 2023
fb4f399
Delete Discovery/Web-Content/RobotsDisallowed-Top100.txt
molangning Nov 25, 2023
0f9e5a3
Delete Discovery/Web-Content/RobotsDisallowed-Top1000.txt
molangning Nov 25, 2023
61dbd67
Delete Discovery/Web-Content/RobotsDisallowed-Top500.txt
molangning Nov 25, 2023
51ff4ba
rename folder for clarity
molangning Nov 25, 2023
4f258f6
Merge branch 'patch-4' of https://github.com/molangning/SecLists into…
molangning Nov 25, 2023
db2b960
python script to patch away new and empty lines
molangning Nov 25, 2023
388be74
small wrapper to clone and patch things away
molangning Nov 25, 2023
30874fc
workflow file
molangning Nov 25, 2023
04e8d04
forgot to rename
molangning Nov 25, 2023
c69ad6d
updated the name to fit in with the rest
molangning Nov 25, 2023
00be7df
cleaned files, courtesy of patch-5
molangning Nov 25, 2023
d4fb162
Edited workflow file
molangning Nov 26, 2023
57c5c12
removed generated files
molangning Nov 26, 2023
ab618c7
Edited script so that workflow does not blow up when it reads a unico…
molangning Nov 26, 2023
2030957
removed the extra files
molangning Nov 26, 2023
9d3d08d
Removed empty entry
molangning Nov 26, 2023
84abe82
Merge pull request #932 from molangning/patch-4
g0tmi1k Nov 26, 2023
18c676b
Merge pull request #933 from molangning/patch-5
g0tmi1k Nov 26, 2023
d02c14e
Merge pull request #936 from molangning/patch-6
g0tmi1k Nov 26, 2023
8364894
[Github Action] Automated trickest wordlists update.
throwaway-people Nov 27, 2023
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
Empty file modified .bin/check-file-for-starting-slash
100644 → 100755
Empty file.
137 changes: 137 additions & 0 deletions .bin/file-extensions-downloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
#!/usr/bin/python3

# Open a pull req if any sources are missing/need to be added

from bs4 import BeautifulSoup
import requests
import time
import re

MICROSOFT_URL="https://support.microsoft.com/en-us/windows/common-file-name-extensions-in-windows-da4a4430-8e76-89c5-59f7-1cdbbc75cb01"
WIKI_ROOT="https://en.wikipedia.org"
WIKI_URL="https://en.wikipedia.org/wiki/List_of_filename_extensions"
GFG_URL="https://www.geeksforgeeks.org/list-of-file-formats/"

wiki_urls=[]
exts=[]
tables=[]

res=requests.get(WIKI_URL).text
wiki_soup=BeautifulSoup(res,"html.parser")

for i in wiki_soup.findAll('div',{"class":"mw-content-ltr mw-parser-output"})[0].findAll("ul")[2].findAll("li"):
wiki_urls.append(WIKI_ROOT+i.a.get('href'))

for i in wiki_urls:
res=requests.get(i).text
wiki_soup=BeautifulSoup(res,"html.parser")

tables+=wiki_soup.findAll("table")
time.sleep(0.5)

for i in tables:

if "wikitable" not in i["class"]:
continue


for ext in i.tbody.findAll("tr"):
ext=ext.findAll('td')

if ext==[]:
continue

ext=re.sub(r"\[.*?\]","",ext[0].text).strip()

if "," in ext:
for j in ext.split(","):

if "." in j:
continue

exts.append(j.strip())
continue

if "." in ext:
continue

exts.append(ext)

res=requests.get(MICROSOFT_URL).text
microsoft_soup=BeautifulSoup(res,"html.parser")

microsoft_exts=microsoft_soup.findAll("tbody")[1].findAll('p')[::2]

for i in microsoft_exts:

i=i.text

if "," in i:
i=i.split(",")
for j in i:
exts.append(j.strip())
continue

exts.append(i)

res=requests.get(GFG_URL).text
gfg_soup=BeautifulSoup(res,"html.parser")

gfg_exts=gfg_soup.findAll("tbody")

for i in gfg_exts:
i=i.findAll('th')
for ext in i:
ext=ext.text.strip()
if ext.startswith('.'):
exts.append(ext[1:].upper())
else:
exts.append(ext.upper())

cleaned_exts=[]
for i in exts:

# https://stackoverflow.com/questions/3627784/case-insensitive-in
if i.upper() in (cleaned_ext.upper() for cleaned_ext in cleaned_exts):
continue

cleaned_exts.append(i)

exts=cleaned_exts

exts=list(dict.fromkeys(exts))
exts.sort()

open("../Fuzzing/file-extensions.txt","w").write("\n".join(exts))

mutated_exts=[]

for i in exts:
mutated_exts.append(i)
mutated_exts.append(i.upper())
mutated_exts.append(i.lower())

mutated_exts=list(dict.fromkeys(mutated_exts))
mutated_exts.sort()

open("../Fuzzing/file-extensions-all-cases.txt","w").write("\n".join(mutated_exts))

mutated_exts=[]

for i in exts:
mutated_exts.append(i.lower())

mutated_exts=list(dict.fromkeys(mutated_exts))
mutated_exts.sort()

open("../Fuzzing/file-extensions-lower-case.txt","w").write("\n".join(mutated_exts))

mutated_exts=[]

for i in exts:
mutated_exts.append(i.upper())

mutated_exts=list(dict.fromkeys(mutated_exts))
mutated_exts.sort()

open("../Fuzzing/file-extensions-upper-case.txt","w").write("\n".join(mutated_exts))
Empty file modified .bin/generate-environment-identifiers-dict.sh
100644 → 100755
Empty file.
38 changes: 38 additions & 0 deletions .bin/new-line-and-empty-line-checker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python3

# test string: ./.bin/new-line-checker.py "Fuzzing/file-extensions-all-cases.txt Fuzzing/file-extensions-lower-case.txt Fuzzing/file-extensions-upper-case.txt Fuzzing/file-extensions.txt"

import os
import sys

print("[+] New line check")

if not sys.argv[1]:
exit(0)

files=sys.argv[1].split(" ")

for i in files:
if not os.path.isfile(i):
print("[!] %s does not exist!"%(i))
exit(2)

for i in files:
contents=open(i,"rb").read()

if contents[-1] == b'\n':
print("[!] %s ends with a new line!"%(i))
exit(2)
print("[+] %s passed new line check!"%(i))

counter=1

for line in contents.split(b'\n'):
if len(line)==0:
print("[!] %s has an empty entry at line %i!"%(i,counter))
exit(2)
counter+=1
print("[+] %s passed empty line check!"%(i))

print("[+] All files passed checks")
# exit(0)
19 changes: 19 additions & 0 deletions .bin/os-names-mutate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/python3

text=open('../Fuzzing/os-names.txt').read().split('\n')
new_temp=[]
for i in text:
if " " in i:
new_temp.append(i.replace(" ", "-"))
new_temp.append(i.replace(" ", "_"))
else:
new_temp.append(i)
temp=[]
for i in new_temp:
if i.lower() != i:
temp.append(i)
temp.append(i.lower())
else:
temp.append(i)

open("../Fuzzing/os-names-mutated.txt","w").write('\n'.join(temp))
69 changes: 69 additions & 0 deletions .bin/trickest-patcher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/python3

import os,shutil

print("[+] trickest wordlist patcher")

ROOT=".working_space"
INPUT_TECHNOLOGIES=os.path.join(ROOT,"wordlists/technologies/")
INPUT_ROBOTS=os.path.join(ROOT,"wordlists/robots/")
OUTPUT_TECHNOLOGIES="Discovery/Web-Content/CMS/trickest-cms-wordlist/"
OUTPUT_ROBOTS="Discovery/Web-Content/trickest-robots-disallowed-wordlists/"

if not os.path.isdir(".working_space"):
print("[!] Working dir not found!")
exit(2)

if not os.path.isdir(os.path.join(ROOT,"wordlists")):
print("[!] wordlists dir not found!")
exit(2)

if not os.path.isdir(OUTPUT_TECHNOLOGIES):
os.makedirs(OUTPUT_TECHNOLOGIES)

if not os.path.isdir(OUTPUT_ROBOTS):
os.makedirs(OUTPUT_ROBOTS)

for i in os.listdir(INPUT_TECHNOLOGIES):
path=os.path.join(INPUT_TECHNOLOGIES,i)

if os.path.isfile(path):
shutil.copy(path,OUTPUT_TECHNOLOGIES)
else:
shutil.copytree(path,OUTPUT_TECHNOLOGIES,dirs_exist_ok=True)

for i in os.listdir(INPUT_ROBOTS):
path=os.path.join(INPUT_ROBOTS,i)

if os.path.isfile(path):
shutil.copy(path,OUTPUT_ROBOTS)
else:
shutil.copytree(path,OUTPUT_ROBOTS,dirs_exist_ok=True)

print("[+] Copied all the files")
for i in [OUTPUT_ROBOTS,OUTPUT_TECHNOLOGIES]:
for root,_,file_list in os.walk(i):
for file in file_list:

path=os.path.join(root,file)
contents=open(path,"rb").read()

if contents.endswith(b"\n"):
print("[!] %s ends with new line"%(path))
contents=contents[:-1]
open(path,"wb").write(contents)

patch_content=[]
counter=0
for content in contents.split(b"\n"):
counter+=1
if not content:
print("[+] %s has an empty line at %i"%(path,counter))
continue
patch_content.append(content)

if len(contents)!=len(patch_content):
open(path,"wb").write(b"\n".join(patch_content))



12 changes: 12 additions & 0 deletions .bin/trickest-updater.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/bash

set -e
set -o pipefail

mkdir -p .working_space
cd .working_space
git clone --depth=1 https://github.com/trickest/wordlists.git
cd ../

./.bin/trickest-patcher.py
rm -rf .working_space
11 changes: 11 additions & 0 deletions .bin/validators.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# https://stackoverflow.com/questions/3822621/how-to-exit-if-a-command-failed

set -e
set -o pipefail

# wrapper for all the checking scripts
echo $1
./.bin/check-file-for-starting-slash "$1"
./.bin/new-line-and-empty-line-checker.py "$1"
32 changes: 32 additions & 0 deletions .github/workflows/wordlist-updater_trickest-wordlists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Wordlist Updater - Trickest wordlists updater

on:
schedule:
- cron: 0 0 * * *

workflow_dispatch:

jobs:
update-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Update lists
run: ./.bin/trickest-updater.sh

- name: Commit files if changed
run: |
git add -N .

if [ -z "$(git ls-files --modified)" ]; then
echo "[+] No files were changed"
else
echo "[+] Files were changed! Pushing changed..."
git add -A
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "[Github Action] Automated trickest wordlists update."
git push
fi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# Sources:
# https://dev.to/scienta/get-changed-files-in-github-actions-1p36
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
# https://github.com/marketplace/actions/changed-files
name: Wordlist Validator - Verify if any file entry start with a slash
# https://github.com/marketplace/actions/changed-files\
#
# Modified to add a validator script
name: Wordlist Validator - Runs a validator script to check for dangerous pushes
on:
push:
paths:
Expand All @@ -26,5 +28,4 @@ jobs:
uses: tj-actions/changed-files@v34
- name: Analyze all added or modified files
run: |
chmod +x ./.bin/check-file-for-starting-slash
./.bin/check-file-for-starting-slash "${{ steps.changed-files.outputs.all_changed_files }}"
./.bin/validators.sh "${{ steps.changed-files.outputs.all_changed_files }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.*.icloud
.gitkeep
.idea
.working_space/
Loading
Loading