Skip to content

Instantly share code, notes, and snippets.

View sahwar's full-sized avatar
💭
https://twitter.com/ve4ernik

sahwar

💭
https://twitter.com/ve4ernik
View GitHub Profile
/*******************
* multiplicity.js *
*******************
*
* Out of one cell and into another. They're not giving you
* very much to work with here, either. Ah, well.
*
* Level filenames can be hints, by the way. Have I
* mentioned that before?
*
@ikazoy
ikazoy / sms.py
Last active September 25, 2021 12:41 — forked from suzukiken/sms.py
Sending / Receiving SMS using Raspberry Pi, Soracom Air SIM and ABIT AK-020
# coding: utf-8
'''Sending / Receiving SMS using Raspberry Pi, Soracom Air SIM and ABIT AK-020
'''
import time
import serial
import re
import sys
let temp1;
console.log(1);
fetch(url)
.then((res) => res.blob())
.then((data) => {
let metadata = {
type: "image/png",
};
temp1 = new File([data], "test.png", metadata);
@InternalLoss
InternalLoss / tls_guide.md
Last active January 6, 2024 20:43
3DS/WiiU TLS traffic guide

Dumping Nintendo TLS Traffic

This guide is for capturing encrypted web traffic between the Internet and a 3DS or Wii U. You will need a hacked console for this.

NOTE: This traffic is sensitive - it will likely contain sensitive data such as a hashed form of your NNID password, and the device's unique identifiers including their unique certificates - as such, please be careful who you share these dumps with! They should be stored safely.

TLS Traffic

Dumping TLS traffic requires a proxy - we suggest mitmproxy which is both FOSS and cross-platform. It also has a web view which is useful for saving the recorded data (though this can also be done via CLI, as explained later).

@zohar-p
zohar-p / linkedin_connections.js
Last active April 13, 2022 06:58
Dead simple Linkedin automatic connection request sender
/**
* Go to https://www.linkedin.com/mynetwork/
* Click the `see all` button next to "<OCCUPATION_NAME> you may know"
* Paste the code snippet below in the console
* Change the `requestsLimit` and `occupationKeywords` according to your needs
* Run the code
*/
(() => {
// Change to the desired number (Linkedin limits you to 80 a day)
@itsabdelrahman
itsabdelrahman / linux-server-setup.md
Last active April 1, 2024 08:00
Linux Debian Server Setup

Linux Ubuntu/Debian Server Setup

On remote machine

As root

  1. Change root password
    • $ passwd
  2. Create user & their home directory
  • $ useradd -m
@BigSully
BigSully / async await in chrome extension
Last active March 19, 2024 20:59
async await in chrome extension
/**
* Usage:
* let cookies = await asyncfy(chrome.cookies.getAll)({ url })
* let tabs = await asyncfy(chrome.tabs.query)({active: true, currentWindow: true})
*
* @param fn A function that takes one or more parameters, and the last parameter is a callback which has one or more parameter. The simplest one is chrome.management.getSelf
* @returns {function(...[*]): Promise<any>} Return one value if the results array has only one element, else return the whole results array
*/
let asyncfy = fn => (...args) => {
return new Promise((resolve, reject) => {
@pratikone
pratikone / tweetthreader.py
Created March 17, 2020 02:30
This script fetches and creates threads from twitter statuses of a twitter profile. A thread is a series of tweets created by replying to your own tweet.
import os
import re
import time
from collections import namedtuple
import codecs
import tweepy
import json
from datetime import datetime
from requests.exceptions import Timeout, ConnectionError
from requests.packages.urllib3.exceptions import ReadTimeoutError, ProtocolError
@sahwar
sahwar / broken.html
Created February 7, 2020 08:23 — forked from deoxxa/broken.html
cheerio parser killer
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="description" content="A BitTorrent community focused on Eastern Asian media including anime, manga, music, and more." /><meta name="keywords" content="Daiz, anime, manga, music, Japan, Japanese, torrent, download, community" /><title>NyaaTorrents &#62;&#62; Torrent Information &#62;&#62; [AOT] Fullmetal Alchemist Brotherhood Full [Episodes 1-64 Complete Batch] [720p BD 100MB] | Anime, manga, and music - Just say the word</title><link rel="icon" type="image/png" href="http://files.nyaa.eu/favicon.png" /><link rel="stylesheet" type="text/css" href="http://files.nyaa.eu/www.css" title="CSS" /><link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.nyaa.eu/?page=rss" /><script src="http://files.nyaa.eu/functions.js" type="text/javascript"></script></head><body><div id="topbar"><div id="navbar"><ul id="tabnav"><li><a href="http://www.nyaa.eu/">Browse</a></li><li><a href="http://www.nyaa.eu/?page=upload">Upload</a></l
@dhondta
dhondta / README.md
Last active May 10, 2024 20:20
Tinyscript steganography tool implementing the Pixel Indicator Technique

StegoPIT

This Tinyscript-based tool allows to apply steganography based on PIT (Pixel Indicator Technique) in order to retrieve hidden data from an image.

$ pip install tinyscript
$ tsm install stegopit