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
| /* | |
| * global_ip_list.stp | |
| * Author: Robert Thomas Manes <robb.manes@gmail.com> | |
| * | |
| * With special thanks to Sterling Alexander and Kyle Walker. | |
| * | |
| * This systemtap script lists all currently assigned IP addresses in | |
| * all network namespaces on the system in which it is run. | |
| * | |
| * It is currently only tested on Red Hat Enterprise Linux 7. |
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 os | |
| import sys | |
| import socket | |
| def main(): | |
| # check if directory exists, if it doesn't, make it: | |
| if not os.path.exists('/var/run'): | |
| os.mkdir('/var/run', 0777) | |
| # make the socket |
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
| #!/usr/bin/python3 | |
| import sys | |
| import time | |
| import boto3 | |
| ebs_name = '/dev/sda' | |
| ebs_id = 'vol-000000000000000001' | |
| instance_id = 'i-000000000000000001' |
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
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import time | |
| import logging | |
| import socket | |
| def check_unix_socket(): |
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
| /* | |
| * watch_unix_socket.stp | |
| * | |
| * This is a simply more modern version of the script found here: | |
| * https://sourceware.org/systemtap/wiki/WSunixSockets | |
| * | |
| * The first argument is the location of the file descriptor for a UNIX socket. | |
| * To find this address, for example, for the Docker socket run: | |
| * | |
| * # lsof 2>&1 | awk '/docker.sock/ {print $7}' | grep -v '0t0' | sort -u |
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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: bz1872868-workaround | |
| labels: | |
| app: bz1872868-workaround | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: |
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 | |
| # bashy-bois.sh | |
| # Maintained by Robb Manes <robbmanes@protonmail.com> | |
| # | |
| # A collection of bash functions that I've used and written over time. | |
| # You CAN use this as a single script, but you probably want to pick-and-choose what you're looking for. | |
| # It's probably best to assume you need to be root to do anything below unless otherwise specified. | |
| # find_all_ptraces |
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
| FROM registry.redhat.io/ubi8-minimal | |
| COPY vmovsd-checker.asm /root/ | |
| WORKDIR /root/ | |
| RUN microdnf install binutils -y && \ | |
| as vmovsd-checker.asm -o vmovsd-checker.o && \ | |
| ld vmovsd-checker.o -o vmovsd-checker && \ | |
| rm vmovsd-checker.o vmovsd-checker.asm && \ | |
| chmod +x vmovsd-checker | |
| ENTRYPOINT ["/root/vmovsd-checker"] |
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 logging | |
| import socket | |
| import sys | |
| import threading | |
| import time | |
| CLIENT_CONN_ADDR="127.0.0.1" | |
| CLIENT_NUM_CONNS=10 | |
| SERVER_PORT=8888 | |
| SERVER_SYN_BACKLOG=128 |
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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name localhost; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| } |