News for hackers. Stuff that matters.
Re:Black Hat Rust by dijit on Sunday December 08, 2024 @08:37PM (#42362329)
Black Hat Python, along with RTFM: Red Team Field Manual; are excellent resources for binpacking your brain with some simple effective uses of tools to serve a need.

I don't feel the same about this book.

Python is pretty ubiquitous, and RTFM focuses on oneliners and easily composable programs with utilities that already exist on target systems.

A lot of what makes Red Team work harder is the need for portability, which pushes people to need to learn lots of interpreted languages and OS internals.

My memory of using Rust for interop with the OS, is syscalls in win32 api; which consumed the better part of a couple weeks to get right, and required the use of unsafe, a lot.

Re:Black Hat Rust by daghamm on Monday December 09, 2024 @02:25AM (#42363750)
I recently read blackhat python. I feel it has not aged well as large parts are dedicated to issues that are no longer relevant.

I don't see this book doing the same mistake. On the other hand, I dont know if I want to fight the borrow checker for weeks instead if throwing together a quick script in python...

Re:Black Hat Rust by nicce on Monday December 09, 2024 @04:05AM (#42364301)
> I dont know if I want to fight the borrow checker for weeks instead if throwing together a quick script in python...

To be fair, you only need to fight if you care about maximum performance.

Re:Black Hat Rust by lord-squirrel on Monday December 09, 2024 @04:31AM (#42364442)
Have you read the 2nd Edition or the first one?
Re:Black Hat Rust by red-iron-pine on Monday December 09, 2024 @01:02PM (#42368602)
the 2nd edition one is from 2021 and has some errors; there is errata for it

it's alright, a lot of stuff I'd characterize as a 'good start'