Teens Script — File Browser
TeensScriptv4.0 / TeensScriptv4.0 / remotes / scans.mrc
scans.mrc — 13.41 KB — Download this file
alias wab return 4,1NeT
alias zecho echo -a $chr(160) $1-
alias statse if (%statchan != $null) || (%clonechan != $null) || (%ircopchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %statchan # | set %stat 1 | who %statchan }
alias statsp if (%statchan != $null) || (%clonechan != $null) || (%ircopchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %statchan # | set %stat 2 | who %statchan }
alias clonese if (%clonechan != $null) || (%statchan != $null) || (%ircopchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %clonechan # | set %stat 1 | who %clonechan }
alias clonesp if (%clonechan != $null) || (%statchan != $null) || (%ircopchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %clonechan # | set %stat 2 | who %clonechan }
alias ircopse if (%ircopchan != $null) || (%clonechan != $null) || (%statchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %ircopchan # | set %stat 1 | who %ircopchan }
alias ircopsp if (%ircopchan != $null) || (%clonechan != $null) || (%statchan != $null) { zecho 4A channel scan is currently being done. It must be completed first | halt } | else { set %ircopchan # | set %stat 2 | who %ircopchan }
alias ircopsse if (%ircopserver != $null) || (%portscan != $null) { zecho 4Error: Server Scan already in progress. Please wait until it is finished. | halt } | else { set %ircopserver 1 | who 0 o }
alias ircopssp if ($1 == $null) { zecho 4Error:10 Please enter a channel to play to } | else { set %ircops.chans $1 | if (%ircopserver != $null) || (%portscan != $null) { zecho 4Error: Server Scan already in progress. Please wait until it is finished. | halt } | else { set %ircopserver 2 | who 0 o } }
alias aways { if # == $null { zecho 10Error: Use this command in channel window. | halt } | if $1 == $null { zecho 10Error: Usage for Command:4 /aways [-e|-c] | halt } | if $1 == -e { set %scan.away # | set %scan.away.play Echo | who # | halt } | elseif $1 == -c { set %scan.away # | set %scan.away.play Channel | who # | halt } | else { zecho 10Error: Missing/Unknow Parameters. Usage4: /aways [-e(echo list)|-c(show in channel)] } }
alias aols { if # == $null { zecho 10Error: Use this command in channel window. | halt } | if $1 == $null { zecho 10Error: Usage for Command:4 /aols [-e|-c] | halt } | if $1 == -e { set %scan.aol # | set %scan.aol.play Echo | who # | halt } | elseif $1 == -c { set %scan.aol # | set %scan.aol.play Channel | who # | halt } | else { zecho 10Error: Missing/Unknow Parameters. Usage:4 /aols [-e(echo list)|-c(show in channel)] } }
alias compus { if # == $null { zecho 10Error: Use this command in channel window. | halt } | if $1 == $null { zecho 10Error: Usage for Command:4 /compus [-e|-c] | halt } | if $1 == -e { set %scan.compu # | set %scan.compu.play Echo | who # | halt } | elseif $1 == -c { set %scan.compu # | set %scan.compu.play Channel | who # | halt } | else { zecho 10Error: Missing/Unknow Parameters. Usage:4 /aols [-e(echo list)|-c(show in channel)] } }
alias prods { if # == $null { zecho 10Error: Use this command in channel window. | halt } | if $1 == $null { zecho 10Error: Usage for Command:4 /prods [-e|-c] | halt } | if $1 == -e { set %scan.prod # | set %scan.prod.play Echo | who # | halt } | elseif $1 == -c { set %scan.prod # | set %scan.prod.play Channel | who # | halt } | else { zecho 10Error: Missing/Unknow Parameters. Usage:4 /aols [-e(echo list)|-c(show in channel)] } }
alias ports {
if ($server == $null) { zecho 10Error: You are not connected | halt }
if ($window(@Ports) == $null) { window -l @Ports 150 50 520 400 ports.mrc | titlebar @Ports Port Scan for $server }
rline @Ports 1 Please be patient, retreiving port information for
rline @Ports 2 $server $+ ..... | rline @Ports 3 -
set %portcount 0 | set %portbytes 0 | set %portbest 0 | set %portline 3
stats l
}
raw 211:*:{
if ($5 !isnum) { halt }
inc %portcount | if (%portcount < 2) { halt }
set %portbytes $5 + $7 | if (%portcount == 2) { set %portbest $left($right($2,5),4) | set %portbest2 %portbytes }
inc %portline | rline @Ports %portline Port: $left($right($2,5),4) Bytes transfer: %portbytes (smaller is faster)
if (%portbytes < %portbest2) { set %portbest $left($right($2,5),4) | set %portbest2 %portbytes }
halt
}
raw 219:*:{
inc %portline | rline @Ports %portline -
inc %portline | rline @Ports %portline Fastest port is: %portbest - Currently connected to: $port
inc %portline | rline @Ports %portline To connect to a different port, right click in this window...
unset %portbytes %portcount %portbest2
halt
}
raw 352:*:{
if %scan.away == $2 {
if G isin $7 { inc %scan.away.total | set %scan.away.nick. [ $+ [ %scan.away.total ] ] $6 | set %scan.away.add. [ $+ [ %scan.away.total ] ] $4 }
halt
}
if %scan.aol == $2 {
if aol isin $4 { inc %scan.aol.total | set %scan.aol.nick. [ $+ [ %scan.aol.total ] ] $6 | set %scan.aol.add. [ $+ [ %scan.aol.total ] ] $4 }
halt
}
if %scan.compu == $2 {
if compuserv isin $4 { inc %scan.compu.total | set %scan.compu.nick. [ $+ [ %scan.compu.total ] ] $6 | set %scan.compu.add. [ $+ [ %scan.compu.total ] ] $4 }
halt
}
if %scan.prod == $2 {
if prodigy isin $4 { inc %scan.prod.total | set %scan.prod.nick. [ $+ [ %scan.prod.total ] ] $6 | set %scan.prod.add. [ $+ [ %scan.prod.total ] ] $4 }
halt
}
if (%chancheck [ $+ [ $2 ] ] == 1) {
if ($6 == $me) || ($me !isop $2) { goto end }
if ($address($6,2) == $address($me,2)) && ($address($6,3) == $address($me,3)) && ($6 !isop $2) && (%cloneautoop == 1) { mode $2 +o $6 | goto end }
:end | halt
}
if ($2 == %statchan) {
inc %statotal
if (@ isin $7) { inc %statops }
if (+ isin $7) { inc %statvoiced }
if (@ !isin $7) { inc %statnops }
if (H isin $7) { inc %stathere }
if (G isin $7) { inc %stataway }
if (* isin $7) { inc %statircops }
if ($4 isin %statadd) {
if ($4 isin %statcloneadd) { halt }
set %statcloneadd %statcloneadd $4-
}
halt
}
if ($2 == %clonechan) {
if ($4 isin %statadd) {
if ($4 isin %clonecount) { halt }
set %clonecount %clonecount $4
}
:done
set %statadd %statadd $4
halt
}
if ($2 == %ircopchan) {
if (* isin $7) { inc %ircopcount | set %cop [ $+ [ %ircopcount ] ] 4 $+ $6 $+ 10 is an IRCop --> $3 $+ @ $+ $4 <-- }
halt
}
if (%ircop == 1) {
if (* isin $7) { set %ircjoin [ $+ [ $6 ] ] $2 }
halt
}
if (%ircopserver != $null) {
set %ircops.nicks %ircops.nicks $6
if (* isin $7) { inc %ircops.count.nicks 1 }
}
}
raw 315:*:{
if (%chancheck [ $+ [ $2 ] ] == 1) {
unset %chancheck [ $+ [ $2 ] ] | halt
}
if ($2 == %statchan) {
if (%statotal == $null) { set %statotal 0 }
if (%statops == $null) { set %statops 0 }
if (%statvoiced == $null) { set %statvoiced 0 }
if (%statnops == $null) { set %statnops 0 }
if (%stathere == $null) { set %stathere 0 }
if (%stataway == $null) { set %stataway 0 }
if (%statircops == $null) { set %statircops 0 }
if (%statcloneadd == $null) { set %statclones 0 }
set %count 0
:start
inc %count
if ($gettok(%statcloneadd,%count,32) == $null) { goto done }
set %domain *!*@ $+ $gettok( %statcloneadd,%count,32)
inc %statclones $ial(%domain,0)
goto start
:done
if (%stat == 2) { goto msg }
echo %statchan $chr(160) 4Channel stats for %statchan 10private echo
echo %statchan $chr(160) 4Total: $+ %statotal $+ 10 - Ops: $+ %statops $+ 10 - NonOps: $+ %statnops $+ 10 - Voiced: $+ %statvoiced
echo %statchan $chr(160) 4Here: $+ %stathere $+ 10 - Away: $+ %stataway $+ 10 - IRCops: $+ %statircops $+ 10 - Clones: $+ %statclones
goto end
:msg
msg %statchan 4Channel stats for %statchan
msg %statchan 10Total: $+ %statotal 10 - Ops: $+ %statops 10 - Voiced: $+ %statvoiced 10 - NonOps: $+ %statnops
msg %statchan 10Here: $+ %stathere 10 - Away: $+ %stataway 10 - IRCops: $+ %statircops 10 - Clones: $+ %statclones
msg %statchan 8,1[-14,1Thüñ4,1dêr 9,1§c®0,1ïþt8,1 v4.0-]
:end
unset %stat* %count %domain
halt
}
if %scan.away == $2 {
if %scan.away.play == Echo {
echo 1 $2 $chr(160) 4[ZT] 4AwayScan results for $2 | if %scan.away.total < 1 { set %scan.away.total 0 }
set %scan.away.num 0 | :start | inc %scan.away.num 1 | if %scan.away.num > %scan.away.total { echo $2 $chr(160) 4[ZT] 4End of Away Scan. Total:10 %scan.away.total | unset %scan.away %scan.away.* | halt }
echo $2 36 $+ %scan.away.num Nick: %scan.away.nick. [ $+ [ %scan.away.num ] ] Address: %scan.away.add. [ $+ [ %scan.away.num ] ] $+
goto start
}
if %scan.away.play == Channel {
msg $2 4AwayScan results for $2 | if %scan.away.total < 1 { set %scan.away.total 0 }
set %scan.away.num 0 | :start | inc %scan.away.num 1 | if %scan.away.num > %scan.away.total { msg $2 4End of Away Scan. Total:10 %scan.away.total | unset %scan.away %scan.away.* | halt }
msg $2 36 $+ %scan.away.num Nick: %scan.away.nick. [ $+ [ %scan.away.num ] ] Address: %scan.away.add. [ $+ [ %scan.away.num ] ]
goto start
}
}
if ($2 == %clonechan) {
if (%clonecount == $null) { goto none }
set %clcount 0
if (%stat == 1) { echo %clonechan $chr(160) 4CloneScan results for %clonechan } | else { msg %clonechan 4CloneScan results for %clonechan }
:start
inc %clcount
if ($gettok(%clonecount,%clcount,32) == $null) {
if (%stat == 1) { echo %clonechan $chr(160) 4CloneScan complete } | else { msg %clonechan 4CloneScan complete }
goto done
}
set %domain *!*@ $+ $gettok( %clonecount,%clcount,32)
unset %clonemsg
set %clcount2 0
:start2
inc %clcount2
if (%clcount2 > $ial(%domain,0)) { goto done2 }
set %clonemsg %clonemsg $ial(%domain,%clcount2).nick &
goto start2
:done2
set %position $len(%clonemsg) - 2
set %clonemsg $left(%position,%clonemsg)
set %clonemsg 36 $+ %clonemsg are clones 10--> %domain <--
if (%stat == 1) { echo %clonechan $chr(160) 4 %clonemsg } | else { msg %clonechan %clonemsg }
unset %clonemsg
goto start
:none
if (%stat == 1) { echo %clonechan $chr(160) 4 $+ %clonechan 10 NO CLONES FOUND } | else { msg %clonechan 4ClonesScan results for %clonechan 10 NO CLONES FOUND }
:done
unset %clcount %clcount2 %clonemsg %domain %clonecount %position %statadd %clonechan %stat
halt
}
if ($2 == %ircopchan) {
if (%ircopcount == $null) { goto none }
set %cpcount 0
if (%stat == 1) { echo %ircopchan $chr(160) 4IRCopScan results for %ircopchan } | else { msg %ircopchan 4IRCopScan results for %ircopchan }
:start
inc %cpcount
if (%cpcount > %ircopcount) {
if (%stat == 1) { echo %ircopchan $chr(160) 4IRCopScan complete } | else { msg %ircopchan 4IRCopScan complete }
goto end
}
if (%stat == 1) { echo %ircopchan $chr(160) 4 $+ %cop [ $+ [ %cpcount ] ] } | else { msg %ircopchan 10 $+ %cop [ $+ [ %cpcount ] ] }
goto start
:none
if (%stat == 1) { echo 4 %ircopchan $chr(160) 4IRCop Scan results for %ircopchan 10NO IRCOPS FOUND } | else { msg %ircopchan 4IRCopScan results for %ircopchan 10NO IRCOPS FOUND }
:end
unset %cpcount %stat %ircopcount %ircopchan %cop* | halt
}
if (%ircop == 1) {
if (%ircjoin [ $+ [ $2 ] ] != $null) { zecho 4 $+ $2 $+ , who just joined channel %ircjoin [ $+ [ $2 ] ] 4- is an IRCop | unset %ircjoin [ $+ [ $2 ] ] }
halt
}
if (%ircopserver == 1) {
if (%ircops.nicks == $null) {
zecho 4Now listing IRCops on current Network
zecho 4IRCop Server Scan Complete. Results: 10NO IRCOPS FOUND
zecho 8,1[-14,1Thüñ4,1dêr 9,1§c®0,1ïþt8,1 v4.0-]
set %ircops.count.nicks done
unset %ircops.nicks ircops.count.nicks %ircopserver | halt
}
zecho 4Now listing IRCops on current Network
zecho 4IRCop Server Scan Complete. Total:10 %ircops.count.nicks
zecho 4Nicks:10 %ircops.nicks
zecho 8,1[-14,1Thüñ4,1dêr 9,1§c®0,1ïþt8,1 v4.0-]
set %ircop.count.nicks done
unset %ircops.nicks %ircops.count.nicks %ircopserver | halt
}
if (%ircopserver == 2) {
if (%ircops.nicks == $null) {
msg %ircops.chans 4Now Listing IRCops on current Network
msg %ircops.chans 4IRCop Server Scan Complete. Results: 10NO IRCOPS FOUND
msg %ircops.chans 8,1[-14,1Thüñ4,1dêr 9,1§c®0,1ïþt8,1 v4.0-]
set %ircops.count.nicks done
unset %ircops.nicks %ircops.count.nicks %ircopserver %ircops.chans | halt
}
msg %ircops.chans 4Now Listing IRCops on current Network
msg %ircops.chans 4IRCop Server Scan Complete. Total:10 %ircops.count.nicks
msg %ircops.chans 4Nicks:10 %ircops.nicks
msg %ircops.chans 8,1[-14,1Thüñ4,1dêr 9,1§c®0,1ïþt8,1 v4.0-]
set %ircops.count.nicks done
unset %ircops.nicks %ircops.count.nicks %ircopserver %ircops.chans | halt
}
}