| | |
PHP Password Generator
Thread Solved |
•
•
Join Date: May 2008
Posts: 305
Reputation:
Solved Threads: 28
Hi,
I am developing a piece of software which is not in any way being designed to hack into my schools proxy server using HTTP auth
At the moment I have got it to generate random passwords of a random length, however using this method it is sometimes repeating passwords and there is no logical order to follow. Is there any way to get my PHP app to generate passwords in sequence (I know the passwords contain letters a-z A-Z and numbers 0-9)
a -> A -> b ->B etc.
Then move on to
aa -> aA -> ab -> aB etc.
then
ba -> bA etc
or something like that as in it trys each possible character then adds another character to the string and loops.
Regards,
Sam Rudge
P.S. Never try to hack the admin password for your school proxy, it can get you in a lot of trouble lol
I am developing a piece of software which is not in any way being designed to hack into my schools proxy server using HTTP auth

At the moment I have got it to generate random passwords of a random length, however using this method it is sometimes repeating passwords and there is no logical order to follow. Is there any way to get my PHP app to generate passwords in sequence (I know the passwords contain letters a-z A-Z and numbers 0-9)
a -> A -> b ->B etc.
Then move on to
aa -> aA -> ab -> aB etc.
then
ba -> bA etc
or something like that as in it trys each possible character then adds another character to the string and loops.
Regards,
Sam Rudge
P.S. Never try to hack the admin password for your school proxy, it can get you in a lot of trouble lol
Exactly, that's why most people here probably wont and shouldn't help you with this.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Jul 2008
Posts: 151
Reputation:
Solved Threads: 25
php simply isn't meant for this kind of thing, regardless of its intention, albeit yours is a pretty useless one. On the basis of an 8 character password, where each letter can be 1 of 62 possibilities (a-zA-Z0-9) that is 9.807971461541689e+55 possibilities.
Good luck with that.
Good luck with that.
If you're question/problem is solved don't forget to mark the thread as Solved!
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.12 or 5.3.1
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.12 or 5.3.1
•
•
Join Date: May 2008
Posts: 305
Reputation:
Solved Threads: 28
OK no need to get stroppy, and btw i was able to get 650 attempts per second with my laptop alone and I have 5 exactly the same + a load of friends with laptops who have said they will run the application. Im running it from a command window not through apache or IIS etc. I also know the password begins with H and is 7-10 characters long. I can also access the proxy with my home servers using VPN. Also i dont know any other languages that can process 650 requests per second and not slow or crash the laptops.
If you want a random password for general purposes then simply just do a hash of the current date, time and microtime. The following is an example:
But if you are trying to hack into a school network like you have mentioned then try the following:
The above code is what I used in my sha1 cracker.
php Syntax (Toggle Plain Text)
echo substr(hash('sha1',date('d F Y G i s u')),0,10);
But if you are trying to hack into a school network like you have mentioned then try the following:
php Syntax (Toggle Plain Text)
//settings $chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz"; $minchars=8; $maxchars=10; //rest of script $escapecharplus=0; $repeat=mt_rand($minchars,$maxchars); while ($escapecharplus<$repeat) { $randomword.=$chars[mt_rand(1, strlen($chars)-1)]; $escapecharplus+=1; } //display random word echo $randomword;
Try not to bump 10 year old topics as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. -- Jumba webhosting
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` Want 1 on 1 php help, add me to msn at msn@cwarn23.infoMy favourite PC. -- Jumba webhosting
•
•
Join Date: May 2008
Posts: 305
Reputation:
Solved Threads: 28
Hmm, thanx but I already have it generating random passwords. I just wanted it to do an incremental attack. I think I will add all the letters to an array and work from there.
Regds,
Sam Rudge
Regds,
Sam Rudge
Well if you are trying to get an admin password then wouldn't the most logical thing be to first work out how to communicate with their proxy server (probably sockets). Then to do a password injection into their system so there is a new account then when you go to use their computers simply use the admin password you injected into their system. I hear that is how most online hackers hack into websites.
Try not to bump 10 year old topics as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. -- Jumba webhosting
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` Want 1 on 1 php help, add me to msn at msn@cwarn23.infoMy favourite PC. -- Jumba webhosting
•
•
Join Date: May 2008
Posts: 305
Reputation:
Solved Threads: 28
Yer but im 16 and the only languages I know are PHP, Perl, Python and C# I also think that creating a new user might make them find out. Or proxy is highly monitored.
•
•
•
•
Yer but im 16 and the only languages I know are PHP, Perl, Python and C# I also think that creating a new user might make them find out. Or proxy is highly monitored.
php Syntax (Toggle Plain Text)
$ipaddress='';// server ip address $socket = socket_create (AF_INET, SOCK_STREAM, tcp); socket_connect($socket,$ipaddress, 80);
Try not to bump 10 year old topics as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. -- Jumba webhosting
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` Want 1 on 1 php help, add me to msn at msn@cwarn23.infoMy favourite PC. -- Jumba webhosting
•
•
•
•
On the basis of an 8 character password, where each letter can be 1 of 62 possibilities (a-zA-Z0-9) that is 9.807971461541689e+55 possibilities.
•
•
•
•
i was able to get 650 attempts per second with my laptop alone and I have 5 exactly the same
or 3,639,001,759,748.26 Seconds,
or 60,650,029,329.13 Minutes,
or 1,010,833,822.15 Hours
or 50,541,691.10 Days
or 138,470.38 Years
(please correct me if my math is wrong, its the end of a long day
)Either way, it will take a long time with a PC (or PCs) like yours.
Oh, and in response to your actual question:
Yes.
Last edited by Will Gresham; Feb 27th, 2009 at 9:52 pm.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
![]() |
Similar Threads
- best password (Geeks' Lounge)
- PHP Mysql "Where" statement (PHP)
- trying to make a survey for school yearbook, need help (PHP)
- HiJack This Log -Spyware and Viruse- HELP (Viruses, Spyware and other Nasties)
- Help Please!!! Warning: mysql_num_rows(): (MySQL)
- Problems with first php file (PHP)
Other Threads in the PHP Forum
- Previous Thread: All my buttons with javascript dont work.
- Next Thread: Reg Exp
Views: 2502 | Replies: 14
| Thread Tools | Search this Thread |
Tag cloud for PHP
access ajax apache array arrays beginner binary box broken buttons cakephp check checkbox class cms code cookies database date delete directory display download dropdown drupal dynamic echo email error file files form forms function functions header href htaccess html image images include insert ip java javascript joomla jquery limit link list login loop mail menu mlm mod_rewrite multiple mysql order output parse password paypal php problem query radio regex remote results script search security select server session shopping soap sort sorting source sql string system table tutorial update updates upload url user validation validator variable video web website wordpress xml






