4 ms·
https://duckduckgo.com/?q=http+via+telnet https://duckduckgo.com/?q=http+via+telnet ;) Reasons this won't work: * Browser installers generally live on https.
by daveloyall 11y ago
https://duckduckgo.com/?q=http+via+telnet https://duckduckgo.com/?q=http+via+telnet
;)
Reasons this won't work:
* Browser installers generally live on https.
So, we'll cheat!
scp ChromeSetup.exe mywebhost.besttldever:/var/www/html
* Telnet displays the server's response on screen. .exe files are binary.
I searched a bit and didn't find an obvious way to get the httpd to use some sort of 7-bit encoding.
So, we'll cheat!
$ base64 ChromeSetup.exe > ChromeSetup.exe.txt
* Your console buffer is too short. You don't know how to terminate a telnet session.
reconfigure... killall telnet...
Let's do this!
hobbes@metalbaby:~/scratch$ telnet mywebhost.besttldever 80
Trying 52.20.234.148...
Connected to mywebhost.besttldever.
Escape character is '^]'.
GET /ChromeSetup.exe.txt HTTP/1.1
host: mywebhost.besttldever
HTTP/1.1 200 OK
Date: Wed, 28 Oct 2015 16:04:16 GMT
Server: Apache/2.4.16 (Debian)
Last-Modified: Wed, 28 Oct 2015 15:59:21 GMT
ETag: "132ad2-5232c470de522"
Accept-Ranges: bytes
Content-Length: 1256146
Vary: Accept-Encoding
Content-Type: text/plain
TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAA+AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v
ZGUuDQ0KJAAAAAAAAADrS9CIryq+268qvtuvKr7bonhf24UqvtuieGHbuyq+26J4XtvXKr7b6Xtf
260qvtuKXVvbqSq+23LVddukKr7bryq/294qvtuieGXbriq+268qKduYKr7bil1g264qvttSaWNo
ryq+2wAAAAAAAAAAAAAAAAAAAABQRQAATAEFAJf06FUAAAAAAAAAAOAAAgELAQwAACYBAADKDAAA
...ok, copy and paste the whole thing into a file, and...
hobbes@metalbaby:~/scratch$ base64 -d ChromeSetup.exe.txt > ChromeSetup.exe.fromTelnet
hobbes@metalbaby:~/scratch$ diff ChromeSetup.exe ChromeSetup.exe.fromTelnet
hobbes@metalbaby:~/scratch$
Viola!
- daveloyall 11y agoBy the way, you didn't mention the OS of the machine with one USB port... So I don't know if you have a base64 decoder handy! Let's suppose Windows... The internet says that `certutil` can decode base64. If your machine doesn't have that tool, try constructing a .eml file and copy/paste the base64 content in as an attachment. OutlookExpress can open that.