Skip to content

Commit 0a1142c

Browse files
committed
chore: add pre-commit, contributing etc
1 parent fe7ead8 commit 0a1142c

File tree

5 files changed

+78
-9
lines changed

5 files changed

+78
-9
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Code of Conduct
2+
3+
All contributors to CSSinj are expected to:
4+
5+
- Be respectful and courteous to others.
6+
- Communicate clearly and professionally.
7+
- Report bugs or issues responsibly.
8+
- Focus on improving the project, not personal disputes.
9+
10+
By participating in this project, you agree to follow these guidelines to keep CSSinj a positive and productive community.

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
args: [--markdown-linebreak-ext=md]
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- id: check-added-large-files
10+
args: ["--maxkb=1000"]
11+
- id: check-json
12+
- id: check-toml
13+
- id: check-merge-conflict
14+
- id: check-case-conflict
15+
- id: detect-private-key
16+
- id: mixed-line-ending
17+
args: ["--fix=lf"]
18+
19+
- repo: https://github.com/psf/black
20+
rev: 25.9.0
21+
hooks:
22+
- id: black
23+
language_version: python3.13
24+
args: ["--line-length=148"]
25+
26+
- repo: https://github.com/pycqa/isort
27+
rev: 7.0.0
28+
hooks:
29+
- id: isort
30+
args: ["--profile", "black", "--line-length", "148"]
31+
32+
- repo: https://github.com/pycqa/flake8
33+
rev: 7.3.0
34+
hooks:
35+
- id: flake8
36+
args:
37+
[
38+
"--max-line-length=148",
39+
"--extend-ignore=E203,W503,E701",
40+
"--exclude=*/migrations/*,*/settings/*,venv,env",
41+
]

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Contributing to CSSInj
2+
3+
First off, thank you for considering contributing! CSSInj is an open-source project, and contributions, big or small, are always welcome.
4+
5+
## Ways to Contribute
6+
7+
You can help in many ways, including:
8+
9+
- Code patches and new features
10+
- Bug reports and troubleshooting
11+
- Documentation improvements
12+
- Reviewing pull requests
13+
14+
Starring the repository is appreciated!
15+
16+
## Code of Conduct
17+
18+
Please see our [Code of Conduct](.github/CODE_OF_CONDUCT.md) for guidelines on participating in the Eskoz community. By contributing, you agree to follow these rules to help maintain a welcoming and productive environment.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To install **CSSINJ**, run the following command:
2424
pip install cssinj
2525
```
2626
27-
Now you’re ready to use **CSSINJ**!
27+
Now you’re ready to use **CSSINJ**!
2828
2929
## Usage
3030
@@ -62,10 +62,10 @@ python3 -m cssinj [-h] -H HOSTNAME -p PORT [-e ELEMENT] [-a ATTRIBUT] [-d] [-m {
6262
```
6363

6464
#### Recursive attack
65-
###### Using a specific HTML identifier :
65+
###### Using a specific HTML identifier :
6666

6767
```bash
68-
~ python3 CSSINJ.py inject -H 127.0.0.1 -p 5005 -e input
68+
~ python3 -m cssinj inject -H 127.0.0.1 -p 5005 -e input
6969
_____ _____ _____ _____ _ _ _ _____ __ __
7070
/ ____| / ____| / ____||_ _|| \ | | | | | __ \ \ \ / /
7171
| | | (___ | (___ | | | \| | | | | |__) | \ \_/ /
@@ -84,7 +84,7 @@ python3 -m cssinj [-h] -H HOSTNAME -p PORT [-e ELEMENT] [-a ATTRIBUT] [-d] [-m {
8484
###### Using a specific CSS attribute selector and a generic HTML identifier:
8585
8686
```bash
87-
~ python3 CSSINJ.py -H 127.0.0.1 -p 5005 -e * -a src
87+
~ python3 -m cssinj -H 127.0.0.1 -p 5005 -e * -a src
8888
_____ _____ _____ _____ _ _ _ _____ __ __
8989
/ ____| / ____| / ____||_ _|| \ | | | | | __ \ \ \ / /
9090
| | | (___ | (___ | | | \| | | | | |__) | \ \_/ /
@@ -139,15 +139,15 @@ The success of CSS injection attacks using @import depends on the browser's hand
139139
This difference in behavior makes Chromium-based browsers more susceptible to CSS injection exfiltration, while Firefox provides better protection against such attacks.
140140
141141
## Todo
142-
- General :
142+
- General :
143143
- [ ] Add error Handler
144144
- [ ] File error Handler
145145
- [ ] Add test
146146
- [ ] Edit Terminal
147147
148-
- Injection :
148+
- Injection :
149149
- [x] Add injection parameters
150-
- [ ] Add an option to save results to a file
150+
- [x] Add an option to save results to a file
151151
- [ ] Allow multiple CSS selectors for simultaneous extraction
152152
- [ ] Add g all of the page
153153
- [x] Refract cssinjector.py

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ dependencies = [
2222
]
2323

2424
[project.urls]
25-
Homepage = "https://github.com/DonAsako/cssINJ"
26-
Issues = "https://github.com/DonAsako/cssINJ/issues"
25+
Homepage = "https://github.com/DonAsako/CSSinj"
26+
Issues = "https://github.com/DonAsako/CSSinj/issues"

0 commit comments

Comments
 (0)