C, Rust or GO for malware development?
by Unseenblade - Thursday January 4, 2024 at 02:28 PM
#11
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.
Reply
#12
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.

(01-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.
Reply
#13
(01-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
Reply
#14
(01-22-2024, 05:11 PM)red_dot Wrote:
(01-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.
Reply
#15
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 Big Grin 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://breachedu76kdyavc6szj6ppbplfqoz3p...sing-pipes
Reply
#16
The only true maldev language is VB6
Reply
#17
(01-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
Reply
#18
(01-22-2024, 05:11 PM)red_dot Wrote:
(01-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  Big Grin

(01-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 Big Grin 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://breachedu76kdyavc6szj6ppbplfqoz3p...sing-pipes


Nice shell code for rust.. very neat. Way above my level. Nice work !
Reply
#19
I like Rust for maldev, but mainly because of developer experience.
Reply
#20
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rust Malware PDF builder (Open SRC) L_DWORD 90 13,213 6 hours ago
Last Post: WTF69
  Malware Development MD MZ E Book Mandala 37 1,231 Yesterday, 03:58 PM
Last Post: n3xt1su
  Sektor7 - Malware Development Advanced - Vol.1 Sh4d0w1X 407 38,965 Yesterday, 01:42 PM
Last Post: jodjahsjdhak
  Build Undetectable Malware Using C Language op404 65 2,864 08-06-2025, 10:17 AM
Last Post: R1nzler
  Malware On Steroids 0neSh0t 331 22,941 08-01-2025, 06:32 AM
Last Post: Anamali

Forum Jump:


 Users browsing this thread: 1 Guest(s)