python3 -mvenv /tmp/venv
. /tmp/venv/bin/activate
pip install pypykatz
pip install impacket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| function create_files() | |
| { | |
| echo "initial.sh" | |
| cat <<EOF > initial.sh | |
| #!/bin/sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import pandas as pd | |
| data = pd.read_csv('gophish_row.csv') | |
| for a in data.iloc(): | |
| if type(a.details) is str: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat list.txt | while read a | |
| do | |
| ldapwhoami -vvv -h 1... -D "[email protected]" -w '__PASSWORD__' | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
Bash script to iterate all commits of a given Git repository and extract all files within each commit.
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 -> /path/to/output/1d9048853b8073e43e43e3250300a82f93d2f431
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # wget "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz" | |
| # | |
| import geoip2.database | |
| reader = geoip2.database.Reader('./GeoLite2-City.mmdb') | |
| listtt=""" | |
| 8.8.8.8 | |
| 123.12.12.12 | |
| 23.23.2.2 |