Code Monkey home page Code Monkey logo

rust-crypter's People

Contributors

amaop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cmatthewbrooks

rust-crypter's Issues

Error while running stub

thread 'main' panicked at 'called Result::unwrap() on an Err value: PeLoaderErr(MismatchedArch)', src\main.rs:107:38

Error when outputting encrypted_bytes.bin and key.txt

thread 'main' panicked at src\main.rs:14:46:
Failed to read file: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
error: process didn't exit successfully: target\debug\crypt.exe (exit code: 101)

Error while building stub

Compiling memexec v0.2.0
error[E0425]: cannot find value IMAGE_REL_BASED in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:38:36
|
38 | if (item >> 12) == IMAGE_REL_BASED {
| ^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:80:79
|
80 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA,
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:82:35
|
82 | as *const IMAGE_THUNK_DATA,
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:86:79
|
86 | base_addr.offset(import_desc.FirstThunk as isize) as *mut IMAGE_THUNK_DATA,
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:87:81
|
87 | base_addr.offset(import_desc.FirstThunk as isize) as *const IMAGE_THUNK_DATA,
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value IMAGE_ORDINAL_FLAG in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:97:33
|
97 | if thunk_data & IMAGE_ORDINAL_FLAG != 0 {
| ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:119:45
|
119 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA;
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_THUNK_DATA in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:153:45
|
153 | *iat_ptr = proc_addr as IMAGE_THUNK_DATA;
| ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IMAGE_TLS_DIRECTORY in this scope
--> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peloader/mod.rs:169:60
|
169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY>(
| ^^^^^^^^^^^^^^^^^^^
|
::: /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/memexec-0.2.0/src/peparser/def.rs:84:9
|
84 | pub struct $name {
| ---------------- similarly named struct IMAGE_TLS_DIRECTORY32 defined here
|
help: a struct with a similar name exists
|
169 | let tls = &*mem::transmute::<*const c_void, *const IMAGE_TLS_DIRECTORY32>(
| ~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
|
166 | unsafe fn call_tls_callback<IMAGE_TLS_DIRECTORY>(pe: &PE, base_addr: *const c_void) -> Result<()> {
| +++++++++++++++++++++

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try rustc --explain E0412.
error: could not compile memexec due to 9 previous errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.