TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Black Hat Rust

160 pointsby Eavolution6 months ago

8 comments

tptacek6 months ago
There's a book like these for a bunch of modern languages; I think "Black Hat Python" started the trend, like 10-15 years ago.
评论 #42362329 未加载
yellow_lead6 months ago
I thought this repo was something I could read on GitHub, but it seems like it just stores code associated with the book. So this is just an ad for the book. And all the chapter links 404.
评论 #42366342 未加载
kurisufag6 months ago
&gt; Which programming language allows to craft shellcodes, build servers, create phishing pages? Before Rust, none!<p>i&#x27;d ordinarily consider this too implausible a statement to be seriously believed, but rust people really do talk like this.
评论 #42362557 未加载
评论 #42362469 未加载
评论 #42364345 未加载
评论 #42365429 未加载
anonym296 months ago
Is there a preview of the content beyond a short synopsis of each chapter?
评论 #42365276 未加载
评论 #42362302 未加载
lacoolj6 months ago
Just a book selling ad<p>Moving on
评论 #42369736 未加载
jaylane6 months ago
black hat go was fun. deff needs a sample chapter.
cookiengineer6 months ago
I think what the author hasn&#x27;t realized yet is that for the most part - exploit development, fuzzing a binary, finding a logical problem and building a feasible exploit for it - you are fighting against the language that you chose.<p>The reason Go got so popular is not because of its type system, but because it also has a mode of programming &quot;good enough&quot; prototypes.<p>Python for exploit development is also great due to the gdb fork that can generate python payloads, offsets etc, but it sucks for deployment on targets.<p>If I would compare the three language choices I don&#x27;t see why anyone would choose Rust over the other two in terms of efficiency and not having to fight the language. I don&#x27;t even know whether it would be possible to write an exploit that overflows something in an external ABI binary in Rust without sacrificing everything that Rust stands for. After all, the binary would have to be statically linked for deployment, have to support invalid types, have to support invalid control flows etc.<p>On the other hand, in Go that&#x27;s what CGo is made for. The VM and GC in Go doesn&#x27;t care about what CGo does.<p>Edit: nevermind, the only example that is using Rust for this type of exploits is a sudo cli argument exploit, lol. I would have expected a little more than a char array generator that&#x27;s using the FFI package. [1]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;skerkour&#x2F;black-hat-rust&#x2F;blob&#x2F;main&#x2F;ch_07&#x2F;exploits&#x2F;cve_2021_3156&#x2F;exploit&#x2F;src&#x2F;main.rs">https:&#x2F;&#x2F;github.com&#x2F;skerkour&#x2F;black-hat-rust&#x2F;blob&#x2F;main&#x2F;ch_07&#x2F;e...</a>
评论 #42363966 未加载
评论 #42364314 未加载
评论 #42365676 未加载
评论 #42366306 未加载
NewsaHackO6 months ago
I feel as though buying a book like this is admission that you don&#x27;t have what it takes to do black hat work. Good if it&#x27;s just out of curiosity though.
评论 #42362626 未加载
评论 #42362278 未加载
评论 #42362880 未加载
评论 #42366601 未加载