diff --git a/app/templates/base.html b/app/templates/base.html index 5e4dbc4..734d4f9 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -24,6 +24,6 @@
{% block content %}{% endblock %}
-

xygt.cc v0.2.0 - © Jack Eilles 2024 - Transparency - Terms of Service - Privacy Policy

+

xygt.cc v0.3.0 - © Jack Eilles 2024 - Transparency - Terms of Service - Privacy Policy

\ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index 484a4b2..8a48993 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -23,6 +23,9 @@

You can pipe plain text into the file flag, for example:

echo "Hello, World!" | curl -F "file=@-" https://xygt.cc
+

File uploading through the site is currently disabled due to a security vulnerability.

+
Use curl instead.
+

How do I shorten URLs?

You can either use the `shorten` form, or use a POST request.

For example, using curl:

@@ -40,6 +43,9 @@

You can also add extra flags onto your command, for example:

curl -F "url=https://example.com" -F "retention=1024" -F "userid=6fd12a"
+

URL Shortening through the site is currently disabled due to a security vulnerability.

+
Use curl instead.
+

How do I view my files or URL's?

Simply use the link that is returned when you submit a POST request.

When you upload a file or shorten a URL, you'll simply get this in response:

diff --git a/app/worker.py b/app/worker.py index 5d4b5c3..99505d7 100644 --- a/app/worker.py +++ b/app/worker.py @@ -123,12 +123,14 @@ def idInfo(id): def userInfo(id): # Grab user entry from userID user = Config.users.find_one({"userid": id}) - + print(user) + username = user['user'] userid = id # Search for all files from that userID - files = Config.files.find_many({"userid": userid}, {"_id": False, "ip": False}) + files = Config.files.find({"userid": userid}, {"_id": False, "ip": False}) + print(files) list = {} # Create file listing @@ -145,7 +147,7 @@ def userInfo(id): }) # Search for all URL's from that userID - url = Config.url.find_many({"userid": userid}) + url = Config.url.find({"userid": userid}) # Format all into one JSON return {