From 3d3bed85f44b217350734f0e139aa464e9e1a83d Mon Sep 17 00:00:00 2001 From: Tztedtrzh <120391182+BenChanlLOL@users.noreply.github.com> Date: Sun, 5 May 2024 11:28:58 +0200 Subject: [PATCH] Update main.py - v0.1 --- main.py | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/main.py b/main.py index 6818fd7..a63eb7c 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,16 @@ -import socket -''' -Author: "BenChanlLOL" on github -Name: ConCat -Version: 0.0.4 -''' +# main.py +# Author: "BenChanlLOL" on github +# Name: ConCat +# Version: 0.1 +# link to github project: https://github.com/BenChanlLOL/ConCat +import socket +from sys import argv +import webbrowser +if argv: + print("no arguments are required") #pre defined variables sock = socket.socket() @@ -34,6 +38,10 @@ cmd = input(">>> ") if cmd == "exit": break + elif cmd == "git-open": + print("opening github") + webbrowser.open('https://github.com/BenChanlLOL/ConCat') + print("done") elif cmd == "bind": try: sock.bind((socket.gethostname(), 7092)) @@ -53,15 +61,9 @@ sock.send(msg.encode('utf-8')) data = sock.recv(1024).decode("utf-8") print(data) - elif cmd == "version" or "-v": - print("version: 0.0.4") - elif cmd == "troubleshoot": - print("If you are attempting to ssh using this client a BrokenPipeError is a indicator of wrong password" - "When Using SSH a small delay after the first message will occur, then echo the SSH version. " - "Then you will have three opportunities to enter a password" - ) elif cmd == "help" or "-h": usage = ''' + git-open - open github repo of the tool bind - start a sever exit - exit the tool connect - connect to a client and send data @@ -70,5 +72,15 @@ ''' print("usage:\n" + usage) + elif cmd == "version" or "-v": + print("version: 0.1") + elif cmd == "troubleshoot": + print("If you are attempting to ssh using this client a BrokenPipeError is a indicator of wrong password" + "When Using SSH a small delay after the first message will occur, then echo the SSH version. " + "Then you will have three opportunities to enter a password" + "use 'exit' to exit the tool" + "if you dont want to connect to a host use 'ignore'" + ) + else: print('use "help" to get info')