Skip to content

Instantly share code, notes, and snippets.

Avatar

Julien Deudon initbrain

View GitHub Profile
@initbrain
initbrain / kivy_spectrogram.py
Created Mar 16, 2017
Kivy + Matplotlib + Scipy spectrogram test
View kivy_spectrogram.py
#!/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 Jan 8, 2017
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!
View NOTICE.md
@initbrain
initbrain / motion_recorder.py
Created Sep 24, 2016
A Python/OpenCV script that detect motion on webcam and allow record it to a file.
View motion_recorder.py
#!/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 Oct 22, 2020
Nmap NSE script that performs a dictionary/bruteforce attack over login and password fields of Apache Tomcat default web management pages
View http-tomcat-manager.nse
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 Aug 29, 2015
Send HTTP mail with Python
View mail.py
#!/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 Aug 29, 2015
Automatic exploitation script - Heartbleed OpenSSL bug CVE-2014-0160
View ssltest.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# 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 Mar 25, 2014
Cubieboard A10 - SD Card installation script - Debian 7.4 - Linux 3.4.79-r0-s-rm1+ "server" kernel
View cubieboard_debianserver_sdcard_install.sh
#!/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 Jan 9, 2014
Check if each IP address has a unique MAC address in the ARP table
View arp_monitor.sh
#!/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 Oct 17, 2013
Python thread-safe queue example
View threadqueue_example.py
#!/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 Oct 8, 2013
Script permettant d'effectuer des recherches d'images sur TinEye
View tineye_pic_search.py
#!/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