Skip to content

Instantly share code, notes, and snippets.

@Dbof
Dbof / memdump.py
Created March 26, 2021 16:46
Dump process memory in Linux. See this blog post for more: https://davidebove.com/blog/?p=1620
#! /usr/bin/env python3
import sys
import re
if __name__ == "__main__":
if len(sys.argv) != 2:
print('Usage:', sys.argv[0], '<process PID>', file=sys.stderr)
exit(1)
@Dbof
Dbof / docker-compose.yml
Created October 12, 2020 22:37
Docker-Compose config to run a Wordpress instance
version: '3.1'
services:
wordpress:
image: wordpress
container_name: wp
ports:
- "8080:80"
environment:
WORDPRESS_DB_HOST: db
@Dbof
Dbof / x3.js
Created March 5, 2019 13:52
Extract HD stream extra3
function createQR(text) {
window.open('https://duckduckgo.com/?q=qr%20'+text)
}
ifr = document.querySelector('iframe')
if (ifr) {
document.location.href = ifr.src
} else {
ard = document.querySelector('.ardplayer-postercontrol');
ard.click();
@Dbof
Dbof / hsh.js
Created March 2, 2019 14:49
Extract HD stream Heute Show (bookmarklet)
function createQR() {
var s = document.querySelector('.zdfplayer-anchor-tag-img').style;
var url = s.backgroundImage.match('"(.*\.jpg)')[1];
var id = url.match(/([\d]*)_sendung_hsh/)[1];
var result = `https://zdfvodnone-vh.akamaihd.net/i/meta-files/zdf/smil/m3u8/300/${id.substr(0,2)}/${id.substr(2,2)}/${id}_sendung_hsh/3/${id}_sendung_hsh.smil/index_3296000_av.m3u8`;
window.open('https://duckduckgo.com/?q=qr%20'+result)
}
function createButton() {
var button = document.createElement("input");
button.type = "button";
@Dbof
Dbof / bugmenot_propercopy.js
Created August 4, 2017 22:46
Properly copy names on click without spaces issue
// ==UserScript==
// @name BugMeNot ProperCopy
// @namespace com.davidebove.blog
// @description Properly copy names on click without spaces issue. See https://bugzilla.mozilla.org/show_bug.cgi?id=1298706
// @match http://bugmenot.com/view/*
// @version 1
// @grant none
// ==/UserScript==
function copyToClipboard(element) {
@Dbof
Dbof / ntpspoof.py
Last active September 11, 2024 07:32
NTP spoofer to change the date of any victim to the year 2035
import os
import sys
import time
from subprocess import Popen, DEVNULL
import datetime
from scapy.all import IP, UDP, NTP
from netfilterqueue import NetfilterQueue
def get_switch_ip():
@Dbof
Dbof / All_Times_Top.user.js
Created October 23, 2016 10:48
Reddit AllTimesTop Posts
// ==UserScript==
// @name All Times Top
// @namespace com.davidebove
// @match *://*.reddit.com/r/*/
// @exclude *://*.reddit.com/r/*/*/*/
// @version 1
// @copyright Dbof
// @grant none
// ==/UserScript==
tabmenu = $('ul.tabmenu');
// ==UserScript==
// @name 9GAG NSFW picture peeker
// @include http://9gag.com/*
// @include https://9gag.com/*
// @version 0.1.11
// @description 9GAG NSFW peeker
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js
// @author Dbof, Error418
// @grant GM.xmlHttpRequest
// ==/UserScript==