This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ini_set('display_errors', true); | |
define('CLIENT_ID', ''); | |
define('CLIENT_SECRET', ''); | |
// token for a bot, needs to be prefixed with Bot | |
define('TOKEN', ''); | |
// group channel that you have already created, lol, | |
define('CHANNEL_ID', ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/index.js b/index.js | |
old mode 100755 | |
new mode 100644 | |
diff --git a/package.json b/package.json | |
index a003e77..caee25a 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -13,17 +13,19 @@ | |
"bcrypt": "^3.0.6", | |
"bluebird": "^3.5.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi. this app is a reverse proxy, meaning that when it launches, it runs a server that connects to the official server, like a proxy (except that it only supports one site) and it modifies some requests and responses along the way. | |
now here is a terrible guide | |
first: the "iksm.py" file and its functions is copied and modified from splatnet2statink, retrieved from https://github.com/frozenpandaman/splatnet2statink at least at commit a971a21fafdbd026aa8b44d7514119d3ff6073a2. this information should be added in the file itself but it's worth mentioning here | |
when running any of these files like bruh.py or mitmproxy with bruhx.py, if you see that there's a module missing, just install it (notably requests and hashlib is required) | |
the main magic script which is the mitmproxy addon and gets tokens from splatnet2statink functions is bruhx.py. execute bruh.py, (without the x), follow the instructions, and then the value it gives you needs to be placed into the "codee" variable in bruhx.py. | |
bruh.sh starts mitmproxy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
OlvClient by Arian Kordi | |
https://github.com/ariankordi | |
Licensed under GNU AGPLv3: https://choosealicense.com/licenses/agpl-3.0/ | |
*/ | |
class OlvClient { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, textarea { | |
background-color: #3d3d3d; | |
color: white; | |
font-family: sans-serif; | |
} | |
textarea { | |
border-color: darkgray; | |
font-family: monospace; | |
display: block; | |
height: 100px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ini_set('display_errors', 1); | |
$db = new SQLite3('cheapvps-comparison.db'); | |
/* | |
CREATE TABLE "offers" ( | |
"created_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
"url" text NOT NULL, | |
"post_type" integer NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $REQUEST_METHOD = "POST" ]; then | |
echo | |
$(cat) 2>&1 | |
exit | |
fi | |
printf "Content-type: text/html\n\n" | |
#echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This chat thing uses nothing but shmop, but it requires SSE (Server-Sent Events) to work on your server. | |
// If this chat just does nothing, i.e. you post a message and literally nothing else happens, SSE probably doesn't work. | |
// Note that this file continuously reads a shared memory block and detects a difference, in order to get live messages. | |
// This might not be all that efficient, and can be intensive on your server. Don't leave this up for a long period of time. | |
// This will also not work with PHP's built-in server, due to it being single-threaded. Oh yeah, since this uses SSE, this will use a separate thread for every client that is connected. | |
// Have fun. This should work right away with no config. | |
// set the size of these shared memory blocks, "message buffers" here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This works best on Apache, and if you have enable_post_data_reading off. | |
// Set "php_flag enable_post_data_reading off" in your htaccess. It'll avoid having to parse multipart forms. | |
// enter the sock to connect to here | |
const SOCK_TO_CONNECT_TO = './run.sock'; | |
// Close the session right now, because it might make everything faster, and we don't know how long the response will last for. | |
session_write_close(); |