디시인사이드 갤러리

갤러리 이슈박스, 최근방문 갤러리

갤러리 본문 영역

비밀번호 알아내는 프로그램 코드랰ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

ㅁㄴㅇㄹㅋㅌ(121.136) 2010.10.08 00:25:52
조회 261 추천 0 댓글 5



/***************************************************************
**
**  by Small Hadron Collider
** http://www.smallhadroncollider.com
**
** Distributed under a Creative Commons by-sa License
** http://creativecommons.org/licenses/by-sa/3.0/
**
** WARNING: Top 500 passwords array at the bottom contains
** naughty words. Don\'t look at it if you\'re easily
** offended.
**
***************************************************************/

// Usage: Pass the password string to passwordStrength and string with time it will take is returned

function passwordStrength(password)
{
// Get password length
var length = password.length;

// Check password against common passwords of that length to see if it\'s in top 500
if (length > 2 && length < 9)
{
for (var i=0; i<ARRAYOFPASSWORDS[LENGTH].LENGTH;
if (password.toLowerCase() == arrayOfPasswords[length][i])
{
return \'One of the 500 most common passwords\';
}
}
}


// Calculations per second. Ten million is roughly the number a decent PC could manage uninhibited
var calculationsPerSecond = 10000000;


// Keep track of how many character sets are used
var possibleCharacters = 0;

// Lowercase
if (password.match(/[a-z]/)) { possibleCharacters += 26; }

// Uppercase
if (password.match(/[A-Z]/)) { possibleCharacters += 26; }

// Numbers
if (password.match(/\\d+/)) { possibleCharacters += 10; }

// Symbols
if (password.match(/[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) ) {possibleCharacters += 13};


// Work out the number of possible combinations: possible characters to the power of the password length
var possibleCombinations = Math.pow(possibleCharacters, password.length);

// Divide the number of possible combinations by the calculations a PC can do per second
var computerTimeInSecs = possibleCombinations / calculationsPerSecond;


// Set up an array of periods with their lenghts in seconds
var arrayOfPeriods = new Array();
arrayOfPeriods[\'minute\'] = 60;
arrayOfPeriods[\'hour\'] = arrayOfPeriods[\'minute\'] * 60;
arrayOfPeriods[\'day\'] = arrayOfPeriods[\'hour\'] * 24;
arrayOfPeriods[\'year\'] = arrayOfPeriods[\'day\'] * 365.25;
arrayOfPeriods[\'thousand years\'] = arrayOfPeriods[\'year\'] * 1000;
arrayOfPeriods[\'million years\'] = arrayOfPeriods[\'thousand years\'] * 1000;
arrayOfPeriods[\'billion years\'] = arrayOfPeriods[\'million years\'] * 1000;
arrayOfPeriods[\'trillion years\'] = arrayOfPeriods[\'billion years\'] * 1000;
arrayOfPeriods[\'quadtrillion years\'] = arrayOfPeriods[\'trillion years\'] * 1000;
arrayOfPeriods[\'quintillion years\'] = arrayOfPeriods[\'quadtrillion years\'] * 1000;
arrayOfPeriods[\'sextillion years\'] = arrayOfPeriods[\'quintillion years\'] * 1000;
arrayOfPeriods[\'septillion years\'] = arrayOfPeriods[\'sextillion years\'] * 1000;
arrayOfPeriods[\'octillion years\'] = arrayOfPeriods[\'septillion years\'] * 1000;
arrayOfPeriods[\'nonillion years\'] = arrayOfPeriods[\'octillion years\'] * 1000;


// Period type is \'seconds\' by default
var periodType = \'second\';
var strength = \'\';

// If it will take less than a second to crack the password, show exactly how long
if (computerTimeInSecs < 1) { strength = computerTimeInSecs+" seconds";}

// Otherwise show a rounded-down number
else
{

// Adds the \'s\' onto anything before a thousand years
var intoThousands = \'s\';

// Adds the \'About\' to anything after seconds
var intoMinutes = \'\';

// Round down the time
var newTime = Math.floor(computerTimeInSecs);

// Go through different period lengths
for (var i in arrayOfPeriods)
{
// Stop when got to right period
if (computerTimeInSecs < arrayOfPeriods[i]) { break; }
else
{
if (i == "thousand years") { intoThousands = \'\'; }
if (i == "minute") { intoMinutes = \'About \'; }
newTime = Math.floor(computerTimeInSecs / arrayOfPeriods[i]);
periodType = i;
}
}

// If singular
if (newTime == 1)
{
var aType = \'a \';

// Puts \'an\' where needed
if (periodType == \'hour\' || periodType == \'octillion years\')
{
aType = \'an \';
}

strength = "About "+aType+periodType;
}
else
{
// Convert newTime to string
newTime += \'\';

// Split with commas every three digits
var regex = /(\\d+)(\\d{3})/;

while (regex.test(newTime))
{
newTime = newTime.replace(regex, \'$1\' + \',\' + \'$2\');
}

// Combine with \'about\' if needed, the time it will take, the period type, and the \'s\' if needed
strength = intoMinutes+newTime+" "+periodType+intoThousands;
}
}

return strength;
}


var arrayOfPasswords = new Array();

arrayOfPasswords[3] = [\'god\',\'sex\'];

arrayOfPasswords[4] = [\'1234\',\'cool\',\'1313\',\'star\',\'golf\',\'bear\',\'dave\',\'pass\',\'aaaa\',\'6969\',\'jake\',\'matt\',\'1212\',\'fish\',\'fuck\',\'porn\',\'4321\',\'2000\',\'4128\',\'test\',\'shit\',\'love\',\'baby\',\'cunt\',\'mark\',\'3333\',\'john\',\'sexy\',\'5150\',\'4444\',\'2112\',\'fred\',\'mike\',\'1111\',\'tits\',\'paul\',\'mine\',\'king\',\'fire\',\'5555\',\'slut\',\'girl\',\'2222\',\'asdf\',\'time\',\'7777\',\'rock\',\'xxxx\',\'ford\',\'dick\',\'bill\',\'wolf\',\'blue\',\'alex\',\'cock\',\'beer\',\'eric\',\'6666\',\'jack\'];

arrayOfPasswords[5] = [\'beach\',\'great\',\'black\',\'pussy\',\'12345\',\'frank\',\'tiger\',\'japan\',\'money\',\'naked\',\'11111\',\'angel\',\'stars\',\'apple\',\'porno\',\'steve\',\'viper\',\'horny\',\'ou812\',\'kevin\',\'buddy\',\'teens\',\'young\',\'jason\',\'lucky\',\'girls\',\'lover\',\'brian\',\'kitty\',\'bubba\',\'happy\',\'cream\',\'james\',\'xxxxx\',\'booty\',\'kelly\',\'boobs\',\'penis\',\'eagle\',\'white\',\'enter\',\'chevy\',\'smith\',\'chris\',\'green\',\'sammy\',\'super\',\'magic\',\'power\',\'enjoy\',\'scott\',\'david\',\'video\',\'qwert\',\'paris\',\'women\',\'juice\',\'dirty\',\'music\',\'peter\',\'bitch\',\'house\',\'hello\',\'billy\',\'movie\'];

arrayOfPasswords[6] = [\'123456\',\'prince\',\'guitar\',\'butter\',\'jaguar\',\'united\',\'turtle\',\'muffin\',\'cooper\',\'nascar\',\'redsox\',\'dragon\',\'zxcvbn\',\'qwerty\',\'tomcat\',\'696969\',\'654321\',\'murphy\',\'987654\',\'amanda\',\'brazil\',\'wizard\',\'hannah\',\'lauren\',\'master\',\'doctor\',\'eagle1\',\'gators\',\'squirt\',\'shadow\',\'mickey\',\'mother\',\'monkey\',\'bailey\',\'junior\',\'nathan\',\'abc123\',\'knight\',\'alexis\',\'iceman\',\'fuckme\',\'tigers\',\'badboy\',\'bonnie\',\'purple\',\'debbie\',\'angela\',\'jordan\',\'andrea\',\'spider\',\'harley\',\'ranger\',\'dakota\',\'booger\',\'iwantu\',\'aaaaaa\',\'lovers\',\'player\',\'flyers\',\'suckit\',\'hunter\',\'beaver\',\'morgan\',\'matrix\',\'boomer\',\'runner\',\'batman\',\'scooby\',\'edward\',\'thomas\',\'walter\',\'helpme\',\'gordon\',\'tigger\',\'jackie\',\'casper\',\'robert\',\'booboo\',\'boston\',\'monica\',\'stupid\',\'access\',\'coffee\',\'braves\',\'xxxxxx\',\'yankee\',\'saturn\',\'buster\',\'gemini\',\'barney\',\'apples\',\'soccer\',\'rabbit\',\'victor\',\'august\',\'hockey\',\'peanut\',\'tucker\',\'killer\',\'canada\',\'george\',\'johnny\',\'sierra\',\'blazer\',\'andrew\',\'spanky\',\'doggie\',\'232323\',\'winter\',\'zzzzzz\',\'brandy\',\'gunner\',\'beavis\',\'compaq\',\'horney\',\'112233\',\'carlos\',\'arthur\',\'dallas\',\'tennis\',\'sophie\',\'ladies\',\'calvin\',\'shaved\',\'pepper\',\'giants\',\'surfer\',\'fender\',\'samson\',\'austin\',\'member\',\'blonde\',\'blowme\',\'fucked\',\'daniel\',\'donald\',\'golden\',\'golfer\',\'cookie\',\'summer\',\'bronco\',\'racing\',\'sandra\',\'hammer\',\'pookie\',\'joseph\',\'hentai\',\'joshua\',\'diablo\',\'birdie\',\'maggie\',\'sexsex\',\'little\',\'biteme\',\'666666\',\'topgun\',\'ashley\',\'willie\',\'sticky\',\'cowboy\',\'animal\',\'silver\',\'yamaha\',\'qazwsx\',\'fucker\',\'justin\',\'skippy\',\'orange\',\'banana\',\'lakers\',\'marvin\',\'merlin\',\'driver\',\'rachel\',\'marine\',\'slayer\',\'angels\',\'asdfgh\',\'bigdog\',\'vagina\',\'apollo\',\'cheese\',\'toyota\',\'parker\',\'maddog\',\'travis\',\'121212\',\'london\',\'hotdog\',\'wilson\',\'sydney\',\'martin\',\'dennis\',\'voodoo\',\'ginger\',\'magnum\',\'action\',\'nicole\',\'carter\',\'erotic\',\'sparky\',\'jasper\',\'777777\',\'yellow\',\'smokey\',\'dreams\',\'camaro\',\'xavier\',\'teresa\',\'freddy\',\'secret\',\'steven\',\'jeremy\',\'viking\',\'falcon\',\'snoopy\',\'russia\',\'taylor\',\'nipple\',\'111111\',\'eagles\',\'131313\',\'winner\',\'tester\',\'123123\',\'miller\',\'rocket\',\'legend\',\'flower\',\'theman\',\'please\',\'oliver\',\'albert\'];

arrayOfPasswords[7] = [\'porsche\',\'rosebud\',\'chelsea\',\'amateur\',\'7777777\',\'diamond\',\'tiffany\',\'jackson\',\'scorpio\',\'cameron\',\'testing\',\'shannon\',\'madison\',\'mustang\',\'bond007\',\'letmein\',\'michael\',\'gateway\',\'phoenix\',\'thx1138\',\'raiders\',\'forever\',\'peaches\',\'jasmine\',\'melissa\',\'gregory\',\'cowboys\',\'dolphin\',\'charles\',\'cumshot\',\'college\',\'bulldog\',\'1234567\',\'ncc1701\',\'gandalf\',\'leather\',\'cumming\',\'hunting\',\'charlie\',\'rainbow\',\'asshole\',\'bigcock\',\'fuckyou\',\'jessica\',\'panties\',\'johnson\',\'naughty\',\'brandon\',\'anthony\',\'william\',\'ferrari\',\'chicken\',\'heather\',\'chicago\',\'voyager\',\'yankees\',\'rangers\',\'packers\',\'newyork\',\'trouble\',\'bigtits\',\'winston\',\'thunder\',\'welcome\',\'bitches\',\'warrior\',\'panther\',\'broncos\',\'richard\',\'8675309\',\'private\',\'zxcvbnm\',\'nipples\',\'blondes\',\'fishing\',\'matthew\',\'hooters\',\'patrick\',\'freedom\',\'fucking\',\'extreme\',\'blowjob\',\'captain\',\'bigdick\',\'abgrtyu\',\'chester\',\'monster\',\'maxwell\',\'arsenal\',\'crystal\',\'rebecca\',\'pussies\',\'florida\',\'phantom\',\'scooter\',\'success\'];

arrayOfPasswords[8] = [\'firebird\',\'password\',\'12345678\',\'steelers\',\'mountain\',\'computer\',\'baseball\',\'xxxxxxxx\',\'football\',\'qwertyui\',\'jennifer\',\'danielle\',\'sunshine\',\'starwars\',\'whatever\',\'nicholas\',\'swimming\',\'trustno1\',\'midnight\',\'princess\',\'startrek\',\'mercedes\',\'superman\',\'bigdaddy\',\'maverick\',\'einstein\',\'dolphins\',\'hardcore\',\'redwings\',\'cocacola\',\'michelle\',\'victoria\',\'corvette\',\'butthead\',\'marlboro\',\'srinivas\',\'internet\',\'redskins\',\'11111111\',\'access14\',\'rush2112\',\'scorpion\',\'iloveyou\',\'samantha\',\'mistress\'];

추천 비추천

0

고정닉 0

0

댓글 영역

전체 댓글 0
등록순정렬 기준선택
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 제목 글쓴이 작성일 조회 추천
설문 비난 여론에도 뻔뻔하게 잘 살 것 같은 스타는? 운영자 24/06/03 - -
223735 C언어 정말 간단한 궁금 [2] 9898(122.45) 10.12.09 54 0
223733 ㅠㅠ 컴파일 오류는 안나는데 실행하면 오류가나여 ㅠㅠ 포인터문제! [10] 고갱님(110.5) 10.12.09 87 0
223732 리눅스로 자바코딩하니까. [2] 마타버터갤로그로 이동합니다. 10.12.09 112 0
223731 언론에 롯데치킨에 대한 부정적인 기사가 많이 나가고 있는데 [1] 분당살람갤로그로 이동합니다. 10.12.09 66 0
223730 a*퍼즐알고리즘 보고서 내야하는뎅 퍼즐 많이 해본사람? [1] (121.158) 10.12.09 117 0
223729 롯데치킨 너무한다 ... [1] 임베디드(112.150) 10.12.09 121 0
223725 데이터가 없을때 읽었다라는건 무슨오류지..? [2] 이얌(112.171) 10.12.09 48 0
223724 소셜크리미널 싸이트만들어도 진짜 잘될것같지안냐? 김씨발(124.80) 10.12.09 58 0
223723 시밤 나도 갈때까지 갔구만 [2] prismatic갤로그로 이동합니다. 10.12.09 55 0
223722 소셜소셜거리는 게임 아이디어 추천점 [7] 한마음택배갤로그로 이동합니다. 10.12.09 113 0
223721 이렇게 하면 안되는거야?? 이얌(112.171) 10.12.09 40 0
223720 만약 컴퓨터 분야에 대해 일가견이있는 리눅스창시자 이사람도 컴퓨터언어사용 [2] 김씨발(124.80) 10.12.09 87 0
223719 바탕화면 바꾼 기념으로 덕짤 투척 [8] DMW(125.138) 10.12.09 108 0
223718 콘솔 지렁이 [8] 김늅늅(183.102) 10.12.09 145 0
223716 근데 말이야 모든 프로그램만들려면 기본적으로 언어는 알고있어야되는거아니냐 [9] 김씨발(124.80) 10.12.09 95 0
223714 고수님들 ㅈㅅㅈㅅ 하고요 졸업작품 주제가 인간인데 예를들어 온라인게임하다 [7] 3131(124.80) 10.12.09 112 0
223713 웹 아니긴한데.. 아 될거같은데 안되니까 답답해 미치겠당 ㅠ [2] 이얌(112.171) 10.12.09 45 0
223712 opengl 이거 자체가 플래쉬에니메이션이랑 비슷한거에요? [11] 3131(124.80) 10.12.09 93 0
223711 왜 안드로이드 어플을 리눅스에서 만들려고 하는거야? [3] 홍어(58.180) 10.12.09 116 0
223710 그러고 있는데 이거 찾아도 안나오는거같아요... [2] 이얌(112.171) 10.12.09 39 0
223709 고수님들 저는 처음부터 언어만 죽어라 파면 뭐든 다되는줄알았습니다 [5] 3131(124.80) 10.12.09 104 0
223708 libdnet 만든 사람이 한쿡사람이라니... [3] 제로리플(124.53) 10.12.09 231 0
223707 밑에 고1글보고 생각난건데 [2] 우엉맛칡(110.15) 10.12.09 56 0
223706 지금 내가 쓰는건 이거에요 형 [3] 이얌(112.171) 10.12.09 45 0
223705 고수님들 도와주세요 병신같은중생 살려준다 치고 opengl 이게뭐죠 [10] 3131(124.80) 10.12.09 95 0
223704 아 이 책 못써먹겠네 형들 비베 책 추천좀해주세요. [3] 이얌(112.171) 10.12.09 100 0
223702 opengldl 뭔가요 졸업작품을 1년앞두고 하나 만들고싶은데 [3] 3131(124.80) 10.12.09 74 0
223701 나궁금한게 우리가 하는일반게임 있잖아 모던워페어2폴아웃3이런거보면 [4] 3131(124.80) 10.12.09 82 0
223700 비베 sqlException이 처리되지 않았습니다. [2] 이얌(112.171) 10.12.09 186 0
223698 po할부wer를 시전하였습니다. [3] DMW(125.138) 10.12.09 118 0
223697 언어에 어느정도 아는분만 읽어주세요 [3] 3131(124.80) 10.12.09 62 0
223696 ★ 형아들~ 암호 까먹었어요. 누가 좀 암호 찾아주세요~~~ [3] Assange(123.143) 10.12.09 131 0
223693 자바에서 쓰레드는 왜쓰는거임? [2] 마타버터갤로그로 이동합니다. 10.12.09 79 0
223692 형아들~ 암호 까먹었어요. 풀어주삼.. 안그러면 나 미국으로 끌려감 [1] Assange(123.143) 10.12.09 201 0
223691 add esp , 12 이거 틀린 문장임? [1] 흔한유동닉(121.185) 10.12.09 60 0
223689 자바 이책 읽어본사람?? 고칼로리갤로그로 이동합니다. 10.12.09 67 0
223688 어제 본 형들도 있겠지만 또 질문 굽신굽신 ㅠ 이얌(112.171) 10.12.09 50 0
223687 또 질문갤이네 꿀레갤로그로 이동합니다. 10.12.09 58 0
223685 형들 궁금한게잇어영 [2] 흔한유동닉(121.185) 10.12.09 53 0
223684 형들 초보적인거(계산기) 숏코딩 좀 도와주라(초보수준) [6] 급조닉(115.139) 10.12.09 121 0
223682 형들 좀 도와줘 [11] ~*(121.175) 10.12.09 84 0
223681 자바에서 인스턴스 생성문을 메소드밖에다가 해도 상관없음? 불꽃(124.153) 10.12.09 38 0
223679 배열 주소 표기법, 포인터 주소 표기법..... [1] Negro갤로그로 이동합니다. 10.12.09 170 0
223677 다시 테스트 [5] 오징어맛치즈(110.15) 10.12.09 71 0
223674 행님들 모니터 하나 살라카는디요 [5] 동적할당갤로그로 이동합니다. 10.12.09 70 0
223673 와아~ 존나 춥다~ [1] 땡칠도사갤로그로 이동합니다. 10.12.09 78 0
223671 크롬 다운로드 안되는거 해결방법아는사람 ? [4] 김늅늅(183.102) 10.12.09 92 0
223670 GetTickCount()보다 정교한 시간 함수 없나요? [2] 시간없음(211.54) 10.12.09 94 0
223669 lick my ass [4] 세제맛홍초(110.15) 10.12.09 88 0
223667 리트머스 시험지 식초맛비누(110.15) 10.12.09 54 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2