Live data from Hacker News

New York Times shut down Tor Onion service

open.nytimes.com

131–140 of 175 posts

Re: New York Times shut down Tor Onion service

#132
post #3

WhatsApp and Telegram are hardly replacements for Tor access. A government can block them easily. The onion service's days were numbered after they fired Runa Sandvik. I'm surprised it lasted this long. Looking at the pay and current labor disputes, it seems like the New York Times isn't a good place for a skilled software engineer to work these days. They'll keep running SecureDrop over an onion service, right...?

Lol it is not hard to create a hidden service:

Prerequisites:

- Linux: You may need `sudo` privileges to install Tor and modify system files.

- macOS: Homebrew must be installed (`brew`) to manage Tor.

- A web server must already be running on the specified local port (e.g., 8080).

- Firewall: This function does not configure the firewall. Ensure that:

  - Tor’s default port (9050) is allowed.
  - Your web server’s port (e.g., 8080) is accessible locally.


  #!/usr/bin/env bash

  # Function to add a Tor hidden service for a local web server
  add_tor_hidden_service() {
    local local_port="${1:-8080}"  # Default to 8080 if no port is provided
    local torrc=""
    local tordir=""
    local sudo_cmd=""
    local os_type=""

    # Detect OS and set paths
    if [[ "$OSTYPE" == "linux-gnu"* ]]; then
      os_type="linux"
      torrc="/etc/tor/torrc"
      tordir="/var/lib/tor"
      sudo_cmd="sudo -n"
    elif [[ "$OSTYPE" == "darwin"* ]]; then
      os_type="macos"
      torrc="$(brew --prefix)/etc/tor/torrc"
      tordir="$(brew --prefix)/var/lib/tor"
    else
      echo "Error: Unsupported OS (Linux or macOS required)" >&2
      return 1
    fi

    # Install Tor if not already installed
    if ! command -v tor &>/dev/null; then
      echo "Installing Tor..." >&2
      if [[ "$os_type" == "linux" ]]; then
        if [ -f /etc/debian_version ]; then
          $sudo_cmd apt update && $sudo_cmd apt install -y tor
        elif [ -f /etc/redhat-release ]; then
          $sudo_cmd yum install -y tor || $sudo_cmd dnf install -y tor
        else
          echo "Error: Only Debian or RedHat-based Linux supported" >&2
          return 1
        fi
      elif [[ "$os_type" == "macos" ]]; then
        brew install tor
      fi
    fi

    # Ensure Tor is running
    if [[ "$os_type" == "linux" ]]; then
      $sudo_cmd systemctl start tor
    elif [[ "$os_type" == "macos" ]]; then
      brew services start tor
    fi

    # Configure hidden service
    local hidden_service_dir="$tordir/hidden_service_$local_port"
    local dir_line="HiddenServiceDir $hidden_service_dir"
    local port_line="HiddenServicePort 80 127.0.0.1:$local_port"

    if ! grep -qF -- "$dir_line" "$torrc"; then
      echo "Configuring Tor hidden service..." >&2
      echo "$dir_line" | $sudo_cmd tee -a "$torrc" >/dev/null
      echo "$port_line" | $sudo_cmd tee -a "$torrc" >/dev/null
    fi

    # Restart Tor to apply changes
    echo "Restarting Tor..." >&2
    if [[ "$os_type" == "linux" ]]; then
      $sudo_cmd systemctl restart tor
    elif [[ "$os_type" == "macos" ]]; then
      brew services restart tor
    fi

    # Wait for onion address to be generated
    local onion_address=""
    for attempt in {1..30}; do
      if [[ -f "$hidden_service_dir/hostname" ]]; then
        onion_address=$($sudo_cmd cat "$hidden_service_dir/hostname")
        break
      fi
      sleep 1
    done

    if [[ -z "$onion_address" ]]; then
      echo "Error: Failed to generate onion address" >&2
      return 1
    fi

    echo "Success! Your web server is now available on the Tor network." >&2
    echo "Onion address: $onion_address" >&2
    echo "$onion_address"
  }

  # Example usage
  # serve -p 8080
  # add_tor_hidden_service 8080
  add_tor_hidden_service "$@"
Tested on macOS, probably good in other OS listed above. So run a server on a port. Then run this function. Boom, you have a hidden service.

Mining for a nice vanity hostname might be more difficult tho! How would that be done?

Re: New York Times shut down Tor Onion service

#133

Earlier quoted context omitted.

The propaganda outlets have really been pushing hard the line that you can't trust professional journalists, and people who get their news from influencers just seem to accept it uncritically.

It’s not propaganda, Noam Chomsky wrote a book about how media is used to advance otherwise unpopular government policies decades ago and the NYT is mentioned in it. If anything this post is propaganda.

Even Chomsky has said that you could read the NYT from back to front to partially counteract the bias toward cozying up to power. (I.e., the stories that show bias in favor of U.S. govt are the ones at the front that are most prominently placed.)

Toplevel OP, however, is saying some things that are more radical and less studious:

* "NYT aligns itself with power at every opportunity." Because the statement is totalizing it is trivially disproved. Off the top of my head-- see the "Pentagon Pundits" story by David Barstow[1]. It won a Pulitzer and was published while Bush was still president. It was also a front-page story IIRC.

* "never ran the story to protect GW's chances at reelection." IIRC Glenn Greenwald was the most vocal/detailed critic of Keller's cowardice on spiking the domestic surveillance story in the lead up to the 2004 election. But even he didn't claim Keller did in order to help GW win the election. OP made that up out of whole cloth.

I don't think HN comments like this are propaganda, but they are low-effort and apparently impulsively written.

At least nobody has yet used the pretentious terms "Gell-Mann Amnesia" or "Overton window" in this thread, so that's progress. :)

1: https://en.wikipedia.org/wiki/Pentagon_military_analyst_prog...

Re: New York Times shut down Tor Onion service

#135
post #49

Earlier quoted context omitted.

> [The NY Times] knew the NSA was spying on us but never ran the story to protect GW's chances at reelection This is a really strong claim -- the part about the 'why'. Strong claims generally require strong evidence. I'm perfectly willing to believe they spiked the story for other, more plausible reasons, but come on, their editorial endorsing John Kerry is right there for everyone to read: > There is no denying that…

I know PBS frontline did a documentary on this.

They did, it is worth watching, and it most definitely does not make the claim that Keller scuttled the story because he wanted GW to win the election.

I've never heard anyone except user Luma at the top of this HN thread make that claim.

If anything the time and energy devoted on this thread to disputing an apparently hastily-written and not fact-checked claim is evidence for why serious journalism (and a good editor!) is worth its weight in gold.

Re: New York Times shut down Tor Onion service

#136
post #122

Earlier quoted context omitted.

What says they were scared?

> decided not to report the piece after being pressured

I see what you are referring to, thanks.

'Pressure' doesn't mean fear necessarily. It could just result in different calculations of concern or risk.

More importantly, the word 'pressure' upthread was written by a random Wikipedia editor. It's not quoting NYT editor Bill Keller. I think reading much into it - or even relying on it at all - is risky.

From what I know, do I think the Bush administration attempted to pressure the NYT? I wouldn't be surprised. But the evidence says the Bush team made arguments about risk to national security. Those certainly could have influenced the NYT, and I think the NYT said that.

Re: New York Times shut down Tor Onion service

#137

Earlier quoted context omitted.

I'm excited to hear why you put "vaccine" in scare quotes.

I'm not the same person. But a vaccine which doesn't actually provide lasting immunity is a really shit vaccine. And while I wouldn't say that means it doesn't deserve to be called a vaccine at all, certainly many people think that.

Yearly flu vaccines have been a thing for decades.

If that's what OP thinks, I'm not sure they actually know what a vaccine is.

Re: New York Times shut down Tor Onion service

#140
post #3

WhatsApp and Telegram are hardly replacements for Tor access. A government can block them easily. The onion service's days were numbered after they fired Runa Sandvik. I'm surprised it lasted this long. Looking at the pay and current labor disputes, it seems like the New York Times isn't a good place for a skilled software engineer to work these days. They'll keep running SecureDrop over an onion service, right...?

Lol it is not hard to create a hidden service: Prerequisites: - Linux: You may need `sudo` privileges to install Tor and modify system files. - macOS: Homebrew must be installed (`brew`) to manage Tor. - A web server must already be running on the specified local port (e.g., 8080). - Firewall: This function does not configure the firewall. Ensure that: - Tor’s default port (9050) is allowed. - Your web server’s port…

> Mining for a nice vanity hostname might be more difficult tho! How would that be done?

https://community.torproject.org/onion-services/advanced/van...

Post reply on HN