Skip to content

Instantly share code, notes, and snippets.

@TheFlash2k
TheFlash2k / get-libc-from-dockerfile
Last active October 2, 2024 15:02
bash script that will extract libc from a specified Dockerfile.
#!/bin/bash
# Logging Functions
function log() { echo -e "\e[32m[*]\e[0m $@"; }
function error() { echo -e "\e[31m[!]\e[0m $@"; exit 1; }
function warn() { echo -e "\e[33m[x]\e[0m $@"; }
function msg() { echo -e "\e[34m[+]\e[0m $@"; }
function msgln() { echo -en "\e[34m[+]\e[0m $@"; }
function validate_and_extract() {