Tested on Ubuntu 18.04.
You will want to allow non-root users to capture packets. These users must be part of the wireshark group.
$ sudo apt update
import io | |
import gzip | |
import requests | |
data = requests.get('https://url/file.txt.gz', stream=True) | |
in_ = io.BytesIO() | |
in_.write(data.content) | |
in_.seek(0) | |
gunzipped_bytes_obj = gzip.GzipFile(fileobj=in_, mode='rb').read() | |
data = gunzipped_bytes_obj.decode() |
#!/bin/bash | |
ssh root@host "dd if=/dev/sda1" | dd of=host.img |
#!/usr/bin/env python | |
import json | |
import dns.resolver | |
import multiprocessing as mp | |
def worker(hostname, results): | |
resolv = dns.resolver.Resolver() | |
resolv.nameservers = [ | |
'8.8.8.8', # Google | |
'8.8.4.4', # Google |
# Security enhancements and custom Nginx server header | |
# | |
# Requirements: | |
# $ apt install nginx vim | |
# $ apt install libnginx-mod-http-headers-more-filter | |
# $ vim /etc/nginx/sites-enabled/default | |
# | |
# Further reading http://docs.hardentheworld.org/Applications/Nginx/ | |
# | |
server { |
/* | |
Yara signatures for identifying secrets in text files. Requires libmagic! | |
Mostly all stolen from Trufflehog regexes: | |
- https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json | |
*/ | |
import "magic" |
27 April 2016 | |
On the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation) | |
(Text with EEA relevance) | |
THE EUROPEAN PARLIAMENT AND THE COUNCIL OF THE EUROPEAN UNION, | |
Having regard to the Treaty on the Functioning of the European Union, and in particular Article 16 thereof, |
#!/usr/bin/env python | |
''' | |
$ ./pwnagotchi_ids.py | while read fingerprint; do pwngrid -send $fingerprint -message "( ͡° ͜ʖ ͡°)"; done | |
''' | |
import json | |
import requests | |
def main(): | |
blacklist = open('./blacklist.txt', 'r').read().splitlines() | |
page = 0 |
#!/usr/bin/env python | |
import re | |
import requests | |
import argparse | |
import multiprocessing as mp | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
__author__ = '@dustyfresh' | |
__license__ = 'https://www.gnu.org/licenses/gpl-3.0.en.html' |