mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
17 lines
511 B
Rust
17 lines
511 B
Rust
|
|
//! Phase 16 — actix_web route, benign.
|
||
|
|
//!
|
||
|
|
//! Marker comment for shape detection: `use actix_web::HttpResponse;`
|
||
|
|
//! Echoes a fixed greeting; payload is dropped on the floor.
|
||
|
|
|
||
|
|
use std::process::Command;
|
||
|
|
|
||
|
|
pub fn handler(_payload: &str) -> String {
|
||
|
|
println!("__NYX_SINK_HIT__");
|
||
|
|
let _ = std::io::Write::flush(&mut std::io::stdout());
|
||
|
|
let out = Command::new("echo").arg("hello").output();
|
||
|
|
if let Ok(o) = out {
|
||
|
|
print!("{}", String::from_utf8_lossy(&o.stdout));
|
||
|
|
}
|
||
|
|
String::new()
|
||
|
|
}
|