Skip to content

Commit 747d6af

Browse files
committed
[ADDED]: Weeman Tool
1 parent 977c5c4 commit 747d6af

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

Weeman/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Weeman Tool
2+
3+
Weeman is a command-line tool designed for security testing, particularly focused on web-related vulnerabilities. It provides a set of functionalities to aid in testing and assessing web applications for potential vulnerabilities.
4+
5+
## Features
6+
7+
- Command-line interface for easy interaction.
8+
- Support for loading and using Weeman profiles.
9+
- Compatibility tests for Python versions and platforms.
10+
- Basic shell functionality for interactive testing.
11+
12+
## Prerequisites
13+
14+
- Python 2.7 or 3
15+
- Unix-like platform (Linux, macOS)
16+
- Basic familiarity with command-line tools and security testing concepts.

Weeman/Requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
weemanlib==1.0.0

Weeman/weeman.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import sys
2+
import argparse
3+
4+
SUPPORTED_PYTHON_VERSIONS = ["2.7", "3"]
5+
6+
class Weeman:
7+
def __init__(self):
8+
self.parse_arguments()
9+
self.tests_pyver()
10+
self.tests_platform()
11+
12+
def parse_arguments(self):
13+
parser = argparse.ArgumentParser(description="Weeman Tool")
14+
parser.add_argument("-q", "--quiet", dest="quiet_mode", action="store_true", help="Run without displaying the banner.")
15+
parser.add_argument("-p", "--profile", dest="profile", help="Load Weeman profile.")
16+
self.args = parser.parse_args()
17+
18+
def tests_pyver(self):
19+
if sys.version[:3] not in SUPPORTED_PYTHON_VERSIONS:
20+
print("Weeman does not support your Python version.")
21+
sys.exit(1)
22+
23+
def tests_platform(self):
24+
supported_platforms = ["linux", "darwin"]
25+
if any(platform in sys.platform for platform in supported_platforms):
26+
if "win" in sys.platform:
27+
print("Sorry, there is no support for Windows right now.")
28+
sys.exit(1)
29+
else:
30+
print("Weeman might not work optimally on your platform (%s)." % sys.platform)
31+
32+
def run(self):
33+
if self.args.profile:
34+
from core.shell import shell_noint
35+
shell_noint(self.args.profile)
36+
else:
37+
from core.shell import shell
38+
shell()
39+
40+
if __name__ == '__main__':
41+
weeman_tool = Weeman()
42+
weeman_tool.run()

0 commit comments

Comments
 (0)