Sujet : Re: Converted my Go program to Rust
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.misc alt.comp.lang.rustDate : 02. Aug 2024, 01:08:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8h4gn$2e5g0$3@dont-email.me>
References : 1
User-Agent : Pan/0.159 (Vovchansk; )
On Thu, 1 Aug 2024 22:14:53 -0000 (UTC), rek2 hispagatos wrote:
Last year I made a small Go program to automatize some of the first
steps I do when participating on HackTheBox, I decided to migrate it to
rust, this is the result, free software GPLv3
https://git.sr.ht/~rek2/rek2htb-rust
I assume you are munging the hosts file just so your web client will pass
the right “Host:” header line. There should be easier (i.e. less
intrusive) ways of doing that: for example, in wget you can add the option
“--header="Host: «hostname»"”, and there should be something similar in
whatever HTTP client you are using.