Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
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: 18
Guests Online: 16
Members Online: 2

Registered Members: 82906
Newest Member: ilija
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

PHP and cURL

knutrainer
Member



Posts: 243
Location:
Joined: 08.07.05
Rank:
Apprentice
Posted on 26-05-06 04:16
I am trying to make a program that will log me into enigmagroup.org. I am using php and cURL. The thing is though it isn't working. I get to errors when I try to use it. cURl is installed on the server. Here is my code.

<?php




$ch = curl_init();

$ip="70.176.49.197";

$user="knutrainer";

$passwrd="some pass";

$url="http://www.enigmagroup.org";




curl_setopt($ch, curlopt_url, $url);

curl_setopt($ch, CURLOPT_POSTFIELDS, $user&$passwrd);

?>


Thanks for the help weather it is critical or not.


img389.imageshack.us/img389/974/knu5ui1ja.jpg
~PM me if you need help or instant message me.


knutrainer@gmail.com
Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-05-06 04:24
Code
<?php

 $username = 'knutrainer';
 $password = '';

 $cURL = curl_init( 'http://www.enigmagroup.org' );
   curl_setopt($cURL, CURLOPT_HEADER, FALSE);
   curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($cURL, CURLOPT_POSTFIELDS, "$username&$password");
 $response = curl_exec( $cURL );
   curl_close( $cURL );


 echo $response;

?>







Edited by on 26-05-06 04:24
Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-05-06 04:27
so if you just put that into a php script, then uploaded it somewhere, what exactly would it do? brute force the password for the given usrname? and curious to why you chose enigmagroup.org lol. Random or they dont have anything to protect against bruteforcers?


Author

RE: PHP and cURL

knutrainer
Member



Posts: 243
Location:
Joined: 08.07.05
Rank:
Apprentice
Posted on 26-05-06 04:47
I am not trying to hack any one. I want to learn how to do this so I can collect mass amounts of data. Also enigma group has a challenge that uses this. Thanks Jake for the information. I see now that I was way off.


img389.imageshack.us/img389/974/knu5ui1ja.jpg
~PM me if you need help or instant message me.


knutrainer@gmail.com
Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-09-06 09:30
Can anyone point me in the direction of a "decent" cURL tutorial.

Please.

P.S. I'm pretty desperate.


Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-09-06 09:46

Try those (directly from my bookmarks)

http://www.zend.c. . .p#Heading6
http://curl.plane. . .pting.html
http://www.higher. . .e-Servers/
http://php.ru.ac.. . .f.curl.php
http://www.progra. . .ndcurl.php
http://www.hudzil. . .hp/15_10_0

A really good book -- if you have some money to spare:
http://curl.phptr. . .=downloads


Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-09-06 10:52
Cheers man! I'll check 'em out and let you know how I go.


Author

RE: PHP and cURL


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-10-06 10:40
As soon as you log in you are redirected, personally I'd do something like this:
Code

<?php

$username = 'Mals';
$password = 'example';
$url= "http://www.enigmagroup.org/forums/index.php?action=login2";
$post_vars = "&user=$username&passwrd=$password&cookielength=-1";

$cURL = curl_init();
    curl_setopt($cURL, CURLOPT_URL, $url);
   curl_setopt($cURL, CURLOPT_POST, 1);
   curl_setopt($cURL, CURLOPT_HEADER, FALSE);
   curl_setopt($cURL, CURLOPT_REFERER, 'http://www.enigmagroup.org/index.php?page=main');
   curl_setopt($cURL, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
   curl_setopt($cURL, CURLOPT_POSTFIELDS, $post_vars);
   curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, 1);
   $response = curl_exec($cURL);
   curl_close($cURL);

   echo $response;

?>





.|Mals

Edited by on 07-10-06 10:43