Skip to content

Instantly share code, notes, and snippets.

View fliphess's full-sized avatar

Flip Hess fliphess

View GitHub Profile
@fliphess
fliphess / milight_hub_setup.md
Last active June 13, 2018 13:07
esp_milight_hub

Flashing a newer version of the esp milight hub to your nodemcu v2

Prerequisites

Connect the NRF24L01+ to the NodeMCU

To connect the nodemcu to the NRF24L01+ transceiver, use the following pins:

| NODEMCU PIN | NRF24L01+ PIN |

#!/usr/bin/env python
# Taken from: https://notes.jmsinfor.com/blog/post/admin/Xiaomi-Hub
import socket
import binascii
import struct
UDP_IP = "192.168.0.107"
UDP_PORT_FROM = 54322
UDP_PORT = 54321
@fliphess
fliphess / wol.py
Created December 21, 2017 15:01
Wake up post 2016 Philips TV's using Wake on Lan
#!/usr/bin/env python3
import struct
import re
import socket
import sys
MAC = '1c:5a:6b:b8:93:c0'
def wake_on_lan(mac):
@fliphess
fliphess / install_exiftool.md
Created October 1, 2017 19:25
Install exiftool as non root user
mkdir lib/perl5
mkdir -p lib/perl5
ln -s $HOME/lib/perl5 $HOME/bin/lib
wget https://sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-10.62.tar.gz
tar xvzf Image-ExifTool-10.62.tar.gz
cd Image-ExifTool-10.62
perl Makefile.PL INSTALL_BASE=$HOME
make
make install
@fliphess
fliphess / build_yapet_for_mac.md
Created September 7, 2017 07:18
Build yapet password manager on mac

Build yapet (yet another password manager) for Mac

Download

wget  http://www.guengel.ch/myapps/yapet/downloads/yapet-1.0.tar.gz
tar xvzf yapet-1.0.tar.gz && cd yapet-1.0

Configure

@fliphess
fliphess / GoogleHackMasterList.txt
Created August 17, 2017 11:39 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@fliphess
fliphess / update-dns.py
Created June 23, 2017 19:04
Add dynamic DNS records to bind using nsupdate
#!/usr/bin/env python
from __future__ import print_function, absolute_import
import argparse
import os
import socket
import subprocess
import sys
KEY_FILE = "/etc/bind/update_dns.private"
@fliphess
fliphess / download_comodo_waf_rules.py
Last active June 19, 2017 12:08
A downloader script to fetch the latest comodo waf rulebase from waf.comodo.com
#!/usr/bin/env python3
""" download_comodo_waf_rules.py - A very simple downloader script
This script updates the ModSecurity rulebase from waf.comodo.com automagically.
It downloads the latest rulebase for both apache and nginx as tarbal and extracts the rules to a directory.
To get started, replace the AUTH_USERNAME and AUTH_PASSWORD variables with your own credentials.
(Create at https://accounts.comodo.com/cwaf/management/signup)
"""
@fliphess
fliphess / debbuild.py
Created April 5, 2017 18:05 — forked from mkouhei/debbuild.py
build package with cowbuilder or git-buildpackage on Jenkins
#!/usr/bin/python
# -*- coding: utf-8 -*-
''' debbuild_wrapper.py
The debian package build wrapper on Jenkins.
This script support three way of building debian package.
1-1. Backport from source package with cowbuilder.
1-2. Pre-build and Backport from source package with cowbuilder.
2. Build original package with git-buildpackage.
@fliphess
fliphess / reboot_router.py
Last active March 15, 2023 04:27
Reboot Arcadyan VGV7519 (Experia, Telfort NL) through the web interface using python
#!/usr/bin/env python
import getpass
import os
import re
import signal
import sys
from collections import namedtuple
from urllib import urlencode
from urllib2 import build_opener