view paste/paste.30276 @ 12216:68d16aa2f434 draft

<b_jonas> `` set -e; f=/hackenv/bin/bfbotquine; d=/hackenv/bin/STOP; >$d echo $\'#!/bin/sh\\nrm -fv \'"$f"; >$f echo $\'#!/bin/sh\\nsleep 50; echo ":"="hackesoquine"; sleep 20\'; chmod -c a+x $d $f
author HackEso <hackeso@esolangs.org>
date Sat, 30 Nov 2019 22:30:23 +0000
parents edc576a78ad1
children
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    PASTE=-
else
    PASTE="$1"
fi

PASTENUM="$RANDOM"

mkdir -p $HACKENV/paste

echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM"
cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"