EG Information
Training Missions
Knowledge Bank
Pimp Us Out!
Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.
|
| |
Affiliates
|
|
Enigma Group's Code Bank
sha1crack.plBy: toast - Date Submitted: 2009-05-17 04:54:27 #!/usr/bin/perl #=======================================================================# # This is a modified version of md5crack.pl availble from # # ttp://www.securiteam.com/tools/5OP0F0UKKG.html deigned to crack # # SHA1 hashes # # SHA1 Hash Bruteforce # # By: toast # # This is like I mentioned a modified version of MD5 Hash # # Bruteforce Kit availible from # # http://www.securiteam.com/tools/5OP0F0UKKG.html # # I did type it up myself but I used MD5 Hash Bruteforce Kit as a # # model and template. # # Written under Slackware linux tested and working # # ======================================================================# $tmr = '1'; if ($tmr<=0){ die "Set tmr to a value >=1 !\n";}; use Digest ::SHA1 qw(sha1_hex ); use Time ::HiRes qw(gettimeofday ); if ($ARGV[0]=~"A") { $alph = "QWERTYUIOPASDFGHJKLZXCVBNM";} if ($ARGV[0]=~"a") { $alph = $alph. "qwertyuiopasdfghjklzxcvbnm";} if ($ARGV[0]=~"s") { $alph = $alph. "1234567890";} if ($ARGV[0]=~"d") { $alph = $alph. "`~!@#\$%^&*()-_=+[]\\{}|;:,.<>/?\ ";} if ($alph eq "" or $ARGV[3] eq "") {usage();}; if (length($ARGV[3]) != 40) { die "That is not a valid SHA1 hash\n";}; print "Select charset for attack: '$alph\'\n"; print "Going to crack '$ARGV[3]'\n"; for (my $t=$ARGV[1];$t<=$ARGV[2];$t++){crack($t);} sub usage{ print "\nSHA1 Hash Bruteforce Kit\n"; print "perl sha1crack.pl <charset> <mincount> <maxcount> <SHA1 to crack>\n"; print " Charset can be: [Aasd]\n"; print " A = {'A','b','c',...}\n"; print " a = {'a','b','c',..}\n"; print " s = {'0','1','2','3',...}\n"; print " d = {'`','~','!','@','#',...}\n"; print "Example for cracking SHA1 hash\n"; print "perl sha1crack.pl Aa 1 5 4e7afebcfbae000b22c7c85e5560f89a2a0280b4\n"; print " This will try to crack the hash useing only with capitol alphas and lowercase alphas\n"; print " and only those between one and five characters long.\n"; print " perl sha1crack.pl Aasd 1 7 f18200a905e60dcc22c37cb39b29844ee5320550\n"; print " This will try to crack the hash useing all the characters\n"; print " but will only try cracking passwords between one and seven characters long\n"; } sub crack{ @rawstring = (); for (my $i =0;$i<$charset;$i++){ $rawstring[i] = 0;} $start = gettimeofday(); do{ for (my $i =0;$i<$charset;$i++){ if ($rawstring[$i] > length($alph)-1){ if ($i==$charset-1){ print "Bruteforcing done with $charset chars. No results.\n"; $cnt=0; } $rawstring[$i+1]++; $rawstring[$i]=0; } } #========================================================================# $ret = ""; for (my $i =0;$i<$charset;$i++){ $ret = $ret . substr($alph,$rawstring[$i],1);} $hash = sha1_hex($ret); $cnt++; $stop = gettimeofday(); if ($stop-$start>$tmr){ print "$cnt hashes\\second.\tLast pass '$ret\'\n"; $cnt=0; $start = gettimeofday(); } print "$ARGV[3] != $hash ($ret)\n"; if ($ARGV[3] eq $hash){ die "\n Password is -> $ret\n"; } #========================================================================# $rawstring[0]++; } while($rawstring[$charset-1]<length($alph)); } sub checkhash{ $ret = ""; for (my $i =0;$i<$charset;$i++){ $ret = $ret . substr($alph,$rawstring[$i],1);} $hash = sha1_hex($ret); $cnt++; $stop = gettimeofday(); if ($stop-$start>$tmr){ print "$cnt hashes\\second.\tLast pass '$ret\'\n"; $cnt=0; $start = gettimeofday(); } if ($ARGV[3] eq $hash){ die "\nPassward is -> $ret\n"; } }
|
| Return to
perl category list |
|
|
Who Visited EnigmaGroup Today?
1557 Guests, 263 Users (178 Spiders)
Rex_Mundi, m0rt, vnd, aurena, 3ntr0py, rospark, valy1177, Hessesian, whisperer, Blavatsky, lotato, nmobin27, learning, suetekh, st3alth, Partisan, hackaday, K0gller, fitz, DrOptix, Jayjay, JohnMalkovitzch, psychomarine, whoami, Vspectrum, San Marino, TinCardinal, brunoriversyhn, TheHarrisonW, code-g, yshiau, BillTuer, Psiber_Syn, Klosse, Seasharp, obencefoozy, SlayingDragons, Link-, tinuigimeni, jasonbourne, Fred, GothicLogic, strudels, somebody777, Meonkzt, CJ_Omaha, jearrorne, cls777, unsugsNashy, Balksnuntails, trueorfalse, Sir D. Naut, zach, batsbargy, Rik, Macabre, ellisp, Nightraven, Iccyx, Repuhlsive, vipervince2002, Janomatrix, lol, veceattainc, techno, Exclaw, limited, Nikhil, evjfvir967nj, blackknight911, Distorted, Mod777, dark_void, nermtode, Tjm, bjy1997, hecky, saraf, elprof, damoniceht, trik, jordan86, SnoopSky, dan_movie, OnetInsolefon, darkfire1515, seojlhmyrhwh, Thoplehap, MaxMeier, 1028rajeev, Abhinav2107, autotuneuser, riesenjoe, alexelixir, Tauya, Jozinbrejl, kernel_mod, quolc, anandoump, vladavlada, Taicadine, AnnaNoult, GreenTiger, baripadatimes, Ewing, Blackbeard, thepuppeteer, BON-SELE, hak4r, Unotohumsmush, NIGHTWOLF, CloverCipher, m4f10, Vengeance987, avacraft, Bumpadjuppy, becool, thecoder, ddxc, n01se, alpha1, saki, ObesseJew, ActictGlync, sajan, unicornrainbow, Domihoolbob, matt.14, max66, SnowFury, Spud101, myfabregas, Ausome1, kajman121, Frudopvia, ideveloper6, OLOLO, Bugshuppy, lamb, VagWirura, LialiTiTviors, Ordeptpen, scifics, Pozycj-Z21, RomeoG, Gkjt, interPuscruse, aaftab, TheCheeseDemon, blackcyxx21, jollyjimbo, N4g4c3N, rineDriekly, Rap70r, Xargos, flarornEral, ovetz13, sonu sahu, Breezy, emitleBen, Hackpad, JWTSR, nicyun, kaizo, itevainee, IvanDimitriev, advilapyday, luke460, AverageJoe, zeratu92, litbk, Mr.Pickle, mannavard1611, LoopyLion, NexusVos, lonely.connection, mtroscheck, burberrybagsjr, nikedunksxm, xordux, jeho, Lonewolf034, Dragonite, nhorton, Reloaded, Odile, Kaptain_k1rk, Teefelltugh, grizzly, posthuman01, jakesboy2, pwnpwnlolz, Sabo, Lakhoamnmek, Røgue, dot_Cipher, mori, snickerless1, cart1m, Xendz, KELATALFTUS, hubris, Afrika, welepocourl, carpinteyrofbt, ReottphoffBom, Reahastegah, pumashoesld, pdanielt, dmac006, DnA-Ender, Red Fox, couptupleakb, ryanjcrook, iMaxx, sh3llcod3, TimHortons, EmilaHapsaums, Feld Grau, burgeoningneophyte, Maroonhat, CookieAu, tinkansinar, Mitodina, timberlandoutletlufc, zsefvy, guccioutletox, AlexDiru, AbercrombieFitchhl, Ryuske, r0z4, slchill, kalak55, Ph4Kt480ii, beefarn, Jigoku, WrossyJes, pollolololo, ZepSung, Fragility, jell0, C9019, Othrguy, Noticon, KIKNWING, llasarus, mdubz, leah027, iellswo, MAZI_, Estilaamoli, subtentar, Trollorful, no, nas0151, Traybo, howisthechicken, thethird3y3, Somethingclever, marplusz, MSI52, twink gay cam dUi8D, temoJessy |
| |
|
|
|
|
|