Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.08.2007, 22:05   #1
mono
Архивный участник
 
Join Date: Dec 2006
Posts: 16
Default help adena dupe

cached
[.\WareHouse.cpp][1883]BuyItems error. [21786][57][1035][3]
mono is offline  
Old 22.08.2007, 06:18   #2
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Ban the account that the char_id 21786 is on
GMan is offline  
Old 22.08.2007, 06:39   #3
mono
Архивный участник
 
Join Date: Dec 2006
Posts: 16
Default

It's a dupe exploit regarding packet 1f
buy from npc item with non-existing item_type
Amped 2.0.
mono is offline  
Old 22.08.2007, 10:34   #4
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by mono View Post
It's a dupe exploit regarding packet 1f
buy from npc item with non-existing item_type
Amped 2.0.
Well... most of us already know it, but man! giving hints how to reproduce the xploit will never be a good idea... SO STOP PLEASE, at least until we can get a way to stop it.
FidoW is offline  
Old 22.08.2007, 16:46   #5
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Yup, it's a pretty nasty exploit. There are at least 2 other exploits along the same lines as this one. Those aren't very public (yet).

You can find how to do the exploit publically on MaxBastards/MaxCheaters already, so it's not that big a deal imho.

AmpeD will not block it, either.
mcrabben7 is offline  
Old 22.08.2007, 18:10   #6
adriahu
Архивный участник
 
Join Date: Oct 2006
Posts: 47
Default

I write simple perl script, which automaticaly kick and ban expoliting ppl :P

Note, writed on knee :P
Code:
use Data::Dumper;
use LWP::Simple;
use Win32::Console;

my $STDOUT = new Win32::Console(STD_OUTPUT_HANDLE);
$STDOUT->Title("L2 Adena Cheat Autoban");
$STDOUT->Cls($FG_LIGHTGRAY | $BG_BLACK);
$STDOUT->Attr($FG_LIGHTGRAY | $BG_BLACK);

$log_dir      = 'D:\SERVER\CacheD\log\err\\';
$watch_status = 'adena_cheat_status.txt';
$watch_banned = 'adena_cheat_banned.txt';
$watch_log    = 'adena_cheat_log.txt';

open STATUS, "$watch_status";
while (<STATUS>)
{
	chop($_);
	$f_status{$_}=1;
}
close STATUS;

my %banned;

open BAN, "$watch_banned";
while (<BAN>)
{
	chop($_);
	$banned{$_}=1;
}
close BAN;

open STATUS, ">>$watch_status";
open LOG,    ">>$watch_log";
open BAN,    ">>$watch_banned";

$| = 1, select $_ for select STATUS; #autoflush
$| = 1, select $_ for select LOG;    #autoflush
$| = 1, select $_ for select BAN;    #autoflush

my @log_files     = read_log_dir();
my $log_files_cnt = scalar @log_files;

$file_nr = 1;

while ($log_file = shift @log_files)
{
  if (defined $f_status{$log_file}) ## juz sprawdzany plik
  {
	$file_nr++;
	next;
  }
  open LOGFILE, $log_file;
  print STDERR "open $log_file\n";
  while (1) 
  {
    for ($cur_pos = tell LOGFILE; $_ = <LOGFILE>; $cur_pos = tell LOGFILE)
    {
      if ($_ =~ m{BuyItems error.\[(\d+)\]\[57\]})
	  {
		$char_id = $1;
		if (! defined ($banned{$char_id}))
		{
			my $ban_content = get("http://your.domain.com/yourbanandkickscript.php?char_id=".$char_id);
			print LOG localtime()." ban for $char_id [$ban_content]\n";
			print localtime()." ban for $char_id [$ban_content]\n";
			$banned{$char_id} = 1;
			print BAN "$char_id\n";
		}
		else
		{
			print "$char_id alredy banned\n";
		}
	  }
	}
    if ($file_nr < $log_files_cnt)
    {
      last;
    }
    else
    {
      my @log_files_tmp     = read_log_dir();
      my $log_files_cnt_tmp = scalar @log_files_tmp;
      if ($log_files_cnt_tmp > $log_files_cnt) #one file only :P
      {
        print STDERR "new file $log_files_tmp[$log_files_cnt]\n";
        push @log_files, $log_files_tmp[$log_files_cnt];
        $log_files_cnt = $log_files_cnt_tmp;
        last;
      }
    }
    sleep 1;
    seek LOGFILE, $cur_pos, 0;
  }
  close LOGFILE;
  print STATUS $log_file."\n";
  $file_nr++;
}

sub read_log_dir
{
  my @log_files;
  opendir LOGDIR, $log_dir;
  push (@log_files,  map($log_dir.$_, grep (m{^.*\.log$}, readdir LOGDIR)));
  closedir LOGDIR;
  return @log_files;
}
adriahu is offline  
Old 22.08.2007, 19:11   #7
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

small hint:
Code:
if ($_ =~ m{BuyItems error.\[(\d+)\]\[57\]})
->
Code:
if ($_ =~ m{BuyItems error.\[(\d+)\]})
it's more generic

another hints in attach

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
somepms.zip — 1702 байт
hr is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:40.