Skip to content

Instantly share code, notes, and snippets.

View vincd's full-sized avatar
😃
Salut 👋

Vincent D. vincd

😃
Salut 👋
View GitHub Profile
@vincd
vincd / server.py
Created March 12, 2022 17:16
Security Header example server : https//unbonhacker.com/posts/security-headers/
"""
```bash
pip install flask
python server.py
```
The serveur use http://127.0.0.1:8000 and http://localhost:8000 as two differents
origins. So remember to test with this two URLs.
"""
@vincd
vincd / server.py
Created January 22, 2022 17:26
Upload file
import os
from flask import Flask, flash, request, redirect, url_for
from werkzeug.utils import secure_filename
UPLOAD_FOLDER = './uploads'
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
def allowed_file(filename):
@vincd
vincd / burpzlib.py
Created July 16, 2020 09:28
Burp plugin to edit zlib messages
from burp import IBurpExtender
from burp import IMessageEditorTabFactory
from burp import IMessageEditorTab
from burp import IParameter
from burp import IHttpRequestResponse
import java.io
import java.util.zip
import org.python.util
import sys
@vincd
vincd / nrf905_decoder.c
Created May 19, 2019 20:23
nrf905 decoder
/* From: https://github.com/texane/nrf/blob/master/unit/range/nrf905_decoder/main.c */
/*
* gcc -O2 -Wall -o nrf905_decoder nrf905_decoder.c
* sudo rtl_fm -f 433000000 -s 1600k -g 0 | ./nrf905_decoder -
*/
/* center frequency: 433MHz */
/* frequency deviation: 100KHz */
/* data rate: 100Kbps (symbol rate 50Kbps) */
@vincd
vincd / signaux.ipynb
Last active February 26, 2018 10:16
Signaux
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.