Mercurial > repo
view lib/interp @ 5967:9f67418e5043
<b_jonas> ` f=bin/w\xc3\xa4lc\xc3\xa5m\xc3\xa4; >"$f" echo $\'/bin/sh\\nwelcome | sed "s/E/\xc3\x84/g;s/O/\xc3\x85/g;s/e/\xc3\xa4/g;s/o/\xc3\xa5/g"\'; chmod a+x "$f"
author | HackBot |
---|---|
date | Thu, 10 Sep 2015 11:15:33 +0000 |
parents | 7b17fe055014 |
children | 9cb638b68832 |
line wrap: on
line source
#!/bin/sh export I_CMD="$0" export I_ARG="$1" export ARG_FILE="/tmp/input.$$" get_arg() { #if expr "$I_ARG" : "http://" > /dev/null #then # wget $WGET_OPTIONS "$I_ARG" -O "$ARG_FILE" #else printf '%s' "$I_ARG" > "$ARG_FILE" #fi } clean_arg() { rm -f "$ARG_FILE" } interp_stdin() { get_arg $1 < "$ARG_FILE" 2>&1 clean_arg } interp_file() { get_arg $1 "$ARG_FILE" 2>&1 clean_arg } interp_stdin_java() { get_arg cd $1 java $2 < "$ARG_FILE" 2>&1 clean_arg } interp_file_java() { get_arg cd $1 java $2 "$ARG_FILE" 2>&1 clean_arg }