Skip to content

Commit 9181746

Browse files
Major renaming
1 parent f481991 commit 9181746

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+444
-103
lines changed

.env.example

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Database settings for ezXSS
2-
dbHost="ezxssdb"
3-
dbUser=ezxss
1+
# Database settings for LotusXSS
2+
dbHost="lotusxssdb"
3+
dbUser=lotusxss
44
dbPassword=changeme
55
dbName=database
66
dbPort=3306
@@ -10,12 +10,12 @@ dockerHttpPort=80
1010
dockerHttpsPort=443
1111
useMailAlerts=true
1212

13-
# ezProxy settings
13+
# LotusProxy settings
1414
prHost=0.0.0.0
1515
prWebPort=30055
1616
prProxyPort=13000
17-
prCertFile=/home/ezxss/domains/example.com/ssl.cert
18-
prKeyFile=/home/ezxss/domains/example.com/ssl.key
17+
prCertFile=/home/lotusxss/domains/example.com/ssl.cert
18+
prKeyFile=/home/lotusxss/domains/example.com/ssl.key
1919
prUseLogin=0
20-
prUser=ezxss
21-
prPassword=ezxss
20+
prUser=lotusxss
21+
prPassword=lotusxss

.github/funding.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: ssl
1+
github: teststudent311

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.env
2-
ezxssdb/
2+
lotusxssdb/
33
.idea/
44
.vscode/
55
/assets/img/report-*
File renamed without changes.
File renamed without changes.

ezXSS4.sql renamed to LotusXSS4.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ INSERT INTO `settings` (`id`, `setting`, `value`) VALUES
101101
(3, 'dompart', '500'),
102102
(4, 'timezone', 'Europe/Amsterdam'),
103103
(5, 'customjs', ''),
104-
(7, 'notepad', 'Welcome to ezXSS 4!'),
104+
(7, 'notepad', 'Welcome to LotusXSS 4!'),
105105
(8, 'version', '4.1'),
106106
(9, 'killswitch', ''),
107107
(10, 'collect_uri', '1'),

app/config/app.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// Debug modus will show and report any kind of errors, do not enable this unless you are debugging something
44
define('debug', false);
55

6-
// Defines whenever httpmode is enabled, this allows ezXSS panel to be used without SSL
6+
// Defines whenever httpmode is enabled, this allows LotusXSS panel to be used without SSL
77
define('httpmode', false);
88

9-
// Defines whenever sign up is enabled, do not enable this unless you are serving a public ezXSS installation - this allows anyone to register!
9+
// Defines whenever sign up is enabled, do not enable this unless you are serving a public LotusXSS installation - this allows anyone to register!
1010
define('signupEnabled', false);
1111

12-
// Current ezXSS version. Do not edit this
12+
// Current LotusXSS version. Do not edit this
1313
define('version', '4.1');
1414

1515
// Defines the current host

app/controllers/Dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public function index()
5858
}
5959
$this->view->renderData('notepad', $this->model('Setting')->get('notepad'));
6060

61-
// Check ezXSS updates
61+
// Check LotusXSS updates
6262
try {
6363
$ch = curl_init('https://status.ezxss.com/?v=' . version);
6464
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
6565
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
66-
curl_setopt($ch, CURLOPT_HTTPHEADER, ['User-Agent: ezXSS']);
66+
curl_setopt($ch, CURLOPT_HTTPHEADER, ['User-Agent: LotusXSS']);
6767
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
6868
$release = json_decode(curl_exec($ch), true);
6969
} catch (Exception $e) {

app/controllers/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function index()
4141
}
4242

4343
// Create the database tables and rows
44-
$sql = file_get_contents(__DIR__ . '/../../ezXSS4.sql');
44+
$sql = file_get_contents(__DIR__ . '/../../LotusXSS4.sql');
4545
$database = Database::openConnection();
4646
$database->exec($sql);
4747
$database->exec('ALTER DATABASE `'.DB_NAME.'` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;');

app/controllers/Payload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function edit($id)
5252
// Check if posted data is editing persistent mode
5353
if ($this->getPostValue('persistent') !== null) {
5454
if($this->model('Setting')->get('persistent') !== '1' && $this->getPostValue('persistent-mode') !== null) {
55-
throw new Exception('Persistent mode is globally disabled by the ezXSS admin');
55+
throw new Exception('Persistent mode is globally disabled by the LotusXSS admin');
5656
}
5757
$this->model('Payload')->setSingleValue($id, "persistent", ($this->getPostValue('persistent-mode') !== null) ? 1 : 0);
5858
}

app/controllers/Payloads.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ public function callback()
9696

9797
// Check method
9898
if (!$this->isPOST()) {
99-
return 'github.com/ssl/ezXSS';
99+
return 'github.com/teststudent311/LotusXSS';
100100
}
101101

102102
// Decode the JSON data
103103
$data = json_decode(file_get_contents('php://input'), false);
104104

105105
if(empty($data) || !is_object($data)) {
106-
return 'github.com/ssl/ezXSS';
106+
return 'github.com/teststudent311/LotusXSS';
107107
}
108108

109109
// Set a default value for the screenshot
@@ -131,12 +131,12 @@ public function callback()
131131
// Check for blacklisted domains
132132
foreach ($blacklistDomains as $blockedDomain) {
133133
if ($data->origin == $blockedDomain) {
134-
return 'github.com/ssl/ezXSS';
134+
return 'github.com/teststudent311/LotusXSS';
135135
}
136136
if (strpos($blockedDomain, '*') !== false) {
137137
$blockedDomain = str_replace('*', '(.*)', $blockedDomain);
138138
if (preg_match('/^' . $blockedDomain . '$/', $data->origin)) {
139-
return 'github.com/ssl/ezXSS';
139+
return 'github.com/teststudent311/LotusXSS';
140140
}
141141
}
142142
}
@@ -156,7 +156,7 @@ public function callback()
156156
}
157157
}
158158
if (!$foundWhitelist) {
159-
return 'github.com/ssl/ezXSS';
159+
return 'github.com/teststudent311/LotusXSS';
160160
}
161161
}
162162

@@ -173,7 +173,7 @@ public function callback()
173173
if ($searchId !== false) {
174174
if ($this->model('Setting')->get('filter-save') == 0 && $this->model('Setting')->get('filter-alert') == 0) {
175175
echo 'no: ';
176-
return 'github.com/ssl/ezXSS';
176+
return 'github.com/teststudent311/LotusXSS';
177177
} else {
178178
echo 'yes: ' . $searchId;
179179
$doubleReport = $searchId;
@@ -243,7 +243,7 @@ public function callback()
243243
}
244244
}
245245

246-
return 'github.com/ssl/ezXSS';
246+
return 'github.com/teststudent311/LotusXSS';
247247
}
248248

249249
/**
@@ -456,12 +456,12 @@ private function mailAlert($data, $email)
456456
$alertTemplate = $this->view->getAlert('mail.html');
457457
$alertTemplate = $this->view->renderAlertData($alertTemplate, $escapedData);
458458

459-
$headers[] = 'From: ezXSS';
459+
$headers[] = 'From: LotusXSS';
460460
$headers[] = 'MIME-Version: 1.0';
461461
$headers[] = 'Content-type: text/html; charset=iso-8859-1';
462462
mail(
463463
$email,
464-
'[ezXSS] XSS on ' . $data->uri,
464+
'[LotusXSS] XSS on ' . $data->uri,
465465
$alertTemplate,
466466
implode("\r\n", $headers)
467467
);

app/controllers/Persistent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function session($clientId)
112112

113113
$passOrigin = $this->getPostValue('passorigin') !== null ? '1' : '0';
114114
$this->model('Console')->add($clientId, $origin, "ez_soc('$ipport', $passOrigin)");
115-
throw new Exception("Proxy started on $ipport is accessible on http://$clientId.ezxss" . ($passOrigin === '1' ? " and http://$origin" : ''));
115+
throw new Exception("Proxy started on $ipport is accessible on http://$clientId.lotusxss" . ($passOrigin === '1' ? " and http://$origin" : ''));
116116
}
117117

118118
} catch (Exception $e) {

app/controllers/Settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ private function alertSettings()
250250
}
251251

252252
/**
253-
* Kills the ezXSS platform
253+
* Kills the LotusXSS platform
254254
*
255255
* @param string $password
256256
* @return string
257257
*/
258258
private function killSwitch($password)
259259
{
260260
$this->model('Setting')->set("killswitch", $password);
261-
$this->view->renderErrorPage("ezXSS is now killed with password $password");
261+
$this->view->renderErrorPage("LotusXSS is now killed with password $password");
262262
}
263263

264264
/**

app/controllers/Update.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function index()
1515
// Make sure the platform is not already up-to-date
1616
$version = $this->model('Setting')->get('version');
1717
if ($version === version) {
18-
throw new Exception('ezXSS is already up-to-date');
18+
throw new Exception('LotusXSS is already up-to-date');
1919
}
2020

2121
if ($this->isPOST()) {
@@ -28,15 +28,15 @@ public function index()
2828
if(version !== '4.0') {
2929
throw new Exception('Please first update to 4.0 before migrating 3.x to 4.x');
3030
}
31-
$this->ezXSS3migrate();
31+
$this->LotusXSS3migrate();
3232
} else {
3333
throw new Exception('Please first update to 3.10 before migrating to 4.x');
3434
}
3535
}
3636

3737
if ($version == '4.0' && version === '4.1') {
3838
// Update the database tables and rows
39-
$sql = file_get_contents(__DIR__ . '/../../ezXSS4.1.sql');
39+
$sql = file_get_contents(__DIR__ . '/../../LotusXSS4.1.sql');
4040
$database = Database::openConnection();
4141
$database->exec($sql);
4242

@@ -56,18 +56,18 @@ public function index()
5656
}
5757

5858
/**
59-
* Migrate ezXSS 3 database to ezXSS 4
59+
* Migrate LotusXSS 3 database to LotusXSS 4
6060
*
6161
* @return void
6262
*/
63-
private function ezXSS3migrate()
63+
private function LotusXSS3migrate()
6464
{
6565
// Store old data
6666
$password = $this->model('Setting')->get('password');
6767
$notepad = $this->model('Setting')->get('notepad');
6868

6969
// Update the database tables and rows
70-
$sql = file_get_contents(__DIR__ . '/../../ezXSS3migrate.sql');
70+
$sql = file_get_contents(__DIR__ . '/../../LotusXSS3migrate.sql');
7171
$database = Database::openConnection();
7272
$database->exec($sql);
7373
$database->exec('ALTER DATABASE `' . DB_NAME . '` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;');
@@ -81,7 +81,7 @@ private function ezXSS3migrate()
8181
$this->model('Payload')->add($user['id'], host);
8282

8383
// Add note
84-
$this->model('Setting')->set('notepad', "Great! U have updated to ezXSS 4!\n\nA lot of things have changed, and some settings like your alerts and payloads needs to be re-done in other to make everything work correct again.\n\nPlease visit the Github wiki for help on github.com/ssl/ezXSS/wiki\n\n" . $notepad);
84+
$this->model('Setting')->set('notepad', "Great! U have updated to LotusXSS 4!\n\nA lot of things have changed, and some settings like your alerts and payloads needs to be re-done in other to make everything work correct again.\n\nPlease visit the Github wiki for help on github.com/ssl/ezXSS/wiki\n\n" . $notepad);
8585

8686
// Update all oldskool 'collected pages' and NULL payloads
8787
$reports = $this->model('Report')->getAllInvalid();

app/models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function create($username, $password, $rank)
254254
throw new Exception("Password not strong enough");
255255
}
256256

257-
$database->prepare('INSERT INTO `users` (`username`, `password`, `rank`, `secret`, `notepad`) VALUES (:username, :password, :rank, "", "Welcome to ezXSS");');
257+
$database->prepare('INSERT INTO `users` (`username`, `password`, `rank`, `secret`, `notepad`) VALUES (:username, :password, :rank, "", "Welcome to LotusXSS");');
258258
$database->bindValue(':username', $username);
259259
$database->bindValue(':password', password_hash($password, PASSWORD_BCRYPT, ['cost' => 14]));
260260
$database->bindValue(':rank', $rank);

app/views/account/delete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section id="content">
22
<center>
3-
<h1>ezXSS</h1>
3+
<h1>LotusXSS</h1>
44
</center>
55
<div class="login">
66
<form class="form" method="post">

app/views/account/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h3 class="m-b-xs">Account</h3>
151151
<label class="control-label" for="telegram_bottoken">Bot Token</label>
152152
<div class="input-group">
153153
<input class="form-control" name="telegram_bottoken" id="telegram_bottoken"
154-
placeholder="1234567890:AAbcd1234qZylg5bEzXsSjCGqro_Vb8XcM" type="text"
154+
placeholder="1234567890:AAbcd1234qZylg5bLoTusXsSjCGqro_Vb8XcM" type="text"
155155
value="{%data telegramToken}">
156156
<span class="input-group-addon"><a id="openGetChatId">Get chatID</a></span>
157157
</div>
@@ -205,7 +205,7 @@ <h3 class="m-b-xs">Account</h3>
205205

206206
<div id="method-disabled" class="method-content">
207207

208-
<p>This alerting option is currently not enabled, contact your ezXSS administrator.
208+
<p>This alerting option is currently not enabled, contact your LotusXSS administrator.
209209
</p>
210210

211211
</div>
@@ -229,7 +229,7 @@ <h3 class="m-b-xs">Twofactor QR code</h3>
229229
</div>
230230
<div class="modal-body">
231231
<img
232-
src="https://chart.googleapis.com/chart?chs=400x400&chld=M|0&cht=qr&chl=otpauth://totp/ezXSS:ezXSS%3Fsecret%3D{%data secret}%26issuer%3DezXSS">
232+
src="https://chart.googleapis.com/chart?chs=400x400&chld=M|0&cht=qr&chl=otpauth://totp/LotusXSS:LotusXSS%3Fsecret%3D{%data secret}%26issuer%3DLotusXSS">
233233
</div>
234234
<div class="modal-footer">
235235
<button class="btn" data-dismiss="modal" type="button">Close</button>

app/views/account/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section id="content">
22
<center>
3-
<h1>ezXSS</h1>
3+
<h1>LotusXSS</h1>
44
</center>
55
<div class="login">
66
<form class="form" id="login" method="post">

app/views/account/mfa.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section id="content">
22
<center>
3-
<h1>ezXSS</h1>
3+
<h1>LotusXSS</h1>
44
</center>
55
<div class="login">
66
<form class="form" id="login" method="post">

app/views/account/signup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section id="content">
22
<center>
3-
<h1>ezXSS</h1>
3+
<h1>LotusXSS</h1>
44
</center>
55
<div class="login">
66
{%if isEnabled}

app/views/alerts/discord.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"username": "ezXSS",
2+
"username": "LotusXSS",
33
"embeds": [
44
{
5-
"title": "[ezXSS] XSS Report #{{id}}",
5+
"title": "[LotusXSS] XSS Report #{{id}}",
66
"type": "rich",
77
"url": "https://{{domain}}/manage/reports/view/{{id}}",
88
"timestamp": "{{timestamp}}",
@@ -41,7 +41,7 @@
4141
"url": "{{screenshot}}"
4242
},
4343
"footer": {
44-
"text": "github.com/ssl/ezXSS"
44+
"text": "github.com/teststudent311/LotusXSS"
4545
}
4646
}
4747
]

app/views/alerts/mail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>ezXSS</title>
5+
<title>LotusXSS</title>
66
<style media="screen">
77
.mail {
88
background-color: #23284b;

app/views/dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="view-header">
1010
<div class="header-title">
1111
<h3 class="m-b-xs">Dashboard</h3>
12-
<small>The admin dashboard contains various statistics and tools to help you manage and monitor the ezXSS platform.</small>
12+
<small>The admin dashboard contains various statistics and tools to help you manage and monitor the LotusXSS platform.</small>
1313
</div>
1414
</div>
1515
<hr>

app/views/payload/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3 class="m-b-xs">Payload</h3>
1818

1919
<div class="row">
2020
<div class="col-lg-12">
21-
<div class="alert" role="alert">You don't have any payloads yet. Ask your ezXSS administrator for
21+
<div class="alert" role="alert">You don't have any payloads yet. Ask your LotusXSS administrator for
2222
your first payload.</div>
2323
</div>
2424
</div>

app/views/payloads/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// Any .js file added to the /app/views/payloads folder can be used as payload by adding /NAMEOFJSFILE to payload domain.
33
// Example {{fileName}}.js can be accessed by https://{{domain}}/{{fileName}}
44

5-
alert('Custom script on ezXSS {{version}} with custom payload: {{fileName}}');
5+
alert('Custom script on LotusXSS {{version}} with custom payload: {{fileName}}');

app/views/payloads/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)