Skip to content

Instantly share code, notes, and snippets.

View mpgn's full-sized avatar
🕹️
Impose ta chance, serre ton bonheur et va vers ton risque.

mpgn

🕹️
Impose ta chance, serre ton bonheur et va vers ton risque.
View GitHub Profile
https://wiki.archlinux.org/index.php/Bluetooth_headset
https://unix.stackexchange.com/questions/258074/error-when-trying-to-connect-to-bluetooth-speaker-org-bluez-error-failed
~/Android/Sdk/emulator $ ./emulator @Nexus_4_API_26 -http-proxy 127.0.0.1:8080
alert(1);
@mpgn
mpgn / test.md
Last active April 1, 2017 18:00

test test

Test for dynamic rendering :

[{{ config['WEBSITE_NAME'] }}]({{ url_for("home.index") }})

@mpgn
mpgn / check_list_owasp.md
Created December 1, 2016 14:34
Check list OWASP

Check list OWASP

Information Gathering

  • Conduct Search Engine Discovery and Reconnaissance for Information Leakage
  • Fingerprint Web Server
  • Review Webserver Metafiles for Information Leakage
  • Enumerate Applications on Webserver
  • Review Webpage Comments and Metadata for Information Leakage
  • Identify application entry points
# Padding Oracle Attack against PKCS7
# From https://github.com/mpgn/Padding-oracle-attack
# martial puygrenier
####################################
# CUSTOM YOUR RESPONSE ORACLE HERE #
####################################
''' the function you want change to adapte the result to your problem '''
def test_validity(response, error):
@mpgn
mpgn / brutus-combinaison.go
Last active March 18, 2016 10:35
brute force hash (md5, sha1) first char in Go using combinaison from Python or rand
package main
import (
"fmt"
"os"
"crypto/md5"
//"crypto/sha1"
//"math/rand"
"time"
"encoding/hex"
@mpgn
mpgn / list_to_matrix.py
Last active November 10, 2015 21:15
List to matrix python
def split_r(arr, size):
arrs = []
while len(arr) > size:
pice = arr[:size]
arrs.append(pice)
arr = arr[size:]
arrs.append(arr)
return arrs
K = separation
@mpgn
mpgn / express-subdomain.js
Last active August 30, 2020 01:16
express-subdomain example
var subdomain = require('express-subdomain');
var express = require('express');
var app = express();
var router = express.Router();
app.use(subdomain('api', router));
app.get('/', function (req, res) {