Skip to content

Instantly share code, notes, and snippets.

version: '3.1'
services:
arangodb:
image: arangodb:latest
restart: always
ports:
- 8529:8529
environment:
ARANGO_ROOT_PASSWORD: root_arangodb
volumes:
from multiprocessing import Process
import pycurl
from io import BytesIO
URLS = [
"https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-desktop-amd64.iso",
"https://repo.ialab.dsu.edu/ubuntu-releases/20.04.1/ubuntu-20.04.1-desktop-amd64.iso",
"http://ubuntu.osuosl.org/releases/20.04.1/ubuntu-20.04.1-desktop-amd64.iso",
"http://mirror.cs.jmu.edu/pub/ubuntu-iso/20.04.1/ubuntu-20.04.1-desktop-amd64.iso",
"http://mirror.metrocast.net/ubuntu-releases/focal/ubuntu-20.04.1-desktop-amd64.iso",
@deeso
deeso / booklist
Last active October 15, 2022 19:57
Just a Book List from Someone Who's not Famous
Dealing with Cancer and Personal Crises
a. Upheaval
b. When a Breath Becomes Air
c. The Breakthrough
Self-Control and Discipline
a. This Time Will Be Different: A Short Book on Making Permanent Changes
b. The Marshmallow Test: Mastering Self-Control
c. (long and technical, recommend over a few months) Thinking, Fast and Slow
@deeso
deeso / ez_certs.py
Created September 10, 2020 02:45
Create certificates using certstrap
import sys
import argparse
import os
import tempfile
__copyright__ = """
Copyright 2020 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
version: '3.1'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: USERNAME
MONGO_INITDB_ROOT_PASSWORD: PASSWORD
#!/bin/bash
curl -fLs -o /usr/local/bin/certstrap https://github.com/square/certstrap/releases/download/v1.2.0/certstrap-1.2.0-linux-amd64
chmod +x /usr/local/bin/certstrap
# no passphrases
certstrap init --common-name "CertAuth" --expires "100 years"
certstrap request-cert --common-name collector
certstrap sign collector --CA CertAuth --expires "100 years"
cp out/cert.crt ./cert.pem
Recvd connection from: ('127.0.0.1', 48344)
Incoming:
b'HEAD /_ping HTTP/1.1\r\nHost: 127.0.0.1:9090\r\nUser-Agent: Docker-Client/19.03.8 (linux)\r\n\r\n'
Sending 89 bytes to docker
Outgoing:
b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n'
Sending 280 bytes to ('127.0.0.1', 48344)
Out[1]: b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n'
Recvd connection from: ('127.0.0.1', 48344)
Incoming:
b'HEAD /_ping HTTP/1.1\r\nHost: 127.0.0.1:9090\r\nUser-Agent: Docker-Client/19.03.8 (linux)\r\n\r\n'
Sending 89 bytes to docker
Outgoing:
b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n'
Sending 280 bytes to ('127.0.0.1', 48344)
Out[1]: b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n'
@deeso
deeso / basic_docker_analysis.py
Last active August 17, 2020 21:09
basic docker proxy for trying to honey pot
import base64
from time import sleep
import requests
import asyncio
from datetime import datetime
import hashlib
import socket
import random
import string
import json
@deeso
deeso / vol3_linux_banner_update.py
Created August 10, 2020 18:50
script to list or update banners in the volatility linux banners cache
import sys
import os
import pickle
import argparse
DEFAULT_CACHE = os.path.expanduser("~/.cache/volatility3/linux_banners.cache")
parser = argparse.ArgumentParser(description='Inspect and modify the Volatility Linux Banners Cache.')
parser.add_argument('-c', dest='cache', type=str, default=DEFAULT_CACHE,