Skip to content

Instantly share code, notes, and snippets.

View AntiSecTech's full-sized avatar
:octocat:
echo 'Commit' > /dev/repository

AntiSec Cyber Security Penetration Testing AntiSecTech

:octocat:
echo 'Commit' > /dev/repository
View GitHub Profile
@AntiSecTech
AntiSecTech / hello.sh
Created June 17, 2024 08:13
just a testfile
#!/bin/bash
if [ $? -ne 0 ]; then
echo "something went wrong!"
exit 1
fi
if [ "$EUID" -ne 0 ]; then
echo "u drunk?"
exit 1
@AntiSecTech
AntiSecTech / pyaml-deb_installer.sh
Last active June 17, 2024 17:38
pyaml installer shell script
#!/bin/bash
# Preventing errors
[ $? -ne 0 ] && { echo "Error something went wrong! Installation aborted."; exit 1; }
set -e
[ "$EUID" -ne 0 ] && { echo "This script must be run as root. Installation aborted."; exit 2; }
# Application path
PW_DIR=$(pwd)
OPT_DIR="/opt"