Mercurial > repo
view bin/slashlearn @ 6198:88080ce5575b
<b_jonas> ` echo $\'#!/bin/sh\\nexec sqlite3 :memory: "$@"\' > bin/sqli && chmod a+x bin/sqli
author | HackBot |
---|---|
date | Sun, 08 Nov 2015 12:33:11 +0000 |
parents | 9c603f748542 |
children | 73ffca368bac |
line wrap: on
line source
#!/bin/bash [[ "$1" = */* ]] || exit topic=$(echo "$1" | lowercase | cut -d / -f 1) [ -z "$topic" ] && exit 1 value=$(echo "$1" | cut -d / -f 2-) echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"