Skip to content

Instantly share code, notes, and snippets.

@pushpen
pushpen / joker.js
Created July 19, 2019 21:11 — forked from xylude/joker.js
var identities = [];
db.collection("identities").doc("jokerstash").collection("queue").get().
then(snapshot => {
snapshot.forEach(doc => {
var newIdentity = {
status: doc.data().status,
url: doc.data().url,
username: doc.data().username,
pwd: doc.data().pwd,
@pushpen
pushpen / screen-spoofer.user.js
Created July 19, 2019 21:10 — forked from SkyzohKey/screen-spoofer.user.js
~ Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// ==UserScript==
// @name Spoof screen resolution & color depth
// @namespace https://skyzohlabs.be
// @version 1.0.5
// @description Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// @author SkyzohKey
// @include http://*
// @include https://*
// @run-at document-end
// @grant none
import r2 from '@mcro/r2'
import puppeteer from 'puppeteer'
import * as _ from 'lodash'
const sleep = ms => new Promise(res => setTimeout(res, ms))
const onFocus = page => {
return page.evaluate(() => {
return new Promise(res => {
if (document.hasFocus()) {
res()
@pushpen
pushpen / cookies.js
Created July 19, 2019 21:10 — forked from jeroenvisser101/cookies.js
Set browser-wide cookies with Puppeteer
export const setCookies = async (page, cookies) => {
const items = cookies
.map(cookie => {
const item = Object.assign({}, cookie);
if (!item.value) item.value = "";
console.assert(!item.url, `Cookies must have a URL defined`);
console.assert(
item.url !== "about:blank",
`Blank page can not have cookie "${item.name}"`
);
@pushpen
pushpen / vesta_email_script.php
Created September 26, 2017 22:32 — forked from yasinkuyu/vesta_email_script.php
Create email account vesta script
<?php
// Server info
$vst_hostname = 'server.vestacp.com';
$vst_username = 'admin';
$vst_password = 'p4ssw0rd';
$vst_returncode = 'yes';
$vst_command = 'v-add-mail-account';
// New account info