summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/freenomrenew.sh23
-rw-r--r--server/nadomescanja/output.pdfbin0 -> 1404099 bytes
-rwxr-xr-xserver/nadomescanja/script.sh21
3 files changed, 44 insertions, 0 deletions
diff --git a/server/freenomrenew.sh b/server/freenomrenew.sh
new file mode 100644
index 0000000..46886c9
--- /dev/null
+++ b/server/freenomrenew.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# chrome generated this curly script when I was renewing zavij.ga.
+
+curl 'https://my.freenom.com/domains.php?submitrenewals=true' \
+ -H 'Connection: keep-alive' \
+ -H 'Cache-Control: max-age=0' \
+ -H 'Upgrade-Insecure-Requests: 1' \
+ -H 'Origin: https://my.freenom.com' \
+ -H 'Content-Type: application/x-www-form-urlencoded' \
+ -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36' \
+ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
+ -H 'Sec-Fetch-Site: same-origin' \
+ -H 'Sec-Fetch-Mode: navigate' \
+ -H 'Sec-Fetch-User: ?1' \
+ -H 'Sec-Fetch-Dest: document' \
+ -H 'Referer: https://my.freenom.com/domains.php?a=renewdomain&domain=1064714470' \
+ -H 'Accept-Language: en-US,en;q=0.9' \
+ -H 'Cookie: G_ENABLED_IDPS=google; __zlcmid=yWjBN83fd0bq6c; mydottk_languagenr=0; dottyLn=en; wwwLn=en; WHMCSZH5eHTGhfvzP=54n5ikbop5na02s7qbf3ld1n64; WHMCSUser=1006649624%3Ae3c7c7706689fce5e12a4faa0644c87dabbae7a0' \
+ --data-raw 'token=d1d5c56d9dbedaa1e32d8fb66310591a2d1f1da8&renewalid=1064714470&renewalperiod%5B1064714470%5D=12M&paymentmethod=credit' \
+ --compressed
+
+# don't worry, I've invalidated cookies. At least I hope that's what logout does.
diff --git a/server/nadomescanja/output.pdf b/server/nadomescanja/output.pdf
new file mode 100644
index 0000000..ada8a98
--- /dev/null
+++ b/server/nadomescanja/output.pdf
Binary files differ
diff --git a/server/nadomescanja/script.sh b/server/nadomescanja/script.sh
new file mode 100755
index 0000000..496b869
--- /dev/null
+++ b/server/nadomescanja/script.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# this is a script to test if we can get files from sharepoint in an easy way. #fuckrosoft
+
+curl 'https://gimnazijabezigrad.sharepoint.com/Gim/DatSpl/Gimb%20%C5%A0olska%20pravila%20ocenjevanja%202019_20.pdf' \
+ -H 'authority: gimnazijabezigrad.sharepoint.com' \
+ -H 'cache-control: max-age=0' \
+ -H 'upgrade-insecure-requests: 1' \
+ -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36' \
+ -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
+ -H 'sec-fetch-site: none' \
+ -H 'sec-fetch-mode: navigate' \
+ -H 'sec-fetch-user: ?1' \
+ -H 'sec-fetch-dest: document' \
+ -H 'accept-language: en-US,en;q=0.9' \
+ -H 'cookie: nSGt-0F5C552C67D73B521FBC79E429B19BDACAD60901BA94F0F7=gYEwMThFQjM0NTU1MjE0RkQyOTMyRUY3MEFBM0EyNTc1RTMwMjk4QTlEQjk0RjJBRDY5MDBGNUM1NTJDNjdENzNCNTIxRkJDNzlFNDI5QjE5QkRBQ0FENjA5MDFCQTk0RjBGNxIxMzIzNTc1NzEwNDE4MDQ3NTIgZ2ltbmF6aWphYmV6aWdyYWQuc2hhcmVwb2ludC5jb20l6emYjLtdSZH+qYiO8V6/lU1eeE4X4HEulbeqPNPqfZ84humJDzVIOi5BgnAVXq2FhXmQUJFVpRO83UVCPW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nsATVqlPtLggROb30dognrv16+XaxSUY6dUAEoL/NpaYdgMmo9pyLsItuu41XKRO0bAklFAAAAA==' \
+ -H 'if-none-match: "{B7F3D3FC-A5A1-4919-9076-2C7804E4A31F},2"' \
+ -H 'if-modified-since: Wed, 11 Dec 2019 10:12:19 GMT' \
+ -o output.pdf \
+ --compressed
+
+# they're fixking with me, right? why would anyone need 1 kilobyte of data in a cookie,,, A SESSION COOKIE!=?!=?