Deutsch English Français Italiano |
<v8h4gn$2e5g0$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.misc,alt.comp.lang.rust Subject: Re: Converted my Go program to Rust Date: Thu, 1 Aug 2024 23:08:07 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: <v8h4gn$2e5g0$3@dont-email.me> References: <v8h1ct$1fe39$1@matrix.hispagatos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 02 Aug 2024 01:08:08 +0200 (CEST) Injection-Info: dont-email.me; posting-host="480e27b3b4cc073acc0e6062d3b4dc69"; logging-data="2561536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187XPiZ160tPH5p+cbWTO5E" User-Agent: Pan/0.159 (Vovchansk; ) Cancel-Lock: sha1:76F5j2919/NRTPs9mWU0hmKwkj4= Bytes: 1615 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.