Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 15:01

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

Advertisement



Wtf was ist das für eine Datei ?

Discussion on Wtf was ist das für eine Datei ? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2014
Posts: 40
Received Thanks: 1
Wtf was ist das für eine Datei ?

Hay, wollte fragen was das für eine Datei ist und was für ein Sinn hat die und ob die auch wirklick Funktioniert. ?
PHP Code:
#!/usr/bin/perl

use strict;

my @assholes = ();

open (IN"/var/log/auth.log");
while (<
IN>) {
            if (
$_ =~ /Invalid user.*from ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/) {
                            
push(@assholes, $1);
            }
            if (
$_ =~ /Did not receive identification string from ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/) {
                            
push(@assholes, $1);
            }
}
close (IN);

@
assholes sort {lc($acmp lc($b)} @assholes;

my @allowedIPs = ();
open (IN"/var/db/allowed-ips");
while (<
IN>) {
            if (
$_ =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/) {
                            
push(@allowedIPs$_);
            }
}
close (IN);

chop(@allowedIPs);

my $tmp "";
foreach 
my $asshole (@assholes) {
            if (
$asshole eq $tmp) {
                            
$asshole "";
            } else {
                            if (
$asshole =~ /127\.0\.0\.1/) {
                                            
$asshole "";
                            }
                            if (
$asshole =~ /192\.168\.[0-9]+\.[0-9]+/) {
                                            
$asshole "";
                            }
                            foreach 
my $allowedIP (@allowedIPs) {
                                            if (
$asshole =~ /$allowedIP/) {
                                                            
$asshole "";
                                            }
                            }
                            
$tmp $asshole;
            }
}

@
assholes sort {lc($bcmp lc($a)} @assholes;

my $popCount 0;
foreach 
my $asshole (reverse @assholes) {
            if (
$asshole eq "") {
                            
$popCount++;
            }
}

for (
my $i 0$i $popCount$i++) {
            
pop (@assholes);

[DEV]MinusKind™ is offline  
Old 03/31/2014, 15:00   #2
 
elite*gold: 0
Join Date: Mar 2014
Posts: 22
Received Thanks: 1
Ist neh Funktion.
.Monkey is offline  
Old 03/31/2014, 15:03   #3

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
Is'ne Perl Firewall

^^ ********
IgorGlock is offline  
Old 03/31/2014, 15:04   #4
 
-Zhui-'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 895
Received Thanks: 167
Wo ist denn die?
-Zhui- is offline  
Old 03/31/2014, 15:05   #5
 
elite*gold: 0
Join Date: Mar 2014
Posts: 40
Received Thanks: 1
Ja und was bringt die ? wäre auch noch Hilfreich..
[DEV]MinusKind™ is offline  
Old 03/31/2014, 15:14   #6
 
.Cyous's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 2,575
Received Thanks: 916
Hey,

Mit diesem Script kannst du anscheind IP's erlauben und sperren.
Code:
my @allowedIPs = (); 
open (IN, "/var/db/allowed-ips"); 
while (<IN>) {
Code:
my $tmp = ""; 
foreach my $******* (@********) { 
            if ($******* eq $tmp) { 
                            $******* = "";
dieses $******* bestimmt wohl die Blacklist .

Gruß,
.Cyous
.Cyous is offline  
Thanks
1 User
Old 03/31/2014, 15:56   #7
 
TheRzR's Avatar
 
elite*gold: 4
Join Date: Apr 2009
Posts: 1,524
Received Thanks: 603
Es wird geschaut, wer sich mit falschen Passwort z.b. anmeldet. Sollte das vorkommen wird die IP gesperrt.
TheRzR is offline  
Old 03/31/2014, 15:59   #8
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
It's a script to ban bruteforcers. Better install fail2ban.
.Shōgun is offline  
Reply


Similar Threads Similar Threads
[B] 5 e*g [S] jmd der eine datei in eine sql db impotiert
08/12/2012 - elite*gold Trading - 2 Replies
(mit phpmyadmin)
[WIE?!?]Eine .exe beim erstellen hindern/Eine datei am ausführen hindern
06/11/2012 - Technical Support - 8 Replies
Hallo ich hab ein kleines problem und zwar ich habe entweder wirklich ein virus eingefangen oder sonstwas :D Also vor ca. 2-3 tagen wurde mein PC immer lauter und er wurde langsamer bei einem blick im Taskmgr sah man das ein Prozess meist der Plugin Container von Firefox oder auch Deamon tools über 50% CPU auslastung hatten! Doch ich benutzte sie derweile garnicht so stark somit schließte ich den Prozess doch die 50% auslastung gingen nicht weg nein sie springten zu einen anderen Prozess...
Wie kann man eine .lod datei in eine .sql umwandeln ?
11/18/2011 - Technical Support - 1 Replies
Jo erklärt sich ja :D
[Metin2 Pserver] Hab eine frage über eine datei oder so ^^
05/05/2011 - Metin2 Private Server - 2 Replies
Joa hallo erstmahl :D Ich wollte gerade mahl meine DB endern und dann stand da latin1 soht meine frage ist was ist latin1 ????ß hier mahl die DB enderung GERMANY latin1
Eine nette Datei vom kaliber .bat und eine Frage
07/01/2006 - Tutorials - 9 Replies
Moin, ich hab da mal eine schöne .bat datei erstellt die sich in den autostart setzt und den rechner herunterfährt.. aber wie schaffe ich es das es im systemstart ist? das wär doch viel interessanter die datei gibts hier:



All times are GMT +1. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2025, 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.

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