Skip to content

Commit

Permalink
Update main.py - v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BenChanlLOL authored May 5, 2024
1 parent 2404acb commit 3d3bed8
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions main.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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))
Expand All @@ -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
Expand All @@ -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')

0 comments on commit 3d3bed8

Please sign in to comment.