Skip to content

Instantly share code, notes, and snippets.

import telethon.sync
from telethon.tl.types import WallPaper
from telethon.tl.functions.account import GetWallPapersRequest
# see telethon docs to get client
w = client(GetWallPapersRequest())
for i, wp in enumerate(w):
@stek29
stek29 / nocyril.go
Last active October 29, 2019 16:06
package main
import (
"context"
"errors"
"log"
"os"
"os/signal"
"regexp"
"strconv"

public domain but no liability blah blah

package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
# Copyright (c) 2013,2015, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
// a bit more annotated stage2 (from fakeobj/addrof to rw)
// source: https://github.com/phoenhex/files/blob/master/exploits/ios-11.3.1/pwn_i8.js
// useful resources:
// webkit sources, lol
// http://phrack.org/papers/attacking_javascript_engines.html -- bit outdated -- info about spectre mitigations/gigacage is missing
// https://labs.mwrinfosecurity.com/blog/some-brief-notes-on-webkit-heap-hardening/ -- tldr on gigacage
// thx _niklasb
/*
* Copyright 2017 Adam H. Leventhal. All Rights Reserved.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
// File:
// click.m
//
// stek29 2015
//
// Compile with:
// cc -o click click.m -framework ApplicationServices -framework Foundation
//
// Usage:
// ./click x_cord y_cord
set scnds to (time of (current date))
set timeOfDay to item ((scnds div 21600 as integer) + 1) of {"night", "morning", "afternoon", "evening"}
set userName to (item 1 of (words of (long user name of (system info))))
say "Good " & timeOfDay & ", " & userName & "." using "Alex" speaking rate 170 modulation 70 pitch 39

openconnect vpn server

stek29 May 21 2018

Installing ocserv

Older version (0.10.11) is avaliable in ubuntu repos and it seems to work fine,
but I've built 0.12.1 from sources. This is not neccessary, but might be useful.
Describing building from source is out of scope of these instructions.