Kudaes / Elevator

UAC bypass by abusing RPC and debug objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling and execution error

ampf27 opened this issue · comments

When compiling I'm getting the following errors

C:\Desktop\Elevator-main\Elevator>cargo build --release
   Compiling proc-macro2 v1.0.47
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.5
   Compiling syn v1.0.105
   Compiling windows_quote v0.19.0
   Compiling windows_reader v0.19.0
   Compiling memchr v2.5.0
   Compiling cfg-if v1.0.0
   Compiling cc v1.0.78
   Compiling libc v0.2.138
   Compiling windows_gen v0.19.0
   Compiling const-sha1 v0.2.0
   Compiling winapi v0.3.9
   Compiling backtrace v0.3.67
   Compiling gimli v0.27.0
   Compiling adler v1.0.2
   Compiling failure_derive v0.1.8
   Compiling unicode-xid v0.2.4
   Compiling synstructure v0.12.6
   Compiling addr2line v0.19.0
   Compiling miniz_oxide v0.6.2
   Compiling object v0.30.0
   Compiling windows_macros v0.19.0
   Compiling windows v0.19.0
   Compiling bindings v0.1.0 (C:\Desktop\Elevator-main\Elevator\bindings)
   Compiling rustc-demangle v0.1.21
   Compiling log v0.4.17
   Compiling widestring v0.4.3
   Compiling bitflags v1.3.2
   Compiling failure v0.1.8
   Compiling winproc v0.6.4
   Compiling litcrypt v0.3.0
warning: unused return value of `Box::<T>::from_raw` that must be used
   --> C:\Desktop\Elevator-main\Elevator\target\release\build\bindings-f9c61dc1923f2af4\out/windows.rs:253:33    |
253 | ...                   ::std::boxed::Box::from_raw(value.0);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
    = note: `#[warn(unused_must_use)]` on by default

warning: unused return value of `Box::<T>::from_raw` that must be used
   --> C:\Desktop\Elevator-main\Elevator\target\release\build\bindings-f9c61dc1923f2af4\out/windows.rs:310:33    |
310 | ...                   ::std::boxed::Box::from_raw(value.0);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: call `drop(from_raw(ptr))` if you intend to drop the `Box`

   Compiling data v0.1.0 (C:\Desktop\Elevator-main\Elevator\data)
   Compiling dinvoke v0.1.0 (C:\Desktop\Elevator-main\Elevator\dinvoke)
   Compiling os_info v3.5.1
warning: unreachable pattern
   --> dinvoke\src\lib.rs:155:21
    |
155 |                     _ => (*(*exceptioninfo).context_record).Rip += 1
    |                     ^
    |
    = note: `#[warn(unreachable_patterns)]` on by default

warning: `bindings` (lib) generated 2 warnings
   Compiling static_vcruntime v2.0.0
   Compiling hex v0.4.3
   Compiling elevator v0.1.0 (C:\Desktop\Elevator-main\Elevator)
   Compiling manualmap v0.1.0 (C:\Desktop\Elevator-main\Elevator\manualmap)
   Compiling rpcclient v0.1.0 (C:\Desktop\Elevator-main\Elevator\rpcclient)
warning: `dinvoke` (lib) generated 1 warning
    Finished release [optimized] target(s) in 39.58s

C:\Desktop\Elevator-main\Elevator>set LITCRYPT_ENCRYPT_KEY="key"

C:\Desktop\Elevator-main\Elevator>cargo build --release
warning: unused return value of `Box::<T>::from_raw` that must be used
   --> C:\Desktop\Elevator-main\Elevator\target\release\build\bindings-f9c61dc1923f2af4\out/windows.rs:253:33    |
253 | ...                   ::std::boxed::Box::from_raw(value.0);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
    = note: `#[warn(unused_must_use)]` on by default

warning: unused return value of `Box::<T>::from_raw` that must be used
   --> C:\Desktop\Elevator-main\Elevator\target\release\build\bindings-f9c61dc1923f2af4\out/windows.rs:310:33    |
310 | ...                   ::std::boxed::Box::from_raw(value.0);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: call `drop(from_raw(ptr))` if you intend to drop the `Box`

warning: `bindings` (lib) generated 2 warnings
warning: unreachable pattern
   --> dinvoke\src\lib.rs:155:21
    |
155 |                     _ => (*(*exceptioninfo).context_record).Rip += 1
    |                     ^
    |
    = note: `#[warn(unreachable_patterns)]` on by default

warning: `dinvoke` (lib) generated 1 warning
    Finished release [optimized] target(s) in 0.22s

Despite being able to create the executable anyway

and when running that executable I get the error box

Error Message Box

What can be the issue here?

Those warnings are normal and should not be the root of any execution issue.

Ill need more info in order to help you:
1.- Did this happen before the last commit?
2.- What's your OS version and build?
3.- What are the arguments that you are using to run the tool?
4.- Are you running it from the security context of an user member of the Administrator group?
5.- Did you perform any change to the project, or are you just compiling it after downloading the zip from the repository?
6.- Are you running the tool in the same machine where you are compiling the project?

Maybe with this additional information Ill be able to reproduce the issue, cause atm the tool is working properly in my machine.

I have figured out what I was doing wrong. Working fine now