디시인사이드 갤러리

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

갤러리 본문 영역

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

ㅁㄴㅇㄹㅋㅌ(121.136) 2010.10.08 00:25:52
조회 267 추천 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
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 제목 글쓴이 작성일 조회 추천
설문 이번주 설문은 탈모 걱정 없어 보이는 머리숱 금수저 스타는? 운영자 25/07/14 - -
AD 휴대폰 액세서리 SALE 운영자 25/07/15 - -
340841 어셈블리어 해석좀 부탁드립니다.. [1] mingoon(125.176) 12.12.16 123 0
340840 형들 유니티4쓰는데 유니티3.x 책가지고 공부해도됨? [3] 윤성우(175.215) 12.12.16 95 0
340839 형들 c#만알면 유니티좆밥임?? [3] 윤성우(175.215) 12.12.16 166 0
340838 게임프로그래밍 준비하는 애들은 왜 다 찌질한 오덕같을까 [2] 난찐질이(175.195) 12.12.16 205 0
340837 c/c++ 입문서는 정보올림피아드 책이 최고인거 같다 [3] ㅇㅇ(125.177) 12.12.16 218 0
340836 액셀로 만들어본것들 [2] 초보리버서(49.1) 12.12.16 175 0
340835 vs2010에서 C공부하는 중인데 질문 좀~ [2] 멍청닭(182.211) 12.12.16 102 0
340834 정말 ×E 한 운영체제. [1] 때릴꺼야?(116.40) 12.12.16 110 0
340832 알바하면서 공부할수있는 장소는 편의점이최적? [7] 장애자(211.237) 12.12.16 375 0
340831 형들 c,c++ 끝내고 이번방학 자바하려고하는데기본서 추천좀.. [1] ㅇㅇ(112.151) 12.12.16 103 0
340830 C는 A Book on C가 수학의 정석급 아니냐 [6] 클리(58.141) 12.12.16 208 0
340829 222222222222222222 [2] (175.215) 12.12.16 65 0
340828 엘더스크롤이나 콜오브 듀티 같은거 모델링 텍스쳐들 전부다 이렇게하는거알? [4] (175.215) 12.12.16 132 0
340827 유니티 배우는 방법 알려준다 필독해라 [4] d(125.177) 12.12.16 158 1
340826 DEITEL의 HOW TO PROGRAM C++ 어떻게 생각하냐 [2] ㅇㅇㅇ(110.15) 12.12.16 83 0
340825 님들아 c++랑 c#이랑 연계되어있나요?? (즉 c#배울러면 c++배워 [13] (175.215) 12.12.16 196 0
340824 오늘의 versus 달린다. 투표해봐라. [10] 육군야전출신(118.36) 12.12.16 111 0
340823 지금 일베 디도스받고있는것 같음? [2] ㅇㅇㅇ(175.121) 12.12.16 103 0
340822 형들 c 배우고나서 바로 c#들어가도됨? c++안배우고. [33] (175.215) 12.12.16 353 0
340821 비주얼 스튜디오 2012 써본 사람 있냐 이거 존나 이상한듯? [4] asdf(121.137) 12.12.15 134 0
340820 프로그래밍 존나 재미들렸었던때가 클리(58.141) 12.12.15 137 0
340819 안녕하세여 프로그래밍 갤러분들 [4] 프로그래뮝(14.63) 12.12.15 150 0
340817 자료구조 공부방법에 대해서 ㅠㅠ^^ [6] 09컴공학생(182.213) 12.12.15 759 0
340816 심심해서 올려보는 남북한간 IT 용어 비교 [5] 경번갑(222.107) 12.12.15 252 0
340814 hanirc에 그냥 잡담 활발한 채널 없냐 [4] 클리(58.141) 12.12.15 74 0
340812 어 06년 공지도 살아있네? ㅋㄱ(183.96) 12.12.15 59 0
340810 Visual studio 싸게 사는 방법 없나요? [6] 네로시엔갤로그로 이동합니다. 12.12.15 180 0
340809 시발 asp.net 호스팅은 다 존나 비싸네 [3] 클리(58.141) 12.12.15 209 0
340808 이거 [3] 뿌잉크아교아(118.34) 12.12.15 83 0
340806 아 빡친다... [6] ii(58.142) 12.12.15 203 0
340805 싱글 게임 제한좀 깨주실 능력자형없나요?ㅠㅠ [4] 징기스칸4(125.182) 12.12.15 119 0
340804 역시 대학교 시험시즌답게 구걸글과 질문글이 넘침 [3] ㅁㄴㅇㄹ(203.229) 12.12.15 122 1
340803 api 프로그래밍 모르면 힘듬?? [4] 123(121.164) 12.12.15 189 0
340802 저 코딩좀 해주실분 메일로 보내드릴게요 [6] 멘붕(211.202) 12.12.15 123 0
340801 징키스칸 이 꾸준글 맞네 지난번에도 누가 해줫다 해서 잠잠해지더만. 징키스칸왓다(112.185) 12.12.15 40 0
340800 MFC 좀 그만 까세연 chodadoo갤로그로 이동합니다. 12.12.15 98 0
340799 누가 티 안나게 코드좀 바꿔주실분 있나요?? [3] 멘붕(211.202) 12.12.15 103 0
340798 형들내별명어떰? WannaParty갤로그로 이동합니다. 12.12.15 39 0
340796 형들 여기 둘중에 어디가 좋을거 같나요?? 좋다고소고기사묵겠지갤로그로 이동합니다. 12.12.15 60 0
340795 불법복제 신고하는 방법 알아요?? 좋다고소고기사묵겠지갤로그로 이동합니다. 12.12.15 31 0
340794 지금 누가 빠르게 코딩좀 해주실분 ㅠㅠ..제발제발 [2] 멘붕(211.202) 12.12.15 101 0
340793 xo페드 낙찰했다 새끼들앜ㅋㅋㅋㅋㅋㅋㅋㅋ [1] Kyle(220.244) 12.12.15 108 0
340792 형들 마지막으로 질문할께요 [3] 엠피포션(117.111) 12.12.15 42 0
340791 근데 처음 입문할때 c언어 말고 파이썬이 괜찮아요? [9] 엠피포션(117.111) 12.12.15 294 0
340790 근데 컴공하고 전자공 차이가 [3] 엠피포션(117.111) 12.12.15 303 0
340789 요즘도 mfc 공부하는 사람 있네 [4] ㄱㄱ(125.61) 12.12.15 189 0
340787 Bomb lab phase_6 원리 아시는분 mingoon(125.176) 12.12.15 114 0
340786 형들 내가 이번에 대학에 들어가는데 [5] 엠피포션(117.111) 12.12.15 100 0
340785 싱글 게임의 제한좀 깨주실분 구합니다. 징기스칸4(125.182) 12.12.15 55 0
340784 프게이들은 누구 지지하냐? [2] 탐라국(175.223) 12.12.15 65 0
뉴스 [4인용식탁] 이지훈, ‘미스터트롯3’ 도전하며 김칫국만 한 사발? “TOP7 확신해 6개월 스케줄 비워 뒀는데...이거 뭐지?” 디시트렌드 10:00
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2