-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More Accurate Platform Definitions, plus some core code changes!
- Loading branch information
1 parent
7b403b7
commit 0b1ff50
Showing
4 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "NtHiM" | ||
version = "0.0.2" | ||
version = "0.0.3" | ||
authors = ["Binit Ghimire <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#![allow(non_snake_case, unused_must_use)] | ||
mod platforms; | ||
|
||
use std::{process::exit, string::String}; | ||
use clap::{Arg, App}; | ||
use ansi_term::{Colour}; | ||
|
||
use futures::{stream, StreamExt}; | ||
use reqwest::Client; | ||
use tokio; | ||
use futures::{StreamExt}; | ||
|
||
use std::fs::File; | ||
use std::io::{BufRead, BufReader}; | ||
|
||
fn main() -> std::io::Result<()> { | ||
let args = App::new("NtHiM") | ||
.version("0.0.2") | ||
.version("0.0.3") | ||
.author("Binit Ghimire <[email protected]>") | ||
.about("Now, the Host is Mine! - Super Fast Sub-domain Takeover Detection!") | ||
.args(&[ | ||
|
@@ -71,10 +71,10 @@ async fn takeover(hosts: Vec<String>, threads: usize) -> std::io::Result<()> { | |
Ok(text) => { | ||
platforms::_platforms(url, text); | ||
} | ||
Err(_) => println!("There was an error during execution."), | ||
Err(_) => println!("[{}]\tAn error occured for [{}].", Colour::Green.bold().paint("ERROR"), Colour::White.bold().paint(url)), | ||
} | ||
} | ||
Err(_) => println!("There was an error during execution."), | ||
Err(_) => println!("[{}]\tTry passing {} with HTTP/HTTPS!", Colour::Green.bold().paint("ERROR"), Colour::White.bold().paint(url)), | ||
} | ||
} | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters