Skip to content

Commit

Permalink
0.0.9
Browse files Browse the repository at this point in the history
- Fixed input bug
  • Loading branch information
yangr0 committed Jul 2, 2020
1 parent 8134d97 commit 46f18b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
- Working on Documentation

# v0.0.8
- Few touch ups
- Few touch ups

# 0.0.9
- Fixed input bug
1 change: 1 addition & 0 deletions default.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"><svg onload=alert(1);>
<script>prompt(1)</script>
<script>confirm(1)</script>
<script>
Expand Down
14 changes: 8 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Created by inc0gnit0, skript0r, p4yl0ad
// Latest update: 6/21/20
// Version: 0.0.4
// Latest update: 7/2/20
// Version: 0.0.9

// Dependencies
use chrono::Local; // 0.4.11
Expand Down Expand Up @@ -41,12 +41,13 @@ fn main() -> std::io::Result<()> {
print!("\x1b[94m[ 𝓡𝓥𝓾𝓵𝓷 ] -> ");
stdout().flush().unwrap();

if input()? == "1" {
let input = input()?;
if input == "1" {
match xss() {
Ok(run) => run,
Err(e) => println!("{}", e),
}
} else if input()? == "0" {
} else if input == "0" {
println!("Exiting...");
std::process::exit(1);
} else {
Expand Down Expand Up @@ -75,9 +76,10 @@ fn xss() -> std::io::Result<()> {
print!("\x1b[95mVerbose ouput? [y/n]: ");
stdout().flush().unwrap();
let mut verbose = 0;
if input()?.to_lowercase() == "y" {
let verbose_input = input()?;
if verbose_input.to_lowercase() == "y" {
verbose = 1;
} else if input()?.to_lowercase() == "n" {
} else if verbose_input.to_lowercase() == "n" {
verbose = 0;
}

Expand Down

0 comments on commit 46f18b2

Please sign in to comment.