Skip to content

Instantly share code, notes, and snippets.

View fox3000foxy's full-sized avatar
🏠
Working from home

fox3000foxy

🏠
Working from home
  • Fox3000foxy Studios
View GitHub Profile
import crypto from "crypto";
import fs from "fs";
import path from "path";
// ===== Configuration =====
const AES_SECRET_PATH = path.join(process.cwd(), "aes-secret.key");
// ===== AES Secret Initialization =====
const http = require('http');
const https = require('https');
const { URL } = require('url');
function createProxy(targetBase) {
const targetBaseUrl = new URL(targetBase);
return async function (req, res, next) {
try {
// Reconstitue l'URL finale avec le path et les query params
@fox3000foxy
fox3000foxy / weights-api.ts
Last active April 18, 2025 15:03
Weights Unofficial API TS module
import fetch from 'node-fetch';
import { RequestInit, Response } from 'node-fetch';
import { config } from 'dotenv';
config({ path: "./config/.env" });
// Example usage:
/*
import { WeightsApi } from './weights-api';
const api = new WeightsApi('your-api-key');
const fs = require('fs');
const path = require('path');
const axios = require('axios');
// Load JSON file with URLs
const urls = require('./urls.json'); // Adjust the path to your JSON file
// Directory to save downloaded files
const outputDir = path.join(__dirname, 'downloads');
if (!fs.existsSync(outputDir)) {
@fox3000foxy
fox3000foxy / honeypotMiddleware.js
Last active November 23, 2024 13:45
Honeypot Middleware for all bot traffic from outside
const express = require('express');
const fetch = require('node-fetch');
const fs = require("fs");
const sha256 = require('sha256');
const port = 5080; // Change this to the port of the server
// ========================================
// UTILITY FUNCTIONS
MTI1Mzc4OTQ0NTE0OTQyOTk1Mg.GwTSFP.fAsmy5B3mBNwWA_03wbHpJJboAzkvc0Fw2yV6Y
@fox3000foxy
fox3000foxy / Discord Experiments.js
Created April 21, 2023 13:49 — forked from MeguminSama/Discord Experiments.js
Discord Experiments.js
webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=Object.values(r.c)]);
var UserStore = cache.find(m => m?.exports?.default?.getCurrentUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
## ORIGINAL GAME FROM FIME
from math import *
from ruin_move import *
from kandinsky import fill_rect as drawRect,draw_string as drawTxt,get_pixel as getPxl
#from ion import keydown as key
from time import monotonic as cTime,sleep
from random import randint as rInt,seed as rSeed
TARG_SPF=0.02 #50fps
@fox3000foxy
fox3000foxy / project.py
Last active October 7, 2022 08:00
project
# This comment was added automatically to allow this file to save.
# You'll be able to remove it after adding text to the file.
from math import *
from kandinsky import *
from time import *
from kandinsky import fill_rect as fl
from kandinsky import draw_line as dl
p=[200,200,-100,-100,30,10]
def cube(x,y,a,b,z,z_,d=None):
if d==1:_z=[x+z,y-z_]
@fox3000foxy
fox3000foxy / eratz.py
Last active October 7, 2022 07:55
main.py
from math import *
from kandinsky import *
from time import *
from kandinsky import fill_rect as fl
from kandinsky import draw_line as dl
p=[200,200,-100,-100,30,10]
def cube(x,y,a,b,z,z_,d=None):
if d==1:_z=[x+z,y-z_]
elif d==2:_z=[x-z,y-z_]
elif d==3:_z=[x-z,y+z_]