Skip to content

Instantly share code, notes, and snippets.

View Jackzmc's full-sized avatar

Jackz Jackzmc

View GitHub Profile
@Jackzmc
Jackzmc / sql.js
Created September 18, 2017 21:35
client.sql = {
getValue: (table,name) => {
if(!table) throw `First value, table, must be set`;
if(!name) throw `Second and third value (name, value) must be set`;
if(!client.mysql_connection) throw `Not connected to database`;
name = (Object.prototype.toString.call(name) == '[object Array]') ? name.join(", ") : name;
console.log(`Selecting \`${name}\` FROM \`${table}\``)
let data = {};
//and probably put footer of user ID
const JsonDB = require('node-json-db');
const whitelist = new JsonDB('whitelist',true,true); //just a test database
const {stripIndents} = require('common-tags'); //could be removed
const getUrls = require('get-urls'); //needed
if(command === "whitelist") {
const sendChannel = msg.guild.channels.find('name','mod-verify'); //msg-guild be replaced with nullify guild
if(args[1] === "cancel") { //cancels the whitelist, would need to be slightly reworked as it just deletes the entry all together
whitelist.delete(`/${msg.author.id}`);
@Jackzmc
Jackzmc / functions.js
Created September 25, 2017 01:35
I should probably calm down...
const Discord = require('discord.js');
const JsonDB = require('node-json-db');
const { Collection,Guild } = require('discord.js');
const mysql = require('mysql');
const config = require('../config.json');
var cooldownCollection = new Collection();
module.exports = (client) => {

Keybase proof

I hereby claim:

  • I am jackzmc on github.
  • I am jackz (https://keybase.io/jackz) on keybase.
  • I have a public key ASCbZ86I0gZOEV7YuyigbgEnbcIH5pk04vV02z8QqYDdigo

To claim this, I am signing this object:

we are number one

mss tts [dah<450,18>][dah<150,25>][dah<75,24>][dah<75,25>][dah<75,24>][dah<75,25>][dah<150,24>][dah<150,25>]

[dah<300,21>][dah<600,18>][dah<150,18>][dah<150,21>][dah<150,25>][dah<300,26>][dah<300,21>][dah<300,26>][dah<300,28>]

[w<100,25>]ee[ar<100,26>][n<100,25>]a[m<100,26>]r[w<100,25>]on

pokemon

mss tts [:t293,200][:t293,200][:t293,200][:t293,600][:t293,200][:t261,400][:t220,200][:t174,800]

//selfbot code
const query = args.join(" ").replace(args[0] + " ","");
if(args[0] === "screenshot" || args[0] === "sh") {
await msg.edit(`Screenshotting ${query}...`);
await webshot(query,{windowSize:{width:1600,height:900},streamType:"png",renderDelay:2500,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.34 (Edition beta)"}, (err,render) => {
if(err) return msg.edit(`Error! ${err.message}`);
msg.channel.send(`Screenshot for ${query}`,new Attachment(render,'screenshot.png')).then(m => msg.delete()).catch(err => {
msg.edit(`Error! ${err.message}`);
})
});
{
"scan_id": "91230a638695ade161ba9d1dbfd7352bc5d09c6fc5209a3ef19891f657a2c901-1512158572",
"resource": "gumblar.cn",
"url": "http://gumblar.cn/",
"response_code": 1,
"scan_date": "2017-12-01 20:02:52",
"permalink": "https://www.virustotal.com/url/91230a638695ade161ba9d1dbfd7352bc5d09c6fc5209a3ef19891f657a2c901/analysis/1512158572/",
"verbose_msg": "Scan finished, scan information embedded in this object",
"filescan_id": null,
"positives": 12,
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wgARCAKjBLADASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAEDAgQFBgcI/8QAGgEBAQADAQEAAAAAAAAAAAAAAAECAwQFBv/aAAwDAQACEAMQAAAB6kp+V+jJESkEiJAkhIAEhIhIiQAAEiJEEgESAAAAAKiSAARIAAAAABKFBAUAAAAAJiEiEwEohIAABUSISSEqhIiSIkqEoBUSISSEwoAEJEJEJghIgCJEBUSISSAX9nkdf1vOJd/J5rLHL5z2kwWQiYkAAkACYkmJgkEBWWMxMJsEEokAAAAAAAAABQAQFBAAlAAAAAAAAkCJgTEggAlCWQAAAAAAAAAACIlCpRIQiYKAARMAQFImAFRIgAEBNvrcvqex5odvL5rKJ+c9tMSASAICyQAJiQmAFkIJIkEAJImBMTBIAAAAAACJlAImyJFQQksEEomUgTASFBAABBIAgKCUACUCYCSCQAAAAAAAQAICgAgRRMQFACAAIRK2EwIkkA6HR0d72/MJjq5vNzE/Oe3IExIABMJQiQBMSSQBLKFmUIJnGQAFBEwJARIAgJgJIJRKkCUAAIAAkgJETAJBEqACAABAKFBAUEJgAAATBAUkAIAlBKAAAAAAiQiYAAAETAAiSwIRMUJOrt62z73kTExv0+bnHL5v25FiULKJAhMTQIAmJlAAE1AglYAEoAVKCJiSJiREiBKAFTEwgKEJiRErYTjEoEwEziJAkETr2bD5T67r5vTzXnydMomCJAUiQIAAAAAAJgAAlAEkAAAAAAAAQAAC
<html><head>
<title>samy kamkar - home</title>
<script type="text/javascript" charset="utf-8" async="" src="https://platform.twitter.com/js/timeline.cc13fca8de1be431acaea7ada1c14a7e.js"></script></head>
<body class=" ext-gecko ext-gecko3" oncontextmenu="return false" onload="pwn()" scroll="no" id="ext-gen3">
<title>samy kamkar - home</title>
@Jackzmc
Jackzmc / randomSentences.js
Created January 21, 2018 18:24
Creates sentences with random amounts of random words. Just something I did while bored
/*
Created by Jackz (me@jackz.me)
Creates X sentences with X words per, idk im bored so
*/
const words = require('an-array-of-english-words'); //npm i an-array-of-english-words
const amounts = {
perSentence:[5,20], //either one number, or a range
sentences:3
}
let sentences = [];