Jump to content

Hamlets666

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Posts posted by Hamlets666

  1. Sorry about "spamming"  :)

    [code]<?php
    $url = "http://blabla.com";
    $proxies = @file("zz.txt");

    foreach($proxies as $v)
    {
    list($ip[], $port[]) = explode(':', trim($v));
    $fp = fsockopen($ip,$port);
    fputs($fp,"GET $url HTTP/1.0\r\nHost: $ip\r\n\r\n");
    while(!feof($fp))
    {
    echo fgets($fp, 4000);
    }
    fclose($fp);
    }
    ?>[/code]

    It`s last what I tried :) But again : [i]Warning: fsockopen() expects parameter 1 to be string, array given in z:\home\localhost\www\777\newww.php on line 8

    Warning: fputs(): supplied argument is not a valid stream resource in z:\home\localhost\www\777\newww.php on line 9

    Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\777\newww.php on line 10

    Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\777\newww.php on line 12

    Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\777\newww.php on line 10

    Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\777\newww.php on line 12[/i]
    And error with line10,12 repeats a lot  :-[
  2. There it is :
    [code]<?php
    $url = "http://blabla.com";
    $x = 0;
    $proxy=@file("zz.txt");
    foreach($proxy as $v) list($ips[], $ports[]) = explode(':', $v);
    //
    while($x < 129) { //// There are 130 proxy`s
    $x = $x + 1;
    $fp = fsockopen($ips[$x], $ports[$x]);
    fputs($fp, "GET $url HTTP/1.0\r\nHost: $ips[$x]\r\n\r\n");
    while(!feof($fp)){
      $line = fgets($fp, 4000);
      print($line);
    }
    fclose($fp);
    }
    ?>[/code]

    And error : [i]Warning: fsockopen() expects parameter 2 to be long, string given in z:\home\localhost\www\anti2\xy.php on line 8

    Warning: fputs(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 9

    Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10

    Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11

    Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10

    Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11

    Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10

    Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11[/i]
    .......

    Any idea why so? Proxy`s in zz.txt are like [b]33.33.33.33:33[/b]


    By the way : when i was writing : [code]<?php
    $proxy = "33.33.33.33";
    $port = 33;
    $url = "http://blabla.com";
    $fp = fsockopen($proxy, $port);
    fputs($fp, "GET $url HTTP/1.0\r\nHost: $proxy\r\n\r\n");
    while(!feof($fp)){
      $line = fgets($fp, 4000);
      print($line);
    }
    fclose($fp);
    ?>[/code]
    it was ok   :-\
  3. Could I ask for some more help? Like - I wanted to use anonymouse.org to send in POST data like this :

    [code]<?php

    $x='name=BLsAx&pass=BLxAsBLA&about=5c6b6c66&email=blabla@inbox.lv&rass=8013&height=175&mass=80';


    $f=fsockopen('anonymouse.org',80,$errno,$errstr,30);
    if(!$f) {
    echo "Socket error #$errno: $errstr";
    } else {

    $wr="POST /cgi-bin/anon-www.cgi/http://dyzyag.jino-net.ru/reg.php HTTP/1.1\r\nHost: dyzyag.jino-net.ru\r\n";

    $wr.="Content-Type: application/x-www-form-urlencoded\r\n";

    $wr.="User-Agent: Mozilla 4.0\r\nContent-length: ";

    $wr.=strlen($x)."\r\nConnection: close\r\n\r\n$x";

    fputs($f,$wr);

    while(!feof($f)) {
    echo fgets($f,1024);
    }
    fclose($f);
    }
    ?>[/code]

    And with this code POST data wasn`t sended :(




    [b] EDIT :[/b] [i]My error : :-\ I didn`t changed Host: dyzyag.jino-net.ru to anonymouse.org[/i]
  4. [code] <?php

    $x='name=BLA&pass=BLABLA&about=5c6b6c66&email=blabla@inbox.lv&rass=8013&height=175&mass=80';
    $f=fsockopen('dyzyag.jino-net.ru',80,$errno,$errstr,30);
    if(!$f) {
    echo "Socket error #$errno: $errstr";
    } else {
    $wr="POST /reg.php HTTP/1.1\r\nHost: dyzyag.jino-net.ru\r\n\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($x)."\r\n\r\n".$x;
    fputs($f,$wr);

    while(!feof($f)) {
    echo fgets($f,1024);
    }
    fclose($f);
    }
    ?> [/code]

    And there is error - HTTP/1.1 411 Length Required Server: nginx/0.4.0 Date: Sun, 08 Oct 2006 09:19:14 GMT Content-Type: text/html Content-Length: 180 Connection: close
    [b]411 Length Required[/b]

    Could you help me with this error?  ???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.