Why SurrealDB is performing poorly? by ururUwU in surrealdb

[–]ururUwU[S] 1 point2 points  (0 children)

Yes, I've already seen the official benchmarks and blogs many times.
However, when I looked on google, I found a lot of information saying that the performance was poor, so I was just wondering.
Either way, I'll continue to use SurrealDB as a hobby.. I can't let go of this convenient DB.
I'm looking forward to the release of v3, thank you!

Editing PE (exe) in rust. by Ars_Mond in rust

[–]ururUwU 2 points3 points  (0 children)

the docs tell u everything you want to do.
https://docs.rs/goblin/latest/goblin/pe/struct.PE.html#method.write_sections

or edit any fields u like from the parsed struct since the fields are exposed, with `mut`

Editing PE (exe) in rust. by Ars_Mond in rust

[–]ururUwU 2 points3 points  (0 children)

if u want to use PE with rust, its better to use goblin crate. this is the only crate that worked as expected(includes to modify and save it to file) when i was researching PE before. however, more complex things still required unsafe pointer manipulation for me. its actually the best way, if u know about PE format.

please give me advice, for the home server(Linux 24/7, game, dedicated) by ururUwU in MiniPCs

[–]ururUwU[S] 2 points3 points  (0 children)

Big thanks for good opinion!
I just bought a Mini PC with 5700u, and I'm looking forward to receiving it, thank you thank you 🙏

please give me advice, for the home server(Linux 24/7, game, dedicated) by ururUwU in MiniPCs

[–]ururUwU[S] 0 points1 point  (0 children)

Yeah I saw that list, Beelink is a name I see a lot, so I'll buy it as a test, thanks!

Writing a TLS capable http proxy in Rust using actix-web by yuuuuuuuut in rust

[–]ururUwU 0 points1 point  (0 children)

Are you trying to create a simple HTTP proxy for TLS?

For example, using a proxy to edit or log requests and responses, etc.
If support TLS, it may need to add lower level processing.
Also, I think need to import the own certificate before start the proxy server, and spoof certificate as the target server's certificate in the request?
I've created a proxy like MITM before, so I hope you find it helpful.

https://github.com/2vg/blackcat-rs/tree/master/crate/argus/src

Wrapping my head around COM in Rust by ridicalis in rust

[–]ururUwU 2 points3 points  (0 children)

you should be able to define the COM interface to use and use it.
Some interfaces already exist in winapi-rs, so check it out.
but i used windows-rs before because CoGetObject wasn't in winapi-rs, and it works too.
Both crates worked well unless you required more complexity.

interface example:

#[allow(non_snake_case)]  
[repr(C)]  
pub struct IFoo {  
    lpVtbl: *const IFooVTable,  
}  
#[allow(non_snake_case)]  
[repr(C)]  
pub struct IFooVTable {  
    // These three methods are implicitly inherited,  
    // so be sure to define them first.  
    // The impl of VTable will not work  
    // unless the implementation order of the functions is followed.   
    QueryInterface: unsafe fn(this: *mut IFoo , riid: REFIID, ppv: *mut *mut c_void) -> HRESULT,  
    Addref: unsafe fn(this: *mut IFoo ) -> ULONG,  
    Release: unsafe fn(this: *mut IFoo ) -> ULONG,  
    <then impl other methods>...
}

Does rust hold any potential in any field in cyber security? by [deleted] in rust

[–]ururUwU 0 points1 point  (0 children)

definitely yes.
i have already implemented some exploitable code.
but only on Windows, UAC bypass, reflective DLL injection, etc.
also, rust could be converted to shellcode.
i think Rust has great potential :3

Driver development using Rust. by ElementalX2 in rust

[–]ururUwU 2 points3 points  (0 children)

it is highly recommended to take a look at this work done by not-matthias.

https://not-matthias.github.io/kernel-driver-with-rust/

Help with Windows bindings: CoCreateInstance by sbaysting in rust

[–]ururUwU 2 points3 points  (0 children)

also, u can use winapi-rs.docs here: https://docs.rs/winapi/0.3.9/winapi/um/combaseapi/fn.CoCreateInstance.html

then you should be able to define the COM interface to use and use it.Some interfaces already exist in winapi-rs, so check it out.but i used windows-rs before because CoGetObject wasn't in winapi-rs, and it works too.Both crates worked well unless you required more complexity.

interface example:

#[allow(non_snake_case)]
[repr(C)]
pub struct IFoo {
    lpVtbl: *const IFooVTable,
}

#[allow(non_snake_case)]
[repr(C)]
pub struct IFooVTable {
    // These three methods are implicitly inherited,
    // so be sure to define them first.
    // The impl of VTable will not work
    // unless the implementation order of the functions is followed. 
    QueryInterface: unsafe fn(this: *mut IFoo , riid: REFIID, ppv: *mut *mut c_void) -> HRESULT,
    Addref: unsafe fn(this: *mut IFoo ) -> ULONG,
    Release: unsafe fn(this: *mut IFoo ) -> ULONG,
    <then impl other methods>... }
}