Skip to content

Instantly share code, notes, and snippets.

View checkhost.sh
#!/bin/bash
# Simple script to list version numbers of critical development tools
export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
MYSH=$(readlink -f /bin/sh)
echo "/bin/sh -> $MYSH"
echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
unset MYSH
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
@radimkohout
radimkohout / .bash_profile
Created November 7, 2021 12:37
.bash_profile
View .bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
@radimkohout
radimkohout / .bashrc
Created November 7, 2021 12:36
.bashrc
View .bashrc
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/usr/bin
if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
PATH=$LFS/tools/bin:$PATH
CONFIG_SITE=$LFS/usr/share/config.site
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
@radimkohout
radimkohout / !important.md
Last active November 2, 2021 16:20
The Catch 2021 - write-up
View !important.md

We've been solving the Catch 2021 by CESNET with my friend Damian10012 ❤️ . We're ideal pair, since we complete each other. Our team was named "Podfukáři", and no, I'll not explain why 😁 . We've struggled in some challenges, but at the end, we've ended on 77th place with 30 points, which is nice for us.

We've been able to solve following challenges: Encrypted Archive, Problematic Executables, Unknown File, Cat Heads Language, The Services, Domain Name System, The Motivation, The Dark Side, The Geography, Private Network, Unknown server, Docker Image and Nomen Omen.

The unsolved challenges: Blogging Web Site, Social Network, File SHare, Phone Book and Torso of Web Server. In some of these cases, we have an idea, but we ran out of time.

View .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.10.17 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 8.3.0-6) 8.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
CONFIG_LD_VERSION=231010000
CONFIG_CLANG_VERSION=0
CONFIG_LLD_VERSION=0
View install_deps
#!/bin/sh
wget https://github.com/GarnetOS/packages/releases/download/v1.0/$1
tar -xvf $1 -C /