Exploit databaseDownload repository ZIP
GH-0796e1841535bb9008bc5c3b1e3baf27
42bytelabs/konarr
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
42bytelabs/konarrRevision ead94a5a437a
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
server/src/routes/mod.rs
Rust · 356 bytesuse rocket::State;
use rocket::fs::NamedFile;
use crate::AppState;
#[get("/<_..>", rank = 20, format = "text/html")]
pub async fn index(state: &State<AppState>) -> NamedFile {
let path = state.config.frontend_path().unwrap().join("index.html");
NamedFile::open(path).await.unwrap()
}
pub fn routes() -> Vec<rocket::Route> {
routes![index]
}