diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/rawlog | 46 | ||||
-rw-r--r-- | files/useraliases | 61 |
2 files changed, 46 insertions, 61 deletions
diff --git a/files/rawlog b/files/rawlog deleted file mode 100644 index 7cc3f98..0000000 --- a/files/rawlog +++ /dev/null @@ -1,46 +0,0 @@ -:epoch!~epoch@127.0.0.1 PRIVMSG #default :? -:epoch!~epoch@127.0.0.1 PRIVMSG #default :rawlog works fine... -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!tails -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!tail /home/segfault/files/message_in -:foobaz!~foobaz@1.4.7.7 PRIVMSG #default :a tail from rawlog in #default would be fun -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!tails -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!untail /home/segfault/files/message_in -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!tail /home/segfault/files/message_in -:foobaz!~foobaz@1.4.7.7 PRIVMSG SegFault :!c printf "hello hello? anybody out there?\n" >> /home/segfault/files/message_in -:foobaz!~foobaz@1.4.7.7 PRIVMSG SegFault :!c ls -la /home/segfault/files/ -:foobaz!~foobaz@1.4.7.7 PRIVMSG SegFault :!c ls -la /home/segfault/files/message_in -:foobaz!~foobaz@1.4.7.7 PRIVMSG #default :!c ls -la /home/segfault/files/message_in -:foobaz!~foobaz@1.4.7.7 PRIVMSG #default :such restrictive -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Test. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :asdf -:epoch!~epoch@127.0.0.1 PRIVMSG #default :I could make segfault have a "restricted" mode. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :So he'll only accept commands sent to him by himself. :P -:epoch!~epoch@127.0.0.1 PRIVMSG #default :So it could act more like a client. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Take out all the extra commands an IRC client wouldn't need... -:epoch!~epoch@127.0.0.1 PRIVMSG #default :SegFault, the IRC client that has too many features you'll never know how to use and none of the features you're used to! -:foobaz!~foobaz@1.4.7.7 PRIVMSG #syslog :!alias !tell !say %s -:foobaz!~foobaz@1.4.7.7 PRIVMSG #default :SegFault, tell epoch i am just a bot -:epoch!~epoch@127.0.0.1 PRIVMSG #default :I'll name the IRC client something morbid like meatpuppet -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Should I make it a mode that segfault can run in or a separate program? -:epoch!~epoch@127.0.0.1 PRIVMSG #default :ACTION cleans up segfault before forking. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Might not have to fork if I make segfault generic enough. :P -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :ehlo localhosts -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Hi. -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :epoch: is segfault a bot? -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Yep. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Has enough features I could make him into an IRC client with just scripting though. -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :want something similar for vern -:epoch!~epoch@127.0.0.1 PRIVMSG #default :git clone git://armitage.hacking.allowed.org/segfault -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Should compile on any sane unix-like. -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :this tablet has limited features -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :i run into issues each time anything compiles -:epoch!~epoch@127.0.0.1 PRIVMSG #default :Then tell me and I'll fix it. :) -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :heh -:epoch!~epoch@127.0.0.1 PRIVMSG #default :If you're using Linux, it should compile fine except maybe a missing function like strndup(). -:epoch!~epoch@127.0.0.1 PRIVMSG #default :That one gives me the most trouble and I have a backup commented out. -:Guard1an!~Guard1an@2a01:7b8:2000:3d:a515:5380:1bf0:560a PRIVMSG #default :will play with it later -:epoch!~epoch@127.0.0.1 PRIVMSG #default :I'll have to make a ./configure script sometime to test if it exists and send a compile-time option to enable or disable it. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!c whob 222.163.192.158 -:epoch!~epoch@127.0.0.1 PRIVMSG #syslog :fuck you china. -:epoch!~epoch@127.0.0.1 PRIVMSG #default :!reload -:armitage.hacking.allowed.org NOTICE SegFault :Connection statistics: client 104.7 kb, server 28.5 kb. diff --git a/files/useraliases b/files/useraliases index f26a2dd..20f6514 100644 --- a/files/useraliases +++ b/files/useraliases @@ -1,16 +1,12 @@ -!alias !savealias !leetappend /home/segfault/files/useraliases 10 !alias %s +!alias !savealias !leetappend %~/files/useraliases 10 !alias %s !alias !reload !raw quit :reload !alias !addlink !leetappend /var/www/hacking.allowed.org/links.txt 10 %s (~%u) -!alias !reset !kill 9 -1 !alias !drop !say %u: Dropping shell right now, type exit when done. !alias !dig !c dig %s -!alias !more !tailunlock /home/segfault/files/cmd_out +!alias !more !tailunlock %~/files/cmd_out !alias !ping !say pong -!alias !ec !eval /home/segfault/scripts/evalcommand %s +!alias !ec !eval %~/scripts/evalcommand %s !alias !lambda !ec echo -ne 'SegFault: alias !tmp %s\n!tmp\n' -!alias !reset !ec printf "!kill 9 -1\n!c pwd\n" -!alias !reset !ec printf "!kill 9 -1\n";sleep 1;printf "!c pwd\n" -!alias !reset !ec printf '!kill 9 -1\n!c pwd\n' !alias !pymath !c python -c 'import math;print(%s)' !alias !reset !kill 9 -1 !alias !up !c uptime @@ -20,20 +16,55 @@ !alias !links !c grep "%s" /var/www/hacking.allowed.org/links.txt !alias !lambda !ec echo -ne '%m: alias !tmp %s\n!tmp\n' !alias !nlinks !links -c" "%s -!alias -!alias -!alias !alias !topic !rc echo "TOPIC %f :%s (set by %u at $(date -u "+%%b %%m %%R") UTC)" !alias !pty !c python -c 'import pty;pty.spawn("/usr/pkg/bin/bash")' -!alias !you !rc if [ "%s" = "there" ] || [ "%s" = "there?" ]; then printf "PRIVMSG %f :\x01ACTION is totally here\x01\n"; else echo "PRIVMSG %f :no, you %s"; fi !alias !you !rc if [ "%s" = "there" ] || [ "%s" = "there?" ]; then printf "PRIVMSG %f :\x01ACTION is totally here\x01\n"; else echo "PRIVMSG %f :no, you %s" | tr '?' '!'; fi !alias !escape_sequences !c grep "//here" /root/services/segfault/segfault.c -!alias !irc !eval /home/segfault/scripts/ircrawcommand %s -!alias !ic !eval /home/segfault/scripts/irccommand %s +!alias !irc !eval %~/scripts/ircrawcommand %s +!alias !ic !eval %~/scripts/irccommand %s +!alias !reeval !eval %~/files/useraliases !alias !addtodo !leetappend /var/www/hacking.allowed.org/todo.txt 10 "%s" -!alias !reeval !eval /home/segfault/files/useraliases -!alias !todo !c shuffle -f /var/www/hacking.allowed.org/todo.txt | head -n1 !alias !todo !c cat -n /var/www/hacking.allowed.org/todo.txt | shuffle -f-| head -n1 !alias !diddo !c sed '%sd' /var/www/hacking.allowed.org/todo.txt > /var/www/hacking.allowed.org/todo.txt_;cat /var/www/hacking.allowed.org/todo.txt_ > /var/www/hacking.allowed.org/todo.txt !alias !todos !c cat -n /var/www/hacking.allowed.org/todo.txt !alias !ntodo !c wc -l /var/www/hacking.allowed.org/todo.txt +!alias !greptodo !c grep "%s" /var/www/hacking.allowed.org/todo.txt +!alias !myaddtodo !leetappend /var/www/hacking.allowed.org/todo/%u.txt 10 "%s" +!alias !mytodo !c cat -n /var/www/hacking.allowed.org/todo/%u.txt | shuffle -f-| head -n1 2>/dev/null || echo "You've got nothing todo today, but smile." +!alias !mydiddo !c sed '%sd' /var/www/hacking.allowed.org/todo/%u.txt > /var/www/hacking.allowed.org/todo/%u.txt_;cat /var/www/hacking.allowed.org/todo/%u.txt_ > /var/www/hacking.allowed.org/todo/%u.txt +!alias !mytodos !c cat -n /var/www/hacking.allowed.org/todo/%u.txt 2>/dev/null || echo "You've got nothing to do today, but smile." +!alias !myntodo !c wc -l /var/www/hacking.allowed.org/todo/%u.txt 2>/dev/null || echo "You've got nothing todo today, but smile." +!alias !mygreptodo !c grep "%s" /var/www/hacking.allowed.org/todo/%u.txt 2>/dev/null || echo "You've got nothing todo today, but smile." +!alias !mytodoadd !myaddtodo %s +!alias !tell !c false +!alias !ask !c false +!alias !messages !c false +!alias !help !say unknown command: !help. try !help +!alias !mytododel !mydiddo %s +!alias !mytodogrep !mygreptodo %s +!alias !mygreptodo !c cat -n /var/www/hacking.allowed.org/todo/%u.txt 2>/dev/null | grep -i "%s" || echo "You've got nothing todo today, but smile." +!alias !tmplink !c echo '<a href="%s">%s</a>' > /var/www/hacking.allowed.org/tmplink.html +!alias !title !c wget -qO- %s | tr '>' '\n' | XuntilY "<title" "</title"| sed 's/<.*$//' +!alias !tmplink !c echo '<meta http-equiv="refresh" content="0;url=%s">' > /var/www/hacking.allowed.org/tmplink.html +!alias !links !c if [ "%s" ];then grep "%s" /var/www/hacking.allowed.org/links.txt;else echo http://hacking.allowed.org/links.txt;fi +!alias !seen !c false +!alias !mytodocount !myntodo +!alias !rmuseralias !c rmln %s %~/files/useraliases +!alias !useraliases !c cat -n %~/files/useraliases %s +!alias !duplicateuseraliases !c cut '-d ' -f2 %~/files/useraliases | uniq -d +!alias !grepuseraliases !useraliases | grep %s +!alias !mytodo !c nr="%s"; test -z "$nr" && nr=1; cat -n /var/www/hacking.allowed.org/todo/%u.txt | shuffle -f-| head -n $nr 2>/dev/null || echo "You've got nothing todo today, but smile." +!alias !tits !say [ . | . ] +!alias !geo !c whob %s | egrep "^Country:|^City" +!alias !dcc !rc echo -e "privmsg %u :\x01DCC SEND $(basename %s) `dcchelper %h` 12345 `wc -c "%s" | sed 's/ //g'`\x01";ncat -l -p 12345 < "%s" +!alias !diddo rmln %s /var/www/hacking.allowed.org/todo.txt +!alias !title !c wget --no-check-certificate -qO "%s" | tr '>' '\n' | XuntilY "<title" "</title"| sed 's/<.*$//' +!alias !title !c wget --no-check-certificate -qO- "%s" | tr '>' '\n' | XuntilY "<title" "</title"| sed 's/<.*$//' +!alias !suicide !kill -9 %p +!alias !suicide !kill 9 %p +!alias !pingout !kill 17 %p +!alias !built-ins !c grep strncmp /root/services/segfault/segfault.c | grep '"' | grep msg | tail -n+1 | cut '-d"' -f2 | tr '\n' ' ' | tr -s ' ' +!alias !help !say !builtins !aliases +!alias !help !say !builtins !aliases +!alias !cinit !leettail 56%~/files/cmd_out +!alias !cat !leettail 28%s |