⚒ Fix Self-XSS

This commit is contained in:
Ayham Al-Ali 2023-04-02 15:15:28 +03:00
parent f06ea9a23e
commit b609e58b50
No known key found for this signature in database
GPG Key ID: B35AE66F0593B092

View File

@ -115,7 +115,7 @@ const fixedEncodeURIComponent = function (str) {
}
const rsg = {
ip: query.get('ip') || localStorage.getItem('ip') || '10.10.10.10',
ip: (query.get('ip') || localStorage.getItem('ip') || '10.10.10.10').replace(/[^a-zA-Z0-9.\-]/g, ''),
port: query.get('port') || localStorage.getItem('port') || 9001,
payload: query.get('payload') || localStorage.getItem('payload') || 'windows/x64/meterpreter/reverse_tcp',
payload: query.get('type') || localStorage.getItem('type') || 'cmd-curl',