Skip to content

Instantly share code, notes, and snippets.


Federico Cerutti ceres-c

View GitHub Profile
ceres-c /
Last active Feb 18, 2021
Personal reminder on how to kill WPAD service

Disabling WPAD

WPAD is the Windows Proxy Auto Discovery service, used since Windows 95, IIRC, to automatically discover network configurations. Since Windows 10 Microsoft decided for some reason that users shall NOT be allowed to disable this (mostly) useless and problematic service.

Can't disable WPAD service

Problem is: on my laptop this feature used up to 20% of the CPU while doing nothing at all due to some bug I don't want to dig into. The best part is that it often triggered after disconnection from a wireless network. Discovering proxies makes lot of sense once you are NOT connected to any network, huh? Also, there were multiple vulnerabilities related to this service and cute tools such as Responder leverage on it.

Killing WPAD

The service can still be disabled writing in the registry, but it will be randomly re-enabled by windows after upda

ceres-c /
Created Nov 1, 2020
Attempt at registering Twitter accounts with Python Requests. NOT working.
#! /bin/python
import json
import random
import re
import string
import time
import urllib.parse
from threading import Thread
from time import sleep, time_ns
ceres-c /
Created Dec 31, 2019
CR95HF Python script to read NXP ICODE tags in privacy mode
# Author: ceres-c 2019-12-29
# Authenticate to ICODE SLI tags
import hid
# Global defines & commands
password = [0x00, 0x00, 0x00, 0x00] # You have to find it yourself, try to search online in german ;-)
ceres-c / Dockerfile
Last active Jan 28, 2019
Dockerfile to create a welcoming environment on top of base/devel arch image
View Dockerfile
FROM base/devel:latest
# update system
pacman -Syyu --noconfirm
# install basic dependencies
ceres-c /
Created Jan 6, 2019
I needed a script to traverse my music collection and quickly update cuesheets with correct titles. Given all files in my collection are tagged with MusicBrainz archive, the best way to do so is reading flac files tags.
# Author: ceres-c 2019-01-06
# Updates recursively cue files to reflect track's title present in flac files.
import os
from mutagen.flac import FLAC
def cueupdater (path, cuefile):
title = None
ceres-c /
Last active Jun 6, 2021
Automatically extract KeyStore objects and relative password from Android applications with Frida - Read more:
author: ceres-c
usage: ./
Once the keystore(s) have been exported you have to convert them to PKCS12 using keytool
import frida, sys, time
ceres-c / SummerDays-2018
Last active Sep 26, 2018
Upcoming McDonald Italy offers
View SummerDays-2018
2018-07-11 - Big Mac [2€]
2018-07-12 - Confezione patatine grandi [1€]
2018-07-13 - McFlurry [1,50€]
2018-07-14 - 9 McNuggets [1,50€]
2018-07-15 - Tasty Basket [7€]
2018-07-16 - McWrap Caesar Cheese [3€]
2018-07-17 - Bibita media + Borsa Coca Cola [2€]
2018-07-18 - Le Ricche [1€]
2018-07-19 - McFlurry [1,50€]
2018-07-20 - McMenu Classic Double Cheeseburger/Double Cheeseburger BBQ [4€]
ceres-c /
Last active Apr 15, 2021
Using mfcuk r65 with libnfc 1.5.1 in 2018

You first need to download both libnfc 1.5.1 and mfcuk r65. The former is available among github releases wile the latter can be obtained via git rebase.

If you're on Arch you'll need pcsclite, if on Debian derivates libpcsclite-dev

Let's compile libnfc (<user> is your username)

mkdir -p ~/builds/nfc
cd ~/builds/nfc
tar zxf libnfc-1.5.1.tar.gz
ceres-c /
Created Jan 8, 2018 — forked from wch/
Script for restarting wpa_supplicant in debug mode under Arch linux (systemd)
# set wpa_supplicant debug level to 1, disable timestamps, disable show_keys
[ "$UID" == 0 ] || { echo "Only root can run this"; exit 0;}
echo "Stopping NetworkManager"
systemctl stop NetworkManager
ceres-c / filledShapes.c
Last active Oct 8, 2017
(Uni homework) Draw filled shapes on a canvas in C
View filledShapes.c
#include <stdio.h>
#include <stdlib.h>
#define NUMROW 40
#define NUMCOL 40
void drawCircle (char *canvas, int r, int xCenter, int yCenter);
void drawEllipse (char *canvas, int width, int height, int xCenter, int yCenter);
void drawRhombus (char *canvas, int a, int b, int xCenter, int yCenter);
void fillEmpty (char *canvas, int nRow, int nCol);