Skip to content

Instantly share code, notes, and snippets.

View Osb0rn3's full-sized avatar
:electron:

AmirMohammad Safari Osb0rn3

:electron:
View GitHub Profile
@Osb0rn3
Osb0rn3 / secure-code-5.js
Created September 12, 2024 17:29
Can you bypass email verification?
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());
@Osb0rn3
Osb0rn3 / secure-code-4.rb
Created May 15, 2024 16:46
Is there a way to get the admin password?
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'],
@Osb0rn3
Osb0rn3 / secure-code-3.js
Last active March 13, 2024 19:42
Is there a method to access the admin panel?
const express = require('express');
const axios = require('axios');
const app = express();
const port = 80;
app.get('/', async (req, res) => {
const whitelist = ['voorivex.team'];
try {
@Osb0rn3
Osb0rn3 / secure-code-2.js
Created January 9, 2024 15:06
Is there any way to access [email protected] reset password token?
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' });
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 || '';
@Osb0rn3
Osb0rn3 / gamee.js
Created September 12, 2023 22:30
JavaScript code for generating checksum for Gamee
// 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) {