Skip to content

Commit 42059ba

Browse files
committed
Import Upstream version 4.1
1 parent 082ceb8 commit 42059ba

File tree

146 files changed

+11046
-17333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+11046
-17333
lines changed

.github/workflows/builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: [ '2.x', '3.10', 'pypy-2.7', 'pypy-3.7' ]
13+
python-version: [ 'pypy-2.7', '3.12' ]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Python
@@ -20,4 +20,4 @@ jobs:
2020
- name: Basic import test
2121
run: python -c "import commix"
2222
- name: Basic smoke test
23-
run: python commix.py --smoke-test
23+
run: python commix.py --smoke-test

.github/workflows/lockbot.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'LockBot'
22

33
on:
44
schedule:
5-
- cron: '0 1 * * *'
5+
- cron: '0 0 * * *'
66

77
permissions:
88
issues: write
@@ -13,5 +13,15 @@ jobs:
1313
steps:
1414
- uses: dessant/lock-threads@v2
1515
with:
16-
issue-lock-inactive-days: '90'
17-
issue-lock-comment: 'This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues.'
16+
issue-lock-inactive-days: '30'
17+
issue-lock-comment: >
18+
This issue has been automatically locked due to inactivity.<br>
19+
Please file a new issue if you are encountering a similar or related problem.<br><br>
20+
<sub>_This action has been performed automatically by a bot._</sub>
21+
issue-lock-reason: ''
22+
pr-lock-inactive-days: 30
23+
pr-lock-comment: >
24+
This PR has been automatically locked due to inactivity.<br>
25+
Please file a new issue if you are encountering a similar or related problem.<br><br>
26+
<sub>_This action has been performed automatically by a bot._</sub>
27+
pr-lock-reason: ''

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2022 Anastasios Stasinopoulos
1+
Copyright (c) 2014-2025 Anastasios Stasinopoulos
22

33
This program is free software: you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<a href="http://www.python.org/download/"><img alt="Python 2.6|2.7|3.x" src="https://img.shields.io/badge/python-2.6|2.7|3.x-yellow.svg"></a>
66
<a href="https://github.com/commixproject/commix/blob/master/LICENSE.txt"><img alt="GPLv3 License" src="https://img.shields.io/badge/license-GPLv3-red.svg"></a>
77
<a href="https://github.com/commixproject/commix/issues?q=is%3Aissue+is%3Aclosed"><img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed-raw/commixproject/commix.svg?colorB=ff0000"></a>
8-
<a href="http://www.twitter.com/commixproject"><img alt="Twitter" src="https://img.shields.io/badge/twitter-@commixproject-blue.svg"></a>
8+
<a href="https://x.com/commixproject"><img alt="X" src="https://img.shields.io/badge/x-@commixproject-blue.svg"></a>
99
</p>
1010
</p>
1111

12-
**Commix** (short for [**comm**]and [**i**]njection e[**x**]ploiter) is an open source penetration testing tool, written by **[Anastasios Stasinopoulos](https://github.com/stasinopoulos)** (**[@ancst](https://twitter.com/ancst)**), that automates the detection and exploitation of **[command injection](https://www.owasp.org/index.php/Command_Injection)** vulnerabilities.
12+
**Commix** (short for [**comm**]and [**i**]njection e[**x**]ploiter) is an open source penetration testing tool, written by **[Anastasios Stasinopoulos](https://github.com/stasinopoulos)** (**[@ancst](https://x.com/ancst)**), that automates the detection and exploitation of **[command injection](https://www.owasp.org/index.php/Command_Injection)** vulnerabilities.
1313

1414

1515
![Screenshot](https://commixproject.com/images/background.png)
@@ -43,4 +43,7 @@ To get an overview of commix available options, switches and/or basic ideas on h
4343

4444
## Translations
4545

46-
* [Greek](https://github.com/commixproject/commix/blob/master/doc/translations/README-gr-GR.md)
46+
* [Farsi(Persian)](https://github.com/commixproject/commix/blob/master/doc/translations/README-fa-FA.md)
47+
* [Greek](https://github.com/commixproject/commix/blob/master/doc/translations/README-gr-GR.md)
48+
* [Indonesian](https://github.com/commixproject/commix/blob/master/doc/translations/README-idn-IDN.md)
49+
* [Turkish](https://github.com/commixproject/commix/blob/master/doc/translations/README-tr-TR.md)

commix.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,28 @@
33

44
"""
55
This file is part of Commix Project (https://commixproject.com).
6-
Copyright (c) 2014-2022 Anastasios Stasinopoulos (@ancst).
6+
Copyright (c) 2014-2025 Anastasios Stasinopoulos (@ancst).
77
88
This program is free software: you can redistribute it and/or modify
99
it under the terms of the GNU General Public License as published by
1010
the Free Software Foundation, either version 3 of the License, or
1111
(at your option) any later version.
12-
12+
1313
For more see the file 'readme/COPYING' for copying permission.
1414
"""
1515

16+
import sys
17+
1618
# Dummy check for missing module(s).
1719
try:
1820
__import__("src.utils.version")
1921
from src.utils import version
2022
version.python_version()
2123

22-
except ImportError:
23-
err_msg = "Wrong installation detected (missing modules). "
24-
err_msg = "Visit 'https://github.com/commixproject/commix/' for further details. \n"
25-
print(settings.print_critical_msg(err_msg))
26-
raise SystemExit()
24+
except ImportError as ex:
25+
err_msg = "Wrong installation detected (i.e \"" + str(ex) + "\"). "
26+
err_msg += "Visit 'https://github.com/commixproject/commix/' for further details."
27+
sys.exit(err_msg)
2728

2829
# Main
2930
def main():
@@ -35,14 +36,14 @@ def main():
3536
main()
3637
except SystemExit:
3738
import sys
38-
raise SystemExit()
39+
raise SystemExit()
3940
except KeyboardInterrupt:
4041
import sys
41-
raise SystemExit()
42+
raise SystemExit()
4243
except IndentationError as err_msg:
4344
from src.utils import settings
44-
print(settings.print_critical_msg(err_msg) + ".\n")
45-
raise SystemExit()
45+
settings.print_data_to_stdout(settings.print_critical_msg(err_msg))
46+
raise SystemExit()
4647
except:
4748
from src.utils import common
4849
common.unhandled_exception()

0 commit comments

Comments
 (0)