wsfuzz 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. wsfuzz-0.1.0/.github/workflows/release.yml +22 -0
  2. wsfuzz-0.1.0/.github/workflows/tests.yml +41 -0
  3. wsfuzz-0.1.0/.gitignore +176 -0
  4. wsfuzz-0.1.0/.pre-commit-config.yaml +10 -0
  5. wsfuzz-0.1.0/LICENSE +661 -0
  6. wsfuzz-0.1.0/PKG-INFO +7 -0
  7. wsfuzz-0.1.0/README.md +91 -0
  8. wsfuzz-0.1.0/pyproject.toml +28 -0
  9. wsfuzz-0.1.0/ruff.toml +22 -0
  10. wsfuzz-0.1.0/seeds/binary.bin +0 -0
  11. wsfuzz-0.1.0/seeds/binary_patterns.bin +0 -0
  12. wsfuzz-0.1.0/seeds/boundaries.txt +10 -0
  13. wsfuzz-0.1.0/seeds/cswsh.txt +4 -0
  14. wsfuzz-0.1.0/seeds/injection.txt +4 -0
  15. wsfuzz-0.1.0/seeds/json.txt +1 -0
  16. wsfuzz-0.1.0/seeds/json_nested.txt +1 -0
  17. wsfuzz-0.1.0/seeds/json_rpc.txt +1 -0
  18. wsfuzz-0.1.0/seeds/protocol.txt +3 -0
  19. wsfuzz-0.1.0/seeds/utf8_edge.bin +0 -0
  20. wsfuzz-0.1.0/seeds/websocket.txt +5 -0
  21. wsfuzz-0.1.0/tests/__init__.py +0 -0
  22. wsfuzz-0.1.0/tests/conftest.py +51 -0
  23. wsfuzz-0.1.0/tests/echo_server.py +42 -0
  24. wsfuzz-0.1.0/tests/test_cli.py +25 -0
  25. wsfuzz-0.1.0/tests/test_fuzzer.py +203 -0
  26. wsfuzz-0.1.0/tests/test_logger.py +123 -0
  27. wsfuzz-0.1.0/tests/test_mutator.py +121 -0
  28. wsfuzz-0.1.0/tests/test_protocol.py +348 -0
  29. wsfuzz-0.1.0/tests/test_security.py +400 -0
  30. wsfuzz-0.1.0/tests/test_transport.py +83 -0
  31. wsfuzz-0.1.0/tests/vulnerable_server.py +115 -0
  32. wsfuzz-0.1.0/uv.lock +165 -0
  33. wsfuzz-0.1.0/wsfuzz/__init__.py +0 -0
  34. wsfuzz-0.1.0/wsfuzz/__main__.py +3 -0
  35. wsfuzz-0.1.0/wsfuzz/cli.py +102 -0
  36. wsfuzz-0.1.0/wsfuzz/fuzzer.py +173 -0
  37. wsfuzz-0.1.0/wsfuzz/logger.py +58 -0
  38. wsfuzz-0.1.0/wsfuzz/mutator.py +61 -0
  39. wsfuzz-0.1.0/wsfuzz/raw.py +235 -0
  40. wsfuzz-0.1.0/wsfuzz/transport.py +112 -0
@@ -0,0 +1,22 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ # Publish on any tag starting with a `v`, e.g. v1.2.3
7
+ - v*
8
+
9
+ jobs:
10
+ pypi:
11
+ name: Publish to PyPI
12
+ runs-on: ubuntu-latest
13
+ # Environment and permissions trusted publishing.
14
+ environment:
15
+ name: release
16
+ permissions:
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: astral-sh/setup-uv@v6
21
+ - run: uv build
22
+ - run: uv publish --trusted-publishing always
@@ -0,0 +1,41 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Install uv
16
+ uses: astral-sh/setup-uv@v6
17
+
18
+ - name: Install Python 3.14
19
+ run: uv python install 3.14
20
+
21
+ - name: Install dependencies
22
+ run: uv sync
23
+
24
+ - name: Install Radamsa
25
+ run: |
26
+ git clone --branch v0.7 --depth 1 https://gitlab.com/akihe/radamsa.git /tmp/radamsa
27
+ cd /tmp/radamsa
28
+ make
29
+ sudo make install
30
+
31
+ - name: Lint
32
+ run: uv run ruff check .
33
+
34
+ - name: Format check
35
+ run: uv run ruff format --check .
36
+
37
+ - name: Type check
38
+ run: uv run ty check .
39
+
40
+ - name: Run tests
41
+ run: uv run pytest
@@ -0,0 +1,176 @@
1
+ # ---> Python
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ #uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ #poetry.lock
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ #pdm.lock
114
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115
+ # in version control.
116
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
117
+ .pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
122
+ __pypackages__/
123
+
124
+ # Celery stuff
125
+ celerybeat-schedule
126
+ celerybeat.pid
127
+
128
+ # SageMath parsed files
129
+ *.sage.py
130
+
131
+ # Environments
132
+ .env
133
+ .venv
134
+ env/
135
+ venv/
136
+ ENV/
137
+ env.bak/
138
+ venv.bak/
139
+
140
+ # Spyder project settings
141
+ .spyderproject
142
+ .spyproject
143
+
144
+ # Rope project settings
145
+ .ropeproject
146
+
147
+ # mkdocs documentation
148
+ /site
149
+
150
+ # mypy
151
+ .mypy_cache/
152
+ .dmypy.json
153
+ dmypy.json
154
+
155
+ # Pyre type checker
156
+ .pyre/
157
+
158
+ # pytype static type analyzer
159
+ .pytype/
160
+
161
+ # Cython debug symbols
162
+ cython_debug/
163
+
164
+ # PyCharm
165
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
166
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
167
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
168
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
169
+ #.idea/
170
+
171
+ # Ruff stuff:
172
+ .ruff_cache/
173
+
174
+ # PyPI configuration file
175
+ .pypirc
176
+
@@ -0,0 +1,10 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ # Ruff version.
4
+ rev: v0.15.7
5
+ hooks:
6
+ # Run the linter.
7
+ - id: ruff-check
8
+ args: [ --fix ]
9
+ # Run the formatter.
10
+ - id: ruff-format