Viewing 1 replies (of 1 total)
  • 2.1.1:

    inside wp-admin/update-links.php:

    if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) { ...

    inside wp-includes/comment.php:

    $path  = ( !isset($path) ) ? '/'          : $path;
      $path .= ( isset($query) ) ? '?' . $query : '';
      $port  = ( isset($port)  ) ? $port        : 80;
    
      // Try to connect to the server at $host
      $fp = @fsockopen($host, $port, $errno, $errstr, 2);
      if ( !$fp ) // Couldn't open a connection to $host
       return false;
      // Send the GET request
      $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: WordPress/$wp_version \r\n\r\n";

    and:

    $http_request .= "User-Agent: WordPress/" . $wp_version;
      $http_request .= "\r\n\r\n";
      $http_request .= $query_string;
      if ( '' == $trackback_url['port'] )
       $trackback_url['port'] = 80;
      $fs = @fsockopen($trackback_url['host'], $trackback_url['port'], $errno, $errstr, 4);
      @fputs($fs, $http_request);
     /*
      $debug_file = 'trackback.log';
      $fp = fopen($debug_file, 'a');
      fwrite($fp, "\n*****\nRequest:\n\n$http_request\n\nResponse:\n\n");

    inside wp-includes/cron.php:

    $cron_url = get_option( 'siteurl' ) . '/wp-cron.php';
      $parts = parse_url( $cron_url );
    
      $argyle = @ fsockopen( $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01 );
      if ( $argyle )
       fputs( $argyle,
          "GET {$parts['path']}?check=" . md5(DB_PASS . '187425') . " HTTP/1.0\r\n"
        . "Host: {$_SERVER['HTTP_HOST']}\r\n\r\n"
       );

    pings, trackbacks, askimet to name a few ..

    The function is called in a few more files than Ive shown. I recommend grabbing something like wingrep and looking for yourself if you need more info.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress & fsockopen’ is closed to new replies.