Follow us on Twitter!
Ideas are far more powerful than guns.
Saturday, April 19, 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: 26
Guests Online: 26
Members Online: 0

Registered Members: 82831
Newest Member: FL4SHC0D3R
Latest Articles
View Thread

HellBound Hackers | Challenges | Realistic

Author

Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-03-09 23:19
Hello,
First of all, i started learning php tonight just for the script but i think it works. I think it doesn't contain error. The problem is - it is too slow. And after a while (60 sec i think) i get an error:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\xampp\htdocs\index.php on line 17

Do you think the script is wrong or you must see it first?


Edited by on 22-03-09 00:37
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-03-09 23:28
This means that it has taken too long for the PHP script to run. Have you installed PHP on your box, or are you using a server?

If you have installed it on your box, then you either i) have a really slow computer or ii) have created and infinite loop or such like.

Try setting max_execution_time to a larger value like so:

Code

<?php

ini_set('max_execution_time', '60');

// your code here

?>








Edited by on 21-03-09 23:29
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-03-09 23:31
Just noticed you've added the script, I'll take a look at it. Yes, it is a possible spoiler.


Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-03-09 00:12
Is there 'faster' script?
Author

RE: Realistic 2. Need help with the script.

Uber0n
Member



Posts: 1963
Location: Sweden‭‮
Joined: 13.06.06
Rank:
Hacker Level 3
Posted on 22-03-09 00:31
MoshBat wrote:
Or 0, which, if memory serves my tipsy mind, will remove any time limits.

That is correct.

http://www.php.ne. . .-limit.php says:
The maximum execution time, in seconds. If set to zero, no time limit is imposed.



img230.imageshack.us/img230/724/uber0nsig3hj6.gif
http://uber0n.web. . .
Nope http://uber0n.webs.com/
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-03-09 00:39
uhm .. i set it to some number like 14214214. It was very slow but it worked. Thanks for the help. Smile C ya in some thread about other realistic challenge.
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 10-07-09 15:10
Could someone learn me how to make a brute force php script? Cause I have no idea where to start and I'd love to learn how to create these kind of scripts!!!


Author

RE: Realistic 2. Need help with the script.

yours31f
Member



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Elite
Posted on 10-07-09 15:15
1) W3Schools
2) Write
3) Execute


Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.


img259.imageshack.us/img259/3713/sigr.png

yours31f@live.com yours31f@yahoo.com rpwd.info
Author

RE: Realistic 2. Need help with the script.

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 10-07-09 16:29
Yeah go learn php from w3schools. Then come up with an algorithm using loops to create all possible commonly-used-character-combinations, and then learn curl.


Wisdom spared is wisdom squared.
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 12-07-09 22:44
I have learned PHP as good as I can, but how can you make it ad and modify characters itself (instead of typing the whole loop with all possibilities myself)? And how can you make it interact with the server? Is that where Curl comes in???


Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 13-07-09 02:38
Hmm... i don't remember using a script on this challenge...it has been awhile i guess.


Author

RE: Realistic 2. Need help with the script.

korg
Admin from hell



Posts: 2798
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
God
Posted on 13-07-09 03:23
Didn't use a script myself, Use your head instead. It's been a while since I did this one.


i57.photobucket.com/albums/g215/korg1269/shodan13.jpg

I deal in pain, All life I drain, I dominate, I seal your fate.
O R
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 13-07-09 03:42
Yeah i'm pretty sure i didn't either. WAIT! i think there was a link in an article to a script and i just banked it took about 3 minutes Pfft. Wow i was so n00b.


Author

RE: Realistic 2. Need help with the script.

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 13-07-09 21:19
Tokortoh, use an array to hold all characters then use a loop to choose letters from the array. That's how bruteforcers usually work. Look at javascript 14, 15, or 16 to get an understanding of how you would use arrays.


Wisdom spared is wisdom squared.
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 14-07-09 17:22
I made up an array with all characters (a-z + 0-9) But I really have no idea on how to make a script that picks the arrays, I don't want to type every possibility myself Pfft And I'm (almost) sure there is a faster way for this... Does anyone know how to create, or a place where I can find such a script?
Thanks in advance Wink

Edit: I could do it with my head, of course, but I'd like to learn how to create a Brute Forcer myself instead of downloading working ones, aims to much at skiddie for me...




Edited by on 14-07-09 17:23
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-07-09 13:46
@ MoshBat

Nice sig B) and thanks for the tip to not modify a-Z!

But I still don't know how I can let the script change characters...
Like making:
1000.sql
to
1001.sql
and so on, how can I make the script do that itself???

Could anyone learn that to me?
Doing this manualy takes too long for me (lazy me Pfft) I'd rather write a program to do it for me, only... how?





Edited by on 15-07-09 13:47
Author

RE: Realistic 2. Need help with the script.

pimpim
Member



Posts: 45
Location: Reading your /etc/shadow
Joined: 26.10.08
Rank:
Newbie
Posted on 15-07-09 17:01
Tokoroth wrote:
@ MoshBat

Nice sig B) and thanks for the tip to not modify a-Z!

But I still don't know how I can let the script change characters...
Like making:
1000.sql
to
1001.sql
and so on, how can I make the script do that itself???

Could anyone learn that to me?
Doing this manualy takes too long for me (lazy me :P) I'd rather write a program to do it for me, only... how?


I used a python-script in this challenge, what you really need to bruteforce is the numbers and folder names (backups/bacups).
I used a couple of for-loops to generate all the possible file-names.

Code

foreach date as (1 .. 1000) {
    foreach hour as (0, 24) {
         $s = "asdf" . date . "asdf" . hour;
         *Connect to server*
    }
}





That's not real code, it's just some pseudocode to show you the basic idea of how it might implemented.
(I'm not really good at explaining how things work)


www.hellboundhackers.org/sig/c/34966/blow me.png
sa.backman@hotmail.com
Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-07-09 17:14
pimpim wrote:
Tokoroth wrote:
@ MoshBat

Nice sig B) and thanks for the tip to not modify a-Z!

But I still don't know how I can let the script change characters...
Like making:
1000.sql
to
1001.sql
and so on, how can I make the script do that itself???

Could anyone learn that to me?
Doing this manualy takes too long for me (lazy me :P) I'd rather write a program to do it for me, only... how?


I used a python-script in this challenge, what you really need to bruteforce is the numbers and folder names (backups/bacups).
I used a couple of for-loops to generate all the possible file-names.

Code

foreach date as (1 .. 1000) {
    foreach hour as (0, 24) {
         $s = "asdf" . date . "asdf" . hour;
         *Connect to server*
    }
}





That's not real code, it's just some pseudocode to show you the basic idea of how it might implemented.
(I'm not really good at explaining how things work)


Actually. I believe there's a script in the code bank to bruteforce it, in case your lazy and don't wanna take 5mins urself. :p


Author

RE: Realistic 2. Need help with the script.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 23-07-09 21:30
i did the mission
but it ws to slow
i changed sme values manualy as d php run on my pc , stoped aftr few min . Frown , so plz help me 2 run al things automaticaly without any change manualy (i changed 01 to 02,03 etc)


Author

RE: Realistic 2. Need help with the script.

pimpim
Member



Posts: 45
Location: Reading your /etc/shadow
Joined: 26.10.08
Rank:
Newbie
Posted on 24-07-09 08:08
gunjanbansal000 wrote:
i did the mission
but it ws to slow
i changed sme values manualy as d php run on my pc , stoped aftr few min . Frown , so plz help me 2 run al things automaticaly without any change manualy (i changed 01 to 02,03 etc)


I'll give you a tip: Loops...

EDIT: Nevermind, you already beat the challenge.


www.hellboundhackers.org/sig/c/34966/blow me.png

Edited by pimpim on 24-07-09 08:12
sa.backman@hotmail.com