Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > League of Legends > League of Legends Hacks, Bots, Cheats & Exploits
You last visited: Today at 10:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement
Bitcoin Dice Game


[Release] League of Legends Chat (On/Off) Switch

Discussion on [Release] League of Legends Chat (On/Off) Switch within the League of Legends Hacks, Bots, Cheats & Exploits forum part of the League of Legends category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2020
Posts: 18
Received Thanks: 13
Arrow [Release] League of Legends Chat (On/Off) Switch

League of Legends Chat (On/Off) Switch

Turn League of Legends chat off or on each time you use it


You need to have Perl or Python in your system to run the scripts.





Perl Version

PHP Code:

use strict;
use 
warnings;

my $block = $if `netstat -na | find "5223"` =~ /(\d+.\d+.\d+.\d+):5223/;

if (`
netsh advfirewall firewall show rule name="LOLCHAT"` !~ /TCP/) {
    
system('netsh advfirewall firewall add rule name="LOLCHAT" dir=out remoteip='.$block.' protocol=TCP action=block');    
} else {
    
system('netsh advfirewall firewall delete rule name="LOLCHAT"')

Python Version

PHP Code:
import re
import os
import subprocess

if 'TCP' in subprocess.getoutput('netsh advfirewall firewall show rule name="LOLCHAT"'):
    
os.system('netsh advfirewall firewall delete rule name="LOLCHAT"')
else:
    
netstat subprocess.getoutput('netstat -na | find "5223"')
    
regex re.compile('(\d+.\d+.\d+.\d+):5223')
    
result regex.search(netstat)
    
ip result.group(1)
    
os.system('netsh advfirewall firewall add rule name="LOLCHAT" dir=out remoteip='ip +' protocol=TCP action=block'



zamanf is offline  
Thanks
1 User
Old 06/30/2020, 09:11   #2
 
elite*gold: 0
Join Date: Jan 2012
Posts: 18
Received Thanks: 4
thanks


tunahano1997 is offline  
Old 10/18/2020, 23:04   #3
 
elite*gold: 0
Join Date: Dec 2013
Posts: 1
Received Thanks: 0
should I do it everygame or just 1 time?
xz5lfanoo is offline  
Reply


Similar Threads Similar Threads
Switch für 313€, Zelda Breath of the Wild (Switch/WiiU) für 51€
03/12/2017 - Consoles Trading - 0 Replies
Bei Amazon FR gibt es Breath of the Wild für 52€ (Switch/WiiU Version) http://viid.me/qmKMIg Falls ihr auf der Suche nach einer Switch seid, die gibt esb ei Amazon.ES (auf Lager ab 17.3.) für 313€. http://viid.me/qmK1zf
[Selling] 24 Port Switch - 3Com Switch 3300 24 Port
05/13/2013 - Trading - 4 Replies
Hallo zusammen, hier biete ich einen Switch der Firma 3 Com an. Model 3C16406 24 Port / SuperStack II Technisch Daten sind hier zu umfangreich Bitte aus dem Netz laden .



All times are GMT +2. The time now is 10:20.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2020 elitepvpers All Rights Reserved.