Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need someone who writes me a script :>

    Hello, I need someone who can write an easy php script that fetches ALL login-url's from a given website. A login-url is for example this:

    http://Username:Password@theurl.com

    Of course the given page has more content except these url's. The script must sort out not needed informations and fetch only the VALID login-url's. After that I want all url's to be in an array so that I can work with them.

    And please don't use PHP 5 functions.

    Of course I will pay something, but only via PayPal. I think $10 should be enough

    Who is interested?

    Regards,
    Intermezzo

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I think you're going to get a better response in the Paid work offers and requests forum.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    PHP Code:
    $string 'http://username:password@theurl.com';
    if (
    preg_match('/(http:\/\/)?(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)/'$string)){
    $string str_replace('http://'''$string);
    list (
    $username$string) = explode (':'$string);
    list (
    $password$string) = explode ('@'$string);
    $url preg_replace('/(\.co\.uk|\.com|\.org)/'''$string);

    echo 
    $username '<br>' $password '<br>' $url;

    Is that what you were looking for? (btw I was bored )
    Last edited by Mwnciau; 08-24-2006 at 07:37 AM.

  • #4
    New Coder
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry that I posted in the wrong area

    However, thanks Mwnciau for your code. It shows some new functions to me but it is not what i need I think you can do it Mwnciau. I really need this script. Tell me a (real) price for the script and I will pay it.

    Here again - I need this:

    Look for example this page... http://www.ultrapasswords.com/
    Look at the source code und scroll to the bottom. For example there is this line of code...

    Code:
    ... font face=Arial><strong><a href="http://jonkauffma:slipknot@www.adrianasage.com/members/index.php" target="_blank">Adrianasage.com</a></strong></font>...
    Now I need the highlighted part. The script should search the whole page for these "logins". Every login should be added to an array.

    Understand what mean?

  • #5
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    PHP Code:
    $file ''// (file to open)
    $contents file_get_contents($file);
    $contents preg_replace('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/''-=-$0-=-'$contents);
    $temp[] = explode('-=-'$contents);
    for (
    $i 0$i sizeof($temp); $i++){
    if (
    preg_match('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/'$temp[$i]){
    $array[] = $temp[$i];
    }

    that should do it, $array has the values of the urls and you can use my previous post to separate them

    btw pay what you feel its worth, tbh your money, i'll pm you the paypal email

  • #6
    New Coder
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK. Some cash transfered for the beginning

    If I use this code...

    Code:
    $file = 'http://www.ultrapasswords.com'; // (file to open)
    $contents = file_get_contents($file);
    $contents = preg_replace('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/', '-=-$0-=-', $contents);
    $temp[] = explode('-=-', $contents);
    for ($i = 0; $i < sizeof($temp); $i++){
    if (preg_match('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/', $temp[$i]){
    $array[] = $temp[$i];
    }
    }
    the following error occurs...

    Code:
    Warning: preg_match() expects parameter 2 to be string, array given in C:\xampp\xampp\htdocs\fetch-test\index.php on line 49

  • #7
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    PHP Code:
    $file 'http://www.ultrapasswords.com/'// (file to open)
    $contents file_get_contents($file);
    $contents preg_replace('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/''-=-$0-=-'$contents);
    $temp explode('-=-'$contents);
    for (
    $i 0$i sizeof($temp); $i++){
    $temp2 $temp[$i];
    $temp2 strip_tags(preg_replace('/\<a (.*?)href="(.*?)"(.*?)\>/''$1'$temp2));
    list (
    $temp2$temp3) = explode('"'$temp2);
    if (
    preg_match('/((http:\/\/)(.*?):(.*?)@(.*?)(\.co\.uk|\.com|\.org)((.*?)\.php|\.html)?)/'$temp2)){
    $array[] = $temp2;
    }
    }
    for (
    $i 0$i sizeof($array); $i++){
    echo 
    $array[$i] . '<br>';

    took me a while to figure it out, i think thats has the desired affect.

  • #8
    New Coder
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah great, it works perfectly! Good job. I've send you some more cash. Hope it's enough

    If I need more help for my script I will post here again. Thanks so far.

  • #9
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    ok np


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •