From 6385c3e52b5db02c0e76b5b3a6c9310d78416969 Mon Sep 17 00:00:00 2001 From: Aarys Sahler Date: Tue, 2 Jan 2024 18:57:18 +0100 Subject: [PATCH 01/11] Initial commit --- client.py | 39 +++++++++++++++++++++ ether/__init__.py | 6 ++++ ether/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 195 bytes ether/__pycache__/protocol.cpython-311.pyc | Bin 0 -> 538 bytes ether/protocol.py | 11 ++++++ 5 files changed, 56 insertions(+) create mode 100644 client.py create mode 100644 ether/__init__.py create mode 100644 ether/__pycache__/__init__.cpython-311.pyc create mode 100644 ether/__pycache__/protocol.cpython-311.pyc create mode 100644 ether/protocol.py diff --git a/client.py b/client.py new file mode 100644 index 0000000..1e12cc5 --- /dev/null +++ b/client.py @@ -0,0 +1,39 @@ +# +# This file is part of the eTh3r project, written, hosted and distributed under MIT License +# - eTh3r network, 2023-2024 +# + +import sys +from ether.protocol import Client + +def help(code=0): + print(" - di0xane - A simple ether python client ") + print("") + print("Usage: client.py [server ip] [server port (default=2142)] ") + print("") + print("Available parameters:") + print(" -v verbose") + print("") + sys.exit(code) + + +if "-h" in sys.argv: + help() + +if len(sys.argv) < 2: + help(code=1) + +ip = sys.argv[1] +port = 2142 +verbose = False + +try: + port = int(sys.argv[2]) +except: + pass + +if "-v" in sys.argv: + verbose = True + +if verbose: + print(f"[*] connecting to {ip}:{port}") diff --git a/ether/__init__.py b/ether/__init__.py new file mode 100644 index 0000000..ceee5a8 --- /dev/null +++ b/ether/__init__.py @@ -0,0 +1,6 @@ +# +# This file is part of the eTh3r project, written, hosted and distributed under MIT License +# - eTh3r network, 2023-2024 +# + +import ether.protocol diff --git a/ether/__pycache__/__init__.cpython-311.pyc b/ether/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ea1e4380a2e1e6cd7111425402ed66d00a83f237 GIT binary patch literal 195 zcmZ3^%ge<81W$dZq)r9Wk3k$5V1hC}^8p#t8B!Qh7;_k+7*iO788n$*f+YPknQrl= zmSm(B=@k^^m*gks=iFii^H(x_1}XTZt)G#fo2s9fSX5c850o)3(of0EuSm>G1@Tgg z^yA|*^D;}~d=6l_*n(4m