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.

(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.
Reply
#13
(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
Reply
#14
(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.
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://breachqr3dqbysbq5khaadg5ynnpxn2wr...sing-pipes
Reply
#16
The only true maldev language is VB6
Reply
#17
(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
Reply
#18
(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  Big Grin

(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 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://breachqr3dqbysbq5khaadg5ynnpxn2wr...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
  [ LIST ] 5 FREE STEALERS WITH PROS/CONS elix 398 16,421 4 hours ago
Last Post: obito07
  [Sektor7] Full Recent Course Spearr 36 1,268 5 hours ago
Last Post: Netr0
  PowerShell AMSI Bypass via VEH Loki 43 4,245 6 hours ago
Last Post: NUKEx
  Xordium stealer for Pulsar v2.4.5 nullvex 30 1,386 6 hours ago
Last Post: NUKEx
  Bypass Cookies Encryption | Working FrancisMDouble 10 1,303 Yesterday, 05:28 PM
Last Post: zxACASD

Forum Jump:


 Users browsing this forum: 1 Guest(s)