디시인사이드 갤러리

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

갤러리 본문 영역

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

ㅁㄴㅇㄹㅋㅌ(121.136) 2010.10.08 00:25:52
조회 264 추천 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/09/23 - -
256331 온라인수업중에 방통대가 좋은 이유가 뭔가요? [7] 방통대(219.250) 11.06.29 196 0
256329 내가 발견한 신개념 cpu [1] Adelposs갤로그로 이동합니다. 11.06.29 109 0
256327 너희 물리학 어디다 쓰는지 아냐? 내가 가르쳐줌 [1] Adelposs갤로그로 이동합니다. 11.06.29 102 0
256326 예전에 만든 안드로이드 어플이 시험 과제에 나와서 그냥 제출한게 자랑 [16] Adelposs갤로그로 이동합니다. 11.06.29 150 0
256325 C언어 이게 왜 잘못된 구문이야? [5] 프레시안갤로그로 이동합니다. 11.06.29 165 0
256324 헬프! 안드로이드용 자바 [3] NoWay갤로그로 이동합니다. 11.06.29 742 0
256323 turbo c 의 library 책은 어디서 파나요? [16] 전날의 섬갤로그로 이동합니다. 11.06.29 93 0
256322 아델 왔쪄염 ㅇㅅㅇ 뿌뿌~ Adelposs갤로그로 이동합니다. 11.06.29 44 0
256321 아 형들 나좀 도와줘 [4] Adelposs갤로그로 이동합니다. 11.06.29 69 0
256320 74LS138의 작동원리가 뭡니까?! [6] 74LS138(211.114) 11.06.29 414 0
256319 귀엽다고 리플 달지 마라. [4] ㅇㅇ(222.107) 11.06.29 106 0
256318 진심으로 물어봅니다 형님들 [7] asd(121.137) 11.06.29 123 0
256316 C 질문이요 ㅇ맇엘 ㅠㅠ [9] 성장하는뉴비(121.172) 11.06.29 89 0
256315 프로그래머 직장 다니는사람 보통 어떤거 만들어? [3] hokace(112.162) 11.06.29 132 0
256314 횽들 안녕하세요 [2] 해일리갤로그로 이동합니다. 11.06.29 67 0
256312 연봉협상좀 여쭤볼께요 [2] Witch Doctor갤로그로 이동합니다. 11.06.29 169 0
256311 malloc함수를 쓰다 든 의문점 [10] malloc(119.206) 11.06.29 158 0
256309 상속에서 어떤 경우에 is a 이고 has a 인지 질문ㅋ [4] ㅁㅁ(112.148) 11.06.29 184 0
256308 C언어 컴파일러 머가 좋나여??? [6] 전날의 섬갤로그로 이동합니다. 11.06.29 341 0
256307 아 쉬바 한달에 절반을 놀고 있네..... [4] ㅅㄱ(115.90) 11.06.29 95 0
256306 C에 대해서 질문이있어요 [13] ㄷㄷ(211.114) 11.06.29 125 0
256305 넥서스 s의 단점 [2] 분당살람갤로그로 이동합니다. 11.06.29 204 0
256304 TDD로 프로그래밍한다는게 무슨 의미에여? [8] ㅇㅇ(222.107) 11.06.29 190 0
256303 헤더파일(h)에서 c파일에 있는 변수를 가져다 쓰는데 [6] ㅋㅋㅋ (116.42) 11.06.29 112 0
256302 학교브랜드가 컴퓨터길에선 별로 매리트가 없나요? [8] 마듀(121.169) 11.06.29 131 0
256301 자바 프라퍼티처럼 C++에 프라퍼티 파서 없나영? [2] rm . dd갤로그로 이동합니다. 11.06.29 51 0
256300 솔까말 자바못하면 그게 ㅄ이지. [4] 잏힝(219.251) 11.06.29 136 0
256299 객체지향에 대해서... [5] 12324갤로그로 이동합니다. 11.06.29 116 0
256298 제공해 주는 api가 유니코드가 아니라면... [1] rm . dd갤로그로 이동합니다. 11.06.29 51 0
256297 터보C 2.01에서 Hello.exe 만들어 봤어요! [2] 전날의 섬갤로그로 이동합니다. 11.06.29 79 0
256294 C#에서 InstallShield 로 설치파일만들어주잖아...제한 [2] (121.66) 11.06.29 157 0
256293 요즘에는 무료 웹계정(HTTP) 어떤거 씀?? [2] 시불라미갤로그로 이동합니다. 11.06.29 171 0
256292 비트컴퓨터 다녀온 횽들있어? 1414(59.0) 11.06.29 128 0
256291 ISR 의 1번이 뭐지? [4] 외계달팽갤로그로 이동합니다. 11.06.29 63 0
256289 프로그래밍 언어 공부 질문좀 부탁드립니다... [6] 프레시안갤로그로 이동합니다. 11.06.29 218 0
256287 형들 데이터통신이라는 과목 어려워? [7] ㄷㄷㄹ(59.0) 11.06.29 184 0
256285 도어락 찡찡이 [2] This Is Dis갤로그로 이동합니다. 11.06.29 74 0
256284 아 괜히 복습했다....... ㅋㄱ(183.96) 11.06.29 36 0
256283 횽들 좀 c++인데 좀 도와줘 ㅠㅠ [2] 씨뿔좆뉴비(163.180) 11.06.29 60 0
256282 [JAVA} 형들 하라는 대로 했는데, 이번엔 계산이 말썽임 ㅠㅠ [8] missAA갤로그로 이동합니다. 11.06.29 85 0
256281 ATmega128 도어락 다시 올려봐 - [11] Kidea갤로그로 이동합니다. 11.06.29 2013 1
256278 빌어먹을 ATmega128 도어락 좀. [2] Kidea갤로그로 이동합니다. 11.06.29 182 0
256277 Java 쉬운건데 내가 지금 뭘 잘못햇는지 횽들 좀 가르쳐줘 [2] missAA갤로그로 이동합니다. 11.06.29 68 0
256275 비틴횽 카이스트 엿어요? 와;; [2] 일광면(119.198) 11.06.29 147 0
256271 안드로이드 다양성의 폐해 [2] 잏힝(219.251) 11.06.29 105 0
256270 면접보고 왔다 [20] 은행강도갤로그로 이동합니다. 11.06.29 229 0
256268 빌어먹을 함수 네이밍은 어찌하는게 좋을까염 [2] rm . dd갤로그로 이동합니다. 11.06.29 82 0
256267 ㅄ들 학점 4.5 맞아도 결국 니들의 운명은 [1] 잏힝(219.251) 11.06.29 104 0
256265 학교 네임드+성적 이면.. 여기 카이스트 다니던 형이 있던거같은데 [10] 형들아(210.115) 11.06.29 207 0
256262 학과수석은 힘들껄.. [2] 일광면(119.198) 11.06.29 89 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2