Hallo zusammen
Wir haben einen Game-Server und leiden unter Hackern, nun möchte ich die Namen in der Log-Datei suchen um so die Ip des Users(Hackers) heraus zu finden um sie dann zu sperren.
Eine Kollegin hat dieses Pattern geschrieben
Code
(?s)SessionManager accepting new connection at ((?:[0-9]{1,3}\.){3}[0-9]{1,3}).*?Client joined \(([a-zA-Z0-9_.-]*?),
Funktioniert, wenn diese Zeilen mehr oder weniger unmittelbar auf einander folgen, wie bei diesem Beispiel Text.
Die Namen und Ip's wurden unkenntlich gemacht.
Code
20173 - SLOTS - Non-host, no private slots available, will try to use public slot
20174 - SLOTS - Non-host, no private slots available, will use public slot
20175 - SessionManager accepting new connection at 01.001.2.79:31521
20176 - SLOTS - Non-host, no private slots available, will try to use public slot
20177 - SLOTS - Non-host, no private slots available, will use public slot
20178 - SessionManager : before : using public slot for new connection with user: d45e5b107576183f (current public open slot: 5)
20179 - SessionManager : after : using public slot for new connection (current public open slot: 4)
20180 - Client joined (UserDESERT, 0xD45E5B107576183F, 192.168.1.2:0, PeerId: 27, Seq: 239, Data size : 4) - Session ID: 0xAD06D3F5A3006861
20181 - Game message: UserDESERT connected to the server.
Code
20439 - SLOTS - Non-host, no private slots available, will try to use public slot
20440 - SLOTS - Non-host, no private slots available, will use public slot
20441 - SessionManager accepting new connection at 01.225.001.15:9007
20442 - SLOTS - Non-host, no private slots available, will try to use public slot
20443 - SLOTS - Non-host, no private slots available, will use public slot
20444 - SessionManager : before : using public slot for new connection with user: 43939f39ea8e26ff (current public open slot: 3)
20445 - SessionManager : after : using public slot for new connection (current public open slot: 2)
20446 - Game message: User2015 (All): RPf
20447 - Client joined (UserQueen, 0x43939F39EA8E26FF, 192.168.178.11:0, PeerId: 22, Seq: 242, Data size : 4) - Session ID: 0xAD06D3F5A3006861
20448 - Game message: UserQueen connected to the server.
Code
24779 - SLOTS - Non-host, no private slots available, will try to use public slot
24780 - SLOTS - Non-host, no private slots available, will use public slot
24781 - SessionManager accepting new connection at 001.181.001.218:9002
24782 - SLOTS - Non-host, no private slots available, will try to use public slot
24783 - SLOTS - Non-host, no private slots available, will use public slot
24784 - SessionManager : before : using public slot for new connection with user: 4314f943759b7c6c (current public open slot: 3)
24785 - SessionManager : after : using public slot for new connection (current public open slot: 2)
24786 - TEAM APR:
24787 - User89
24788 - User10
24789 - User-5
24790 - User.M
24791 - User4250
24792 - User457
24793 - Userl01
24794 - TEAM UFLL:
24795 - User2015
24796 - User420
24797 - User232
24798 - User--
24799 - User357
24800 - User1
24801 - OTHERS:
24802 - Client joined (User.., 0x4314F943759B7C6C, 192.168.1.150:0, PeerId: 3, Seq: 274, Data size : 4) - Session ID: 0xAD06D3F5A3006861
24803 - Game message: User.. connected to the server.
Alles anzeigen
Aber sobald die Zeilen dann so ausehen
Code
SessionManager accepting new connection at 00.248.170.001:9002
6485 - SLOTS - Non-host, no private slots available, will try to use public slot
6486 - SLOTS - Non-host, no private slots available, will use public slot
6487 - SessionManager : before : using public slot for new connection with user: 7132c021c663f37a (current public open slot: 2)
6488 - SessionManager : after : using public slot for new connection (current public open slot: 1)
6489 - Game message: UserK killed User2015.
6490 - CNetworkActivityEvent::ConnectionInactivityRaised on client 18
6491 - Game message: User2012 killed UserK.
6492 - CNetworkActivityEvent::ConnectionInactivityRaised on client 8
6493 - Game message: User8227 killed UserM.
6494 - SLOTS - Non-host, no private slots available, will try to use public slot
6495 - SLOTS - Non-host, no private slots available, will use public slot
6496 - SessionManager accepting new connection at 007.104.001.149:9002
6497 - SLOTS - Non-host, no private slots available, will try to use public slot
6498 - SLOTS - Non-host, no private slots available, will use public slot
6499 - SessionManager : before : using public slot for new connection with user: ad505d4f252f81ec (current public open slot: 1)
6500 - SessionManager : after : using public slot for new connection (current public open slot: 0)
6501 - Client joined (UserMAD, 0xAD505D4F252F81EC,
Alles anzeigen
gibt es Fehler.