ice 0.3.0

A simple CTF tool store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{fs, path::Path};

// NOTE: Might be harder than it seems
pub fn read_binary(s: &str, query: &str) -> String {
    let contents = fs::read_to_string(Path::new(s)).expect("File reading error!");
    let refined = contents
        .lines()
        .filter(|line| line.contains(query))
        .collect::<Vec<&str>>();
    println!("{refined:?}");
    "noice".to_string()
}