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
// Include the crypto-js library dynamically | |
var script = document.createElement('script'); | |
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js'; | |
script.onload = function () { | |
// The script has loaded, now you can use CryptoJS | |
function extractGameId() { | |
// Replace this with your actual logic to extract the game ID from the DOM | |
const iframe = document.querySelector('iframe[src*="game-"]'); | |
if (iframe) { |
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
const express = require('express'); | |
const fs = require('fs').promises; | |
const axios = require('axios'); | |
const app = express(); | |
const port = 3000; | |
app.get('/request', async (req, res) => { | |
const url = req.query?.url || ''; |
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
const express = require('express'); | |
const { Sequelize, DataTypes } = require('sequelize'); | |
const crypto = require('crypto'); | |
const Joi = require('joi'); | |
const bcrypt = require('bcrypt'); | |
const sendResetEmail = require('./sendmail'); | |
const app = express().use(express.json()); | |
const sequelize = new Sequelize(process.env.DB_NAME, process.env.DB_USER, process.env.DB_PASS, { host: 'localhost', dialect: 'mysql' }); |
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
const express = require('express'); | |
const axios = require('axios'); | |
const app = express(); | |
const port = 80; | |
app.get('/', async (req, res) => { | |
const whitelist = ['voorivex.team']; | |
try { |
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
require 'sinatra' | |
require 'mysql2' | |
require 'active_record' | |
configure { set :environment, :production } | |
ActiveRecord::Base.establish_connection( | |
adapter: 'mysql2', | |
host: ENV['DB_HOST'], | |
username: ENV['DB_USER'], |
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
const express = require('express'); | |
const Joi = require('joi'); | |
const sequelize = require('./db'); | |
const User = require('./models/User.model'); | |
const authMiddleware = require('./middlewares/auth.middleware'); | |
const jwt = require('jsonwebtoken'); | |
const sendMail = require('./sendMail'); | |
const app = express(); | |
app.use(express.json()); |