Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias -l scan.get {
- set %adrs $$input(Enter address or IP. Search uses *wildcards*. $&
- $crlf $+ Eg. 127 would match all IP's that have 127 in them. $&
- $crlf $+ NOTE : Input may consist of both letters and numbers.,ew,Enter Address For Scan&Kick!)
- }
- alias scan {
- if ($1 == +k) {
- if ($me isop $chan) {
- var %scan.cmd kick
- if ($2 != $null) var %adrs $2
- else scan.get
- }
- else { echo -a [Ranged IP Kick] You are not OP on $chan $+ . | return }
- }
- elseif ($1 == +k1) {
- if ($me isop $chan) {
- var %scan.cmd Ghost
- if ($2 != $null) var %adrs $2
- else scan.get
- }
- else { echo -a [Ranged IP Kick] You are not OP on $chan $+ . | return }
- }
- elseif ($1 == +kb) {
- if ($me isop $chan) {
- var %scan.cmd ban
- if ($2 != $null) var %adrs $2
- else scan.get
- }
- else { echo -a [Ranged IP Ban] You are not OP on $chan $+ . | return }
- }
- elseif ($1 == $null) scan.get
- else var %adrs $1
- var %i $nick($chan,0)
- while (%i) {
- if (%adrs isin $address($nick($chan,%i),0)) {
- if (!%scan.cmd) echo -a 4Scan Result for 3* $+ %adrs $+ * !!! $nick($chan,%i) $address($nick($chan,%i),1)
- elseif (%scan.cmd == kick) kick $chan $nick($chan,%i) IP matches with requested IP for kicking : 3* $+ %adrs $+ *
- elseif (%scan.cmd == Ghost) kick $chan $nick($chan,%i) I Ghosting on Channel Plz return Ty : 3* $+ %adrs $+ *
- elseif (%scan.cmd == ban) { var %xx = $nick($chan,%i) | access $chan add deny $address(%xx,3) | kick $chan %xx }
- inc %scan.found
- }
- dec %i
- }
- if (%scan.found == $null) echo -a 4Scan Result NOT found for 3* $+ %adrs $+ * !!!
- unset %scan.found
- unset %adrs
- }
- menu channel {
- [Ranged IP ScanKicker]
- .Scan on $chan:scan
- .ScanKick on $chan:scan +k
- .GhostKick on $chan:scan +k1
- .ScanKickBan on $chan:scan +kb
- .About:echo -a [Ranged IP ScanKicker] by ch1zra | echo -a [email protected] | echo -a http://uptheirons.co.sr/
- ========================================================================
- Im try to get this above to work in a dilaog , the conrols are below
- the (182) is the edit box i paste it in
- on *:dialog:nickjoin:sclick:184:{ /echo -a 52 Scan | /set %adrs $did(182).text | /scan.get %adrs | /scan %adrs }
- on *:dialog:nickjoin:sclick:186:{ /echo -a 52 Scan Kick }
- on *:dialog:nickjoin:sclick:188:{ /echo -a 52 Scan Kick Ban }
- on *:dialog:nickjoin:sclick:190:{ /echo -a 52 Scan Ghost Kick }
Advertisement
Add Comment
Please, Sign In to add comment