Banning script using MAC address
 

Banning script using MAC address

Started by Jaxx89, 27 May, 2011, 16:37:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jaxx89

Hi everyone.
I require a script where I can ban users permanently using their MAC address. This option is there in ynHUb but that is not why I am asking for this script.
There are users with dynamic IPs who constantly keep advertising in my hub no matter how many times I ban them.

I cant ban their IP range because then other users in that range cant login.

Please can someone make a script for banning users using their MAC address?

Thank you in advance.


bastya_elvtars

The ability to change MAC addresses and the fact that they do not resolve over routers (or at least they are hard to resolve in that case) makes this an unreliable filtering method. Moreover, PX operates on a different layer.
I suggest using an anti-advertise script instead.
Everything could have been anything else and it would have just as much meaning.

Psycho_Chihuahua

Indeed

As Bastya has already mentioned MAC Spoofing is by far to easy to do so the best would be to use an anti advertising script and add the phrases they use to that scripts "blacklist". There are multiple single Scripts around here, and there is also DiXBoT which has anti advertising in it along with loads of other stuff if you need an AiO Script. I personally use DiXBoT in my hub so i can show a portion of the settings...

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	DiXBoT][64Bit Luaboard Hub Anti Andvertising [ ALL ] List:
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 	1) dixbot.com                   
 	2) microsoft.com                
 	3) live.com                     
 	4) google.com                   
 	5) facebook.com                 
 	6) youtube.com                  
 	7) ptokax.ch                    
	--------------------------------------------------------------------------------
 	1) http                          	 Action: Warn                     	 27 Hit(s).
 	2) .com                         	 Action: Kick                     	 23 Hit(s).
 	3) www.                         	 Action: Warn                     	 5 Hit(s).
 	4) .org                         	 Action: Kick                     	 1 Hit(s).
 	5) zapto.org                    	 Action: Kick                     	 0 Hit(s).
 	6) dchub.it                     	 Action: Kick                     	 0 Hit(s).
 	7) dyn.hu                       	 Action: Warn                     	 0 Hit(s).
 	8) dtdns.net                    	 Action: Kick                     	 0 Hit(s).
 	9) rd-hosting.eu               	 Action: Kick                     	 0 Hit(s).
 	10) redirectme.                  	 Action: Disconnect               	 0 Hit(s).
 	11) dyndns.                      	 Action: Kick                     	 0 Hit(s).
 	12) .hub.nu                     	 Action: Kick                     	 0 Hit(s).
 	13) rohub.eu                     	 Action: Kick                     	 0 Hit(s).
 	14) dnsalias.com                 	 Action: Kick                     	 0 Hit(s).
 	15) serveblog.                   	 Action: Kick                     	 0 Hit(s).
 	16) dchub.net                    	 Action: Kick                     	 0 Hit(s).
 	17) servegame.                   	 Action: Kick                     	 0 Hit(s).
 	18) servebeer.                   	 Action: Redirect                 	 0 Hit(s).
 	19) lir.dk                       	 Action: Kick                     	 0 Hit(s).
 	20) serveftp.                    	 Action: Kick                     	 0 Hit(s).
 	21) no-ip                        	 Action: Kick                     	 0 Hit(s).
 	22) .net                         	 Action: Kick                     	 0 Hit(s).
 	23) .ro                          	 Action: Kick                     	 0 Hit(s).
 	24) servecounterstrike.          	 Action: Ban                      	 0 Hit(s).
 	25) dchub://                      	 Action: Warn                     	 0 Hit(s).
 	26) mydns.hu                     	 Action: Kick                     	 0 Hit(s).
 	27) dyndns.hu                    	 Action: Kick                     	 0 Hit(s).
 	28) bounceme.net                 	 Action: Kick                     	 0 Hit(s).
 	29) myftp.org                    	 Action: Kick                     	 0 Hit(s).
 	30) dns2go.                      	 Action: Kick                     	 0 Hit(s).
 	31) test.com                     	 Action: Warn                     	 0 Hit(s).
 	32) sytes.net                    	 Action: Kick                     	 0 Hit(s).
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	Type !help to view available commands.
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


As you see there are different Actions which can be set (Warn, Kick, Disconnect, Redirect...) depending on your preferences. only drawback with DiXBoT is that it does not work with the latest development versions of ptokax so you would have to stick with the stable release version 0.4.1.2. Anyway, as i mentioned above there are also some other standalone ones floating around the board.
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Jaxx89

#3
thanks for the quick reply guys.
@Psycho_Chihuahua I'm using Leviathan so will DiXBot work properly?
Also can you please guide me which other anti advertising script is there which can directly ban a user?
BTW I'm using Tiny AntiAd 1.0

Thanks again for the help guys.

Psycho_Chihuahua

Mixing multiple AiO Bots is in general a bad idea, here it's better to use either one or the other. As for an Anti Advertising script, you could try this one

Alternatively you could give DiXBoT a try to see if you like it as it has many more things to offer... besides if i remember correctly leviathan development was ended a while ago
If you would like to checkout all DiXBot functions in a running Hub before deciding just let me know and i can help you out there as we have a couple testhubs running and letting you check it out shouldn't be a problem  ;)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

PPK

It will be nice if someone finally make script for MAC bans, simply to show users that is not working in most cases... now when PtokaX support get MAC  :P
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

Jaxx89

#6
sure I'd love to check out the testhubs running Dixbot.

And as far as the MAC spoofing goes I'm sure that user wont go so far for advertising.
So a script with MAC bans wud really be helpful.

Also as far as I remember Dixbot opens and closes command prompts every few minutes. Doesnt it? Or was that a problem with the way I had configured it.  :-\
Anyways I'll give Dixbot a try again.

But please I'd need your help as I do not quite understand scripting.

Thanks once again.

EDIT: @Psycho_Chihuahua Tried the AntiAd script u posted the link for, Its quite difficult
I found Lucifer 666 a bit easy but kinda buggy and clashes with Leviathan.

EDIT2: Trying Dixbot. Its nice. Many more options than Leviathan. Having trouble finding the Rules txt files for specific profiles. !rules doesnt work with this script like in Leviathan.
Also anti adv is not working for me somehow.
I had added these triggers To ban
[04:39:07] <[Guest]  Jax> pratapnagar
[04:39:11] <[Guest]  Jax> zapto
[04:39:15] <[Guest]  Jax> zapto.org

used with an alternate username but no effect

Sorry for posting my problem here

Psycho_Chihuahua

First off, which version of DiXBoT are you trying out? Is it 3030?
Secondly, there is an easier way of configuring DiXBoT than going through all the settings ^^ Use DiXBoT Manager, makes it all much easier --> http://www.ptokax.ch/dxbmgr_0.1.0.14.zip
just add your hub to the DiXBoT hub Tab and then goto the Config Tab and RightClick inside the Left Tab and select "Update All" this will load the current Settings from the hub you added and if if you use an admin account for this manager tool you can also change all settings this way, which is how most of us using dixbot do it ;)

Here are 2 DiXBoT Test Hubs: Feel free to drop by any time

d10.mine.nu                     My Hub
demo.dixbot.com:1209     Snooze's TestHub
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Jaxx89

Yes I downloaded the latest ver 2.1 build 3030
I somehow cant figure it out even despite using the Dixbot manager
Anti advertising still doesnt work
And Cannot find the rules per profile as in the text files where I mention my hub rules.

Looks like I might have to stick with Leviathan :(

Psycho_Chihuahua

#9
Well the settings are rather straight forward if you use the manager
Have a look at the pics i've added to this post, if you're still having problems just let me know and i'll see if i can help you out. Otherwise you can connect to my hub or snoozes and ask for help there (but sometimes you also need some patience there as we aren't always at our screens, but we will help as soon as we see help is needed) ;)
The Anti Advertising itself is working very well in all testhubs so it could be a slight misconfiguration on your side that its not working, but we can help you to get it going i'm sure of that
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Psycho_Chihuahua

You can also try the command
!module

which will show you all modules (active or inactive)
perhaps your Anti Advert Module is still inactive, if this is the case you can activate it by using
!module Antiadv True

which would activate it if not done already, otherwise it will just tell you that its active already ;)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Jaxx89

#11
Thanks a lot for being so helpful. I really appreciate it.

sorry for the late reply there was a small problem with my PC
I loaded the Dixbot script first and I can see the anti advertising module is working now. It picks up the words in the filter already there.
But there still seems to be a slight problem as it does not pick up custom words that I have added.

Also if possible can you please tell me how can I make the !rules command work

Snooze

hi

I suggest making a textfile named rules using DiXBoT Manager and just enter the rules one by one.

Take a look at below imgs.




That textfile will be shown when typing the cmd !rules in either PM or Main as private or public msg by your choice.
Let me know if you still have problems..

/Snooze

Jaxx89

Thanks for the reply snooze.
I have activated the default texts of ptokax and put a text file named rules as psycho told me...but I'll try this too....

BTW I wanna block PM's for reg and unreg users but somehow it isnt working
Chat Block in [ PM ] for Profile [ Reg ] has been set to [ TRUE ].
But Reg users are still able to PM each other.
And for unreg users they get this message "Username, You may not speak in private message for 5 minutes"
Is this a bug??

Snooze

Hi Jaxx89,

It looks to me like you have conflicting scripts running. Could you move DiXBoT to the top of the list of scripts and try again?

/Snooze

SMF spam blocked by CleanTalk