Exploit database

GH-0796e1841535bb9008bc5c3b1e3baf27

42bytelabs/konarr

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-44228

465 sources

Preferred 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 bytes
use 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]
}