| View previous topic :: View next topic |
| Author |
Message |
AviZ1 Voice
Joined: 05 Sep 2011 Posts: 2
|
Posted: Mon Sep 05, 2011 4:15 am Post subject: Traceroute |
|
|
Hi,
im after a script that will do a traceroute on the shell then post the finding to this address.
usage:
wget post-file.it --post-file FILE
or to set paste exposure to public:
wget post-file.it/p --post-file FILE
or to paste output from a command:
command | xargs -0 wget post-file.it --post-data
and have the bot spit out the pastebin output. |
|
| Back to top |
|
 |
AviZ1 Voice
Joined: 05 Sep 2011 Posts: 2
|
Posted: Wed Sep 07, 2011 1:08 am Post subject: |
|
|
so heres what i have so far...
| Code: |
set chan #shellsolutions
bind pub o !trace pub_trace
proc pub_trace {nick uhost handle chan arg} {
set command [concat exec /bin/traceroute $arg | xargs -0 wget post-file.it --post-data]
set return [eval $command]
foreach output [split pastebin] {
putserv "PRIVMSG $chan :$output"
}
}
|
heres the output within the bot.
| Quote: |
[17:06] <Aphex> [22:06:28] Tcl error [pub_trace]: --2011-09-06 22:06:26-- http://post-file.it/
[17:06] <Aphex> Resolving post-file.it... 96.31.85.245
[17:06] <Aphex> Connecting to post-file.it|96.31.85.245|:80... connected.
[17:06] <Aphex> HTTP request sent, awaiting response... 303 See Other
[17:06] <Aphex> Location: +: 182b pasted to >>> http://pastebin.com/0j1kvK86 <<< [following]
[17:06] <Aphex> +: 182b pasted to >>> http://pastebin.com/0j1kvK86 <<<: Unsupported scheme.
|
what i need to do is spit out the pastebin addy on the irc channel
any helpers? |
|
| Back to top |
|
 |
|