pyBEscanner

I get to wrapping up the kicking code today...
Thx

Btw some people will be v.interested in that kick-all feature for server shutdowns...
i.e warn users of reboot, lock server, kick-all users, give server time to finish db commits writes, then reboot
Nice work....
 
ok, if more people need it maybe y must make a branch to accomplish the restart proccess, but first i will see if there is really more people interested, maybe open a new topic, what do you think?
 
Ok pyBEscanner finally has kick player support :)
All thx to zedar :)

Also note Spam filters also have kick support instead of BAN use KICK
 
Latest featured added is support to define multiple features...
For example default settings in servers-example.ini is

Code:
Filters = dayz-default, dayz-weapons

This way if u use custom weapons / code on your server u can make up a seperate filter
i.e
Code:
Filters = dayz-default, dayz-custom-weapons

This way u can update the filters without having to worrying about comparing changes.

------------
------------

Also as bonus we can split the gcam filters / different maps (i.e that run custom code) into seperate folders aswell.
 
@oppahansi, launch the program in command console cmd.exe
Its really a console app, that way u will see any error msgs it outputs

i.e
If u haven't setup your conf/servers.ini file
 
@oppahansi, launch the program in command console cmd.exe
Its really a console app, that way u will see any error msgs it outputs

i.e
If u haven't setup your conf/servers.ini file

tried to run it from a bat file but the console is just closing after showing up. -.- python32 installed - activepython on windows server 2008
 
It only need python 2.7 as requirement, besides that its the conf file u need to setup..

So just launch it from a the console window cmd.exe
That way the window will stay open so u can see the error
 
something is wrong, sry to ask you again ^^

what i did:

downloaded the zip file from github.
extraxted it to the arma 2 operation arrowhead folder.
renamed it to pyBEscanner.
renamed servers-example.ini to servers.ini
edited servers.ini
edited filter - removed a few weapons, which are legit on my server
filter folders in filter/ that i want to use dayz-default, dayz-chernarus, dayz-gcam
edited servers.ini: Filters = dayz-default, dayz-chernarus, dayz-gcam
edited servers.ini:

Code:
[Server 1]
ServerName = Roleplay Server
ServerIP = 127.0.0.1
ServerPort = 2302
RconPassword =
BattlEye Directory = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\1\BattlEye
Server Console Log = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\1\server_1.log
Server RPT Log = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\1\arma2oaserver_1.RPT
# U can override the default scanning options per server if needed i.e
Scan Setpos = on
Scan Setvariable = on
 
[Server 2]
ServerName = Mass Chernarus
ServerIP = 127.0.0.1
ServerPort = 2322
RconPassword =
BattlEye Directory = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\3\BattlEye
Server Console Log = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\3\server_3.log
Server RPT Log = D:\Server\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@dayzcc_config\3\arma2oaserver_3.RPT
Scan Setpos = on
Scan Setvariable = on

and now it is showing me "wrong working directory line 39 in pyBEscanner.py"
 
U need to cd into the directory where pyBEscanner is, before u launch it.

i.e

cd c:\whereever\u\put\pyBEscanner
pyBEscanner.py
 
erroe.JPG

same error in cmd and with the bat file i created. just moved pyBEscanner to c:\server\ - but the paths to the dayz server are ok, or is it not liking " " spaces in the foldernames?
 
I never said to move a file, i asked u to change directory before launching the program...
That and u didn't launch the program from console despite me asking..

----------------
----------------

Anyway your problem is only python 2.7 supported...
edit:- Thats why u see a syntax error for print statement, it got changed up in python 3

U either have python 3 or another fork of python installed
Python 3+ will not work, as it back compatable (they changed up apis)
Other python forks may or may not work, (only using standard librarys atm)
 
today someone could spawn a medibox with every item from the game, how can i add this box to the ban list? any ideas?

basically it could be named everything right? so i have to find this name?
 
@oppahansi
pyBEscanner only works if hackers aren't using a battleye bypass tool.

If u want u can look @ <battleye folder>/logs/<date>/*unknown.txt files
If u noticed something there i.e like a new script hack, u can add it to your filters to ban or kick for

-----------------
-----------------

@Everyone else
Important update today, if u are using pyBEscanner u should update to the latest version on github..

Basicly when i rewrote the code for handling multiple filter sets, i accidental changed the file extension for spam detection from .spam-rules -> .spamlist
 
can you explain how or in which format adding things from unknown logs to the banlist? i know how to add weapons and ammunition and skins, but i dont know how to extract the information from the unknown logs, would you maybe post an example?

thx!!
 
Getting the following errors time by time with the result pybe stopping to scan:

Code:
addbackpackcargo (standard)
addmagazinecargo (strict)
addweaponcargo (off)
attachto (off)
createvehicle (strict)
deletevehicle (off)
mpeventhandler (off)
publicvariable (off)
remotecontrol (off)
remoteexec (strict)
selectplayer (off)
scripts (standard+kick)
Traceback (most recent call last):
  File "D:\..dnl\..git\pyBEscanner\pyBEscanner.py", line 253, in <module>
    pyBE.start()
  File "D:\..dnl\..git\pyBEscanner\pyBEscanner.py", line 216, in start
    server_scan.scan()
  File "D:\..dnl\..git\pyBEscanner\battleye_modules.py", line 215, in scan
    self.scan_battleye_logs(log)
  File "D:\..dnl\..git\pyBEscanner\battleye_modules.py", line 111, in scan_battl
eye_logs
    self.update_kicks(x, self.log_scanner.unknownlist, update=True)
  File "D:\..dnl\..git\pyBEscanner\battleye_modules.py", line 166, in update_kic
ks
    kick_message = self.kick_ban_msg(self.server_settings["Kick Message"], str(d
ata["name"][x]), str(self.server_settings["ServerName"]), logname, str(data["dat
e"][x]))
KeyError: 'Kick Message'

Any ideas how to fix it?
 
Forgot to load the kick message from the config file....
The latest commit should have it fixed now

edit:-
And 1 more fix commited,
Ended up kicking a server to quickly test it... Maybe they think they connection dropped for a sec :rolleyes:
 
Back
Top