diff options
-rw-r--r-- | files/log | 3 | ||||
-rw-r--r-- | files/message_in | 8 | ||||
-rw-r--r-- | files/rawlog | 46 | ||||
-rw-r--r-- | files/useraliases | 39 | ||||
-rw-r--r-- | scripts/command | 3 | ||||
-rw-r--r-- | scripts/evalcommand | 3 | ||||
-rw-r--r-- | scripts/irccommand | 7 | ||||
-rw-r--r-- | scripts/ircrawcommand | 7 | ||||
-rw-r--r-- | scripts/lamba | 2 | ||||
-rw-r--r-- | scripts/more | 2 | ||||
-rw-r--r-- | scripts/rawcommand | 3 | ||||
-rw-r--r-- | scripts/reset | 3 | ||||
-rw-r--r-- | scripts/startup | 10 |
13 files changed, 136 insertions, 0 deletions
diff --git a/files/log b/files/log new file mode 100644 index 0000000..3ab5d23 --- /dev/null +++ b/files/log @@ -0,0 +1,3 @@ +? +Aww. Doesn't show nicks in log. +!record 0 diff --git a/files/message_in b/files/message_in new file mode 100644 index 0000000..18a0dc9 --- /dev/null +++ b/files/message_in @@ -0,0 +1,8 @@ +Hello? +Oh. That works. :) +Now to filter the output of rawlog a bit. +Does that still work? +I can't see segfault's output while I am segfault. :P +I'd need another FD redirect then mix it together. +A multitail? +BOW DOWN BEFORE YOUR BOTTY OVERLORD! diff --git a/files/rawlog b/files/rawlog new file mode 100644 index 0000000..7cc3f98 --- /dev/null +++ b/files/rawlog @@ -0,0 +1,46 @@ +: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 new file mode 100644 index 0000000..f26a2dd --- /dev/null +++ b/files/useraliases @@ -0,0 +1,39 @@ +!alias !savealias !leetappend /home/segfault/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 !ping !say pong +!alias !ec !eval /home/segfault/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 +!alias !randip !c perl -le '$,=".";print map int rand 256,1..4;' %s +!alias !jarg !c cat /var/www/hacking.allowed.org/docs/jarg447.txt | XuntilY "^:%s" "^:." | tail -r | tail -n+2 | tail -r +!alias !jargcheck !c cat /var/www/hacking.allowed.org/docs/jarg447.txt | XuntilY "^:%s" "^:." | tail -r | tail -n+2 | tail -r | wc -l +!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 !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 diff --git a/scripts/command b/scripts/command new file mode 100644 index 0000000..adc0860 --- /dev/null +++ b/scripts/command @@ -0,0 +1,3 @@ +!leetuntail * /home/segfault/files/cmd_out +!leettail 56/home/segfault/files/cmd_out +!leetappend /home/segfault/files/cmd_in 10 %s diff --git a/scripts/evalcommand b/scripts/evalcommand new file mode 100644 index 0000000..db37f05 --- /dev/null +++ b/scripts/evalcommand @@ -0,0 +1,3 @@ +!leetuntail * /home/segfault/files/cmd_out +!leettail 50/home/segfault/files/cmd_out +!leetappend /home/segfault/files/cmd_in 10 %s diff --git a/scripts/irccommand b/scripts/irccommand new file mode 100644 index 0000000..09ad8bd --- /dev/null +++ b/scripts/irccommand @@ -0,0 +1,7 @@ +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_U=%u' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_F=%f' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_S=%s' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_M=%m' +!leetuntail * /home/segfault/files/cmd_out +!leettail 56/home/segfault/files/cmd_out +!leetappend /home/segfault/files/cmd_in 10 %s diff --git a/scripts/ircrawcommand b/scripts/ircrawcommand new file mode 100644 index 0000000..9de7396 --- /dev/null +++ b/scripts/ircrawcommand @@ -0,0 +1,7 @@ +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_U=%u' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_F=%f' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_S=%s' +!leetappend /home/segfault/files/cmd_in 10 export 'IRC_M=%m' +!leetuntail * /home/segfault/files/cmd_out +!leettail 49/home/segfault/files/cmd_out +!leetappend /home/segfault/files/cmd_in 10 %s diff --git a/scripts/lamba b/scripts/lamba new file mode 100644 index 0000000..20a7b24 --- /dev/null +++ b/scripts/lamba @@ -0,0 +1,2 @@ +!lamba !alias !tmp %s +!tmp diff --git a/scripts/more b/scripts/more new file mode 100644 index 0000000..0859ee2 --- /dev/null +++ b/scripts/more @@ -0,0 +1,2 @@ +!changetail /home/segfault/files/cmd_out %f +!tailunlock /home/segfault/files/cmd_out diff --git a/scripts/rawcommand b/scripts/rawcommand new file mode 100644 index 0000000..4ed297a --- /dev/null +++ b/scripts/rawcommand @@ -0,0 +1,3 @@ +!leetuntail * /home/segfault/files/cmd_out +!leettail 49/home/segfault/files/cmd_out +!leetappend /home/segfault/files/cmd_in 10 %s diff --git a/scripts/reset b/scripts/reset new file mode 100644 index 0000000..82307a2 --- /dev/null +++ b/scripts/reset @@ -0,0 +1,3 @@ +!kill 9 -1 +!c pwd + That's just to make the next command work. diff --git a/scripts/startup b/scripts/startup new file mode 100644 index 0000000..8e6a8e3 --- /dev/null +++ b/scripts/startup @@ -0,0 +1,10 @@ +!alias !rc !eval /home/segfault/scripts/rawcommand %s +!alias !eval !leettail 22%s +!alias !c !eval /home/segfault/scripts/command %s +!raw join #default +!raw join #syslog +!alias !tail !leettail 08%s +!tail /var/log/syslog/messages +!changetail /var/log/syslog/messages #syslog +!eval /home/segfault/files/useraliases + |