-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdateConfig.php
More file actions
92 lines (76 loc) · 2.01 KB
/
updateConfig.php
File metadata and controls
92 lines (76 loc) · 2.01 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
$config = array("variable" => array(), "endpoint" => array());
$path = "api/data/config.json";
$usw_region = array(
'BR1' => 'usw2-red',
'LA1' => 'usw2-red',
'LA2' => 'usw2-red',
'NA1' => 'usw2-red',
'OC1' => 'usw2-red',
'RU' => 'euc1-red',
'TR1' => 'euc1-red',
'EUN1' => 'euc1-red',
'EUW1' => 'euc1-red',
'JP1' => 'apne1-red',
'KR' => 'apne1-red'
);
$ledge_region = array(
'BR1' => 'br-red',
'EUN1' => 'eune-red',
'EUW1' => 'euw-red',
'JP1' => 'jp-red',
'LA1' => 'las-red',
'LA2' => 'lan-red',
'NA1' => 'na-red',
'OC1' => 'oce-red',
'RU' => 'ru-blue',
'TR1' => 'tr-blue',
'KR' => 'kr-blue'
);
$store_region = array(
"BR1" => "br",
"EUN1" => "eun",
"EUW1" => "euw",
"JP1" => "jp",
"LA1" => "la1",
"LA2" => "la2",
"NA1" => "na",
"OC1" => "oc",
"RU" => "ru",
"TR1" => "tr",
"KR" => "kr"
);
$loot_region = array(
"BR1" => "lolriot.aws-usw2-prod.br1",
"EUN1" => "lolriot.euc1.eun1",
"EUW1" => "lolriot.ams1.euw1",
"JP1" => "lolriot.aws-apne1-prod.jp1",
"LA1" => "lolriot.aws-usw2-prod.la1",
"LA2" => "lolriot.aws-usw2-prod.la2",
"NA1" => "lolriot.aws-usw2-prod.na1",
"OC1" => "lolriot.aws-apse1-prod.oc1",
"RU1" => "lolriot.euc1.ru",
"TR1" => "lolriot.euc1.tr1"
);
$hydraKey = "";
$debugMode = false;
$returnMode = true;
$exploit = false;
$config['endpoint']['usw_region'] = $usw_region;
$config['endpoint']['ledge_region'] = $ledge_region;
$config['endpoint']['store_region'] = $store_region;
$config['endpoint']['loot_region'] = $loot_region;
$config['variable']['hydra_key'] = $hydraKey;
$config['variable']['debug_mode'] = $debugMode;
$config['variable']['return_mode'] = $returnMode;
$config['variable']['exploit'] = $exploit;
$configJson = json_encode($config, JSON_PRETTY_PRINT);
$fp = fopen($path, "w");
$fResult = fwrite($fp, $configJson);
fclose($fp);
if(!$fResult){
echo 'Fail write in '.$path.PHP_EOL;
}else{
echo 'Sucessfully write in '.$path.PHP_EOL;
}
?>