mootoday / www-mootoday-com

The source code for www.mootoday.com
https://mootoday.com/
49 stars 7 forks source link

Write a blog post about `curl domain.com | sh` #406

Closed mikenikles closed 7 months ago

mikenikles commented 7 months ago

Use this script for curl https://mikenikles.com | sh:

#!/bin/sh

echo '              ___                   ___  __  
 |\/| | |__/ |__  |\ | | |__/ |    |__  /__` 
 |  | | |  \ |___ | \| | |  \ |___ |___ .__/ 

';

typewriter_effect() {
    text="$1"
    delay=0.1

    for i in $(seq 0 $((${#text} - 1))); do
        printf "%s" "${text:$i:1}"
        sleep "$delay"
    done
    printf "\n"
}

echo "Web: https://www.mikenikles.com";
echo "X  : @mikenikles";
echo "";
typewriter_effect "PS: Don't run 'curl https://... | sh' for random URLs."