Exploit databaseDownload repository ZIP
GH-6af4b141195202e33b57be548d787527
7039teamxo/23754-2024-centerstage
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files83
7039teamxo/23754-2024-centerstageRevision ae963c80046c
- ↑..Parent directory
- images/
- obsolete/
- samples/
- FtcBlocksProjects_common.js
- FtcBlocks_common.js
- acceleration.js
- acceleration_sensor.js
- analog_input.js
- analog_output.js
- android_accelerometer.js
- android_gyroscope.js
- android_orientation.js
- android_sound_pool.js
- android_text_to_speech.js
- angular_velocity.js
- april_tag.js
- bno055imu.js
- bno055imu_parameters.js
- clipboard_util.js
- color.js
- color_range_sensor.js
- color_sensor.js
- compass_sensor.js
- cr_servo.js
- dbg_log.js
- dc_motor.js
- digital_channel.js
- distance_sensor.js
- elapsed_time2.js
- exposure_control.js
- file_manager.js
- focus_control.js
- gain_control.js
- gamepad.js
- gyro_sensor.js
- hardware_util.js
- husky_lens.js
- images.css
- imu.js
- imu_parameters.js
- ir_seeker_sensor.js
- led.js
- led_effect.js
- light_sensor.js
- linear_op_mode.js
- locale.js
- magnetic_flux.js
- matrix_f.js
- misc.js
- mr_i2c_compass_sensor.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/build/intermediates/assets/debug/mergeDebugAssets/blocks/sound_util.js
JavaScript · 1,642 bytes/**
* @license
* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Sound utilities.
* @author lizlooney@google.com (Liz Looney)
*/
function playSound(i) {
// files is declared in file_manager.js
if (i >= 0 && i < files.length) {
var soundName = files[i].name;
playSoundFile(soundName);
}
}
/**
* Plays the sound with the given name.
*/
function playSoundFile(soundName) {
if (window.location.protocol === 'http:' || window.location.protocol === 'https:') {
// html/js is in a browser, loaded as an http:// URL.
playSoundFileViaHttp(soundName);
}
}
function playSoundFileViaHttp(soundName) {
fetchFileMimeTypeViaHttp(soundName, function(mimeType, errorMessage) {
if (mimeType.startsWith("audio/")) {
fetchFileContent(soundName, function(base64Content, errorMessage) {
if (base64Content) {
var audio = new Audio('data:' + mimeType + ';base64,' + base64Content);
audio.play()
} else {
console.log(errorMessage);
}
});
} else {
console.log(errorMessage);
}
});
}