This file contains 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 ssl | |
from Crypto.Util import asn1 | |
from OpenSSL.crypto import FILETYPE_PEM, FILETYPE_ASN1, load_certificate, dump_privatekey | |
def getModulusFromServer(host, port=443): | |
try: | |
# get cert from server | |
cert = ssl.get_server_certificate((host,port)) | |
# load certificate |
This file contains 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
/* | |
Simple HackRF programming exercise | |
Sipke '19 | |
This program receives raw data from a certain frequency until the user pressed ctrl+c. | |
Code is mostly taken from hackrf_sweep.c (hackrf toolbox) and converted to the bare minimum. | |
It's created to learn about how the HackRF behaves and to do something with it via custom code that doesn't involve GnuRadio. | |
Note that you can directly use the command line tools hackrf_sweep, hackrf_transfer and rtl_sdr for the same thing and more. |
This file contains 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 | |
# Run PXE boot server on interface | |
# Seems to work with UEFI and Secureboot | |
# Spip, 2023 | |
# | |
# Most stuff from https://www.youtube.com/watch?v=E_OlsA1hF4k | |
# | |
# Check args |
This file contains 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 | |
docker create --name extract_test repo.foo.bar/some_image:v1337 | |
mkdir container | |
docker export extract_test | tar xvf - -C container |
This file contains 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
IMPORTANT HANDY TIPS: |
This file contains 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
IMPORTANT HANDY TIPS: |