본문 바로가기

분류 전체보기293

[Kali] Kali 설치 - USB 8GB ==> 4GB 등 용량이 부족한 디스크로 하면 설치하다가 에러날 수 있다. 1) Kali 공식 홈페이지에서 iso 다운로드 ==> Installer Images. recommended 버전으로 다운로드 ==> https://www.kali.org/get-kali/#kali-installer-images Get Kali | Kali Linux Home of Kali Linux, an Advanced Penetration Testing Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments. www.kali.org 2) Rufus 프로그램 설치 및 부팅 USB 제작 ==>.. 2023. 2. 27.
[Rust] Scraping : Naver 메인 페이지 예제 (60일차) # Cargo.toml # ... 중략 [dependencies] reqwest = { version = "0.11.14", features = ["blocking"] } scraper = "0.14.0" // src\main.rs use reqwest::blocking::Client; use scraper::{Html, Selector}; fn main() -> Result { // Create an HTTP client let client = Client::new(); // Make a GET request to the homepage of www.naver.com let res = client.get("https://www.naver.com").send()?; // Extract the HTML r.. 2023. 2. 20.
[Rust] Scraping 예제 (59일차) // cargo add select use select::document::Document; use select::predicate::Name; fn main() { let html = "Hello, world!"; let document = Document::from(html); let h1 = document.find(Name("h1")).next().unwrap(); println!("{}", h1.text()); } // cargo add scraper use scraper::{Html, Selector}; fn main() { let html = "Hello, World!"; let document = Html::parse_document(html); let selector = Selector:.. 2023. 2. 19.
[Rust] Variable : Python 코드 비교 예제 (58일차) [Python] if __name__ == '__main__': x = 1; print(x); # bind x again shadows old one from above x = 'i'; print(x) # declare, init something = None; x = 5; print("x, something", x, something); something = x * 5; print("x, something", x, something); # mutability y = 0; y = y * 2 + x; print(y); BLAH = 42; # only const by convention y *= BLAH; [Rust] fn main() { let x = 1; println!("x: {}", x); // bi.. 2023. 2. 18.