From 67c0a609473e5b3f79a336f76ec4c94524369a2f Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 9 Apr 2024 15:22:26 +0200 Subject: [PATCH 1/5] Update setup.py --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index fe791dce..e13dd6be 100644 --- a/setup.py +++ b/setup.py @@ -107,9 +107,9 @@ def run(self): # If your package is a single module, use this instead of 'packages': # py_modules=['mypackage'], - # entry_points={ - # 'console_scripts': ['mycli=mymodule:cli'], - # }, + entry_points={ + 'console_scripts': ['cmseek=cmseek'], + }, install_requires=REQUIRED, extras_require=EXTRAS, include_package_data=True, From a6d24d7817dd1fe7558e3d71480b2280eb897676 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 9 Apr 2024 09:26:51 -0400 Subject: [PATCH 2/5] make CLI executable --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e13dd6be..9371c88d 100644 --- a/setup.py +++ b/setup.py @@ -108,7 +108,7 @@ def run(self): # py_modules=['mypackage'], entry_points={ - 'console_scripts': ['cmseek=cmseek'], + 'console_scripts': ['cmseek=cmseek:main'], }, install_requires=REQUIRED, extras_require=EXTRAS, From 631a143780d0c859cfc4ecaf10a25e581c011312 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 9 Apr 2024 09:30:08 -0400 Subject: [PATCH 3/5] update --- cmseek/__init__.py | 0 cmseek.py => cmseek/cli.py | 0 setup.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 cmseek/__init__.py rename cmseek.py => cmseek/cli.py (100%) diff --git a/cmseek/__init__.py b/cmseek/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/cmseek.py b/cmseek/cli.py similarity index 100% rename from cmseek.py rename to cmseek/cli.py diff --git a/setup.py b/setup.py index 9371c88d..91df6974 100644 --- a/setup.py +++ b/setup.py @@ -108,7 +108,7 @@ def run(self): # py_modules=['mypackage'], entry_points={ - 'console_scripts': ['cmseek=cmseek:main'], + 'console_scripts': ['cmseek=cmseek/cli:main'], }, install_requires=REQUIRED, extras_require=EXTRAS, From 4c9ad76e0912085b784f112bf454e92f6f70bdb4 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 9 Apr 2024 09:31:10 -0400 Subject: [PATCH 4/5] update --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 91df6974..54621908 100644 --- a/setup.py +++ b/setup.py @@ -108,7 +108,7 @@ def run(self): # py_modules=['mypackage'], entry_points={ - 'console_scripts': ['cmseek=cmseek/cli:main'], + 'console_scripts': ['cmseek=cmseek.cli:main'], }, install_requires=REQUIRED, extras_require=EXTRAS, From 0c4c3453efb69f238112cbaa73998a94f05e6705 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 9 Apr 2024 09:39:13 -0400 Subject: [PATCH 5/5] update --- README.md | 26 ++++++++++++-------------- cmseekdb/basic.py | 14 +++++++------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 682b835f..cc3f0aaf 100644 --- a/README.md +++ b/README.md @@ -51,26 +51,24 @@ CMSeeK is built using **python3**, you will need python3 to run this tool and is ## Installation and Usage: -It is fairly easy to use CMSeeK, just make sure you have python3 and git (just for cloning the repo) installed and use the following commands: +It is fairly easy to use CMSeeK, just make sure you have python3, pipx (or pip) and git (just for cloning the repo) installed and use the following commands: -- git clone `https://github.com/Tuhinshubhra/CMSeeK` -- cd CMSeeK -- pip/pip3 install -r requirements.txt +- pipx install `git+https://github.com/Tuhinshubhra/CMSeeK` For guided scanning: -- python3 cmseek.py +- cmseek Else: -- python3 cmseek.py -u [...] +- cmseek -u [...] Help menu from the program: ``` USAGE: - python3 cmseek.py (for guided scanning) OR - python3 cmseek.py [OPTIONS] + cmseek (for guided scanning) OR + cmseek [OPTIONS] SPECIFING TARGET: -u URL, --url URL Target Url @@ -108,17 +106,17 @@ HELP & MISCELLANEOUS: --batch Never ask you to press enter after every site in a list is scanned EXAMPLE USAGE: - python3 cmseek.py -u example.com # Scan example.com - python3 cmseek.py -l /home/user/target.txt # Scan the sites specified in target.txt (comma separated) - python3 cmseek.py -u example.com --user-agent Mozilla 5.0 # Scan example.com using custom user-Agent Mozilla is 5.0 used here - python3 cmseek.py -u example.com --random-agent # Scan example.com using a random user-Agent - python3 cmseek.py -v -u example.com # enabling verbose output while scanning example.com + cmseek -u example.com # Scan example.com + cmseek -l /home/user/target.txt # Scan the sites specified in target.txt (comma separated) + cmseek -u example.com --user-agent Mozilla 5.0 # Scan example.com using custom user-Agent Mozilla is 5.0 used here + cmseek -u example.com --random-agent # Scan example.com using a random user-Agent + cmseek -v -u example.com # enabling verbose output while scanning example.com ``` ## Checking For Update: -You can check for update either from the main menu or use `python3 cmseek.py --update` to check for update and apply auto update. +You can check for update either from the main menu or use `cmseek --update` to check for update and apply auto update. P.S: Please make sure you have `git` installed, CMSeeK uses git to apply auto update. diff --git a/cmseekdb/basic.py b/cmseekdb/basic.py index ab7ffd8b..a31f56e8 100644 --- a/cmseekdb/basic.py +++ b/cmseekdb/basic.py @@ -105,8 +105,8 @@ def help(): Coded By:{1}{3} @r3dhax0r {2} USAGE: - python3 cmseek.py (for guided scanning) OR - python3 cmseek.py [OPTIONS] + cmseek (for guided scanning) OR + cmseek [OPTIONS] SPECIFING TARGET: -u URL, --url URL Target Url @@ -148,11 +148,11 @@ def help(): --batch Never ask you to press enter after every site in a list is scanned EXAMPLE USAGE: - python3 cmseek.py -u example.com # Scan example.com - python3 cmseek.py -l /home/user/target.txt # Scan the sites specified in target.txt (comma separated) - python3 cmseek.py -u example.com --user-agent Mozilla 5.0 # Scan example.com using custom user-Agent Mozilla is 5.0 used here - python3 cmseek.py -u example.com --random-agent # Scan example.com using a random user-Agent - python3 cmseek.py -v -u example.com # enabling verbose output while scanning example.com + cmseek -u example.com # Scan example.com + cmseek -l /home/user/target.txt # Scan the sites specified in target.txt (comma separated) + cmseek -u example.com --user-agent Mozilla 5.0 # Scan example.com using custom user-Agent Mozilla is 5.0 used here + cmseek -u example.com --random-agent # Scan example.com using a random user-Agent + cmseek -v -u example.com # enabling verbose output while scanning example.com """.format(cmseek_version,red, cln, bold, GIT_URL)) bye()