Skip to content

Instantly share code, notes, and snippets.

View initbrain's full-sized avatar

Julien Deudon initbrain

View GitHub Profile
@initbrain
initbrain / kivy_spectrogram.py
Created March 16, 2017 00:14
Kivy + Matplotlib + Scipy spectrogram test
#!/usr/bin/env python2.7
# Kivy + Matplotlib + Scipy spectrogram test
# Julien Deudon (initbrain)
# 201703160114
# See :
# https://github.com/kivy-garden/garden.matplotlib/tree/master/examples
# https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.spectrogram.html
@initbrain
initbrain / NOTICE.md
Last active January 24, 2024 19:37
Python Wi-Fi Positioning System, use Google Maps Geolocation API, tested on GNU/Linux (require iw) and Mac OS X (require airport), special thanks go to contributors!
@initbrain
initbrain / motion_recorder.py
Created September 24, 2016 15:41
A Python/OpenCV script that detect motion on webcam and allow record it to a file.
#!/usr/bin/env python
import cv2.cv as cv
from datetime import datetime
import time
class MotionDetectorAdaptative():
def onThresholdChange(self, val): # Callback when the user change the detection threshold
self.threshold = val
@initbrain
initbrain / http-tomcat-manager.nse
Last active November 29, 2021 07:11
Nmap NSE script that performs a dictionary/bruteforce attack over login and password fields of Apache Tomcat default web management pages
local shortport = require "shortport"
local http = require "http"
local stdnse = require "stdnse"
local brute = require "brute"
local creds = require "creds"
description = [[
Performs a dictionary/bruteforce attack over login and password fields of Apache Tomcat default web management pages.
]]
@initbrain
initbrain / mail.py
Last active August 29, 2015 14:02
Send HTTP mail with Python
#!/usr/bin/env python
import sys
import traceback
import smtplib
from socket import gaierror
from email import MIMEMultipart
from email import MIMEText
from email.utils import formatdate
from time import *
@initbrain
initbrain / ssltest.py
Last active August 29, 2015 13:58
Automatic exploitation script - Heartbleed OpenSSL bug CVE-2014-0160
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@initbrain
initbrain / cubieboard_debianserver_sdcard_install.sh
Created March 25, 2014 23:00
Cubieboard A10 - SD Card installation script - Debian 7.4 - Linux 3.4.79-r0-s-rm1+ "server" kernel
#!/bin/bash
# Cubieboard A10 - SD Card installation script
# Debian 7.4 - Linux 3.4.79-r0-s-rm1+ "server" kernel
# Julien Deudon (initbrain) - 25/03/2014
# Tested on Debian 7.4
# Required:
# apt-get install build-essential git udev coreutils bzip2 curl
# make (apt-get install build-essential)
# git (apt-get install git)
@initbrain
initbrain / arp_monitor.sh
Created January 9, 2014 16:43
Check if each IP address has a unique MAC address in the ARP table
#!/bin/bash
# arp_monitor.sh
# Check if each IP address has a unique MAC address in the ARP table
# Julien Deudon (initbrain)
# Known duplicate MAC address
# ("aa:bb:cc:dd:ee:ff" "aa:bb:cc:dd:ee:ff" "aa:bb:cc:dd:ee:ff")
bypass_macaddr=()
# Waiting time between each check
@initbrain
initbrain / threadqueue_example.py
Created October 17, 2013 11:21
Python thread-safe queue example
#!/usr/bin/env python
from Queue import Queue
from threading import Thread
from urllib2 import urlopen
from re import compile, MULTILINE
from time import time
class ThreadUrl(Thread):
@initbrain
initbrain / tineye_pic_search.py
Created October 8, 2013 16:22
Script permettant d'effectuer des recherches d'images sur TinEye
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Pour les tests :
# python tineye_pic_search.py -d -l "http://upload.wikimedia.org/wikipedia/commons/c/c1/Glider_(clarince63).png"
# python tineye_pic_search.py -d -i /home/initbrain/Images/glider.png
# Importations
import sys
import os