Retribution V101 : Syndicate — File Browser
RetributionSyndicatev1.01 / RetributionSyndicatev1.01 / System / Syndicate / wgscan.mrc
wgscan.mrc — 7.78 KB — Download this file
;[----------------------------------------------------------------------]
;[ Name : Syndicate : Retribution V101 ]
;[ Support : DefCon Industries ]
;[ Author : Risc ]
;[ ]
;[ This Code, Content, is CopyRight 1999 : DefCon Industries ]
;[ No Copying, Ripping, or calling this Code your own ]
;[ ]
;[----------------------------------------------------------------------]
alias wg { dialog -m wg wg }
dialog wg {
title "«ÐêfCôn Iñdûstrîe§» : Wingate Scanner"
size -1 -1 338 240
text "--[Retribution (V101) : Syndicate]--" 15, 60 5 300 20
text "IP Address:", 1, 15 30 80 40
edit "" 2, 70 25 150 23
button "Scan", 3, 230 25 70 24, default
box "Found Wingates", 4, 30 55 116 133, autohs
button "Ok", 5, 34 223 20 30, ok
button "Cancel", 6, 62 415 20 30, cancel
list 7, 40 70 95 130
list 8, 200 70 95 130
box "Saved Wingates", 9, 190 55 116 133, autohs
button "-->", 10, 158 86 20 20
button "<--", 11, 158 140 20 20
box "" 12, -3 210 366 200, autohs
text "" 13, 11 223 336 200
button "options" 14, 144 192 50 20
button "clear" 16, 60 192 50 20
button "clear" 17, 230 192 50 20
box "" 18, 55 182 59 34
box "" 19, 225 182 59 34
button "del" 20, 153 112 30 20
button "^" 21, 310 61 20 20
button "^" 22, 6 61 20 20
}
alias wgrem {
if ( $1 == -f ) {
write -c $mircdirwgscan.txt
did -r wg 7
}
if ( $1 == -s ) {
write -c $mircdirwgsave.txt
did -r wg 8
}
}
on 1:dialog:wg:*:*:{
if ( $devent == init ) {
if ( %cl.fw1 == $true ) { did -ra wg 2 %wg.e }
if ( $exists($mircdirwgsave.txt) == $true ) { wgfnd }
}
if ( $devent == sclick ) {
if ( $did == 6 ) { unset %d8.* | unset %d7.* | unset %res.* | halt }
if ( $did == 3 ) {
if ( $did(2) == $null ) { did -ra $dname 13 Error: Enter IP | did -ra $dname 3 Scan | halt }
if ( $did(2) isletter ) { dns $did(2) | set %did2 on | did -ra $dname 3 Resolving IP | halt }
if ( $gettok($did(2),4,46) == $null ) { did -ra $dname 13 Error: Invalid IP ( $+ $did(2) $+ ) | did -ra $dname 3 Scan | halt }
if ( %wg.s == $null ) { set %wg.s off }
if ( $did(wg,3) == Scanning... ) {
did -ra $dname 3 Stopped
.timerqwer 1 3 did -ra $dname 3 Scan
set %wg.scanon off
sockclose qwerty*
set %wg.s off
.timerqwerty* off
.timerqer off
did -ra $dname 13 Halted...
.timerqtw 1 3 did -r $dname 13
halt
}
if ( $did(wg,3) == Scan ) {
deldid
set %ws.i 0
did -ra $dname 3 Scanning...
did -r $dname 7
did -ra $dname 13 Opening Port ( $+ $deltok($did(2),4,46) $+ . $+ %wg.i $+ :1080)
set %wg.e $did(2)
wgscan %wg.e
set %wg.s on
halt
}
}
if ( $did == 10 ) {
if ( $did(7,$did(7).sel) == $null ) { halt }
if ( $did(7,$did(7).sel) != $null ) {
write $mircdirwgsave.txt $did(7,$did(7).sel)
did -a wg 8 $did(7,$did(7).sel)
}
}
if ( $did == 11 ) {
if ($did(8,$did(8).sel) == $null) { halt }
if ($did(8,$did(8).sel) != $null ) {
write -ds $+ $did(8,$did(8).sel) $mircdirwgsave.txt
write $mircdirwgscan.txt $did(8,$did(8).sel)
did -a wg 7 $did(8,$did(8).sel)
did -d $dname 8 $did(8).sel
}
}
if ( $did == 14 ) {
.timer -m 1 0 wgopt
}
if ( $did == 16 ) { wgrem -f }
if ( $did == 17 ) { wgrem -s }
}
if ( $did == 20 ) {
if ( $did(7),sel != $null ) { did -d $dname 7 $did(7).sel | write -ds $+ $did(7,$did(7).sel) $mircdirwgsave.txt }
if ( $did(8).sel != $null ) { did -d $dname 8 $did(8).sel | write -ds $+ $did(8,$did(8).sel) $mircdirwgsave.txt }
}
if ( $did == 21 ) {
did -ra wg 2 $did(8,$did(8).sel)
}
if ( $did == 22 ) {
did -ra wg 2 $did(7,$did(7).sel)
}
if ( $devent == dclick ) {
if ( $did == 7 ) {
set %did 7
set %did2 $did(7).sel
resolve 1$did(7).txt
}
if ( $did == 8 ) {
set %did1 8
set %did3 $did(8).sel
resolve 2 $did(8).txt
}
}
}
alias resolve {
if ( $1 == 1 ) { if ( %res.1 == on ) { did -ra wg 13 PLEASE WAIT FOR LAST DNS TO RESOLVE! | halt } | .timer 1 60 set %res.1 off | dns $did(7,$did(7).sel) | set %res.1 on }
if ( $1 == 2 ) { if ( %res.2 == on ) { did -ra wg 13 PLEASE WAIT FOR LAST DNS TO RESOLVE! | halt } | .timer 1 60 set %res.2 off | dns $did(8,$did(8).sel) | set %res.2 on }
}
alias wgopt {
set %cl.fw $?!="Do you want to erace the 'Found Wingates' section before a new scan?"
set %cl.fw1 $?!="Do you want the LAST IP scanned to be shown when opening Wingate v1.0?"
set %w.clip $?!-"Do you want the 'resolved' ip to copy to your clipboard?"
}
alias fshow {
:start
if ( %wg.fnd == $null ) || ( %wg.fnd == 0 ) { did -ra wg 13 Found " $+ 0 $+ " wingate(s) on %wg.scan $+ * | goto halt }
else did -ra wg 13 Found " $+ %wg.fnd $+ " wingate(s) on %wg.scan $+ *
:halt
}
alias deldid {
if ( %cl.fw == $true ) { did -r wg 7 | write -c $mircdirwgscan.txt }
}
alias wgshow {
set %ws.f $lines($mircdirwgscan.txt)
did -r wg 7
set %ws.i 0
:start
inc %ws.i
if ( %ws.i > %ws.f ) { goto halt }
did -a wg 7 $read -l $+ %ws.i $mircdirwgscan.txt
goto start
:halt
}
alias wgfnd {
set %wf.f $lines($mircdirwgsave.txt)
set %wf.i 0
did -r wg 8
:start
inc %wf.i
if ( %wf.i > %wf.f ) { goto halt }
did -a wg 8 $read -l $+ %wf.i $mircdirwgsave.txt
goto start
:halt
}
alias wgscan {
sockclose qwerty*
if ( %cl.fw == $false ) { wgshow }
set %wg.scanon on
set %wg.var % $ $+ + wg.fnd
set %wg.fnd 0
set %wg.scan $deltok($1,4,46) $+ .
set %wg.i 0
:start
inc %wg.i
if ( %wg.i == 256 ) { .timerqwertywe 1 60 .set %wg.yes no | .timerqer 1 60 /set %wg.s off | did -ra $dname 13 Scanning... Please Wait | .timerqwertyyyy 1 60 set %wg.scanon off | .timerqwertyew 1 60 fshow | .timerqwertyy 1 60 did -ra $dname 3 Scan | .timerqwerty 1 60 /sockclose qwerty* | halt }
did -ra wg 13 Opening Port ( $+ $deltok(%wg.scan,4,46) $+ . $+ %wg.i $+ :1080)
sockopen qwerty $+ %wg.i %wg.scan $+ %wg.i 1080
goto start
:halt
}
alias wgfix { return $read -w* $+ $1- $+ * $mircdirwgscan.txt }
on *:sockopen:qwerty*:{
if ($sockerr < 1) {
if ( $wgfix($sock($sockname).ip) == $null ) {
set %wg.yes no
inc %wg.fnd
Write $mircdirwgscan.txt $sock($sockname).ip
sockclose qwerty $+ $gettok($sock($sockname).ip,4,46)
wgshow
}
}
}
on *:sockclose:qwerty*:{ halt }
on 1:dns: {
if ( $raddress == $null ) { did -ra wg 13 Unable to resolve $iaddress | halt }
if ( %did2 == on ) { set %did2 off | did -ra wg 13 Resolved IP... now hit the scan button.. | did -ra wg 2 $iaddress | did -ra wg 3 Scan | halt }
if ( %res.1 == on ) { set %d $+ %did $+ . $+ %did2 $raddress | did -ra wg 13 Resolved $iaddress to $raddress | set %d7. $+ %did2 $+ .wg $iaddress | if ( %w.clip == $true ) clipboard $raddress | set %res.1 off }
if ( %res.2 == on ) { set %d $+ %did1 $+ . $+ %did3 $raddress | did -ra wg 13 Resolved $iaddress to $raddress | set %d8. $+ %did3 $+ .wg $iaddress | if ( %w.clip == $true ) clipboard $raddress | set %res.2 off }
}
on *:load:{
echo -a *** Gate Sniffer v2.0 by: [daffy] & |Keylar| Loaded...
if ($exists($mircdirgatesniff.txt) == $null) { write -c $mircdirsystem\gatesniff.txt }
}
on ^*:snotice:*:{
if ($read [ -w $+ [ $remove($mask($8,2),*!*@) ] ] $mircdirsystem\gatesniff.txt == $null) {
if (net.mx isin $remove($mask($8,2),*!*@)) { halt }
if (proxy isin $parms) || (wingate isin $parms) { echo 4 -a ***8 Wingate Sniff:4 $remove($mask($8,2),*!*@) | write -l $mircdirgatesniff.txt $remove($mask($8,2),*!*@) | halt }
}
halt
}