Skip to content

Instantly share code, notes, and snippets.

@grimpy
grimpy / telenet.py
Last active November 12, 2022 13:59
#!/usr/bin/env python3
import time
import os
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from IPython import embed
// Include the most common headers from the C standard library
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Include the main libnx system header, for Switch development
#include <switch.h>
#define MAX_DEVICES 20
@grimpy
grimpy / sip.py
Last active July 25, 2022 17:00
# -*- coding: utf-8 -*-
import sys
import socket
import requests
import re
import random
import hashlib
import threading
import time
import logging
package main
import (
"encoding/json"
"log"
)
type Usage struct {
IP string
Connections int
RxBytes int64
package main
import (
"fmt"
"log"
"os/exec"
"strconv"
"strings"
)
package main
import (
"encoding/xml"
"flag"
"fmt"
"os"
"strings"
"time"
)
#!/usr/bin/env python3
from xml.etree import ElementTree
from datetime import datetime, timedelta
def convert(filepath):
dom = ElementTree.parse(filepath)
header = dom.find("trackHeader")
startdate = datetime.strptime(header.find("TrackName").text, "%Y-%m-%d")
starttime = datetime.strptime(header.find("StartTime").text, "%H:%M:%S")
#!/usr/bin/env python
import requests
import sys
def encrypt(word):
# from the javascript
phrase = "e5dl12XYVggihggafXWf0f2YSf2Xngd1"
# (a[2 * n] = (240 & t[n % t.length].charCodeAt()) | ((15 & r) ^ (15 & t[n % t.length].charCodeAt()))), (a[2 * n + 1] = (240 & t[n % t.length].charCodeAt()) | ((r >> 4) ^ (15 & t[n % t.length].charCodeAt())));
a = []
import requests
import link_header
import argparse
def main(user, token, repofilter):
session = requests.Session()
session.auth = (user, token)
def get_next(resp):
package main
import (
"archive/tar"
"compress/gzip"
"flag"
"io"
"path"
"log"
"os"