Skip to content

Commit

Permalink
v20231230
Browse files Browse the repository at this point in the history
  • Loading branch information
matebenyovszky committed Dec 30, 2023
1 parent 9bb8cb5 commit 9b62d7c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
2 changes: 2 additions & 0 deletions IDEAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
✅ Print out key and ipaddress locally
✅ Check machine type, so know what kind of commands could be run
✅ Use key-vault feature in GitHub
◻️ Stream to file
◻️ General GPT, hide innecessary information
◻️ Encoding - decoding for special characters? (see "Hello World!" folder creation - URL encode?/hash)
◻️ Open file from remote machine
◻️ Key on info function too
◻️ Screenshot sharing
◻️ Save file to remote machine
◻️ Search files / in files on remote machine
◻️ Ability to run as admin on the server
◻️ Websocket stream - chatGPT websocket
◻️ Create an EXE file to easily run the application for everyone (random generated key?)
◻️ Update website
Expand Down
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,6 @@ While there are other methods that utilize local language models or LLM APIs, ru

## Samples and ideas

- File and Folder Management:
- Create a folder in one location, then move files to it from another location.
- Find and copy or delete multiple files from the machine based on various filter criteria (e.g. extension, creation date).
- Collect system information:
- Query system hardware and software configuration, such as processor, memory, operating system version.
- Automated Administrator Tasks:
- Analyze system log files, look for error messages or specific events.
- Configure or update remote desktop settings.
- Perform network operations:
- Display the IP address and network configuration of the machine.
- Run network diagnostic commands such as ping or traceroute.
- Scripts and Automated Tasks:
- Write and run simple Python or PowerShell scripts, for example for data processing or system administration.
- Security Audits:
- Checking and installing security updates.
- Run virus scans or check firewall settings.
- Custom Tasks:
- Set automated reminders or alerts for special events.
- Install, update or uninstall various applications via command line.

[View some sample screenshots of usage in ChatGPT here](images/)

## Setup
Expand Down
7 changes: 7 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ def execute_command():
# Check the operating system
interpreter, _ = data.get('interpreter', get_command_interpreter())
if interpreter == 'powershell':
# Make the command a raw string
command = r'{}'.format(command)
# Append 2>&1 to the command to redirect PowerShell errors to stderr
#command += ' | ConvertTo-Json 2>&1'
#command += ' | Out-String'
if VERBOSE == 'ON':
print(f"♣️ Running in Powershell: {command}")
# On Windows, call PowerShell and pass the command as an argument
process = subprocess.Popen(["powershell", "-Command"] + shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
elif interpreter == 'cmd':
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sample_20231230_play music.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b62d7c

Please sign in to comment.