News for hackers. Stuff that matters.
Re:A comprehensive guide to running Llama 2 locally by dopidopHN on Tuesday July 25, 2023 @09:04PM (#36871882)
Pretty common. You can inspect the script before piping it.
Re:A comprehensive guide to running Llama 2 locally by Evidlo on Wednesday July 26, 2023 @12:06AM (#36872956)
Bad actors can detect if its being piped to bash and send different data. Better to just download the script first if you're concerned.
Re:A comprehensive guide to running Llama 2 locally by selcuka on Wednesday July 26, 2023 @12:34AM (#36873133)
How can you detect where someone pipes the output of curl output to?
Re:A comprehensive guide to running Llama 2 locally by pests on Wednesday July 26, 2023 @01:02AM (#36873314)
Basically, bash executes the script line by line as it is downloading - pausing the download while that line executes. By sending a sleep() command early in the script you can detect the delay in the next line beind downloaded.

Its a lot more complicated due to TCP buffers and trying to hide output from the user.

Original article below. It is giving me a certificate error though but its available through archives or a cache.

https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...

Re:A comprehensive guide to running Llama 2 locally by selcuka on Wednesday July 26, 2023 @03:14AM (#36874089)
Amazing, thanks.
Re:A comprehensive guide to running Llama 2 locally by column on Wednesday July 26, 2023 @04:37AM (#36874692)
"This Connection is Invalid. SSL certificate expired."
Re:A comprehensive guide to running Llama 2 locally by pests on Wednesday July 26, 2023 @12:57PM (#36880920)
Yeah I mentioned that. You have to go through a cache or an archive.
Re:A comprehensive guide to running Llama 2 locally by asdfgeoff on Thursday July 27, 2023 @01:51AM (#36889433)
Neat article.

Cached version → http://archive.today/O46rw

Re:A comprehensive guide to running Llama 2 locally by dopidopHN on Thursday July 27, 2023 @10:16AM (#36893931)
That what I meant but I had no idea about piping detection at the same time so thanks for pointing that out, nifty.