Search found 31 matches

by TS_Death_Angel
Sat Apr 21, 2007 12:52 pm
Forum: Miscellaneous
Topic: Copying Integers to Character Array (In C)
Replies: 1
Views: 1466

Copying Integers to Character Array (In C)

Hi. I have an integer (4 bytes, no more, no less) which I need to copy into an unsigned character array. There has to be some simple way to do it, and if you know it, please reply. The way I'm doing it at the moment is sprintf'ing the integer to a string as a hexadecimal number, converting every two...
by TS_Death_Angel
Sun Dec 03, 2006 7:45 am
Forum: Javascript
Topic: Auto-incrementing number...
Replies: 4
Views: 1220

Okay, see that makes a huge difference: you can't possibly do that with a server side language. You could do it with Javascript. Check out this Javascript code for displaying a continuously updating clock (every second) on your screen. All you need to do is adapt it to manipulate the date-of-birth ...
by TS_Death_Angel
Sat Dec 02, 2006 6:50 pm
Forum: Javascript
Topic: Auto-incrementing number...
Replies: 4
Views: 1220

Alright, the script just calculates my age to the nearest second. Here's the script I've got: <?php # # On the fly age calculation # $dob = 689425200; $now = time(); $dif = $now-$dob; $yr = 60*60*24*365; $yrs = $dif/$yr; $inc_sec = (($now+1-$dob)-1)/$dif; // how much to add per second echo $yrs; ?> ...
by TS_Death_Angel
Sat Dec 02, 2006 6:13 pm
Forum: Javascript
Topic: Auto-incrementing number...
Replies: 4
Views: 1220

Auto-incrementing number...

Could someone lend me a hand? I have zero JS experience, but hopefully this is simple enough for someone to help me with it :P Say I output a number via PHP and want a specific number (also outputted by PHP) to be added every second. Would anyone be so kind to write a quick snippet to do this? ^^ Ch...
by TS_Death_Angel
Mon Nov 13, 2006 12:43 pm
Forum: PHP - Code
Topic: PHP-GTK Progress Bar
Replies: 1
Views: 601

PHP-GTK Progress Bar

I'm pretty experienced with PHP, but I've just started trying out the GTK extentsion. I just want to make a small app that utilizes the progress bar, but there are no examples on how to use it! If anyone knows how, please post an explanation on how to use the progress bar widget.

Cheers :mrgreen:
by TS_Death_Angel
Sat Sep 30, 2006 5:10 am
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

volka wrote:copying code does not improve skills ;)
It will look entirely different when it's done.
by TS_Death_Angel
Sat Sep 30, 2006 5:00 am
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

I know it's rediculous. However, it will also help me work on my PHP skills, which I've been looking to do ;P
by TS_Death_Angel
Sat Sep 30, 2006 4:41 am
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

Yes, I know there will be collisions, but I will sort out all of these problems (as well as batch writing rather than writing a hash every time it's calculated) once I complete the script.

Thanks for that snippet :)

Edit: Your dictionary script is very nice ^^'
by TS_Death_Angel
Fri Sep 29, 2006 7:22 pm
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

And it will not know where to stop, be unorganised, and wasted processing power will go to checking if the string has already been generated. I've already tried this approach and realized that it was just completely futile :P
by TS_Death_Angel
Fri Sep 29, 2006 7:19 pm
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

Didn't I just say I'm not looking for a specific result? :P I'm just looking for a snippet of code that will brute force a hash.

Oh, and I'll use letters and numbers.
by TS_Death_Angel
Fri Sep 29, 2006 6:51 pm
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

@nickvd: I am well aware of how long it takes, but it is not my goal to crack one particular hash, but rather make a lookup table for ALL hashes.

@Buddha443556: Nope, I'm just looking for a snippet of code that will systematically try different values.
by TS_Death_Angel
Fri Sep 29, 2006 6:37 pm
Forum: PHP - Code
Topic: Brute-forcing...?
Replies: 22
Views: 4045

Brute-forcing...?

Hello. I've been looking for a bit of code that will brute-force an MD5 hash. I try to make my own, and it only makes my head hurt, and I can't find anything on Google, which makes my head hurt even more! ^_^' So I'd appreciate it if someone could give me a small piece of code that will brute force ...
by TS_Death_Angel
Sun Aug 06, 2006 6:44 pm
Forum: PHP - Code
Topic: Command line: Request input?
Replies: 2
Views: 453

Cheers :D You can't imagine how long I've been looking for the solution to this... :P Thanks again.
by TS_Death_Angel
Sun Aug 06, 2006 6:15 pm
Forum: PHP - Code
Topic: Command line: Request input?
Replies: 2
Views: 453

Command line: Request input?

Is there a way for a PHP script running from the command line to request user input via keyboard?
Ex. Please enter your age: [cursor]

Thanks.
by TS_Death_Angel
Sat Jul 08, 2006 8:20 am
Forum: PHP - Security
Topic: Image Hosting Security
Replies: 5
Views: 2538

Ah, I see... thanks! :D