09-05-2011, 03:53 AM
(This post was last modified: 09-05-2011, 03:57 AM by AceInfinity.)
That was one of my easiest scripts though lol, that one is simple, it gets more difficult when you are dealing with raw packets
There you go, here's an example straight from one of my script .ini files. Some chars won't show as the encoding for posts probably won't recognize some of the characters in my script.
Code:
[script]
n0=on 1:load: {
n1= echo -a 9,1Advanced Whois Script Loaded
n2=}
n3=
n4=raw 301:*: {
n5= echo -a 9,1·9,1Away9:0 $3-
n6= halt
n7=}
n8=raw 307:*: {
n9= echo -a 9,1·9,1Registred9:0 Yes
n10= halt
n11=}
n12=raw 310:*: {
n13= echo -a 9,1·9,1IRC helper9:0 Yes
n14= halt
n15=}
n16=raw 311:*: {
n17=
n18= echo -a 9,1-------------[ /whois $2 ]-------------
n19= echo -a 9,1·9,1Username9:0 $6-
n20= echo -a 9,1·9,1Vhost9:0 $3 $+ 9@0,1 $+ $4
n21= halt
n22=}
n23=raw 378:*: {
n24= echo -a 9,1·9,1Localhost9:0 $6
n25= echo -a 9,1·9,1IP9:0 $7
n26= halt
n27=}
n28=raw 379:*: {
n29= echo -a 9,1·9,1Usermodes9:0 $6-
n30= halt
n31=}
n32=raw 671:*: {
n33= echo -a 9,1·9,1Secure Connection9:0 Yes
n34= halt
n35=}
n36=raw 312:*: {
n37= echo -a 9,1·9,1Network9:0 $network
n38= echo -a 9,1·9,1Server9:0 $3
n39= echo -a 9,1·9,1Description9:0 $4-
n40= halt
n41=}
n42=
n43=raw 313:*: {
n44= echo -a 9,1·9,1Network rank9:0 $5-9
n45= halt
n46=}
n47=
n48=raw 319:*: {
n49= echo -a 9,1·9,1Channels9:11 $Replace($3-,~,0~11,&,0&0,@,0@11,%,0%11,+,0+11)
n50= halt
n51=}
n52=raw 317:*: {
n53= echo -a 9,1·9,1Signed On9:0 $asctime($4,dddd mm/dd/yyyy HH:nn:ss TT)
n54= echo -a 9,1·9,1Idle Time9:0 $duration($3)
n55= echo -a 9,1·9,1Total Online Time9:0 $duration($calc($ctime - $4))
n56= halt
n57=}
n58=raw 335:*: {
n59= echo -a 9,1·9,1Bot9:0 Yes
n60= halt
n61=}
n62=raw 318:*: {
n63= haltdef
n64= var %whois.Clones $ial($address($2,2),0)
n65= if (%whois.Clones > 1) {
n66= echo -a 9,1·9,1User9:0 $2 have $calc($ial($address($2,2),0) - 1) clones on $server
n67= var %iee $ial($address($2,2),0)
n68= while %iee {
n69= if ($gettok($ial($address($2,2),%iee),1,33) != $2) {
n70= echo -a 9,1·9,1Clones Detected9:0 $addtok($replace($ial($v1),!,$chr(40)),$chr(32),41)
n71= }
n72= dec %iee
n73= }
n74= }
n75=}
There you go, here's an example straight from one of my script .ini files. Some chars won't show as the encoding for posts probably won't recognize some of the characters in my script.