Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Tue Feb 20 09:42:45 on ttys000
- -bash: rbenv: command not found
- Chandlers-MacBook-Pro:~ chandlertodd$ ssh testvm@localhost -p 2222
- testvm@localhost's password:
- Welcome to Ubuntu 17.10 (GNU/Linux 4.13.0-25-generic x86_64)
- * Documentation: https://help.ubuntu.com
- * Management: https://landscape.canonical.com
- * Support: https://ubuntu.com/advantage
- 92 packages can be updated.
- 0 updates are security updates.
- *** System restart required ***
- Last login: Sun Feb 18 15:20:41 2018 from 10.0.2.2
- testvm@testvm:~$ curl https://sh.rustup.rs -sSf | sh
- The program 'curl' is currently not installed. You can install it by typing:
- sudo apt install curl
- testvm@testvm:~$ sudo apt install curl
- [sudo] password for testvm:
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- freeglut3 gir1.2-ibus-1.0 libdbus-1-dev libgles2-mesa libgles2-mesa-dev libglib2.0-dev
- libglib2.0-dev-bin libglu1-mesa libibus-1.0-5 libibus-1.0-dev libpcre16-3 libpcre3-dev
- libpcre32-3 libpcrecpp0v5 libpulse-dev libqgsttools-p1 libqt4-opengl libqt5concurrent5
- libqt5multimedia5 libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5quickparticles5
- libqt5quicktest5 libqt5script5 libqt5scripttools5 libqt5test5 libqt5xmlpatterns5
- libsndio-dev libudev-dev libxcursor-dev libxinerama-dev libxss-dev libxv-dev
- linux-headers-4.13.0-16 linux-headers-4.13.0-16-generic linux-image-4.13.0-16-generic
- linux-image-4.13.0-17-generic linux-image-extra-4.13.0-16-generic
- linux-image-extra-4.13.0-17-generic mesa-common-dev qt5-qmake qtbase5-dev-tools
- x11proto-scrnsaver-dev x11proto-video-dev x11proto-xinerama-dev
- Use 'sudo apt autoremove' to remove them.
- The following NEW packages will be installed:
- curl
- 0 upgraded, 1 newly installed, 0 to remove and 92 not upgraded.
- Need to get 152 kB of archives.
- After this operation, 375 kB of additional disk space will be used.
- Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 curl amd64 7.55.1-1ubuntu2.3 [152 kB]
- Fetched 152 kB in 0s (1,362 kB/s)
- Selecting previously unselected package curl.
- (Reading database ... 297018 files and directories currently installed.)
- Preparing to unpack .../curl_7.55.1-1ubuntu2.3_amd64.deb ...
- Unpacking curl (7.55.1-1ubuntu2.3) ...
- Setting up curl (7.55.1-1ubuntu2.3) ...
- Processing triggers for man-db (2.7.6.1-2) ...
- testvm@testvm:~$ curl https://sh.rustup.rs -sSf | sh
- info: downloading installer
- Welcome to Rust!
- This will download and install the official compiler for the Rust programming
- language, and its package manager, Cargo.
- It will add the cargo, rustc, rustup and other commands to Cargo's bin
- directory, located at:
- /home/testvm/.cargo/bin
- This path will then be added to your PATH environment variable by modifying the
- profile file located at:
- /home/testvm/.profile
- You can uninstall at any time with rustup self uninstall and these changes will
- be reverted.
- Current installation options:
- default host triple: x86_64-unknown-linux-gnu
- default toolchain: stable
- modify PATH variable: yes
- 1) Proceed with installation (default)
- 2) Customize installation
- 3) Cancel installation
- 1
- info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
- info: latest update on 2018-02-15, rust version 1.24.0 (4d90ac38c 2018-02-12)
- info: downloading component 'rustc'
- 47.8 MiB / 47.8 MiB (100 %) 4.3 MiB/s ETA: 0 s
- info: downloading component 'rust-std'
- 67.2 MiB / 67.2 MiB (100 %) 4.3 MiB/s ETA: 0 s
- info: downloading component 'cargo'
- info: downloading component 'rust-docs'
- 4.6 MiB / 4.6 MiB (100 %) 4.6 MiB/s ETA: 0 s
- info: installing component 'rustc'
- info: installing component 'rust-std'
- info: installing component 'cargo'
- info: installing component 'rust-docs'
- info: default toolchain set to 'stable'
- stable installed - rustc 1.24.0 (4d90ac38c 2018-02-12)
- Rust is installed now. Great!
- To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
- environment variable. Next time you log in this will be done automatically.
- To configure your current shell run source $HOME/.cargo/env
- testvm@testvm:~$ mkdir rustStuff
- testvm@testvm:~$ cd rustStuff/
- testvm@testvm:~/rustStuff$ ls
- testvm@testvm:~/rustStuff$ mkdir hello_world
- testvm@testvm:~/rustStuff$ cd hello_world/
- testvm@testvm:~/rustStuff/hello_world$ emacs main.rs
- testvm@testvm:~/rustStuff/hello_world$ rustc main.rs
- The program 'rustc' is currently not installed. You can install it by typing:
- sudo apt install rustc
- testvm@testvm:~/rustStuff/hello_world$ cd
- testvm@testvm:~$ ls
- a.out Desktop Downloads #*message*-20180130-124646# Pictures rustStuff Templates
- build Documents edb-debugger Music Public src Videos
- testvm@testvm:~$ sudo apt install rustc
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- freeglut3 gir1.2-ibus-1.0 libdbus-1-dev libgles2-mesa libgles2-mesa-dev libglib2.0-dev
- libglib2.0-dev-bin libglu1-mesa libibus-1.0-5 libibus-1.0-dev libpcre16-3 libpcre3-dev libpcre32-3
- libpcrecpp0v5 libpulse-dev libqgsttools-p1 libqt4-opengl libqt5concurrent5 libqt5multimedia5
- libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5quickparticles5 libqt5quicktest5
- libqt5script5 libqt5scripttools5 libqt5test5 libqt5xmlpatterns5 libsndio-dev libudev-dev
- libxcursor-dev libxinerama-dev libxss-dev libxv-dev linux-headers-4.13.0-16
- linux-headers-4.13.0-16-generic linux-image-4.13.0-16-generic linux-image-4.13.0-17-generic
- linux-image-extra-4.13.0-16-generic linux-image-extra-4.13.0-17-generic mesa-common-dev qt5-qmake
- qtbase5-dev-tools x11proto-scrnsaver-dev x11proto-video-dev x11proto-xinerama-dev
- Use 'sudo apt autoremove' to remove them.
- The following additional packages will be installed:
- libstd-rust-1.21 libstd-rust-dev rust-gdb
- Suggested packages:
- gdb-doc rust-doc rust-src
- The following NEW packages will be installed:
- libstd-rust-1.21 libstd-rust-dev rust-gdb rustc
- 0 upgraded, 4 newly installed, 0 to remove and 92 not upgraded.
- Need to get 58.9 MB of archives.
- After this operation, 153 MB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/universe amd64 libstd-rust-1.21 amd64 1.21.0+dfsg1+llvm-0ubuntu3~17.10.1 [37.3 MB]
- Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates/universe amd64 libstd-rust-dev amd64 1.21.0+dfsg1+llvm-0ubuntu3~17.10.1 [20.4 MB]
- Get:3 http://us.archive.ubuntu.com/ubuntu artful-updates/universe amd64 rust-gdb all 1.21.0+dfsg1+llvm-0ubuntu3~17.10.1 [21.9 kB]
- Get:4 http://us.archive.ubuntu.com/ubuntu artful-updates/universe amd64 rustc amd64 1.21.0+dfsg1+llvm-0ubuntu3~17.10.1 [1,199 kB]
- Fetched 58.9 MB in 12s (4,613 kB/s)
- Selecting previously unselected package libstd-rust-1.21:amd64.
- (Reading database ... 297025 files and directories currently installed.)
- Preparing to unpack .../libstd-rust-1.21_1.21.0+dfsg1+llvm-0ubuntu3~17.10.1_amd64.deb ...
- Unpacking libstd-rust-1.21:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Selecting previously unselected package libstd-rust-dev:amd64.
- Preparing to unpack .../libstd-rust-dev_1.21.0+dfsg1+llvm-0ubuntu3~17.10.1_amd64.deb ...
- Unpacking libstd-rust-dev:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Selecting previously unselected package rust-gdb.
- Preparing to unpack .../rust-gdb_1.21.0+dfsg1+llvm-0ubuntu3~17.10.1_all.deb ...
- Unpacking rust-gdb (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Selecting previously unselected package rustc.
- Preparing to unpack .../rustc_1.21.0+dfsg1+llvm-0ubuntu3~17.10.1_amd64.deb ...
- Unpacking rustc (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Setting up libstd-rust-1.21:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Setting up rust-gdb (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Setting up libstd-rust-dev:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Setting up rustc (1.21.0+dfsg1+llvm-0ubuntu3~17.10.1) ...
- Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
- Processing triggers for man-db (2.7.6.1-2) ...
- testvm@testvm:~$ cd Desktop
- testvm@testvm:~/Desktop$ ls
- a.out out #out# out~ part5.s project1 project2 testStuff #write.s# write.s write.s~
- testvm@testvm:~/Desktop$ cd ..
- testvm@testvm:~$ cd rustStuff/hello_world/
- testvm@testvm:~/rustStuff/hello_world$ rustc main.rs
- testvm@testvm:~/rustStuff/hello_world$ ls
- main main.rs
- testvm@testvm:~/rustStuff/hello_world$ ./main
- Hello, world!
- testvm@testvm:~/rustStuff/hello_world$ cargo --version
- The program 'cargo' is currently not installed. You can install it by typing:
- sudo apt install cargo
- testvm@testvm:~/rustStuff/hello_world$ cd
- testvm@testvm:~$ sudo apt install cargo
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- freeglut3 gir1.2-ibus-1.0 libdbus-1-dev libgles2-mesa libgles2-mesa-dev libglib2.0-dev
- libglib2.0-dev-bin libglu1-mesa libibus-1.0-5 libibus-1.0-dev libpcre16-3 libpcre3-dev libpcre32-3
- libpcrecpp0v5 libpulse-dev libqgsttools-p1 libqt4-opengl libqt5concurrent5 libqt5multimedia5
- libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5quickparticles5 libqt5quicktest5
- libqt5script5 libqt5scripttools5 libqt5test5 libqt5xmlpatterns5 libsndio-dev libudev-dev
- libxcursor-dev libxinerama-dev libxss-dev libxv-dev linux-headers-4.13.0-16
- linux-headers-4.13.0-16-generic linux-image-4.13.0-16-generic linux-image-4.13.0-17-generic
- linux-image-extra-4.13.0-16-generic linux-image-extra-4.13.0-17-generic mesa-common-dev qt5-qmake
- qtbase5-dev-tools x11proto-scrnsaver-dev x11proto-video-dev x11proto-xinerama-dev
- Use 'sudo apt autoremove' to remove them.
- The following additional packages will be installed:
- libhttp-parser2.1 libssh2-1
- Suggested packages:
- cargo-doc
- The following NEW packages will be installed:
- cargo libhttp-parser2.1 libssh2-1
- 0 upgraded, 3 newly installed, 0 to remove and 92 not upgraded.
- Need to get 2,224 kB of archives.
- After this operation, 7,721 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 libhttp-parser2.1 amd64 2.1-2 [18.2 kB]
- Get:2 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 libssh2-1 amd64 1.8.0-1 [73.2 kB]
- Get:3 http://us.archive.ubuntu.com/ubuntu artful-updates/universe amd64 cargo amd64 0.22.0-0ubuntu0.17.10.1 [2,132 kB]
- Fetched 2,224 kB in 0s (3,402 kB/s)
- Selecting previously unselected package libhttp-parser2.1:amd64.
- (Reading database ... 297165 files and directories currently installed.)
- Preparing to unpack .../libhttp-parser2.1_2.1-2_amd64.deb ...
- Unpacking libhttp-parser2.1:amd64 (2.1-2) ...
- Selecting previously unselected package libssh2-1:amd64.
- Preparing to unpack .../libssh2-1_1.8.0-1_amd64.deb ...
- Unpacking libssh2-1:amd64 (1.8.0-1) ...
- Selecting previously unselected package cargo.
- Preparing to unpack .../cargo_0.22.0-0ubuntu0.17.10.1_amd64.deb ...
- Unpacking cargo (0.22.0-0ubuntu0.17.10.1) ...
- Setting up libssh2-1:amd64 (1.8.0-1) ...
- Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
- Setting up libhttp-parser2.1:amd64 (2.1-2) ...
- Processing triggers for man-db (2.7.6.1-2) ...
- Setting up cargo (0.22.0-0ubuntu0.17.10.1) ...
- Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
- testvm@testvm:~$ cd rustStuff/hello_world/
- testvm@testvm:~/rustStuff/hello_world$ mkdir src
- testvm@testvm:~/rustStuff/hello_world$ mv main.rs src/main.rs
- testvm@testvm:~/rustStuff/hello_world$ rm main
- testvm@testvm:~/rustStuff/hello_world$ ls
- src
- testvm@testvm:~/rustStuff/hello_world$ emacs Cargo.toml
- testvm@testvm:~/rustStuff/hello_world$ cargo build
- Compiling hello_world v0.0.1 (file:///home/testvm/rustStuff/hello_world)
- Finished dev [unoptimized + debuginfo] target(s) in 0.32 secs
- testvm@testvm:~/rustStuff/hello_world$ ./target/debug/hello_world
- Hello, world!
- testvm@testvm:~/rustStuff/hello_world$ cargo run
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- Running `target/debug/hello_world`
- Hello, world!
- testvm@testvm:~/rustStuff/hello_world$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/rustStuff/hello_world$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/rustStuff/hello_world$ cd ..
- testvm@testvm:~/rustStuff$ ls
- hello_world
- testvm@testvm:~/rustStuff$ rm hello_world/
- rm: cannot remove 'hello_world/': Is a directory
- testvm@testvm:~/rustStuff$ rm -f hello_world/
- rm: cannot remove 'hello_world/': Is a directory
- testvm@testvm:~/rustStuff$ r hello_world/
- The program 'r' is currently not installed. You can install it by typing:
- sudo apt install r-cran-littler
- testvm@testvm:~/rustStuff$ cargo new hello_world --bin
- error: destination `/home/testvm/rustStuff/hello_world` already exists
- Use `cargo init` to initialize the directory
- testvm@testvm:~/rustStuff$ cargo new hello_world2 --bin
- Created binary (application) `hello_world2` project
- testvm@testvm:~/rustStuff$ ls
- hello_world hello_world2
- testvm@testvm:~/rustStuff$ cd hello_world2/
- testvm@testvm:~/rustStuff/hello_world2$ ls
- Cargo.toml src
- testvm@testvm:~/rustStuff/hello_world2$ cd src/
- testvm@testvm:~/rustStuff/hello_world2/src$ ls
- main.rs
- testvm@testvm:~/rustStuff/hello_world2/src$ emacs main.rs
- testvm@testvm:~/rustStuff/hello_world2/src$ cd ../../
- testvm@testvm:~/rustStuff$ ls
- hello_world hello_world2
- testvm@testvm:~/rustStuff$ cargo new guessing_game --bin
- Created binary (application) `guessing_game` project
- testvm@testvm:~/rustStuff$ cd guessing_game/
- testvm@testvm:~/rustStuff/guessing_game$ emacs Cargo.toml
- testvm@testvm:~/rustStuff/guessing_game$ git config
- usage: git config [<options>]
- Config file location
- --global use global config file
- --system use system config file
- --local use repository config file
- -f, --file <file> use given config file
- --blob <blob-id> read config from given blob object
- Action
- --get get value: name [value-regex]
- --get-all get all values: key [value-regex]
- --get-regexp get values for regexp: name-regex [value-regex]
- --get-urlmatch get value specific for the URL: section[.var] URL
- --replace-all replace all matching variables: name value [value_regex]
- --add add a new variable: name value
- --unset remove a variable: name [value-regex]
- --unset-all remove all matches: name [value-regex]
- --rename-section rename section: old-name new-name
- --remove-section remove a section: name
- -l, --list list all
- -e, --edit open an editor
- --get-color find the color configured: slot [default]
- --get-colorbool find the color setting: slot [stdout-is-tty]
- Type
- --bool value is "true" or "false"
- --int value is decimal number
- --bool-or-int value is --bool or --int
- --path value is a path (file or directory name)
- Other
- -z, --null terminate values with NUL byte
- --name-only show variable names only
- --includes respect include directives on lookup
- --show-origin show origin of config (file, standard input, blob, command line)
- testvm@testvm:~/rustStuff/guessing_game$ git config --global
- usage: git config [<options>]
- Config file location
- --global use global config file
- --system use system config file
- --local use repository config file
- -f, --file <file> use given config file
- --blob <blob-id> read config from given blob object
- Action
- --get get value: name [value-regex]
- --get-all get all values: key [value-regex]
- --get-regexp get values for regexp: name-regex [value-regex]
- --get-urlmatch get value specific for the URL: section[.var] URL
- --replace-all replace all matching variables: name value [value_regex]
- --add add a new variable: name value
- --unset remove a variable: name [value-regex]
- --unset-all remove all matches: name [value-regex]
- --rename-section rename section: old-name new-name
- --remove-section remove a section: name
- -l, --list list all
- -e, --edit open an editor
- --get-color find the color configured: slot [default]
- --get-colorbool find the color setting: slot [stdout-is-tty]
- Type
- --bool value is "true" or "false"
- --int value is decimal number
- --bool-or-int value is --bool or --int
- --path value is a path (file or directory name)
- Other
- -z, --null terminate values with NUL byte
- --name-only show variable names only
- --includes respect include directives on lookup
- --show-origin show origin of config (file, standard input, blob, command line)
- testvm@testvm:~/rustStuff/guessing_game$ cargo build
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.86 secs
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- error[E0599]: no method named `except` found for type `std::result::Result<usize, std::io::Error>` in the current scope
- --> src/main.rs:11:38
- |
- 11 | io::stdin().read_line(&mut guess).except("Failed to read line");
- | ^^^^^^
- error: aborting due to previous error
- error: Could not compile `guessing_game`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.43 secs
- Running `target/debug/guessing_game`
- Guess the number!
- Input please!
- 10
- You guessed: 10
- testvm@testvm:~/rustStuff/guessing_game$ emacs Cargo.
- testvm@testvm:~/rustStuff/guessing_game$ emacs Cargo.toml
- testvm@testvm:~/rustStuff/guessing_game$ cargo build
- Updating registry `https://github.com/rust-lang/crates.io-index`
- Downloading rand v0.3.22
- Downloading rand v0.4.2
- Downloading libc v0.2.36
- Compiling libc v0.2.36
- Compiling rand v0.4.2
- Compiling rand v0.3.22
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 4.45 secs
- testvm@testvm:~/rustStuff/guessing_game$ cargo build
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.53 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 7
- Input please!
- 9
- You guessed: 9
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 65
- Input please!
- 10
- You guessed: 10
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo build
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
- --> src/main.rs:24:47
- |
- 24 | Ordering::Less => println!("Too Small!");
- | ^ expected one of `,`, `.`, `?`, `}`, or an operator here
- warning: unused import: `std::cmp::Ordering`
- --> src/main.rs:4:5
- |
- 4 | use std::cmp::Ordering;
- | ^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- error[E0308]: mismatched types
- --> src/main.rs:23:20
- |
- 23 | match guess.cmp(&secret_number) {
- | ^^^^^^^^^^^^^^ expected struct `std::string::String`, found integral variable
- |
- = note: expected type `&std::string::String`
- found type `&{integer}`
- error: aborting due to 2 previous errors
- error: Could not compile `guessing_game`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.57 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 91
- Input please!
- 91
- You guessed: 91
- You Win!
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.55 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 47
- Input please!
- 20
- You guessed: 20
- Too Small!
- Input please!
- 40
- You guessed: 40
- Too Small!
- Input please!
- 50
- You guessed: 50
- Too Larger!
- Input please!
- 47
- You guessed: 47
- You Win!
- Input please!
- thread 'main' panicked at 'Please type a number: ParseIntError { kind: Empty }', src/libcore/result.rs:906:4
- note: Run with `RUST_BACKTRACE=1` for a backtrace.
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
- --> src/main.rs:31:28
- |
- 31 | println!("You Win!"),
- | ^ expected one of `.`, `;`, `?`, `}`, or an operator here
- error: aborting due to previous error
- error: Could not compile `guessing_game`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.54 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 3
- Input please!
- 2
- You guessed: 2
- Too Small!
- Input please!
- 4
- You guessed: 4
- Too Larger!
- Input please!
- 3
- You guessed: 3
- You Win!
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- error: expected one of `.`, `;`, `?`, or an operator, found `{`
- --> src/main.rs:23:40
- |
- 23 | let guess: u32 = guess.trim().parse() {
- | -^ unexpected token
- | |
- | expected one of `.`, `;`, `?`, or an operator here
- error: expected item, found `}`
- --> src/main.rs:39:1
- |
- 39 | }
- | ^
- error: aborting due to 2 previous errors
- error: Could not compile `guessing_game`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ cargo run
- Compiling guessing_game v0.1.0 (file:///home/testvm/rustStuff/guessing_game)
- Finished dev [unoptimized + debuginfo] target(s) in 0.53 secs
- Running `target/debug/guessing_game`
- Guess the number!
- The secret number is: 15
- Input please!
- 10
- You guessed: 10
- Too Small!
- Input please!
- 20
- You guessed: 20
- Too Larger!
- Input please!
- Input please!
- 15
- You guessed: 15
- You Win!
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ emacs
- testvm@testvm:~/rustStuff/guessing_game$ emacs
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ emacs ~/.emacs.d/init.el
- testvm@testvm:~/rustStuff/guessing_game$ emacs ~/.emacs.d/init.el
- testvm@testvm:~/rustStuff/guessing_game$ emacs ~/.emacs.d/init.el
- testvm@testvm:~/rustStuff/guessing_game$ emacs src/main.rs
- testvm@testvm:~/rustStuff/guessing_game$ ls
- Cargo.lock Cargo.toml Cargo.toml~ src target
- testvm@testvm:~/rustStuff/guessing_game$ cd ..
- testvm@testvm:~/rustStuff$ ls
- guessing_game hello_world hello_world2
- testvm@testvm:~/rustStuff$ cd hello_world
- testvm@testvm:~/rustStuff/hello_world$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/rustStuff/hello_world$ emacs src/main.rs
- testvm@testvm:~/rustStuff/hello_world$ cargo build
- Compiling hello_world v0.0.1 (file:///home/testvm/rustStuff/hello_world)
- warning: unused variable: `x`
- --> src/main.rs:2:9
- |
- 2 | let x: i32;
- | ^
- |
- = note: #[warn(unused_variables)] on by default
- = note: to disable this warning, consider using `_x` instead
- Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs
- testvm@testvm:~/rustStuff/hello_world$ emacs src/main.rs
- testvm@testvm:~/rustStuff/hello_world$ cargo build
- Compiling hello_world v0.0.1 (file:///home/testvm/rustStuff/hello_world)
- error[E0381]: use of possibly uninitialized variable: `x`
- --> src/main.rs:4:38
- |
- 4 | println!("The value of x is {}", x);
- | ^ use of possibly uninitialized `x`
- error: aborting due to previous error
- error: Could not compile `hello_world`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/hello_world$ emacs src/main.rs
- testvm@testvm:~/rustStuff/hello_world$ cargo build
- Compiling hello_world v0.0.1 (file:///home/testvm/rustStuff/hello_world)
- error[E0425]: cannot find value `y` in this scope
- --> src/main.rs:7:65
- |
- 7 | println!("The value of x is {} and the value of y is {}", x,y);
- | ^ did you mean `x`?
- error: aborting due to previous error
- error: Could not compile `hello_world`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/hello_world$ emacs src/main.rs
- testvm@testvm:~/rustStuff/hello_world$ cd ../../Desktop/project2/file-server-group-sec/
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py fs RESOURCES.md server.c SOURCES.md test_post_file.py
- example-files Makefile rop_gadgets.txt server.py test_get_harder.py test_put_file.py
- files README.md run_tests.py setup_tests.sh test_get.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ emacs server.
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ emacs server.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py fs RESOURCES.md server.c SOURCES.md test_post_file.py
- example-files Makefile rop_gadgets.txt server.py test_get_harder.py test_put_file.py
- files README.md run_tests.py setup_tests.sh test_get.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 10 commits.
- (use "git push" to publish your local commits)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git stash
- Saved working directory and index state WIP on master: 20aaa9c Added debugging feature to interface
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git pull upstream master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- remote: Counting objects: 9, done.
- remote: Compressing objects: 100% (7/7), done.
- remote: Total 9 (delta 2), reused 8 (delta 1), pack-reused 0
- Unpacking objects: 100% (9/9), done.
- From https://github.com/fordsec/file-server-group-sec
- * branch master -> FETCH_HEAD
- 20aaa9c..4ddf928 master -> upstream/master
- Updating 20aaa9c..4ddf928
- Fast-forward
- PyServer.py | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- rust-server/Cargo.toml | 6 ++++
- rust-server/src/lib.rs | 7 +++++
- 3 files changed, 131 insertions(+)
- create mode 100644 PyServer.py
- create mode 100644 rust-server/Cargo.toml
- create mode 100644 rust-server/src/lib.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile rop_gadgets.txt server.py test_get.py
- example-files PyServer.py run_tests.py setup_tests.sh test_post_file.py
- files README.md rust-server SOURCES.md test_put_file.py
- fs RESOURCES.md server.c test_get_harder.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git stash apply
- On branch master
- Your branch is ahead of 'origin/master' by 12 commits.
- (use "git push" to publish your local commits)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 12 commits.
- (use "git push" to publish your local commits)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile rop_gadgets.txt server.py test_get.py
- example-files PyServer.py run_tests.py setup_tests.sh test_post_file.py
- files README.md rust-server SOURCES.md test_put_file.py
- fs RESOURCES.md server.c test_get_harder.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ cd rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd src/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs lib.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs lib.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs Cargo.toml
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 12 commits.
- (use "git push" to publish your local commits)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add client.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git commit -m "updating client"
- [master a4509c6] updating client
- 1 file changed, 8 insertions(+), 4 deletions(-)
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git push origin master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- Counting objects: 38, done.
- Compressing objects: 100% (37/37), done.
- Writing objects: 100% (38/38), 7.33 KiB | 468.00 KiB/s, done.
- Total 38 (delta 19), reused 0 (delta 0)
- remote: Resolving deltas: 100% (19/19), completed with 1 local object.
- To https://github.com/ChandlerTodd/file-server-group-sec.git
- 91ca98d..a4509c6 master -> master
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile rop_gadgets.txt server.py test_get.py
- example-files PyServer.py run_tests.py setup_tests.sh test_post_file.py
- files README.md rust-server SOURCES.md test_put_file.py
- fs RESOURCES.md server.c test_get_harder.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ cd rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd ../../..
- testvm@testvm:~/Desktop$ ls
- a.out out #out# out~ part5.s project1 project2 testStuff #write.s# write.s write.s~
- testvm@testvm:~/Desktop$ cd ..
- testvm@testvm:~$ ls
- a.out Desktop Downloads #*message*-20180130-124646# Pictures rustStuff Templates
- build Documents edb-debugger Music Public src Videos
- testvm@testvm:~$ cd rustStuff/
- testvm@testvm:~/rustStuff$ ls
- guessing_game hello_world hello_world2
- testvm@testvm:~/rustStuff$ cargo new euler --bin
- Created binary (application) `euler` project
- testvm@testvm:~/rustStuff$ cd euler/
- testvm@testvm:~/rustStuff/euler$ ls
- Cargo.toml src
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error: this file contains an un-closed delimiter
- --> src/main.rs:18:3
- |
- 18 | }
- | ^
- |
- help: did you mean to close this delimiter?
- --> src/main.rs:2:16
- |
- 2 | fn mutliples() {
- | ^
- error: expected one of `.`, `;`, `?`, `}`, or an operator, found `fn`
- --> src/main.rs:16:1
- |
- 14 | println!(total)
- | - expected one of `.`, `;`, `?`, `}`, or an operator here
- 15 |
- 16 | fn main() {
- | ^^ unexpected token
- error: expected a literal
- --> src/main.rs:14:14
- |
- 14 | println!(total)
- | ^^^^^
- error: aborting due to 3 previous errors
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error: this file contains an un-closed delimiter
- --> src/main.rs:18:3
- |
- 18 | }
- | ^
- |
- help: did you mean to close this delimiter?
- --> src/main.rs:2:16
- |
- 2 | fn mutliples() {
- | ^
- error: expected a literal
- --> src/main.rs:14:14
- |
- 14 | println!(total);
- | ^^^^^
- error: aborting due to 2 previous errors
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error: expected a literal
- --> src/main.rs:14:14
- |
- 14 | println!(total);
- | ^^^^^
- error: aborting due to previous error
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error: expected a literal
- --> src/main.rs:14:14
- |
- 14 | println!(total);
- | ^^^^^
- error: aborting due to previous error
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error[E0425]: cannot find function `multiples` in this scope
- --> src/main.rs:19:5
- |
- 19 | multiples();
- | ^^^^^^^^^ did you mean `mutliples`?
- error: aborting due to previous error
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- error: expected one of `!` or `::`, found `(`
- --> src/main.rs:18:10
- |
- 18 | multiples();
- | ^ expected one of `!` or `::` here
- error: aborting due to previous error
- error: Could not compile `euler`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cargo run
- Compiling euler v0.1.0 (file:///home/testvm/rustStuff/euler)
- Finished dev [unoptimized + debuginfo] target(s) in 0.37 secs
- Running `target/debug/euler`
- Sum of stuff: 234168
- testvm@testvm:~/rustStuff/euler$ emacs src/main.rs
- testvm@testvm:~/rustStuff/euler$ cd ..
- testvm@testvm:~/rustStuff$ cd ..
- testvm@testvm:~$ cd Desktop/project2/file-server-group-sec/
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ cd rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd src/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ eamcs main.rs
- No command 'eamcs' found, did you mean:
- Command 'emacs' from package 'emacs24-lucid' (universe)
- Command 'emacs' from package 'emacs25' (main)
- Command 'emacs' from package 'emacs24' (universe)
- Command 'emacs' from package 'emacs25-nox' (main)
- Command 'emacs' from package 'emacs24-nox' (universe)
- Command 'emacs' from package 'jove' (universe)
- Command 'emacs' from package 'e3' (universe)
- Command 'emacs' from package 'emacs25-lucid' (universe)
- eamcs: command not found
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.toml src
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- Finished dev [unoptimized + debuginfo] target(s) in 0.51 secs
- Running `target/debug/server`
- Hello, world
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd target/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/target$ ls
- debug
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/target$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd src/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs Cargo.toml
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Updating registry `https://github.com/rust-lang/crates.io-index`
- Downloading hyper v0.11.18
- Downloading iovec v0.1.2
- Downloading mime v0.3.5
- Downloading bytes v0.4.6
- Downloading futures-cpupool v0.1.8
- Downloading futures v0.1.18
- Downloading percent-encoding v1.0.1
- Downloading tokio-io v0.1.5
- Downloading base64 v0.9.0
- Downloading httparse v1.2.4
- Downloading tokio-service v0.1.0
- Downloading tokio-core v0.1.12
- Downloading relay v0.1.1
- Downloading unicase v2.1.0
- Downloading time v0.1.39
- Downloading log v0.4.1
- Downloading tokio-proto v0.1.1
- Downloading language-tags v0.2.2
- Downloading version_check v0.1.3
- Downloading byteorder v1.2.1
- Downloading num_cpus v1.8.0
- Downloading cfg-if v0.1.2
- Downloading safemem v0.2.0
- Downloading mio v0.6.13
- Downloading slab v0.4.0
- Downloading scoped-tls v0.1.0
- Downloading lazycell v0.6.0
- Downloading log v0.3.9
- Downloading slab v0.3.0
- Downloading net2 v0.2.31
- Downloading take v0.1.0
- Downloading smallvec v0.2.1
- Compiling smallvec v0.2.1
- Compiling safemem v0.2.0
- Compiling libc v0.2.36
- Compiling slab v0.4.0
- Compiling version_check v0.1.3
- Compiling cfg-if v0.1.2
- Compiling take v0.1.0
- Compiling slab v0.3.0
- Compiling byteorder v1.2.1
- Compiling httparse v1.2.4
- Compiling scoped-tls v0.1.0
- Compiling futures v0.1.18
- Compiling lazycell v0.6.0
- Compiling percent-encoding v1.0.1
- Compiling language-tags v0.2.2
- Compiling time v0.1.39
- Compiling rand v0.4.2
- Compiling iovec v0.1.2
- Compiling num_cpus v1.8.0
- Compiling unicase v2.1.0
- Compiling log v0.4.1
- Compiling net2 v0.2.31
- Compiling base64 v0.9.0
- Compiling tokio-service v0.1.0
- Compiling relay v0.1.1
- Compiling rand v0.3.22
- Compiling bytes v0.4.6
- Compiling futures-cpupool v0.1.8
- Compiling log v0.3.9
- Compiling tokio-io v0.1.5
- Compiling mio v0.6.13
- Compiling mime v0.3.5
- Compiling tokio-core v0.1.12
- Compiling tokio-proto v0.1.1
- Compiling hyper v0.11.18
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- Finished dev [unoptimized + debuginfo] target(s) in 51.39 secs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs Cargo.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs Cargo.toml
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- Finished dev [unoptimized + debuginfo] target(s) in 0.51 secs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd
- testvm@testvm:~$ emacs .gitconfig
- testvm@testvm:~$ cd Desktop/project2/file-server-group-sec/rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/Cargo.lock
- rust-server/src/main.rs
- rust-server/src/main.rs~
- rust-server/target/
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- new file: rust-server/Cargo.lock
- modified: rust-server/Cargo.toml
- new file: rust-server/src/main.rs
- new file: rust-server/src/main.rs~
- new file: rust-server/target/debug/.cargo-lock
- new file: rust-server/target/debug/.fingerprint/base64-6f6980d819e166d8/dep-lib-base64-6f6980d819e166d8
- new file: rust-server/target/debug/.fingerprint/base64-6f6980d819e166d8/lib-base64-6f6980d819e166d8
- new file: rust-server/target/debug/.fingerprint/base64-6f6980d819e166d8/lib-base64-6f6980d819e166d8.json
- new file: rust-server/target/debug/.fingerprint/byteorder-c1d259c809265431/dep-lib-byteorder-c1d259c809265431
- new file: rust-server/target/debug/.fingerprint/byteorder-c1d259c809265431/lib-byteorder-c1d259c809265431
- new file: rust-server/target/debug/.fingerprint/byteorder-c1d259c809265431/lib-byteorder-c1d259c809265431.json
- new file: rust-server/target/debug/.fingerprint/bytes-b7a2512c1ce59276/dep-lib-bytes-b7a2512c1ce59276
- new file: rust-server/target/debug/.fingerprint/bytes-b7a2512c1ce59276/lib-bytes-b7a2512c1ce59276
- new file: rust-server/target/debug/.fingerprint/bytes-b7a2512c1ce59276/lib-bytes-b7a2512c1ce59276.json
- new file: rust-server/target/debug/.fingerprint/cfg-if-fe1616571f9f26ae/dep-lib-cfg_if-fe1616571f9f26ae
- new file: rust-server/target/debug/.fingerprint/cfg-if-fe1616571f9f26ae/lib-cfg_if-fe1616571f9f26ae
- new file: rust-server/target/debug/.fingerprint/cfg-if-fe1616571f9f26ae/lib-cfg_if-fe1616571f9f26ae.json
- new file: rust-server/target/debug/.fingerprint/futures-2141d10505bea9de/dep-lib-futures-2141d10505bea9de
- new file: rust-server/target/debug/.fingerprint/futures-2141d10505bea9de/lib-futures-2141d10505bea9de
- new file: rust-server/target/debug/.fingerprint/futures-2141d10505bea9de/lib-futures-2141d10505bea9de.json
- new file: rust-server/target/debug/.fingerprint/futures-cpupool-7f363b00d1214dde/dep-lib-futures_cpupool-7f363b00d1214dde
- new file: rust-server/target/debug/.fingerprint/futures-cpupool-7f363b00d1214dde/lib-futures_cpupool-7f363b00d1214dde
- new file: rust-server/target/debug/.fingerprint/futures-cpupool-7f363b00d1214dde/lib-futures_cpupool-7f363b00d1214dde.json
- new file: rust-server/target/debug/.fingerprint/httparse-0a930cfd42408671/dep-lib-httparse-0a930cfd42408671
- new file: rust-server/target/debug/.fingerprint/httparse-0a930cfd42408671/lib-httparse-0a930cfd42408671
- new file: rust-server/target/debug/.fingerprint/httparse-0a930cfd42408671/lib-httparse-0a930cfd42408671.json
- new file: rust-server/target/debug/.fingerprint/hyper-017a3cdc6736a241/dep-lib-hyper-017a3cdc6736a241
- new file: rust-server/target/debug/.fingerprint/hyper-017a3cdc6736a241/lib-hyper-017a3cdc6736a241
- new file: rust-server/target/debug/.fingerprint/hyper-017a3cdc6736a241/lib-hyper-017a3cdc6736a241.json
- new file: rust-server/target/debug/.fingerprint/iovec-9ed4889681d77b26/dep-lib-iovec-9ed4889681d77b26
- new file: rust-server/target/debug/.fingerprint/iovec-9ed4889681d77b26/lib-iovec-9ed4889681d77b26
- new file: rust-server/target/debug/.fingerprint/iovec-9ed4889681d77b26/lib-iovec-9ed4889681d77b26.json
- new file: rust-server/target/debug/.fingerprint/language-tags-11629b31b81f3d22/dep-lib-language_tags-11629b31b81f3d22
- new file: rust-server/target/debug/.fingerprint/language-tags-11629b31b81f3d22/lib-language_tags-11629b31b81f3d22
- new file: rust-server/target/debug/.fingerprint/language-tags-11629b31b81f3d22/lib-language_tags-11629b31b81f3d22.json
- new file: rust-server/target/debug/.fingerprint/lazycell-2b3419a41642dcca/dep-lib-lazycell-2b3419a41642dcca
- new file: rust-server/target/debug/.fingerprint/lazycell-2b3419a41642dcca/lib-lazycell-2b3419a41642dcca
- new file: rust-server/target/debug/.fingerprint/lazycell-2b3419a41642dcca/lib-lazycell-2b3419a41642dcca.json
- new file: rust-server/target/debug/.fingerprint/libc-bb7c89f2ce8096c8/dep-lib-libc-bb7c89f2ce8096c8
- new file: rust-server/target/debug/.fingerprint/libc-bb7c89f2ce8096c8/lib-libc-bb7c89f2ce8096c8
- new file: rust-server/target/debug/.fingerprint/libc-bb7c89f2ce8096c8/lib-libc-bb7c89f2ce8096c8.json
- new file: rust-server/target/debug/.fingerprint/log-2761e801ce580074/dep-lib-log-2761e801ce580074
- new file: rust-server/target/debug/.fingerprint/log-2761e801ce580074/lib-log-2761e801ce580074
- new file: rust-server/target/debug/.fingerprint/log-2761e801ce580074/lib-log-2761e801ce580074.json
- new file: rust-server/target/debug/.fingerprint/log-5ab3018dbdb6887a/dep-lib-log-5ab3018dbdb6887a
- new file: rust-server/target/debug/.fingerprint/log-5ab3018dbdb6887a/lib-log-5ab3018dbdb6887a
- new file: rust-server/target/debug/.fingerprint/log-5ab3018dbdb6887a/lib-log-5ab3018dbdb6887a.json
- new file: rust-server/target/debug/.fingerprint/mime-269c0d61b3074e73/dep-lib-mime-269c0d61b3074e73
- new file: rust-server/target/debug/.fingerprint/mime-269c0d61b3074e73/lib-mime-269c0d61b3074e73
- new file: rust-server/target/debug/.fingerprint/mime-269c0d61b3074e73/lib-mime-269c0d61b3074e73.json
- new file: rust-server/target/debug/.fingerprint/mio-ee9b720c06a280c7/dep-lib-mio-ee9b720c06a280c7
- new file: rust-server/target/debug/.fingerprint/mio-ee9b720c06a280c7/lib-mio-ee9b720c06a280c7
- new file: rust-server/target/debug/.fingerprint/mio-ee9b720c06a280c7/lib-mio-ee9b720c06a280c7.json
- new file: rust-server/target/debug/.fingerprint/net2-1683912ed6087d42/dep-lib-net2-1683912ed6087d42
- new file: rust-server/target/debug/.fingerprint/net2-1683912ed6087d42/lib-net2-1683912ed6087d42
- new file: rust-server/target/debug/.fingerprint/net2-1683912ed6087d42/lib-net2-1683912ed6087d42.json
- new file: rust-server/target/debug/.fingerprint/num_cpus-1af4c2bd3d90b5f5/dep-lib-num_cpus-1af4c2bd3d90b5f5
- new file: rust-server/target/debug/.fingerprint/num_cpus-1af4c2bd3d90b5f5/lib-num_cpus-1af4c2bd3d90b5f5
- new file: rust-server/target/debug/.fingerprint/num_cpus-1af4c2bd3d90b5f5/lib-num_cpus-1af4c2bd3d90b5f5.json
- new file: rust-server/target/debug/.fingerprint/percent-encoding-849f8f474757eb59/dep-lib-percent_encoding-849f8f474757eb59
- new file: rust-server/target/debug/.fingerprint/percent-encoding-849f8f474757eb59/lib-percent_encoding-849f8f474757eb59
- new file: rust-server/target/debug/.fingerprint/percent-encoding-849f8f474757eb59/lib-percent_encoding-849f8f474757eb59.json
- new file: rust-server/target/debug/.fingerprint/rand-8ab0e1ffb77ce137/dep-lib-rand-8ab0e1ffb77ce137
- new file: rust-server/target/debug/.fingerprint/rand-8ab0e1ffb77ce137/lib-rand-8ab0e1ffb77ce137
- new file: rust-server/target/debug/.fingerprint/rand-8ab0e1ffb77ce137/lib-rand-8ab0e1ffb77ce137.json
- new file: rust-server/target/debug/.fingerprint/rand-d6fc38bfb757149d/dep-lib-rand-d6fc38bfb757149d
- new file: rust-server/target/debug/.fingerprint/rand-d6fc38bfb757149d/lib-rand-d6fc38bfb757149d
- new file: rust-server/target/debug/.fingerprint/rand-d6fc38bfb757149d/lib-rand-d6fc38bfb757149d.json
- new file: rust-server/target/debug/.fingerprint/relay-9cc332244b2cc58c/dep-lib-relay-9cc332244b2cc58c
- new file: rust-server/target/debug/.fingerprint/relay-9cc332244b2cc58c/lib-relay-9cc332244b2cc58c
- new file: rust-server/target/debug/.fingerprint/relay-9cc332244b2cc58c/lib-relay-9cc332244b2cc58c.json
- new file: rust-server/target/debug/.fingerprint/safemem-a440e1062e1babf4/dep-lib-safemem-a440e1062e1babf4
- new file: rust-server/target/debug/.fingerprint/safemem-a440e1062e1babf4/lib-safemem-a440e1062e1babf4
- new file: rust-server/target/debug/.fingerprint/safemem-a440e1062e1babf4/lib-safemem-a440e1062e1babf4.json
- new file: rust-server/target/debug/.fingerprint/scoped-tls-48bd784f27683b7b/dep-lib-scoped_tls-48bd784f27683b7b
- new file: rust-server/target/debug/.fingerprint/scoped-tls-48bd784f27683b7b/lib-scoped_tls-48bd784f27683b7b
- new file: rust-server/target/debug/.fingerprint/scoped-tls-48bd784f27683b7b/lib-scoped_tls-48bd784f27683b7b.json
- new file: rust-server/target/debug/.fingerprint/server-341294d4fd6de71b/dep-lib-server-341294d4fd6de71b
- new file: rust-server/target/debug/.fingerprint/server-341294d4fd6de71b/lib-server-341294d4fd6de71b
- new file: rust-server/target/debug/.fingerprint/server-341294d4fd6de71b/lib-server-341294d4fd6de71b.json
- new file: rust-server/target/debug/.fingerprint/server-62fe6fe44909e662/bin-server-62fe6fe44909e662
- new file: rust-server/target/debug/.fingerprint/server-62fe6fe44909e662/bin-server-62fe6fe44909e662.json
- new file: rust-server/target/debug/.fingerprint/server-62fe6fe44909e662/dep-bin-server-62fe6fe44909e662
- new file: rust-server/target/debug/.fingerprint/slab-10607eee97d8cc21/dep-lib-slab-10607eee97d8cc21
- new file: rust-server/target/debug/.fingerprint/slab-10607eee97d8cc21/lib-slab-10607eee97d8cc21
- new file: rust-server/target/debug/.fingerprint/slab-10607eee97d8cc21/lib-slab-10607eee97d8cc21.json
- new file: rust-server/target/debug/.fingerprint/slab-7007c22aeb7cc13c/dep-lib-slab-7007c22aeb7cc13c
- new file: rust-server/target/debug/.fingerprint/slab-7007c22aeb7cc13c/lib-slab-7007c22aeb7cc13c
- new file: rust-server/target/debug/.fingerprint/slab-7007c22aeb7cc13c/lib-slab-7007c22aeb7cc13c.json
- new file: rust-server/target/debug/.fingerprint/smallvec-4407db67158e0130/dep-lib-smallvec-4407db67158e0130
- new file: rust-server/target/debug/.fingerprint/smallvec-4407db67158e0130/lib-smallvec-4407db67158e0130
- new file: rust-server/target/debug/.fingerprint/smallvec-4407db67158e0130/lib-smallvec-4407db67158e0130.json
- new file: rust-server/target/debug/.fingerprint/take-bc568e2c8ab4b320/dep-lib-take-bc568e2c8ab4b320
- new file: rust-server/target/debug/.fingerprint/take-bc568e2c8ab4b320/lib-take-bc568e2c8ab4b320
- new file: rust-server/target/debug/.fingerprint/take-bc568e2c8ab4b320/lib-take-bc568e2c8ab4b320.json
- new file: rust-server/target/debug/.fingerprint/time-68e5083ad2f08f9d/dep-lib-time-68e5083ad2f08f9d
- new file: rust-server/target/debug/.fingerprint/time-68e5083ad2f08f9d/lib-time-68e5083ad2f08f9d
- new file: rust-server/target/debug/.fingerprint/time-68e5083ad2f08f9d/lib-time-68e5083ad2f08f9d.json
- new file: rust-server/target/debug/.fingerprint/tokio-core-7e1292d3e601fa73/dep-lib-tokio_core-7e1292d3e601fa73
- new file: rust-server/target/debug/.fingerprint/tokio-core-7e1292d3e601fa73/lib-tokio_core-7e1292d3e601fa73
- new file: rust-server/target/debug/.fingerprint/tokio-core-7e1292d3e601fa73/lib-tokio_core-7e1292d3e601fa73.json
- new file: rust-server/target/debug/.fingerprint/tokio-io-2fac47cad3f4ad6c/dep-lib-tokio_io-2fac47cad3f4ad6c
- new file: rust-server/target/debug/.fingerprint/tokio-io-2fac47cad3f4ad6c/lib-tokio_io-2fac47cad3f4ad6c
- new file: rust-server/target/debug/.fingerprint/tokio-io-2fac47cad3f4ad6c/lib-tokio_io-2fac47cad3f4ad6c.json
- new file: rust-server/target/debug/.fingerprint/tokio-proto-dea9f63c6b9d13d8/dep-lib-tokio_proto-dea9f63c6b9d13d8
- new file: rust-server/target/debug/.fingerprint/tokio-proto-dea9f63c6b9d13d8/lib-tokio_proto-dea9f63c6b9d13d8
- new file: rust-server/target/debug/.fingerprint/tokio-proto-dea9f63c6b9d13d8/lib-tokio_proto-dea9f63c6b9d13d8.json
- new file: rust-server/target/debug/.fingerprint/tokio-service-57bbf273942aac20/dep-lib-tokio_service-57bbf273942aac20
- new file: rust-server/target/debug/.fingerprint/tokio-service-57bbf273942aac20/lib-tokio_service-57bbf273942aac20
- new file: rust-server/target/debug/.fingerprint/tokio-service-57bbf273942aac20/lib-tokio_service-57bbf273942aac20.json
- new file: rust-server/target/debug/.fingerprint/unicase-b162822e1c5df7cf/dep-lib-unicase-b162822e1c5df7cf
- new file: rust-server/target/debug/.fingerprint/unicase-b162822e1c5df7cf/lib-unicase-b162822e1c5df7cf
- new file: rust-server/target/debug/.fingerprint/unicase-b162822e1c5df7cf/lib-unicase-b162822e1c5df7cf.json
- new file: rust-server/target/debug/.fingerprint/unicase-ceb190194fd27abe/build-script-build_script_build-ceb190194fd27abe
- new file: rust-server/target/debug/.fingerprint/unicase-ceb190194fd27abe/build-script-build_script_build-ceb190194fd27abe.json
- new file: rust-server/target/debug/.fingerprint/unicase-ceb190194fd27abe/dep-build-script-build_script_build-ceb190194fd27abe
- new file: rust-server/target/debug/.fingerprint/unicase-f6143644b03f7075/build
- new file: rust-server/target/debug/.fingerprint/unicase-f6143644b03f7075/build.json
- new file: rust-server/target/debug/.fingerprint/version_check-cb9a6d9a9342a363/dep-lib-version_check-cb9a6d9a9342a363
- new file: rust-server/target/debug/.fingerprint/version_check-cb9a6d9a9342a363/lib-version_check-cb9a6d9a9342a363
- new file: rust-server/target/debug/.fingerprint/version_check-cb9a6d9a9342a363/lib-version_check-cb9a6d9a9342a363.json
- new file: rust-server/target/debug/build/unicase-ceb190194fd27abe/build-script-build
- new file: rust-server/target/debug/build/unicase-ceb190194fd27abe/build_script_build-ceb190194fd27abe
- new file: rust-server/target/debug/build/unicase-f6143644b03f7075/output
- new file: rust-server/target/debug/build/unicase-f6143644b03f7075/stderr
- new file: rust-server/target/debug/deps/libbase64-6f6980d819e166d8.rlib
- new file: rust-server/target/debug/deps/libbyteorder-c1d259c809265431.rlib
- new file: rust-server/target/debug/deps/libbytes-b7a2512c1ce59276.rlib
- new file: rust-server/target/debug/deps/libcfg_if-fe1616571f9f26ae.rlib
- new file: rust-server/target/debug/deps/libfutures-2141d10505bea9de.rlib
- new file: rust-server/target/debug/deps/libfutures_cpupool-7f363b00d1214dde.rlib
- new file: rust-server/target/debug/deps/libhttparse-0a930cfd42408671.rlib
- new file: rust-server/target/debug/deps/libhyper-017a3cdc6736a241.rlib
- new file: rust-server/target/debug/deps/libiovec-9ed4889681d77b26.rlib
- new file: rust-server/target/debug/deps/liblanguage_tags-11629b31b81f3d22.rlib
- new file: rust-server/target/debug/deps/liblazycell-2b3419a41642dcca.rlib
- new file: rust-server/target/debug/deps/liblibc-bb7c89f2ce8096c8.rlib
- new file: rust-server/target/debug/deps/liblog-2761e801ce580074.rlib
- new file: rust-server/target/debug/deps/liblog-5ab3018dbdb6887a.rlib
- new file: rust-server/target/debug/deps/libmime-269c0d61b3074e73.rlib
- new file: rust-server/target/debug/deps/libmio-ee9b720c06a280c7.rlib
- new file: rust-server/target/debug/deps/libnet2-1683912ed6087d42.rlib
- new file: rust-server/target/debug/deps/libnum_cpus-1af4c2bd3d90b5f5.rlib
- new file: rust-server/target/debug/deps/libpercent_encoding-849f8f474757eb59.rlib
- new file: rust-server/target/debug/deps/librand-8ab0e1ffb77ce137.rlib
- new file: rust-server/target/debug/deps/librand-d6fc38bfb757149d.rlib
- new file: rust-server/target/debug/deps/librelay-9cc332244b2cc58c.rlib
- new file: rust-server/target/debug/deps/libsafemem-a440e1062e1babf4.rlib
- new file: rust-server/target/debug/deps/libscoped_tls-48bd784f27683b7b.rlib
- new file: rust-server/target/debug/deps/libserver-341294d4fd6de71b.rlib
- new file: rust-server/target/debug/deps/libslab-10607eee97d8cc21.rlib
- new file: rust-server/target/debug/deps/libslab-7007c22aeb7cc13c.rlib
- new file: rust-server/target/debug/deps/libsmallvec-4407db67158e0130.rlib
- new file: rust-server/target/debug/deps/libtake-bc568e2c8ab4b320.rlib
- new file: rust-server/target/debug/deps/libtime-68e5083ad2f08f9d.rlib
- new file: rust-server/target/debug/deps/libtokio_core-7e1292d3e601fa73.rlib
- new file: rust-server/target/debug/deps/libtokio_io-2fac47cad3f4ad6c.rlib
- new file: rust-server/target/debug/deps/libtokio_proto-dea9f63c6b9d13d8.rlib
- new file: rust-server/target/debug/deps/libtokio_service-57bbf273942aac20.rlib
- new file: rust-server/target/debug/deps/libunicase-b162822e1c5df7cf.rlib
- new file: rust-server/target/debug/deps/libversion_check-cb9a6d9a9342a363.rlib
- new file: rust-server/target/debug/deps/server-62fe6fe44909e662
- new file: rust-server/target/debug/libserver.d
- new file: rust-server/target/debug/libserver.rlib
- new file: rust-server/target/debug/server
- new file: rust-server/target/debug/server.d
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git reset HEAD
- Unstaged changes after reset:
- M rust-server/Cargo.toml
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile rop_gadgets.txt server.py test_get.py
- example-files PyServer.py run_tests.py setup_tests.sh test_post_file.py
- files README.md rust-server SOURCES.md test_put_file.py
- fs RESOURCES.md server.c test_get_harder.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/Cargo.lock
- rust-server/src/main.rs
- rust-server/src/main.rs~
- rust-server/target/
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ cd rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs .gitignore
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/.gitignore
- rust-server/Cargo.lock
- rust-server/src/main.rs
- rust-server/src/main.rs~
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add rust-server/.gitignore
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add rust-server/Cargo.lock
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- new file: rust-server/.gitignore
- new file: rust-server/Cargo.lock
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/src/main.rs
- rust-server/src/main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add rust-server/src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is up-to-date with 'origin/master'.
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- new file: rust-server/.gitignore
- new file: rust-server/Cargo.lock
- new file: rust-server/src/main.rs
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/src/main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git commit -m "starting on the rust server, also added a git ignore file
- > "
- [master 1492cb2] starting on the rust server, also added a git ignore file
- 3 files changed, 464 insertions(+)
- create mode 100644 rust-server/.gitignore
- create mode 100644 rust-server/Cargo.lock
- create mode 100644 rust-server/src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 1 commit.
- (use "git push" to publish your local commits)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: rust-server/Cargo.toml
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- fs
- rust-server/src/main.rs~
- no changes added to commit (use "git add" and/or "git commit -a")
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git add rust-server/Cargo.toml
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git commit -m" Forgot the toml file"
- [master 966dedf] Forgot the toml file
- 1 file changed, 2 insertions(+)
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git push upstream master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- To https://github.com/fordsec/file-server-group-sec
- ! [rejected] master -> master (fetch first)
- error: failed to push some refs to 'https://github.com/fordsec/file-server-group-sec'
- hint: Updates were rejected because the remote contains work that you do
- hint: not have locally. This is usually caused by another repository pushing
- hint: to the same ref. You may want to first integrate the remote changes
- hint: (e.g., 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git pull upstream master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- remote: Counting objects: 18, done.
- remote: Compressing objects: 100% (10/10), done.
- remote: Total 18 (delta 10), reused 16 (delta 8), pack-reused 0
- Unpacking objects: 100% (18/18), done.
- From https://github.com/fordsec/file-server-group-sec
- * branch master -> FETCH_HEAD
- 4ddf928..19bc101 master -> upstream/master
- error: The following untracked working tree files would be overwritten by merge:
- fs
- Please move or remove them before you merge.
- Aborting
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile rop_gadgets.txt server.py test_get.py
- example-files PyServer.py run_tests.py setup_tests.sh test_post_file.py
- files README.md rust-server SOURCES.md test_put_file.py
- fs RESOURCES.md server.c test_get_harder.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ rm fs
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ ls
- client.py Makefile RESOURCES.md rust-server setup_tests.sh test_get.py
- example-files PyServer.py rop_gadgets.txt server.c SOURCES.md test_post_file.py
- files README.md run_tests.py server.py test_get_harder.py test_put_file.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git pull upstream master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- From https://github.com/fordsec/file-server-group-sec
- * branch master -> FETCH_HEAD
- Auto-merging client.py
- CONFLICT (content): Merge conflict in client.py
- Automatic merge failed; fix conflicts and then commit the result.
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 2 commits.
- (use "git push" to publish your local commits)
- You have unmerged paths.
- (fix conflicts and run "git commit")
- (use "git merge --abort" to abort the merge)
- Changes to be committed:
- new file: .server.c.swp
- new file: fs
- new file: old_client.py
- Unmerged paths:
- (use "git add <file>..." to mark resolution)
- both modified: client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- rust-server/src/main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ emacs client.py
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 2 commits.
- (use "git push" to publish your local commits)
- All conflicts fixed but you are still merging.
- (use "git commit" to conclude merge)
- Changes to be committed:
- new file: .server.c.swp
- modified: client.py
- new file: fs
- new file: old_client.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- rust-server/src/main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git commit -m "fixing some issues, hopefully has everything now"
- [master 36517e3] fixing some issues, hopefully has everything now
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 8 commits.
- (use "git push" to publish your local commits)
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- rust-server/src/main.rs~
- nothing added to commit but untracked files present (use "git add" to track)
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git push origin master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- Counting objects: 32, done.
- Compressing objects: 100% (31/31), done.
- Writing objects: 100% (32/32), 20.46 KiB | 1.57 MiB/s, done.
- Total 32 (delta 15), reused 0 (delta 0)
- remote: Resolving deltas: 100% (15/15), completed with 4 local objects.
- To https://github.com/ChandlerTodd/file-server-group-sec.git
- a4509c6..36517e3 master -> master
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ git push upstream master
- Username for 'https://github.com': chtodd@haverford.edu
- Password for 'https://chtodd@haverford.edu@github.com':
- Counting objects: 17, done.
- Compressing objects: 100% (16/16), done.
- Writing objects: 100% (17/17), 5.25 KiB | 896.00 KiB/s, done.
- Total 17 (delta 7), reused 0 (delta 0)
- remote: Resolving deltas: 100% (7/7), completed with 4 local objects.
- To https://github.com/fordsec/file-server-group-sec
- 19bc101..36517e3 master -> master
- testvm@testvm:~/Desktop/project2/file-server-group-sec$ cd rust-server/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0405]: cannot find trait `Handler` in this scope
- --> src/main.rs:12:6
- |
- 12 | impl Handler for myServer {
- | ^^^^^^^ not found in this scope
- error[E0412]: cannot find type `myServer` in this scope
- --> src/main.rs:12:18
- |
- 12 | impl Handler for myServer {
- | ^^^^^^^^ not found in this scope
- error[E0425]: cannot find value `PHRASE` in this scope
- --> src/main.rs:21:65
- |
- 21 | .with_header(ContentLength(PHRASE.len() as u64))
- | ^^^^^^ not found in this scope
- error[E0425]: cannot find value `PHRASE` in this scope
- --> src/main.rs:22:49
- |
- 22 | .with_body(PHRASE)
- | ^^^^^^ not found in this scope
- error[E0425]: cannot find value `myServer` in this scope
- --> src/main.rs:33:51
- |
- 33 | let server = Http::new().bind(&address, || Ok(myServer)).unwarp();
- | ^^^^^^^^ not found in this scope
- warning: unused import: `ContentType`
- --> src/main.rs:7:36
- |
- 7 | use hyper::header::{ContentLength, ContentType};
- | ^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- warning: unused import: `Service`
- --> src/main.rs:8:46
- |
- 8 | use hyper::server::{Http, Request, Response, Service};
- | ^^^^^^^
- warning: unused imports: `Body`, `Chunk`, `Method`
- --> src/main.rs:9:13
- |
- 9 | use hyper::{Method, Chunk, Body};
- | ^^^^^^ ^^^^^ ^^^^
- error: cannot continue compilation due to previous error
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0407]: method `handle` is not a member of trait `Service`
- --> src/main.rs:24:5
- |
- 24 | / fn handle(&self, req: Request) -> Self::Future {
- 25 | | futures::future::ok(match (req.method(), req.path()) {
- 26 | | (&Get, "/") | (&Get, "/echo") => {
- 27 | | Response.new()
- ... |
- 42 | | })
- 43 | | }
- | |_____^ not a member of trait `Service`
- error[E0412]: cannot find type `FutureResult` in this scope
- --> src/main.rs:21:19
- |
- 21 | type Future = FutureResult<Response, hyper::Error>;
- | ^^^^^^^^^^^^ not found in this scope
- |
- help: possible candidate is found in another module, you can import it into scope
- |
- 4 | use futures::future::FutureResult;
- |
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:27:17
- |
- 27 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- warning: unused import: `futures::future::Future`
- --> src/main.rs:4:5
- |
- 4 | use futures::future::Future;
- | ^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- warning: unused import: `ContentType`
- --> src/main.rs:7:36
- |
- 7 | use hyper::header::{ContentLength, ContentType};
- | ^^^^^^^^^^^
- error[E0046]: not all trait items implemented, missing: `call`
- --> src/main.rs:16:1
- |
- 16 | / impl Service for Echo {
- 17 | | type Request = Request;
- 18 | | type Response = Response;
- 19 | | type Error = hyper::Error;
- ... |
- 44 | |
- 45 | | }
- | |_^ missing `call` in implementation
- |
- = note: `call` from trait: `fn(&Self, <Self as hyper::client::Service>::Request) -> <Self as hyper::client::Service>::Future`
- error: aborting due to 4 previous errors
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rsc
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rsc
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd src/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ rm main.rs~
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:27:17
- |
- 27 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- warning: unused import: `ContentType`
- --> src/main.rs:7:36
- |
- 7 | use hyper::header::{ContentLength, ContentType};
- | ^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- error[E0599]: no method named `unwarp` found for type `std::result::Result<hyper::Server<[closure@src/main.rs:50:42: 50:53], hyper::Body>, hyper::Error>` in the current scope
- --> src/main.rs:50:55
- |
- 50 | let server = Http::new().bind(&addr, || Ok(Echo)).unwarp();
- | ^^^^^^
- error: aborting due to 2 previous errors
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cd src/
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ ls
- lib.rs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server/src$ cd ..
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ ls
- Cargo.lock Cargo.toml src target
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:27:17
- |
- 27 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- error[E0599]: no method named `unwarp` found for type `std::result::Result<hyper::Server<[closure@src/main.rs:50:42: 50:53], hyper::Body>, hyper::Error>` in the current scope
- --> src/main.rs:50:55
- |
- 50 | let server = Http::new().bind(&addr, || Ok(Echo)).unwarp();
- | ^^^^^^
- error: aborting due to 2 previous errors
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:26:17
- |
- 26 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- error: aborting due to previous error
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:26:17
- |
- 26 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- error[E0308]: mismatched types
- --> src/main.rs:25:46
- |
- 25 | (&Get, "/") | (&Get, "/echo") => {
- | ______________________________________________^
- 26 | | Response.new()
- 27 | | .with_header(ContentLength(INDEX.len() as u64))
- 28 | | .with_body(INDEX);
- | | - help: consider removing this semicolon
- 29 | | },
- | |_____________^ expected struct `hyper::Response`, found ()
- |
- = note: expected type `hyper::Response`
- found type `()`
- error: aborting due to 2 previous errors
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0423]: expected value, found struct `Response`
- --> src/main.rs:26:17
- |
- 26 | Response.new()
- | ^^^^^^^^ did you mean `Response { /* fields */ }`?
- error: aborting due to previous error
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo build
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- Finished dev [unoptimized + debuginfo] target(s) in 4.44 secs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- Running `target/debug/server`
- Listening on http://127.0.0.1:1337 with 1 thread.
- ^C
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- Running `target/debug/server`
- Listening on http://127.0.0.1:1337 with 1 thread.
- ^C
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error: incorrect close delimiter: `}`
- --> src/main.rs:37:13
- |
- 37 | };
- | ^
- |
- note: unclosed delimiter
- --> src/main.rs:27:13
- |
- 27 | (&Method::Get, "/" => {
- | ^
- error: unexpected close delimiter: `}`
- --> src/main.rs:42:1
- |
- 42 | }
- | ^
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- error[E0425]: cannot find value `reponse` in this scope
- --> src/main.rs:34:18
- |
- 34 | reponse.set_status(StatusCode::NotFound);
- | ^^^^^^^ did you mean `response`?
- warning: unused import: `hyper::header::ContentLength`
- --> src/main.rs:7:5
- |
- 7 | use hyper::header::ContentLength;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- error: aborting due to previous error
- error: Could not compile `server`.
- To learn more, run the command again with --verbose.
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- warning: unused import: `hyper::header::ContentLength`
- --> src/main.rs:7:5
- |
- 7 | use hyper::header::ContentLength;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- warning: static item is never used: `INDEX`
- --> src/main.rs:12:1
- |
- 12 | static INDEX: &'static [u8] = b"Try POST /echo";
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(dead_code)] on by default
- Finished dev [unoptimized + debuginfo] target(s) in 4.33 secs
- Running `target/debug/server`
- Listening on http://127.0.0.1:1337 with 1 thread.
- ^C
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
- Running `target/debug/server`
- Listening on http://127.0.0.1:1337 with 1 thread.
- ^C
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ cargo run
- Compiling server v0.1.0 (file:///home/testvm/Desktop/project2/file-server-group-sec/rust-server)
- warning: unused import: `hyper::header::ContentLength`
- --> src/main.rs:7:5
- |
- 7 | use hyper::header::ContentLength;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- Finished dev [unoptimized + debuginfo] target(s) in 4.91 secs
- Running `target/debug/server`
- Listening on http://127.0.0.1:1337 with 1 thread.
- ^C
- testvm@testvm:~/Desktop/project2/file-server-group-sec/rust-server$ emacs src/main.rs
- File Edit Options Buffers Tools Help
- match (req.method(), req.path()) {
- (&Method::Get, "/") => {
- let body: Box<Stream<Item=_, Error=_>> = Box::new(Body::from("Try POSTing data to /echo"));
- response.set_body(body);
- },
- (&Method::Post, "/echo") => {
- let mapping = req.body().map(to_uppercase as fn(Chunk) -> Chunk);
- let body: Box<Stream<Item=_, Error=_>> = Box::new(mapping);
- response.set_body(body);
- },
- _ => {
- response.set_status(StatusCode::NotFound);
- },
- };
- Box::new(futures::future::ok(response))
- }
- fn to_uppercase(chunk: Chunk) -> {
- let uppered = chunk.iter()
- .map(|byte| byte.to_ascii_uppercase())
- .collect::<Vec<u8>>();
- Chunk::from(uppered)
- }
- }
- fn main() {
- let addr = "127.0.0.1:1337".parse().unwrap();
- let server = Http::new().bind(&addr, || Ok(Echo)).unwrap();
- println!("Listening on http://{} with 1 thread.", server.local_addr().unwrap());
- server.run().unwrap();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement