|
|
|
Loading, parsing and consuming unstructured data i.e. password hashes from google |
Si vous voulez bloquer ce service sur vos fils RSS
Si vous voulez nous contacter ou nous proposer un fil RSS
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Loading, parsing and consuming unstructured data i.e. password hashes from google Par Dinis Cruz BlogLe [2013-08-14] à 11:12:13
Présentation : Following Generating an small MD5 Rainbow Table in C , the objective of this post is to show how to consume unstructured data to be used for example on a fuzzing brute-force login attempt, which you will see on the next post Now that we have a way to resolve MD5 hashes, we need a couple hashes to test it out. Unfortunately for the affected users there are a HUGE amount of password hashes out there. For example, take a look at the http www.exploit-db.com google-dorks 9 page image Clicking on the 2nd one shown above in red take us to this page image which links to this Google results page https www.google.com search q ext sqlpourcents20intext hotmail.compourcents20intextpourcents20 password safe active image with the first hit in the 791 list of results returned from Google being image which contains a large number of user IDs, username, hashes, emails and names. WTF Moment I know this shouldn t shock me these days, but ... In this case what we are after is to extract the username and hashes from this list, so let s go into an O2 Platform REPL environment, and download this file image Note in cases like this where we first need to load some data it is better to use the o2Cache object, so that there is only one load per O2 process image To get an idea of the quality of the data in the lines, lets see how many split sizes we have image In this case there are 10 lines that will not split to a constant amount image ... and 358 lines splitting into 9 blocks. image Lets look at the first line note that the results in the Output window are sorted alphabetically image Here is how to get a clean hash image With the username being the 2nd value image Here is a Dictionary indexed by Username image In cases like this, it is better to use the Items class part of FluentSharp.Core since it is serializable image Another option is to save the data as a tab delimited file so that it can be consumed by our next script image Using LINQ If you are into LINQ queries, here is another way this data can be sliced image And since the FluentSharp.WinForms TableList, supports LINQ queries, here is a nicer way to visualize the data image specially when we add the rest of the data collected image note how now it is very easy to detect the odd entry that has a bad format Source code example 1 Code that creates the GUI shown above with the user account details and hashes var topPanel name .popupWindow 700,400 var topPanel panel.clear .add_Panel var rawData rawData .o2Cache http reflets.info hcsr.gov.sy_users.sql .GET var lines rawData.fix_CRLF .lines var userMappings from line in lines let splittedLine line.remove ' , , .split , select new userId splittedLine.first , username splittedLine.second , hash splittedLine.third , email splittedLine.fourth , firstName splittedLine.fifth , lastName splittedLine. value 5 , flag1 splittedLine. value 6 , falg2 splittedLine. value 7 topPanel.clear .add_TableList User Mappings .show userMappings return userMappings Resolving hashes using small MD5 Rainbow Table Since the objective is to resolve the passwords, lets now load up the small Rainbow Table we created in the previous post image It better to load the heavy ones with the 40 Mbs into an o2Cache object using a Dictionary since it has much better performance that Items image Final step is to use this rainbowTable object to resolve the hashes previously mapped image This will create this table using the 10x numbers - 6x length M5_for_10_chars_with_6_depth.txt 44Mb file image and this table using the 10x numbers and 26x letters - 4x length M5_for_36_chars_with_4_depth.txt 65Mb file image Which basically means that our simple rainbow tables was able to decrypt 88 64 24 MD5 passwords yes, we are not decrypting it, just brute-forcing it . Question Is anybody notifying these users As you can see it is quite easy to calculate these passwords, and it would be nice if you are the affected user to be notified that this is happening specially for users that reuse passwords on multiple sites Source Code example 2 Code that creates the GUI shown above with the passwords resolved var topPanel name .popupWindow 700,400 var topPanel panel.clear .add_Panel var rawData rawData .o2Cache http reflets.info hcsr.gov.sy_users.sql .GET var rainbowFolder C Users o2 AppData Roaming OWASP_O2_Platform_5.3 8_12_2013 MD5_Hashes var rainbowTable rainbow_2 .o2Cache this file finds 64 passwords var md5Hashes_File rainbowFolder.pathCombine 10x numbers - 6x length M5_for_10_chars_with_6_depth.txt this file finds 24 passwords var md5Hashes_File rainbowFolder.pathCombine 10x numbers and 26x letters - 4x length M5_for_36_chars_with_4_depth.txt var items new Dictionary foreach var line in md5Hashes_File.fileContents .lines var splittedLine line.split t items.add splittedLine.first .upper , splittedLine.second return items var lines rawData.fix_CRLF .lines var pwdCount 0 var userMappings from line in lines let splittedLine line.remove ' , , .split , let hash splittedLine.third .upper let password rainbowTable.hasKey hash rainbowTable hash .removeLastChar .removeLastChar let foundIndex password.empty pwdCount .str select new userId splittedLine.first , username splittedLine.second , hash hash, password password, foundIndex foundIndex, email splittedLine.fourth , firstName splittedLine.fifth , lastName splittedLine. value 5 , flag1 splittedLine. value 6 , falg2 splittedLine. value 7 topPanel.clear .add_TableList User Mappings .show userMappings return userMappings
Les mots clés de la revue de presse pour cet article : parsing password google Les videos sur SecuObs pour les mots clés : password google Les mots clés pour les articles publiés sur SecuObs : google Les éléments de la revue Twitter pour les mots clé : password google
Les derniers articles du site "Dinis Cruz Blog" :
- Updated version of BSIMM Questions for Teams now will all activities mapped - First pass at BSIMM questions for teams - Started working on new book Measuring Software Quality using Application Security - When talking about Application Security and Software Quality, Pollution is a much better analogy than Technical Debt - New Era of Software with modern Application Security presentation v1.0 - Simple Threat Model template - Good place to start - JIRA RISK workflow handling of 'Risk Fatigue' - Updated JIRA RISK workflow now with a 'Fixing' State - Presenting at OWASP AppSecEU on Using JIRA to manage Risks and Security Champions activities - Thinking of writing a book called Measuring Software Quality using Application Security
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Si vous voulez bloquer ce service sur vos fils RSS :
- avec iptables "iptables -A INPUT -s 88.190.17.190 --dport 80 -j DROP"
- avec ipfw et wipfw "ipfw add deny from 88.190.17.190 to any 80"
- Nous contacter par mail
| Mini-Tagwall des articles publiés sur SecuObs : | | | | sécurité, exploit, windows, attaque, outil, microsoft, réseau, audit, metasploit, vulnérabilité, système, virus, internet, usbsploit, données, source, linux, protocol, présentation, scanne, réseaux, scanner, bluetooth, conférence, reverse, shell, meterpreter, vista, rootkit, détection, mobile, security, malicieux, engineering, téléphone, paquet, trames, https, noyau, utilisant, intel, wishmaster, google, sysun, libre |
| Mini-Tagwall de l'annuaire video : | | | | curit, security, biomet, metasploit, biometric, cking, password, windows, botnet, defcon, tutorial, crypt, xploit, exploit, lockpicking, linux, attack, wireshark, vmware, rootkit, conference, network, shmoocon, backtrack, virus, conficker, elcom, etter, elcomsoft, server, meterpreter, openvpn, ettercap, openbs, iphone, shell, openbsd, iptables, securitytube, deepsec, source, office, systm, openssh, radio |
| Mini-Tagwall des articles de la revue de presse : | | | | security, microsoft, windows, hacker, attack, network, vulnerability, google, exploit, malware, internet, remote, iphone, server, inject, patch, apple, twitter, mobile, virus, ebook, facebook, vulnérabilité, crypt, source, linux, password, intel, research, virtual, phish, access, tutorial, trojan, social, privacy, firefox, adobe, overflow, office, cisco, conficker, botnet, pirate, sécurité |
| Mini-Tagwall des Tweets de la revue Twitter : | | | | security, linux, botnet, attack, metasploit, cisco, defcon, phish, exploit, google, inject, server, firewall, network, twitter, vmware, windows, microsoft, compliance, vulnerability, python, engineering, source, kernel, crypt, social, overflow, nessus, crack, hacker, virus, iphone, patch, virtual, javascript, malware, conficker, pentest, research, email, password, adobe, apache, proxy, backtrack |
|
|
|
|
|