Posts: 109
Threads: 2
Joined: Jan 2024
I went from c++ to rust and in the past 6 months it has been a favorable change for my dev.
My main grief is the size of the binaries in rust.. that are considerably larger then a C.
All is good to learn and use.
Posts: 1
Threads: 0
Joined: Jan 2024
Jan 21, 2024, 06:43 PM
(This post was last modified: Jan 21, 2024, 06:45 PM by mafry790.)
In rust there are already many libraries developed, while in C almost everything needs to be developed..
In C it's easy to reinvent the wheel.
(Jan 04, 2024, 06:02 PM)Kyrie Wrote: Rust syntax is a crime against humanity. It's the same thing I think about C++.
I have known C for many years, but sometimes understanding C++ is not easy.
Posts: 65
Threads: 4
Joined: Dec 2023
(Jan 21, 2024, 10:31 AM)Meanjellybean Wrote: I went from c++ to rust and in the past 6 months it has been a favorable change for my dev.
My main grief is the size of the binaries in rust.. that are considerably larger then a C.
All is good to learn and use.
Have u tried adding these settings to your Cargo.toml?
[profile.release]
opt-level = 'z'
lto = true
panic = 'abort'
strip = true
Also compiling for taget `x86_64-pc-windows-msvc` may decrease size a little bit
Posts: 109
Threads: 2
Joined: Jan 2024
(Jan 22, 2024, 05:11 PM)red_dot Wrote: (Jan 21, 2024, 10:31 AM)Meanjellybean Wrote: I went from c++ to rust and in the past 6 months it has been a favorable change for my dev.
My main grief is the size of the binaries in rust.. that are considerably larger then a C.
All is good to learn and use.
Have u tried adding these settings to your Cargo.toml?
[profile.release]
opt-level = 'z'
lto = true
panic = 'abort'
strip = true
Also compiling for taget `x86_64-pc-windows-msvc` may decrease size a little bit
Thanks!
I'll give it a try and let you know the file size..
You dev much in rust?
This is a hobby for me and fun to learn.
Posts: 65
Threads: 4
Joined: Dec 2023
Jan 22, 2024, 10:14 PM
(This post was last modified: Jan 22, 2024, 10:17 PM by red_dot.)
Quote:Thanks!
I'll give it a try and let you know the file size..
You dev much in rust?
This is a hobby for me and fun to learn.
hmm it depends how u define "much" i've started a year ago and first few months i was tryharding a lot. My main goal was maldev and still is  but i had a little break cuz i had too much work and i gotta eat u know. I've made few projects that im "proud of". If it's measure of anything i wrote like 60k lines already so i know something but still not "everything" i wish to go back to rust in next month or sth like that
Come checkout my post u can find here some weird af rust code i will upload more tomorrow. I was thinking about showing how to use NtCreateUserProcess.
http://breachqr3dqbysbq5khaadg5ynnpxn2wr...sing-pipes
Posts: 70
Threads: 7
Joined: Nov 2023
The only true maldev language is VB6
Posts: 19
Threads: 2
Joined: Jan 2024
(Jan 04, 2024, 02:28 PM)Unseenblade Wrote: I've been a full-stack web developer for a while, I'm also proficient in Python. Web dev is fun but I have found my passion in malware, I've boiled down to these three languages and would love some insight from experienced people on which one to go for.
C or C++, Rust or GO. Thank you in advance for the insight, curious to discuss.
malware crafted in Rust is like the ninja of the coding world when it comes to sneaking past antivirus programs. They're way better at dodging detection compared to their C buddies. The cool part? Some brainiacs figured this out and came up with a nifty framework to check out and analyze Rust-written malware in action
Posts: 109
Threads: 2
Joined: Jan 2024
Jan 23, 2024, 11:48 AM
(This post was last modified: Jan 23, 2024, 12:01 PM by Meanjellybean.)
(Jan 22, 2024, 05:11 PM)red_dot Wrote: (Jan 21, 2024, 10:31 AM)Meanjellybean Wrote: I went from c++ to rust and in the past 6 months it has been a favorable change for my dev.
My main grief is the size of the binaries in rust.. that are considerably larger then a C.
All is good to learn and use.
Have u tried adding these settings to your Cargo.toml?
[profile.release]
opt-level = 'z'
lto = true
panic = 'abort'
strip = true
Also compiling for taget `x86_64-pc-windows-msvc` may decrease size a little bit
Thanks!! It's just cut my binary from 4.1mb to 1.7.. any more tips for me
(Jan 22, 2024, 10:14 PM)red_dot Wrote: Quote:Thanks!
I'll give it a try and let you know the file size..
You dev much in rust?
This is a hobby for me and fun to learn.
hmm it depends how u define "much" i've started a year ago and first few months i was tryharding a lot. My main goal was maldev and still is but i had a little break cuz i had too much work and i gotta eat u know. I've made few projects that im "proud of". If it's measure of anything i wrote like 60k lines already so i know something but still not "everything" i wish to go back to rust in next month or sth like that
Come checkout my post u can find here some weird af rust code i will upload more tomorrow. I was thinking about showing how to use NtCreateUserProcess.
http://breachqr3dqbysbq5khaadg5ynnpxn2wr...sing-pipes
Nice shell code for rust.. very neat. Way above my level. Nice work !
Posts: 7
Threads: 0
Joined: Jun 2023
I like Rust for maldev, but mainly because of developer experience.
Posts: 34
Threads: 3
Joined: Jun 2024
I just use C. It's simple, readable and it's been around for a long time so if you run into some issues there is a possibility that somebody already fixed it.
|